9eca0a30 by 任超

style:系统管理

1 parent f71561e3
......@@ -71,23 +71,20 @@ export default {
fetchData () {
getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => {
let { records, total } = res.result
this.tableData.data = records
this.tableData.total = total
this.tableData.data = records ? records : []
this.tableData.total = total ? total : 0
})
},
handleRefresh () {
this.$store.dispatch('dict/generateDic')
},
editClick (row, val) {
this.details.rowData = {}
this.details.rowData = row
this.details.isenable = val
console.log(this.details.isenable);
getChildDictList(row.bsmDict).then(res => {
this.isDialog = true
let { result } = res
this.details.dataList = []
this.details.dataList = result
this.details.dataList = result ? result : []
})
}
}
......
......@@ -129,7 +129,6 @@ export default {
details: {
handler (newValue, oldValue) {
this.ruleForm = newValue
console.log(this.ruleForm);
},
deep: true
}
......
......@@ -69,14 +69,15 @@ export default {
sysSqywmbszSearch({ ...this.pageData, ...this.queryForm }).then(res => {
this.loading = false
let { records, total } = res.result
this.tableData.data = records
this.tableData.total = total
this.tableData.data = records ? records : []
this.tableData.total = total ? total : 0
})
},
editClick (row) {
getSysSqywmbszDetailById(row.bsmMb).then(res => {
this.isDialog = true
this.details = res.result
let { result } = res
this.details = result ? result : {}
})
}
},
......
......@@ -77,8 +77,8 @@ export default {
getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total
this.tableData.data = records
this.tableData.total = total ? total : 0
this.tableData.data = records ? records : []
}
})
},
......@@ -90,7 +90,8 @@ export default {
this.isDialog = true
} else {
getDjlxInfo(row.bsmSqyw).then(res => {
this.detailList = res.result
let { result } = res
this.detailList = result ? result : []
this.isDialog = true
})
}
......