style:系统管理
Showing
4 changed files
with
11 additions
and
13 deletions
... | @@ -71,23 +71,20 @@ export default { | ... | @@ -71,23 +71,20 @@ export default { |
71 | fetchData () { | 71 | fetchData () { |
72 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { | 72 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { |
73 | let { records, total } = res.result | 73 | let { records, total } = res.result |
74 | this.tableData.data = records | 74 | this.tableData.data = records ? records : [] |
75 | this.tableData.total = total | 75 | this.tableData.total = total ? total : 0 |
76 | }) | 76 | }) |
77 | }, | 77 | }, |
78 | handleRefresh () { | 78 | handleRefresh () { |
79 | this.$store.dispatch('dict/generateDic') | 79 | this.$store.dispatch('dict/generateDic') |
80 | }, | 80 | }, |
81 | editClick (row, val) { | 81 | editClick (row, val) { |
82 | this.details.rowData = {} | ||
83 | this.details.rowData = row | 82 | this.details.rowData = row |
84 | this.details.isenable = val | 83 | this.details.isenable = val |
85 | console.log(this.details.isenable); | ||
86 | getChildDictList(row.bsmDict).then(res => { | 84 | getChildDictList(row.bsmDict).then(res => { |
87 | this.isDialog = true | 85 | this.isDialog = true |
88 | let { result } = res | 86 | let { result } = res |
89 | this.details.dataList = [] | 87 | this.details.dataList = result ? result : [] |
90 | this.details.dataList = result | ||
91 | }) | 88 | }) |
92 | } | 89 | } |
93 | } | 90 | } | ... | ... |
... | @@ -129,7 +129,6 @@ export default { | ... | @@ -129,7 +129,6 @@ export default { |
129 | details: { | 129 | details: { |
130 | handler (newValue, oldValue) { | 130 | handler (newValue, oldValue) { |
131 | this.ruleForm = newValue | 131 | this.ruleForm = newValue |
132 | console.log(this.ruleForm); | ||
133 | }, | 132 | }, |
134 | deep: true | 133 | deep: true |
135 | } | 134 | } | ... | ... |
... | @@ -69,14 +69,15 @@ export default { | ... | @@ -69,14 +69,15 @@ export default { |
69 | sysSqywmbszSearch({ ...this.pageData, ...this.queryForm }).then(res => { | 69 | sysSqywmbszSearch({ ...this.pageData, ...this.queryForm }).then(res => { |
70 | this.loading = false | 70 | this.loading = false |
71 | let { records, total } = res.result | 71 | let { records, total } = res.result |
72 | this.tableData.data = records | 72 | this.tableData.data = records ? records : [] |
73 | this.tableData.total = total | 73 | this.tableData.total = total ? total : 0 |
74 | }) | 74 | }) |
75 | }, | 75 | }, |
76 | editClick (row) { | 76 | editClick (row) { |
77 | getSysSqywmbszDetailById(row.bsmMb).then(res => { | 77 | getSysSqywmbszDetailById(row.bsmMb).then(res => { |
78 | this.isDialog = true | 78 | this.isDialog = true |
79 | this.details = res.result | 79 | let { result } = res |
80 | this.details = result ? result : {} | ||
80 | }) | 81 | }) |
81 | } | 82 | } |
82 | }, | 83 | }, | ... | ... |
... | @@ -77,8 +77,8 @@ export default { | ... | @@ -77,8 +77,8 @@ export default { |
77 | getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(res => { | 77 | getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(res => { |
78 | if (res.code === 200) { | 78 | if (res.code === 200) { |
79 | let { total, records } = res.result | 79 | let { total, records } = res.result |
80 | this.tableData.total = total | 80 | this.tableData.total = total ? total : 0 |
81 | this.tableData.data = records | 81 | this.tableData.data = records ? records : [] |
82 | } | 82 | } |
83 | }) | 83 | }) |
84 | }, | 84 | }, |
... | @@ -90,7 +90,8 @@ export default { | ... | @@ -90,7 +90,8 @@ export default { |
90 | this.isDialog = true | 90 | this.isDialog = true |
91 | } else { | 91 | } else { |
92 | getDjlxInfo(row.bsmSqyw).then(res => { | 92 | getDjlxInfo(row.bsmSqyw).then(res => { |
93 | this.detailList = res.result | 93 | let { result } = res |
94 | this.detailList = result ? result : [] | ||
94 | this.isDialog = true | 95 | this.isDialog = true |
95 | }) | 96 | }) |
96 | } | 97 | } | ... | ... |
-
Please register or sign in to post a comment