| | |
| | | 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) == |
| | |
| | | targetvalue: "", |
| | | targetregex: "", |
| | | targetregex2: "", |
| | | dynamiccruxs: [], |
| | | nodynamiccruxs: [], |
| | | dynamiccruxsJson: "", |
| | | nodynamiccruxsJson: "", |
| | | }; |
| | | this.testuserList.push(objvakue); |
| | | // this.indexform.targetoptionList.push(objvakue); |
| | |
| | | return { |
| | | guid: index + 1, |
| | | targetvalue: item.targetvalue, |
| | | targetregex2: item.targetregex2, |
| | | targetregex: item.targetregex, |
| | | targetoptionid: item.targetoptionid, |
| | | id: this.indexform.id, |
| | |
| | | isoperation: item.targetoptionid ? 2 : 1, |
| | | categoryName: item.categoryName, |
| | | language: item.language, |
| | | dynamiccruxs: item.dynamiccruxs, |
| | | nodynamiccruxs: item.nodynamiccruxs, |
| | | dynamiccruxsJson: item.dynamiccruxsJson, |
| | | nodynamiccruxsJson: item.nodynamiccruxsJson, |
| | | }; |
| | | }); |
| | | console.log(this.testuserList); |
| | |
| | | radios: [], //多选题选中 |
| | | radioas: "", //填空题答案 |
| | | dynamicTags: [], |
| | | dellist: [], |
| | | inputVisible: false, |
| | | inputValue: "", |
| | | testvalue: "", |
| | |
| | | if (id) { |
| | | getverbaltrick({ id: id }).then((res) => { |
| | | this.indexform = res.data; |
| | | this.indexform.suitway = this.indexform.suitway.split(","); |
| | | if (this.indexform.suitway) |
| | | this.indexform.suitway = this.indexform.suitway.split(","); |
| | | this.indexform.assortid = parseInt(this.indexform.assortid); |
| | | this.variablelist = JSON.parse(this.indexform.otherdata).length |
| | | ? JSON.parse(this.indexform.otherdata) |
| | |
| | | |
| | | // 保存详细信息 |
| | | Saveproblem() { |
| | | console.log(this.indexform); |
| | | this.indexform.otherdata = JSON.stringify(this.variablelist); |
| | | if (this.indexform.suitway) { |
| | | this.indexform.suitway = this.indexform.suitway.join(","); |
| | |
| | | } |
| | | return res; |
| | | }); |
| | | |
| | | this.indexform.isoperation = 2; |
| | | console.log(this.dellist); |
| | | this.indexform.ivrLibaScriptTargetoptionList=this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist); |
| | | compileverbaltrick(this.indexform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("修改成功"); |
| | |
| | | isoperation: 1, |
| | | targetvalue: "", |
| | | targetregex: "", |
| | | targetregex2: "", |
| | | dynamiccruxs: [], |
| | | nodynamiccruxs: [], |
| | | dynamiccruxsJson: "", |
| | | nodynamiccruxsJson: "", |
| | | }); |
| | | this.sortFn(); |
| | | }, |
| | | deloption(item) { |
| | | const index = this.indexform.ivrLibaScriptTargetoptionList.indexOf(item); |
| | | if (index !== -1) { |
| | | if (item.id) { |
| | | console.log(item, "chunz"); |
| | | item.isoperation = 3; |
| | | this.dellist.push(item); |
| | | } |
| | | console.log(this.dellist, "dellist"); |
| | | this.indexform.ivrLibaScriptTargetoptionList.splice(index, 1); // 从索引位置删除一个元素 |
| | | this.sortFn(); |
| | | } else { |
| | |
| | | return { |
| | | guid: index + 1, |
| | | targetvalue: item.targetvalue, |
| | | targetregex2: item.targetregex2, |
| | | targetregex: item.targetregex, |
| | | id: item.id, |
| | | targettype: this.indexform.targettype, |
| | | isoperation: item.id ? 2 : 1, |
| | | categoryName: item.categoryName, |
| | | language: item.language, |
| | | dynamiccruxs: item.dynamiccruxs, |
| | | nodynamiccruxs: item.nodynamiccruxs, |
| | | dynamiccruxsJson: item.dynamiccruxsJson, |
| | | nodynamiccruxsJson: item.nodynamiccruxsJson, |
| | | }; |
| | | }); |
| | | console.log(this.indexform.ivrLibaScriptTargetoptionList); |