style:申请业务规则配置
Showing
2 changed files
with
18 additions
and
3 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) { |
| 152 | if (newValue.length == 0) { | ||
| 153 | this.getSqdjywDetail(this.bsmSqyw) | ||
| 154 | } else { | ||
| 149 | this.titleList = newValue | 155 | this.titleList = newValue |
| 150 | this.n = 0 | 156 | this.n = 0 |
| 151 | this.tn = 0 | 157 | this.tn = 0 |
| 152 | this.getSqdjywDetail(newValue[0].bsmSqyw) | 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,11 +84,18 @@ export default { | ... | @@ -83,11 +84,18 @@ export default { |
| 83 | }, | 84 | }, |
| 84 | //编辑 | 85 | //编辑 |
| 85 | editClick (row) { | 86 | editClick (row) { |
| 87 | console.log(row); | ||
| 88 | if (row.nodecode === 'B50') { | ||
| 89 | this.detailList = [] | ||
| 90 | this.bsmSqyw = row.bsmSqyw | ||
| 86 | this.isDialog = true | 91 | this.isDialog = true |
| 92 | } else { | ||
| 87 | getDjlxInfo(row.bsmSqyw).then(res => { | 93 | getDjlxInfo(row.bsmSqyw).then(res => { |
| 88 | this.detailList = res.result | 94 | this.detailList = res.result |
| 95 | this.isDialog = true | ||
| 89 | }) | 96 | }) |
| 90 | } | 97 | } |
| 98 | } | ||
| 91 | }, | 99 | }, |
| 92 | }; | 100 | }; |
| 93 | </script> | 101 | </script> | ... | ... |
-
Please register or sign in to post a comment