This commit is contained in:
2024-05-30 11:41:50 +08:00
parent 0dbe5d36b7
commit b59661d1a3

View File

@ -8,7 +8,6 @@
</div>
<div class="select">
<span> 适用范围 </span>
<el-select v-model="updata.suitRange" placeholder="请选择" @change="changeoptions">
<el-option v-for="item in options" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue">
</el-option>
@ -356,18 +355,15 @@ export default {
},
created() {
this.infolist();
this.taskinfo();
},
beforeDestroy() { },
watch: {},
mounted() { },
methods: {
changeoptions(e) {
console.log(e);
this.parentDictCode = this.options.find(
(el) => el.dictValue == e
).dictCode;
console.log(this.parentDictCode, "this.parentDictCode");
)?.dictCode;
this.changelisy();
},
changelisy() {
@ -379,6 +375,7 @@ export default {
var dictType = "suit_range";
getAgencytype(dictType).then((res) => {
this.options = res.data;
this.taskinfo();
});
},
info() {
@ -585,7 +582,6 @@ export default {
taskinfo() {
selectTaskTypeList().then((res) => {
this.selectTaskTypeList = res.data;
this.info();
});
},