修复富文本聚集和研究机构所属领域bug

This commit is contained in:
熊丽君
2022-02-18 14:57:56 +08:00
parent 896907bf9c
commit 1fcd19e52f
2 changed files with 9 additions and 7 deletions

View File

@ -103,11 +103,11 @@ export default {
for (let i = 0; i < data.industrys.length; i++) {
key.push(data.industrys[i].key);
}
if (data.industrys.length > 0) {
this.levelIChange(data.industrys[0].key);
if (key.length > 0) {
this.levelIChange(key[0]);
}
if (data.industrys.length > 1) {
this.levelIIChange(data.industrys[1].key);
if (key.length > 1) {
this.levelIIChange(key[1]);
}
newOld.industrys = key;
},
@ -130,11 +130,12 @@ export default {
});
},
async levelIChange(id) {
this.value.industrys = [];
this.value.industrys[1] = "";
this.value.industrys[2] = "";
this.levelII = await this.getFieldByParent(id);
},
async levelIIChange(id) {
this.value.industrys = [];
this.value.industrys[2] = "";
this.levelIII = await this.getFieldByParent(id);
},
submitForm() {

View File

@ -88,6 +88,7 @@
v-model="value.introduce"
:minHeight="150"
ref="introduceRef"
@click.native="handleEditAble"
/>
</el-form-item>
</el-col>
@ -173,7 +174,7 @@ export default {
},
mounted() {
this.$nextTick(() => {
// this.$refs.introduceRef.Quill.enable(false);
this.$refs.introduceRef.Quill.enable(false);
});
},
methods: {