From d49d271a064aaa8fe04b4fe476240be731a18733 Mon Sep 17 00:00:00 2001
From: qianxj <qianxj15@sina.com>
Date: 星期二, 21 三月 2023 10:35:47 +0800
Subject: [PATCH] update svytopic

---
 ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue b/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue
index a1d0e8b..791eda7 100644
--- a/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue
+++ b/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue
@@ -1,6 +1,6 @@
 <template>
     <div>
-  <!--el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body-->
+  <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
     <el-form ref="form" :model="form" :rules="rules" label-width="120px">
       <el-row>
         <el-col :span="6"><el-form-item label=" 111棰樼洰ID " prop="topicid">
@@ -86,7 +86,7 @@
       <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
       <el-button @click="cancel">鍙� 娑�</el-button>
     </div>
-  <!--/el-dialog-->
+  </el-dialog>
 </div>
 </template>
   
@@ -175,6 +175,22 @@
         this.title = "鏂板闂嵎闂閫夐」";
       }
     },
+    handleUpdate2(id,topicId) {
+      this.reset();
+      this.open = true;
+      if (id != null) {
+        const optionid = id;
+        getSvytopicoption(optionid).then(response => {
+          this.form = response.data;
+          this.form.topicid = topicId;
+          this.title = "淇敼闂嵎闂閫夐」";
+        });
+      }else
+      {
+        this.form.topicid = topicId;
+        this.title = "鏂板闂嵎闂閫夐」";
+      }
+    },
     /** 鎻愪氦鎸夐挳 */
     submitForm() {
       this.$refs["form"].validate(valid => {

--
Gitblit v1.9.3