|
@@ -45,10 +45,10 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <!--<el-form-item label="有无子条件:" prop="parHasSub">
|
|
|
+ <el-form-item v-if="showHasSub" label="有无子条件:" prop="parHasSub">
|
|
|
<el-select v-model="form.parHasSub"
|
|
|
placeholder="请选择"
|
|
|
- size="small">
|
|
|
+ size="small" @change="hasSubChange">
|
|
|
<el-option
|
|
|
v-for="item in hasSub"
|
|
|
:key="item.id"
|
|
@@ -56,7 +56,7 @@
|
|
|
:value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- </el-form-item>-->
|
|
|
+ </el-form-item>
|
|
|
<el-form-item v-if="showMsg" label="附加信息:" prop="parMsg" class="parMsg">
|
|
|
<el-input type="textarea" :rows="3" placeholder="请输入附加信息" v-model.trim="form.parMsg"></el-input>
|
|
|
</el-form-item>
|
|
@@ -201,12 +201,21 @@
|
|
|
},
|
|
|
showMsg:function(){
|
|
|
return this.ruleTermCodeStr.length>1&&this.msgDict.indexOf(this.ruleTermCodeStr)>-1;
|
|
|
+ },
|
|
|
+ showHasSub:function(){
|
|
|
+ return this.subDict.indexOf(this.ruleTermCodeStr)>-1;
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ hasSubChange(val){
|
|
|
+ if(val){
|
|
|
+ this.setInitGroupData();
|
|
|
+ }
|
|
|
+ },
|
|
|
setDict(){
|
|
|
this.dict = localStorage.getItem("zskDicts");
|
|
|
this.msgDict = localStorage.getItem("zskMsgDict");
|
|
|
+ this.subDict = localStorage.getItem("zskSubDict");
|
|
|
},
|
|
|
showConfirmDialog(msg,resolve){
|
|
|
this.$alert(msg, '提示', {
|