260221a8 by renchao@pashanhoo.com

style:材料信息设置

1 parent b37a449c
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-10-13 10:07:31 4 * @LastEditTime: 2023-10-13 10:26:57
5 --> 5 -->
6 <template> 6 <template>
7 <div> 7 <div>
...@@ -198,6 +198,16 @@ ...@@ -198,6 +198,16 @@
198 sendThis(this) 198 sendThis(this)
199 this.init() 199 this.init()
200 }, 200 },
201 watch: {
202 'form.djlx': {
203 handler (newName, oldName) {
204 this.form.ywmcList = this.form.djlx.map(item => ({ nodename: item.djywmc + '+' + item.nodename, bsmSqyw: item.bsmSqyw }))
205 },
206 // 代表在wacth里声明了firstName这个方法之后立即先去执行handler方法
207 immediate: true,
208 deep: true
209 }
210 },
201 methods: { 211 methods: {
202 //页面初始化 212 //页面初始化
203 /** 213 /**
...@@ -280,7 +290,6 @@ ...@@ -280,7 +290,6 @@
280 console.log(this.form.clxx); 290 console.log(this.form.clxx);
281 if (that.formData.sqfl == "2") { 291 if (that.formData.sqfl == "2") {
282 that.form.ywmcList = that.form.djlx.map(item => ({ nodename: item.djywmc + '+' + item.nodename, bsmSqyw: item.bsmSqyw })) 292 that.form.ywmcList = that.form.djlx.map(item => ({ nodename: item.djywmc + '+' + item.nodename, bsmSqyw: item.bsmSqyw }))
283 console.log(that.form.ywmcList, ' that.form.ywmcList');
284 } 293 }
285 // _this.form.bsmSqyw = res.result.bsmSqyw; 294 // _this.form.bsmSqyw = res.result.bsmSqyw;
286 // _this.form.ywDetail = res.result.ywDetail; 295 // _this.form.ywDetail = res.result.ywDetail;
......