|
@@ -14,7 +14,7 @@
|
|
|
></PubIndeptTag>
|
|
|
<div class="main">
|
|
|
<p class="title" v-if="dataPub.region2==1||dataPub.region2==2||dataPub.region2==99"> <i>*</i> 标签明细:</p>
|
|
|
- <SingleSelect v-if="dataPub.region2==1" :type="dataPub.region2" @pushValues="pushValues" :options="editData.questionDetails"></SingleSelect>
|
|
|
+ <SingleSelect v-if="dataPub.region2==1" :type="dataPub.region2" @pushValues="pushValues" :options="editData.questionDetailList"></SingleSelect>
|
|
|
<div class="btn">
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -52,9 +52,9 @@
|
|
|
}
|
|
|
},
|
|
|
beforeMount:function(){
|
|
|
- const {params} = this.$route;
|
|
|
- if(params.isEdit){
|
|
|
- this.editData = params.data;
|
|
|
+ const {isEdit,data} = this.$route.params;
|
|
|
+ if(isEdit){
|
|
|
+ this.editData = data;
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -96,11 +96,11 @@
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+ const {isEdit,data} = this.$route.params;
|
|
|
let param = {
|
|
|
"questionWrapper": {
|
|
|
"controlType": this.dataPub.region2, //控件类型(0:默认值 1:下拉单选 2:下拉多选 6:文本框 7:数字键盘文本框 99:联合推送)
|
|
|
- "id": "", //新增id置空
|
|
|
+ "id": isEdit?data.id:'', //新增id置空
|
|
|
"type": this.dataPub.region1, //标签归属
|
|
|
"tagType": 1, //标签类型
|
|
|
"tagName": this.dataPub.region3, //系统名称
|