| | |
| | | <div class="topicxq" v-for="item in TargetoptionList"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="选项名"> |
| | | ><el-form-item label="选项名称"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入" |
| | |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="12" |
| | | ><el-form-item label="预警值"> |
| | | <el-radio-group v-model="item.isabnormal"> |
| | | <el-radio :label="1">是</el-radio> |
| | | <el-radio :label="0">否</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item></el-col |
| | | > |
| | | <el-col :span="12" v-if="intent" |
| | | ><el-form-item label="选项节点"> |
| | | <el-input |
| | | type="text" |
| | |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-row :gutter="10" v-if="!intent"> |
| | | <el-col :span="20" |
| | | ><el-form-item label="选项说明"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入" |
| | | v-model="item.optiondesc" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10" v-if="intent"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="处理"> |
| | | <el-input |
| | |
| | | </el-form-item> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-col :span="16" v-if="intent"> |
| | | <el-form-item label="语音文件"> |
| | | <el-upload |
| | | class="upload-demo" |
| | |
| | | </el-upload> |
| | | </el-form-item></el-col |
| | | > |
| | | <el-col :span="8"> |
| | | <el-col :span="intent ? 8 : 22"> |
| | | <div style="text-align: right; padding-right: 10px"> |
| | | <el-button |
| | | v-if="controlsc" |
| | |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | intent: { |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | }, |
| | | |
| | | created() { |
| | |
| | | } |
| | | 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(); |
| | |
| | | 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) == |