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" type="textarea"
v-model="currentForm.gather_name" v-model="currentForm.gather_name"
v-if=" v-if="
!dbStatus[1] || !data.filter_range[dbIndex].choices.length !dbStatus[1] || !data.filter_range[dbIndex].choices
" "
@blur="addDbGather2" @blur="addDbGather2"
@keyup.enter.exact.native="addDbGather2" @keyup.enter.exact.native="addDbGather2"
@ -72,7 +72,7 @@
v-model="currentForm.field_name" v-model="currentForm.field_name"
v-if=" v-if="
!dbStatus[2] || !dbStatus[2] ||
!data.filter_range[dbIndex].choices[gaIndex].choices.length !data.filter_range[dbIndex].choices[gaIndex].choices
" "
@blur="addDbGather3" @blur="addDbGather3"
@keyup.enter.exact.native="addDbGather3" @keyup.enter.exact.native="addDbGather3"
@ -99,7 +99,7 @@
v-model="currentForm.field_name_second" v-model="currentForm.field_name_second"
v-if="!dbStatus[3]||!data.filter_range[dbIndex].choices[ v-if="!dbStatus[3]||!data.filter_range[dbIndex].choices[
gaIndex gaIndex
].choices[fiIndex].choices.length" ].choices[fiIndex].choices"
@blur="addDbGather4" @blur="addDbGather4"
@keyup.enter.exact.native="addDbGather4" @keyup.enter.exact.native="addDbGather4"
@keyup.ctrl.enter.native="lineFeed('field_name_second')" @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: { methods: {
handleClick(index) { handleClick(index) {

View File

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