From 193b6ba90e066ba13358e07d4a34aaa07407f4e3 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 19 七月 2024 18:01:51 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/intention/index.vue |   35 ++++++++++++++++++-----------------
 1 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue
index d6071b1..100dd5b 100644
--- a/src/views/repositoryai/intention/index.vue
+++ b/src/views/repositoryai/intention/index.vue
@@ -189,7 +189,7 @@
                 prop="id"
               />
               <el-table-column
-                label="鍊肩被鍨�"
+                label="缁撴灉绫诲瀷"
                 fixed
                 align="center"
                 key="valueType"
@@ -333,6 +333,7 @@
         <el-dialog
           :title="title"
           :visible.sync="indexopen"
+          :close-on-click-modal="false"
           width="900px"
           append-to-body
         >
@@ -478,6 +479,17 @@
                 </el-form-item>
               </el-col></el-row
             >
+            <el-row v-if="!measurement">
+              <el-col :span="24">
+                <el-form-item label="棰樼洰绫诲瀷">
+                  <el-radio-group v-model="indexform.scriptType">
+                    <el-radio :label="1">鍗曢��</el-radio>
+                    <el-radio :label="2">澶氶��</el-radio>
+                    <el-radio :label="3">濉┖</el-radio>
+                  </el-radio-group>
+                </el-form-item>
+              </el-col></el-row
+            >
 
             <el-row v-if="!measurement">
               <el-col :span="24">
@@ -501,7 +513,7 @@
             <el-card
               class="box-card"
               style="margin-bottom: 20px"
-              v-if="indexform.valueType == 1"
+              v-if="indexform.valueType == 1 || indexform.valueType == 2"
             >
               <Regular
                 :TargetoptionList="testuserList"
@@ -512,19 +524,6 @@
                 @xiayioption="xiayioption"
               />
             </el-card>
-            <div v-if="indexform.valueType == 2">
-              <el-form-item label="鏀堕泦淇℃伅">
-                <el-input
-                  type="textarea"
-                  :rows="2"
-                  placeholder="濉叆鏀堕泦淇℃伅"
-                  v-model="indexform.reply"
-                  maxlength="50"
-                  show-word-limit
-                >
-                </el-input
-              ></el-form-item>
-            </div>
             <div v-if="indexform.valueType == 3">
               <el-form-item label="鏀堕泦淇℃伅">
                 <el-input
@@ -1110,6 +1109,7 @@
 
     // 鍙栨秷鎸夐挳
     cancel() {
+      this.indexform = null;
       this.indexopen = false;
       this.reset();
     },
@@ -1123,7 +1123,7 @@
         baseTagList: [],
         targetoptionList: [],
       };
-      this.resetForm("indexform");
+      // this.resetForm("indexform");
     },
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery() {
@@ -1177,6 +1177,7 @@
       this.reset();
       console.log(row);
       this.title = "鎸囨爣璇︽儏";
+      this.indexform = {};
       this.indexform = row;
       if (!row.targetoptionList[0]) {
         row.targetoptionList = [
@@ -1230,7 +1231,7 @@
         this.indexform.targetoptionList.forEach((item) => {
           if (item.isoperation != 3 && item.targetoptionid) {
             console.log(item, "item");
-            // item.isoperation = 2;
+            item.isoperation = 2;
           } else {
           }
         });

--
Gitblit v1.9.3