This commit is contained in:
xuyucheng 2022-08-03 17:00:56 +08:00
parent 198f06ade5
commit 455b1ae94d
2 changed files with 9 additions and 5 deletions

View File

@ -47,7 +47,7 @@
type="textarea"
v-model="currentForm.gather_name"
v-if="
!dbStatus[1] || !data.filter_range[dbIndex].choices.length
!dbStatus[1] || !data.filter_range[dbIndex].choices
"
@blur="addDbGather2"
@keyup.enter.exact.native="addDbGather2"
@ -72,7 +72,7 @@
v-model="currentForm.field_name"
v-if="
!dbStatus[2] ||
!data.filter_range[dbIndex].choices[gaIndex].choices.length
!data.filter_range[dbIndex].choices[gaIndex].choices
"
@blur="addDbGather3"
@keyup.enter.exact.native="addDbGather3"
@ -99,7 +99,7 @@
v-model="currentForm.field_name_second"
v-if="!dbStatus[3]||!data.filter_range[dbIndex].choices[
gaIndex
].choices[fiIndex].choices.length"
].choices[fiIndex].choices"
@blur="addDbGather4"
@keyup.enter.exact.native="addDbGather4"
@keyup.ctrl.enter.native="lineFeed('field_name_second')"
@ -155,7 +155,11 @@ export default {
};
},
created() {},
created() {
if(this.data.filter_range.length!==0){
this.dbStatus = [true,true,true,true]
}
},
methods: {
handleClick(index) {

View File

@ -118,7 +118,7 @@ export default {
this.isCreate = true;
this.from = {
filter_name: "",
filter_range: {},
filter_range: [],
};
},