style:申请业务规则配置
Showing
2 changed files
with
26 additions
and
11 deletions
... | @@ -138,7 +138,10 @@ export default { | ... | @@ -138,7 +138,10 @@ export default { |
138 | value: { type: Boolean, default: false }, | 138 | value: { type: Boolean, default: false }, |
139 | detailList: { | 139 | detailList: { |
140 | type: Array, default: [] | 140 | type: Array, default: [] |
141 | } | 141 | }, |
142 | bsmSqyw: { | ||
143 | type: String, default: '' | ||
144 | }, | ||
142 | }, | 145 | }, |
143 | watch: { | 146 | watch: { |
144 | value (val) { | 147 | value (val) { |
... | @@ -146,10 +149,14 @@ export default { | ... | @@ -146,10 +149,14 @@ export default { |
146 | }, | 149 | }, |
147 | detailList: { | 150 | detailList: { |
148 | handler: function (newValue) { | 151 | handler: function (newValue) { |
149 | this.titleList = newValue | 152 | if (newValue.length == 0) { |
150 | this.n = 0 | 153 | this.getSqdjywDetail(this.bsmSqyw) |
151 | this.tn = 0 | 154 | } else { |
152 | this.getSqdjywDetail(newValue[0].bsmSqyw) | 155 | this.titleList = newValue |
156 | this.n = 0 | ||
157 | this.tn = 0 | ||
158 | this.getSqdjywDetail(newValue[0].bsmSqyw) | ||
159 | } | ||
153 | }, | 160 | }, |
154 | deep: true | 161 | deep: true |
155 | } | 162 | } | ... | ... |
... | @@ -33,7 +33,7 @@ | ... | @@ -33,7 +33,7 @@ |
33 | :data="tableData.data"> | 33 | :data="tableData.data"> |
34 | </lb-table> | 34 | </lb-table> |
35 | </div> | 35 | </div> |
36 | <editDialog v-model="isDialog" :detailList="detailList" /> | 36 | <editDialog v-model="isDialog" :detailList="detailList" :bsmSqyw="bsmSqyw" /> |
37 | </div> | 37 | </div> |
38 | </template> | 38 | </template> |
39 | <script> | 39 | <script> |
... | @@ -63,7 +63,8 @@ export default { | ... | @@ -63,7 +63,8 @@ export default { |
63 | columns: datas.columns(), | 63 | columns: datas.columns(), |
64 | data: [] | 64 | data: [] |
65 | }, | 65 | }, |
66 | detailList: [] | 66 | detailList: [], |
67 | bsmSqyw: '' | ||
67 | } | 68 | } |
68 | }, | 69 | }, |
69 | methods: { | 70 | methods: { |
... | @@ -83,10 +84,17 @@ export default { | ... | @@ -83,10 +84,17 @@ export default { |
83 | }, | 84 | }, |
84 | //编辑 | 85 | //编辑 |
85 | editClick (row) { | 86 | editClick (row) { |
86 | this.isDialog = true | 87 | console.log(row); |
87 | getDjlxInfo(row.bsmSqyw).then(res => { | 88 | if (row.nodecode === 'B50') { |
88 | this.detailList = res.result | 89 | this.detailList = [] |
89 | }) | 90 | this.bsmSqyw = row.bsmSqyw |
91 | this.isDialog = true | ||
92 | } else { | ||
93 | getDjlxInfo(row.bsmSqyw).then(res => { | ||
94 | this.detailList = res.result | ||
95 | this.isDialog = true | ||
96 | }) | ||
97 | } | ||
90 | } | 98 | } |
91 | }, | 99 | }, |
92 | }; | 100 | }; | ... | ... |
-
Please register or sign in to post a comment