| | |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="12" |
| | | ><el-form-item label="节点ID"> |
| | | <el-col :span="12" v-if="intent" |
| | | ><el-form-item label="选项节点"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入节点" |
| | |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-row :gutter="10" v-if="intent"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="处理"> |
| | | <el-input |
| | |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="12" |
| | | ><el-form-item label="选中跳转(缺)"> |
| | | ><el-form-item label="选中跳转"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入题目节点" |
| | | v-model="item.jump" |
| | | v-model="item.nextQuestion" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | |
| | | closable |
| | | effect="dark" |
| | | :disable-transitions="false" |
| | | @close="handleClosecrux(crux, item)" |
| | | @close="handleClosecrux(crux, item, 1)" |
| | | > |
| | | {{ crux }} |
| | | </el-tag> |
| | |
| | | closable |
| | | effect="dark" |
| | | :disable-transitions="false" |
| | | @close="handleClosecrux(crux, item)" |
| | | @close="handleClosecrux(crux, item, 2)" |
| | | > |
| | | {{ crux }} |
| | | </el-tag> |
| | |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | intent: { |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | }, |
| | | |
| | | created() { |
| | | this.regular = store.getters.regular; |
| | | this.noregular = store.getters.noregular; |
| | | |
| | | |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | } |
| | | regex = regex.slice(0, -1); |
| | | regexno = regexno.slice(0, -1); |
| | | if (regexno) { |
| | | hostregexno = "^(?!.*(?:" + `${regexno}` + ")).*$"; |
| | | } else { |
| | | hostregexno = ""; |
| | | } |
| | | hostregex = "(?=.*(?:" + `${regex}` + ")).*$"; |
| | | hostregexno = "^(?!.(?:" + `${regexno}` + ")).*$"; |
| | | this.TargetoptionList[index].hostregex = hostregex; |
| | | this.TargetoptionList[index].hostregex2 = hostregexno; |
| | | this.TargetoptionList[index].targetregex = hostregex; |
| | | this.TargetoptionList[index].targetregex2 = hostregexno; |
| | | console.log(hostregex, "确定字匹配"); |
| | | console.log(hostregexno, "否定字匹配"); |
| | | this.handleSelectionChange(); |
| | |
| | | ); |
| | | }, |
| | | |
| | | handleClosecrux(crux, item) { |
| | | if (this.whether == 1) { |
| | | this.dynamiccruxs.splice(this.dynamiccruxs.indexOf(crux), 1); |
| | | handleClosecrux(crux, item, whether) { |
| | | if (whether == 1) { |
| | | item.dynamiccruxs.splice(item.dynamiccruxs.indexOf(crux), 1); |
| | | console.log(1); |
| | | console.log(item.dynamiccruxs); |
| | | console.log(item.nodynamiccruxs); |
| | | } else { |
| | | this.nodynamiccruxs.splice(this.nodynamiccruxs.indexOf(crux), 1); |
| | | console.log(2); |
| | | item.nodynamiccruxs.splice(item.nodynamiccruxs.indexOf(crux), 1); |
| | | } |
| | | this.generateRegex(item); |
| | | }, |
| | | handleInputConfirm(row) { |
| | | console.log(this.TargetoptionList, "TargetoptionList"); |
| | | let index = this.TargetoptionList.indexOf(row); |
| | | console.log(1112); |
| | | if (this.whether == 1 && this.inputValue) { |
| | | if ( |
| | | this.TargetoptionList[index].dynamiccruxs.indexOf(this.inputValue) == |