d73f1033 by 任超

style:申请业务规则配置

1 parent 405c41fb
......@@ -138,7 +138,10 @@ export default {
value: { type: Boolean, default: false },
detailList: {
type: Array, default: []
}
},
bsmSqyw: {
type: String, default: ''
},
},
watch: {
value (val) {
......@@ -146,10 +149,14 @@ export default {
},
detailList: {
handler: function (newValue) {
this.titleList = newValue
this.n = 0
this.tn = 0
this.getSqdjywDetail(newValue[0].bsmSqyw)
if (newValue.length == 0) {
this.getSqdjywDetail(this.bsmSqyw)
} else {
this.titleList = newValue
this.n = 0
this.tn = 0
this.getSqdjywDetail(newValue[0].bsmSqyw)
}
},
deep: true
}
......
......@@ -33,7 +33,7 @@
:data="tableData.data">
</lb-table>
</div>
<editDialog v-model="isDialog" :detailList="detailList" />
<editDialog v-model="isDialog" :detailList="detailList" :bsmSqyw="bsmSqyw" />
</div>
</template>
<script>
......@@ -63,7 +63,8 @@ export default {
columns: datas.columns(),
data: []
},
detailList: []
detailList: [],
bsmSqyw: ''
}
},
methods: {
......@@ -83,10 +84,17 @@ export default {
},
//编辑
editClick (row) {
this.isDialog = true
getDjlxInfo(row.bsmSqyw).then(res => {
this.detailList = res.result
})
console.log(row);
if (row.nodecode === 'B50') {
this.detailList = []
this.bsmSqyw = row.bsmSqyw
this.isDialog = true
} else {
getDjlxInfo(row.bsmSqyw).then(res => {
this.detailList = res.result
this.isDialog = true
})
}
}
},
};
......