refactor: 视图tree增加分组默认展开;数据集数据预览接口请求时间延长
This commit is contained in:
parent
fa7a3b369e
commit
6f0d7721fb
@ -103,11 +103,12 @@ export function batchEdit(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function post(url, data, showLoading = true) {
|
||||
export function post(url, data, showLoading = true, timeout = 10000) {
|
||||
return request({
|
||||
url: url,
|
||||
method: 'post',
|
||||
loading: showLoading,
|
||||
timeout: timeout,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@ -535,7 +535,8 @@ export default {
|
||||
type: 'success',
|
||||
showClose: true
|
||||
})
|
||||
this.treeNode(this.groupForm)
|
||||
// this.treeNode(this.groupForm)
|
||||
this.refreshNodeBy(group.pid)
|
||||
})
|
||||
} else {
|
||||
// this.$message({
|
||||
|
||||
@ -72,7 +72,7 @@ export default {
|
||||
if (this.table.id) {
|
||||
this.dataLoading = true
|
||||
this.table.row = 100
|
||||
post('/dataset/table/getPreviewData/1/100', this.table, false).then(response => {
|
||||
post('/dataset/table/getPreviewData/1/100', this.table, false, 30000).then(response => {
|
||||
this.fields = response.data.fields
|
||||
this.data = response.data.data
|
||||
const datas = this.data
|
||||
|
||||
@ -130,7 +130,7 @@ export default {
|
||||
initPreviewData(page) {
|
||||
if (this.table.id) {
|
||||
this.table.row = this.tableViewRowForm.row
|
||||
post('/dataset/table/getPreviewData/' + page.page + '/' + page.pageSize, this.table).then(response => {
|
||||
post('/dataset/table/getPreviewData/' + page.page + '/' + page.pageSize, this.table, true, 30000).then(response => {
|
||||
this.fields = response.data.fields
|
||||
this.data = response.data.data
|
||||
this.page = response.data.page
|
||||
|
||||
@ -341,7 +341,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { loadTable, getScene, addGroup, delGroup, addTable, delTable, post , isKettleRunning} from '@/api/dataset/dataset'
|
||||
import { loadTable, getScene, addGroup, delGroup, addTable, delTable, post, isKettleRunning } from '@/api/dataset/dataset'
|
||||
import { authModel } from '@/api/system/sysAuth'
|
||||
import GroupMoveSelector from './GroupMoveSelector'
|
||||
import DsMoveSelector from './DsMoveSelector'
|
||||
@ -427,9 +427,6 @@ export default {
|
||||
// return this.$store.state.dataset.sceneData
|
||||
// }
|
||||
},
|
||||
created() {
|
||||
this.kettleState()
|
||||
},
|
||||
watch: {
|
||||
search(val) {
|
||||
// if (val && val !== '') {
|
||||
@ -451,6 +448,9 @@ export default {
|
||||
this.refreshNodeBy(this.saveStatus.sceneId)
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.kettleState()
|
||||
},
|
||||
mounted() {
|
||||
this.treeNode(this.groupForm)
|
||||
this.refresh()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user