|
@@ -575,7 +575,8 @@ export default {
|
|
|
rightloading:false,
|
|
|
logleftloading:false,
|
|
|
logrightloading:false,
|
|
|
- selectData:{}
|
|
|
+ selectData:{},
|
|
|
+ isFirst:false
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -583,8 +584,12 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
projectForm: {
|
|
|
+ immediate:false,
|
|
|
handler: function () { // 此处注意,handler函数不能为箭头函数,this会取上下文,而不是组件里的this,此外,深度监听,必须为handler函数名,否则会无效果
|
|
|
- this.typeChang['1'] = true;
|
|
|
+ // this.typeChang['1'] = true;
|
|
|
+ if(this.isFirst===false){
|
|
|
+ this.typeChang['1'] = true;
|
|
|
+ }
|
|
|
},
|
|
|
deep: true
|
|
|
},
|
|
@@ -697,6 +702,10 @@ export default {
|
|
|
const data = res.data.data
|
|
|
console.log(data)
|
|
|
this.projectForm = data;
|
|
|
+ this.isFirst=true;
|
|
|
+ setTimeout(() => {
|
|
|
+ this.isFirst=false;
|
|
|
+ }, 1000);
|
|
|
this.selectData={
|
|
|
referenceWbsTemplateId:data.referenceWbsTemplateId,//质检
|
|
|
referenceWbsTemplateIdTrial:data.referenceWbsTemplateIdTrial//试验
|