diff --git a/src/views/components/FieldSingle/index.vue b/src/views/components/FieldSingle/index.vue index 19d02c9..eae23ae 100644 --- a/src/views/components/FieldSingle/index.vue +++ b/src/views/components/FieldSingle/index.vue @@ -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() { diff --git a/src/views/components/ResearchForm/index.vue b/src/views/components/ResearchForm/index.vue index 17e4828..144c149 100644 --- a/src/views/components/ResearchForm/index.vue +++ b/src/views/components/ResearchForm/index.vue @@ -88,6 +88,7 @@ v-model="value.introduce" :minHeight="150" ref="introduceRef" + @click.native="handleEditAble" /> @@ -173,7 +174,7 @@ export default { }, mounted() { this.$nextTick(() => { - // this.$refs.introduceRef.Quill.enable(false); + this.$refs.introduceRef.Quill.enable(false); }); }, methods: {