Commit 23f54f40 authored by 吴春's avatar 吴春

提交代码

parent f9202f85
...@@ -1065,7 +1065,7 @@ ...@@ -1065,7 +1065,7 @@
<el-radio @change="YfSelect1" style="padding-bottom:10px" class="yfradio" :label="1"> <el-radio @change="YfSelect1" style="padding-bottom:10px" class="yfradio" :label="1">
教育表单 教育表单
</el-radio> </el-radio>
<el-radio v-for="(option, key) in customFormList" :key="key" :label="Id" class="yfradio" style="padding-bottom:10px">{{ option.FormName }}</el-radio> <el-radio @change="YfSelect1" v-for="(option, key) in customFormList" :key="key" :label="option.Id" class="yfradio" style="padding-bottom:10px">{{ option.FormName }}</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
...@@ -1128,7 +1128,7 @@ ...@@ -1128,7 +1128,7 @@
return { return {
input:'', input:'',
ComTreeList: [], ComTreeList: [],
CustomFormList:[], customFormList:[],
thisType: 0, thisType: 0,
tableData: [], tableData: [],
SpecificationList: [], SpecificationList: [],
...@@ -1360,13 +1360,14 @@ ...@@ -1360,13 +1360,14 @@
}, },
mounted() { mounted() {
this.$refs.ue.loadUe(); this.$refs.ue.loadUe();
this.getCustomFormList();
if (this.$route.query.GoodsId) { if (this.$route.query.GoodsId) {
this.GoodsId = this.$route.query.GoodsId; this.GoodsId = this.$route.query.GoodsId;
this.getData(); this.getData();
} else { } else {
this.getTree(); this.getTree();
} }
this.getCustomFormList();
if (this.currentUserInfo.IsOpenSchool == 0) { if (this.currentUserInfo.IsOpenSchool == 0) {
this.isShowPlat = false this.isShowPlat = false
} else { } else {
...@@ -2031,13 +2032,21 @@ ...@@ -2031,13 +2032,21 @@
this.AreaList = data; this.AreaList = data;
}, },
YfSelect1(val) { YfSelect1(val) {
console.log("formId",val);
this.addMsg.FormsId = val; this.addMsg.FormsId = val;
if (this.addMsg.FormsId == 0) { if (this.addMsg.FormsId == 0) {
this.addMsg.FormsName = '默认商城' this.addMsg.FormsName = '默认商城'
} else if (this.addMsg.FormsId == 1) { } else if (this.addMsg.FormsId == 1) {
this.addMsg.FormsName = '教育表单' this.addMsg.FormsName = '教育表单'
} }
else if (this.addMsg.FormsId > 1) {
this.customFormList.forEach(item => {
if( this.addMsg.FormsId==item.Id){
this.addMsg.FormsName = item.FormName
}
});
}
this.$forceUpdate() this.$forceUpdate()
}, },
...@@ -2225,8 +2234,9 @@ ...@@ -2225,8 +2234,9 @@
} else if (this.addMsg.FormsId == 1) { } else if (this.addMsg.FormsId == 1) {
this.addMsg.FormsName = '教育表单' this.addMsg.FormsName = '教育表单'
} }
else if (this.addMsg.FormsId == 1) { else if (this.addMsg.FormsId > 1) {
this.CustomFormList.forEach(item => { this.customFormList.forEach(item => {
console.log("item",item);
if(this.val1==item.Id){ if(this.val1==item.Id){
this.addMsg.FormsName = item.FormName this.addMsg.FormsName = item.FormName
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment