From eb692fdf856fbd5f20cc5d5d105c0c1cd14bd43b Mon Sep 17 00:00:00 2001
From: qianxj <qianxj15@sina.com>
Date: 星期日, 19 三月 2023 08:03:30 +0800
Subject: [PATCH] update topic

---
 ruoyi-ui/src/smartor/dataobject/dw_svytopic_view.vue        |    0 
 ruoyi-ui/src/views/smartor/svytitle/index0.vue              |  540 ++++++++++++++++++++--------------------
 ruoyi-ui/src/views/smartor/svytitle/index.vue               |    2 
 ruoyi-ui/src/smartor/dataobject/dw_svytopic_maint.vue       |    4 
 ruoyi-ui/src/views/smartor/svytitle/index1.vue              |    2 
 ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue |  218 ++++++++++++++++
 ruoyi-ui/src/views/smartor/svytopicoption/index.vue         |    2 
 ruoyi-ui/src/views/smartor/ivrquestionlib/QuestionMaint.vue |    2 
 8 files changed, 495 insertions(+), 275 deletions(-)

diff --git a/ruoyi-ui/src/smartor/dataobject/dw_iveoption_maint.vue b/ruoyi-ui/src/smartor/dataobject/dw_svytopic_maint.vue
similarity index 98%
rename from ruoyi-ui/src/smartor/dataobject/dw_iveoption_maint.vue
rename to ruoyi-ui/src/smartor/dataobject/dw_svytopic_maint.vue
index 169d1e6..7bed3ad 100644
--- a/ruoyi-ui/src/smartor/dataobject/dw_iveoption_maint.vue
+++ b/ruoyi-ui/src/smartor/dataobject/dw_svytopic_maint.vue
@@ -7,7 +7,7 @@
               :value="item.value" :disabled="item.disabled"></el-option>
           </el-select>
           <el-input placeholder="閫夐」鍐呭"></el-input>
-          
+
         </el-form-item>
         <el-form-item size="large">
           <el-button type="primary" @click="submitForm">鎻愪氦</el-button>
@@ -22,7 +22,7 @@
     props: [],
     data() {
       return {
-        formData: {
+        formData: { 
           field101: undefined,
         },
         rules: {
diff --git a/ruoyi-ui/src/smartor/dataobject/dw_ivrtopic_view.vue b/ruoyi-ui/src/smartor/dataobject/dw_svytopic_view.vue
similarity index 100%
rename from ruoyi-ui/src/smartor/dataobject/dw_ivrtopic_view.vue
rename to ruoyi-ui/src/smartor/dataobject/dw_svytopic_view.vue
diff --git a/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue b/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue
new file mode 100644
index 0000000..7b8c4b6
--- /dev/null
+++ b/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue
@@ -0,0 +1,218 @@
+<template>
+    <div class="app-container">
+      <!-- 娣诲姞鎴栦慨鏀归棶鍗烽鐩璇濇 -->
+      <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+        <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+          <el-form-item label=" 鑰佺増鏈琁D " prop="oldid">
+            <el-input v-model="form.oldid" placeholder="璇疯緭鍏� 鑰佺増鏈琁D " />
+          </el-form-item>
+          <el-form-item label=" 闂嵎ID " prop="svyid">
+            <el-input v-model="form.svyid" placeholder="璇疯緭鍏� 闂嵎ID " />
+          </el-form-item>
+          <el-form-item label=" 棰樼洰Code " prop="topiccode">
+            <el-input v-model="form.topiccode" placeholder="璇疯緭鍏� 棰樼洰Code " />
+          </el-form-item>
+          <el-form-item label=" 棰樼洰 " prop="topic">
+            <el-input v-model="form.topic" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" />
+          </el-form-item>
+          <el-form-item label=" 鎺掑簭 " prop="sort">
+            <el-input v-model="form.sort" placeholder="璇疯緭鍏� 鎺掑簭 " />
+          </el-form-item>
+          <el-form-item label=" 鏄惁蹇呭~ " prop="ismandatory">
+            <el-select v-model="form.ismandatory" placeholder="璇烽�夋嫨 鏄惁蹇呭~ ">
+              <el-option
+                v-for="dict in dict.type.sys_yes_no"
+                :key="dict.value"
+                :label="dict.label"
+                :value="parseInt(dict.value)"
+              ></el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label=" 鏄惁闅愯棌 " prop="ishide">
+            <el-select v-model="form.ishide" placeholder="璇烽�夋嫨 鏄惁闅愯棌 ">
+              <el-option
+                v-for="dict in dict.type.sys_yes_no"
+                :key="dict.value"
+                :label="dict.label"
+                :value="parseInt(dict.value)"
+              ></el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label=" 鍒犻櫎鏍囪 " prop="delFlag">
+            <el-select v-model="form.delFlag" placeholder="璇烽�夋嫨 鍒犻櫎鏍囪 ">
+              <el-option
+                v-for="dict in dict.type.sys_yes_no"
+                :key="dict.value"
+                :label="dict.label"
+                :value="dict.value"
+              ></el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label=" 鏈烘瀯ID " prop="orgid">
+            <el-input v-model="form.orgid" placeholder="璇疯緭鍏� 鏈烘瀯ID " />
+          </el-form-item>
+          <el-form-item label=" 涓婁紶鏍囪 " prop="isupload">
+            <el-select v-model="form.isupload" placeholder="璇烽�夋嫨 涓婁紶鏍囪 ">
+              <el-option
+                v-for="dict in dict.type.sys_yes_no"
+                :key="dict.value"
+                :label="dict.label"
+                :value="parseInt(dict.value)"
+              ></el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label=" 涓婁紶鏃堕棿 " prop="uploadTime">
+            <el-date-picker clearable
+              v-model="form.uploadTime"
+              type="date"
+              value-format="yyyy-MM-dd"
+              placeholder="璇烽�夋嫨 涓婁紶鏃堕棿 ">
+            </el-date-picker>
+          </el-form-item>
+        </el-form>
+        <div slot="footer" class="dialog-footer">
+          <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+          <el-button @click="cancel">鍙� 娑�</el-button>
+        </div>
+      </el-dialog>
+    </div>
+  </template>
+  
+  <script>
+  import { listSvytopic, getSvytopic, delSvytopic, addSvytopic, updateSvytopic } from "@/api/smartor/svytopic";
+  
+  export default {
+    name: "Svytopic",
+    dicts: ['sys_yes_no'],
+    data() {
+      return {
+        title: "淇敼閫夐」",
+        // 鏄惁鏄剧ず寮瑰嚭灞�
+        open: false,
+        // 鏌ヨ鍙傛暟
+         // 琛ㄥ崟鍙傛暟
+        form: {},
+        // 琛ㄥ崟鏍¢獙
+        rules: {
+          delFlag: [
+            { required: true, message: " 鍒犻櫎鏍囪 涓嶈兘涓虹┖", trigger: "change" }
+          ],
+          isupload: [
+            { required: true, message: " 涓婁紶鏍囪 涓嶈兘涓虹┖", trigger: "change" }
+          ],
+        }
+      };
+    },
+    created() {
+      this.getList();
+    },
+    methods: {
+      /** 鏌ヨ闂嵎棰樼洰鍒楄〃 */
+      getList() {
+        this.loading = true;
+        listSvytopic(this.queryParams).then(response => {
+          this.svytopicList = response.rows;
+          this.total = response.total;
+          this.loading = false;
+        });
+      },
+      // 鍙栨秷鎸夐挳
+      cancel() {
+        this.open = false;
+        this.reset();
+      },
+      // 琛ㄥ崟閲嶇疆
+      reset() {
+        this.form = {
+          topicid: null,
+          oldid: null,
+          svyid: null,
+          topictype: null,
+          topiccode: null,
+          topic: null,
+          sort: null,
+          ismandatory: null,
+          ishide: null,
+          delFlag: null,
+          orgid: null,
+          createBy: null,
+          createTime: null,
+          updateBy: null,
+          updateTime: null,
+          isupload: null,
+          uploadTime: null
+        };
+        this.resetForm("form");
+      },
+      /** 鎼滅储鎸夐挳鎿嶄綔 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 閲嶇疆鎸夐挳鎿嶄綔 */
+      resetQuery() {
+        this.resetForm("queryForm");
+        this.handleQuery();
+      },
+      // 澶氶�夋閫変腑鏁版嵁
+      handleSelectionChange(selection) {
+        this.ids = selection.map(item => item.topicid)
+        this.single = selection.length!==1
+        this.multiple = !selection.length
+      },
+      /** 鏂板鎸夐挳鎿嶄綔 */
+      handleAdd() {
+        this.reset();
+        this.open = true;
+        this.title = "娣诲姞闂嵎棰樼洰";
+      },
+      /** 淇敼鎸夐挳鎿嶄綔 */
+      handleUpdate(row) {
+        this.reset();
+        const topicid = row.topicid || this.ids
+        getSvytopic(topicid).then(response => {
+          this.form = response.data;
+          this.open = true;
+          this.title = "淇敼闂嵎棰樼洰";
+        });
+      },
+      /** 鎻愪氦鎸夐挳 */
+      submitForm() {
+        this.$refs["form"].validate(valid => {
+          if (valid) {
+            if (this.form.topicid != null) {
+              updateSvytopic(this.form).then(response => {
+                this.$modal.msgSuccess("淇敼鎴愬姛");
+                this.open = false;
+                this.getList();
+              });
+            } else {
+              addSvytopic(this.form).then(response => {
+                this.$modal.msgSuccess("鏂板鎴愬姛");
+                this.open = false;
+                this.getList();
+              });
+            }
+          }
+        });
+      },
+      /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+      handleDelete(row) {
+        const topicids = row.topicid || this.ids;
+        this.$modal.confirm('鏄惁纭鍒犻櫎闂嵎棰樼洰缂栧彿涓�"' + topicids + '"鐨勬暟鎹」锛�').then(function() {
+          return delSvytopic(topicids);
+        }).then(() => {
+          this.getList();
+          this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+        }).catch(() => {});
+      },
+      /** 瀵煎嚭鎸夐挳鎿嶄綔 */
+      handleExport() {
+        this.download('smartor/svytopic/export', {
+          ...this.queryParams
+        }, `svytopic_${new Date().getTime()}.xlsx`)
+      }
+    }
+  };
+  </script>
+  
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/smartor/ivrquestionlib/QuestionMaint.vue b/ruoyi-ui/src/views/smartor/ivrquestionlib/QuestionMaint.vue
index ca8d527..e60c9cd 100644
--- a/ruoyi-ui/src/views/smartor/ivrquestionlib/QuestionMaint.vue
+++ b/ruoyi-ui/src/views/smartor/ivrquestionlib/QuestionMaint.vue
@@ -13,7 +13,7 @@
   },
   components:
   {
-    dw_topic: ()=>import("@/smartor/dataobject/dw_ivrtopic_view.vue")
+    dw_topic: ()=>import("@/smartor/dataobject/dw_svytopic_view.vue")
   },
   methods: {
   }
diff --git a/ruoyi-ui/src/views/smartor/svytitle/index.vue b/ruoyi-ui/src/views/smartor/svytitle/index.vue
index 127f216..52476c0 100644
--- a/ruoyi-ui/src/views/smartor/svytitle/index.vue
+++ b/ruoyi-ui/src/views/smartor/svytitle/index.vue
@@ -253,7 +253,7 @@
   },
   components:
   {
-    dw_topic: () => import("@/smartor/dataobject/dw_ivrtopic_view.vue")
+    dw_topic: () => import("@/smartor/dataobject/dw_svytopic_view.vue")
   }
 };
 </script>
diff --git a/ruoyi-ui/src/views/smartor/svytitle/index0.vue b/ruoyi-ui/src/views/smartor/svytitle/index0.vue
index 3243e21..6ac977e 100644
--- a/ruoyi-ui/src/views/smartor/svytitle/index0.vue
+++ b/ruoyi-ui/src/views/smartor/svytitle/index0.vue
@@ -1,108 +1,110 @@
 <template>
-    <div class="app-container">
-    
-        <el-form  :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
-    
-            <el-form-item label=" 闂嵎绫诲埆 " prop="categoryid">
-    
-                <el-input v-model="queryParams.categoryid" placeholder="璇疯緭鍏� 闂嵎绫诲埆 " clearable @keyup.enter.native="handleQuery" />
-    
-            </el-form-item>
-    
-            <el-form-item label=" 闂嵎鍚嶇О " prop="svyname">
-    
-                <el-input v-model="queryParams.svyname" placeholder="璇疯緭鍏� 闂嵎鍚嶇О " clearable @keyup.enter.native="handleQuery" />
-    
-            </el-form-item>
-    
-            <el-form-item label=" 鏄惁鍚敤 " prop="isenable">
-    
-                <el-input v-model="queryParams.isenable" placeholder="璇疯緭鍏� 鏄惁鍚敤 " clearable @keyup.enter.native="handleQuery" />
-    
-            </el-form-item>
-    
-            <el-form-item label=" 褰掑睘鏈烘瀯 " prop="orgid">
-    
-                <el-input v-model="queryParams.orgid" placeholder="璇疯緭鍏� 鏈烘瀯ID " clearable @keyup.enter.native="handleQuery" />
-    
-            </el-form-item>
-    
-            <el-form-item>
-    
-                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
-    
-                <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
-    
-            </el-form-item>
-    
-        </el-form>
-    
-    
-    
-        <el-row :gutter="10" class="mb8">
-    
-            <el-col :span="1.5">
-    
-                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['smartor:svytitle:add']">鏂板</el-button>
-    
-            </el-col>
-    
-            <el-col :span="1.5">
-    
-                <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" v-hasPermi="['smartor:svytitle:edit']">淇敼</el-button>
-    
-            </el-col>
-    
-            <el-col :span="1.5">
-    
-                <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['smartor:svytitle:remove']">鍒犻櫎</el-button>
-    
-            </el-col>
-    
-            <el-col :span="1.5">
-    
-                <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['smartor:svytitle:export']">瀵煎嚭</el-button>
-    
-            </el-col>
-    
-            <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
-    
-        </el-row>
-    
-    
-    
-        <el-table v-loading="loading" :data="svytitleList" @selection-change="handleSelectionChange">
-    
-            <el-table-column type="selection" width="55" align="center" />
-    
-            <el-table-column label=" 闂嵎绫诲埆 " width="120" align="center" prop="categoryid" />
-    
-            <el-table-column label=" 闂嵎浠g爜 " width="120" align="center" prop="svycode" />
-    
-            <el-table-column label=" 闂嵎鍚嶇О " width="200" align="center" prop="svyname" />
-    
-            <el-table-column label=" 鎻忚堪 " width="300" align="center" prop="description" />
-    
-            <el-table-column label=" 閲囩敤妯℃澘 " width="120" align="center" prop="templateid" />
-    
-            <el-table-column label=" 鐗堟湰 " width="120" align="center" prop="version" />
-    
-            <el-table-column label=" 鏄惁鍚敤 " width="120" align="center" prop="isenable" />
-    
-            <el-table-column label=" 褰掑睘鏈烘瀯 " width="200" align="center" prop="orgid" />
-    
-            <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
-    
-                <template slot-scope="scope">
-    
-                    <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
-    
-                        v-hasPermi="['smartor:svytitle:edit']">淇敼</el-button>
-    
-                    <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
-    
-                        v-hasPermi="['smartor:svytitle:remove']">鍒犻櫎</el-button>
-                </template>
+  <div class="app-container">
+
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+
+      <el-form-item label=" 闂嵎绫诲埆 " prop="categoryid">
+
+        <el-input v-model="queryParams.categoryid" placeholder="璇疯緭鍏� 闂嵎绫诲埆 " clearable @keyup.enter.native="handleQuery" />
+
+      </el-form-item>
+
+      <el-form-item label=" 闂嵎鍚嶇О " prop="svyname">
+
+        <el-input v-model="queryParams.svyname" placeholder="璇疯緭鍏� 闂嵎鍚嶇О " clearable @keyup.enter.native="handleQuery" />
+
+      </el-form-item>
+
+      <el-form-item label=" 鏄惁鍚敤 " prop="isenable">
+
+        <el-input v-model="queryParams.isenable" placeholder="璇疯緭鍏� 鏄惁鍚敤 " clearable @keyup.enter.native="handleQuery" />
+
+      </el-form-item>
+
+      <el-form-item label=" 褰掑睘鏈烘瀯 " prop="orgid">
+
+        <el-input v-model="queryParams.orgid" placeholder="璇疯緭鍏� 鏈烘瀯ID " clearable @keyup.enter.native="handleQuery" />
+
+      </el-form-item>
+
+      <el-form-item>
+
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
+
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
+
+      </el-form-item>
+
+    </el-form>
+
+
+
+    <el-row :gutter="10" class="mb8">
+
+      <el-col :span="1.5">
+
+        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
+          v-hasPermi="['smartor:svytitle:add']">鏂板</el-button>
+
+      </el-col>
+
+      <el-col :span="1.5">
+
+        <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
+          v-hasPermi="['smartor:svytitle:edit']">淇敼</el-button>
+
+      </el-col>
+
+      <el-col :span="1.5">
+
+        <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
+          v-hasPermi="['smartor:svytitle:remove']">鍒犻櫎</el-button>
+
+      </el-col>
+
+      <el-col :span="1.5">
+
+        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
+          v-hasPermi="['smartor:svytitle:export']">瀵煎嚭</el-button>
+
+      </el-col>
+
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+
+    </el-row>
+
+
+
+    <el-table v-loading="loading" :data="svytitleList" @selection-change="handleSelectionChange">
+
+      <el-table-column type="selection" width="55" align="center" />
+
+      <el-table-column label=" 闂嵎绫诲埆 " width="120" align="center" prop="categoryid" />
+
+      <el-table-column label=" 闂嵎浠g爜 " width="120" align="center" prop="svycode" />
+
+      <el-table-column label=" 闂嵎鍚嶇О " width="200" align="center" prop="svyname" />
+
+      <el-table-column label=" 鎻忚堪 " width="300" align="center" prop="description" />
+
+      <el-table-column label=" 閲囩敤妯℃澘 " width="120" align="center" prop="templateid" />
+
+      <el-table-column label=" 鐗堟湰 " width="120" align="center" prop="version" />
+
+      <el-table-column label=" 鏄惁鍚敤 " width="120" align="center" prop="isenable" />
+
+      <el-table-column label=" 褰掑睘鏈烘瀯 " width="200" align="center" prop="orgid" />
+
+      <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
+
+        <template slot-scope="scope">
+
+          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
+            v-hasPermi="['smartor:svytitle:edit']">淇敼</el-button>
+
+          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
+            v-hasPermi="['smartor:svytitle:remove']">鍒犻櫎</el-button>
+        </template>
       </el-table-column>
     </el-table>
 
@@ -175,173 +177,173 @@
 import { listSvytitle, getSvytitle, delSvytitle, addSvytitle, updateSvytitle } from "@/api/smartor/svytitle";
 
 export default {
-    name: "Svytitle",
-    data() {
-        return {
-            // 閬僵灞�
-            loading: true,
-            // 閫変腑鏁扮粍
-            ids: [],
-            // 闈炲崟涓鐢�
-            single: true,
-            // 闈炲涓鐢�
-            multiple: true,
-            // 鏄剧ず鎼滅储鏉′欢
-            showSearch: true,
-            // 鎬绘潯鏁�
-            total: 0,
-            // 闂嵎琛ㄦ牸鏁版嵁
-            svytitleList: [],
-            // 寮瑰嚭灞傛爣棰�
-            title: "",
-            // 鏄惁鏄剧ず寮瑰嚭灞�
-            open: false,
-            // 鏌ヨ鍙傛暟
-            queryParams: {
-                pageNum: 1,
-                pageSize: 10,
-                categoryid: null,
-                svycode: null,
-                svyname: null,
-                description: null,
-                introduce: null,
-                submitprompt: null,
-                templateid: null,
-                version: null,
-                centerlibrarycode: null,
-                centerlibraryid: null,
-                islocal: null,
-                isenable: null,
-                orgid: null,
-                isupload: null,
-                uploadTime: null
-            },
-            // 琛ㄥ崟鍙傛暟
-            form: {},
-            // 琛ㄥ崟鏍¢獙
-            rules: {
-                delFlag: [
-                    { required: true, message: " 鍒犻櫎鏍囪 涓嶈兘涓虹┖", trigger: "blur" }
-                ],
-                isupload: [
-                    { required: true, message: " 涓婁紶鏍囪 涓嶈兘涓虹┖", trigger: "blur" }
-                ],
-            }
-        };
+  name: "Svytitle",
+  data() {
+    return {
+      // 閬僵灞�
+      loading: true,
+      // 閫変腑鏁扮粍
+      ids: [],
+      // 闈炲崟涓鐢�
+      single: true,
+      // 闈炲涓鐢�
+      multiple: true,
+      // 鏄剧ず鎼滅储鏉′欢
+      showSearch: true,
+      // 鎬绘潯鏁�
+      total: 0,
+      // 闂嵎琛ㄦ牸鏁版嵁
+      svytitleList: [],
+      // 寮瑰嚭灞傛爣棰�
+      title: "",
+      // 鏄惁鏄剧ず寮瑰嚭灞�
+      open: false,
+      // 鏌ヨ鍙傛暟
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        categoryid: null,
+        svycode: null,
+        svyname: null,
+        description: null,
+        introduce: null,
+        submitprompt: null,
+        templateid: null,
+        version: null,
+        centerlibrarycode: null,
+        centerlibraryid: null,
+        islocal: null,
+        isenable: null,
+        orgid: null,
+        isupload: null,
+        uploadTime: null
+      },
+      // 琛ㄥ崟鍙傛暟
+      form: {},
+      // 琛ㄥ崟鏍¢獙
+      rules: {
+        delFlag: [
+          { required: true, message: " 鍒犻櫎鏍囪 涓嶈兘涓虹┖", trigger: "blur" }
+        ],
+        isupload: [
+          { required: true, message: " 涓婁紶鏍囪 涓嶈兘涓虹┖", trigger: "blur" }
+        ],
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 鏌ヨ闂嵎鍒楄〃 */
+    getList() {
+      this.loading = true;
+      listSvytitle(this.queryParams).then(response => {
+        this.svytitleList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
     },
-    created() {
+    // 鍙栨秷鎸夐挳
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 琛ㄥ崟閲嶇疆
+    reset() {
+      this.form = {
+        svyid: null,
+        categoryid: null,
+        svycode: null,
+        svyname: null,
+        description: null,
+        introduce: null,
+        submitprompt: null,
+        templateid: null,
+        version: null,
+        centerlibrarycode: null,
+        centerlibraryid: null,
+        islocal: null,
+        isenable: null,
+        orgid: null,
+        delFlag: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null,
+        isupload: null,
+        uploadTime: null
+      };
+      this.resetForm("form");
+    },
+    /** 鎼滅储鎸夐挳鎿嶄綔 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 閲嶇疆鎸夐挳鎿嶄綔 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 澶氶�夋閫変腑鏁版嵁
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.svyid)
+      this.single = selection.length !== 1
+      this.multiple = !selection.length
+    },
+    /** 鏂板鎸夐挳鎿嶄綔 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "娣诲姞闂嵎";
+    },
+    /** 淇敼鎸夐挳鎿嶄綔 */
+    handleUpdate(row) {
+      this.reset();
+      const svyid = row.svyid || this.ids
+      getSvytitle(svyid).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "淇敼闂嵎";
+      });
+    },
+    /** 鎻愪氦鎸夐挳 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.svyid != null) {
+            updateSvytitle(this.form).then(response => {
+              this.$modal.msgSuccess("淇敼鎴愬姛");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addSvytitle(this.form).then(response => {
+              this.$modal.msgSuccess("鏂板鎴愬姛");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+    handleDelete(row) {
+      const svyids = row.svyid || this.ids;
+      this.$modal.confirm('鏄惁纭鍒犻櫎闂嵎缂栧彿涓�"' + svyids + '"鐨勬暟鎹」锛�').then(function () {
+        return delSvytitle(svyids);
+      }).then(() => {
         this.getList();
+        this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+      }).catch(() => { });
     },
-    methods: {
-        /** 鏌ヨ闂嵎鍒楄〃 */
-        getList() {
-            this.loading = true;
-            listSvytitle(this.queryParams).then(response => {
-                this.svytitleList = response.rows;
-                this.total = response.total;
-                this.loading = false;
-            });
-        },
-        // 鍙栨秷鎸夐挳
-        cancel() {
-            this.open = false;
-            this.reset();
-        },
-        // 琛ㄥ崟閲嶇疆
-        reset() {
-            this.form = {
-                svyid: null,
-                categoryid: null,
-                svycode: null,
-                svyname: null,
-                description: null,
-                introduce: null,
-                submitprompt: null,
-                templateid: null,
-                version: null,
-                centerlibrarycode: null,
-                centerlibraryid: null,
-                islocal: null,
-                isenable: null,
-                orgid: null,
-                delFlag: null,
-                createBy: null,
-                createTime: null,
-                updateBy: null,
-                updateTime: null,
-                isupload: null,
-                uploadTime: null
-            };
-            this.resetForm("form");
-        },
-        /** 鎼滅储鎸夐挳鎿嶄綔 */
-        handleQuery() {
-            this.queryParams.pageNum = 1;
-            this.getList();
-        },
-        /** 閲嶇疆鎸夐挳鎿嶄綔 */
-        resetQuery() {
-            this.resetForm("queryForm");
-            this.handleQuery();
-        },
-        // 澶氶�夋閫変腑鏁版嵁
-        handleSelectionChange(selection) {
-            this.ids = selection.map(item => item.svyid)
-            this.single = selection.length !== 1
-            this.multiple = !selection.length
-        },
-        /** 鏂板鎸夐挳鎿嶄綔 */
-        handleAdd() {
-            this.reset();
-            this.open = true;
-            this.title = "娣诲姞闂嵎";
-        },
-        /** 淇敼鎸夐挳鎿嶄綔 */
-        handleUpdate(row) {
-            this.reset();
-            const svyid = row.svyid || this.ids
-            getSvytitle(svyid).then(response => {
-                this.form = response.data;
-                this.open = true;
-                this.title = "淇敼闂嵎";
-            });
-        },
-        /** 鎻愪氦鎸夐挳 */
-        submitForm() {
-            this.$refs["form"].validate(valid => {
-                if (valid) {
-                    if (this.form.svyid != null) {
-                        updateSvytitle(this.form).then(response => {
-                            this.$modal.msgSuccess("淇敼鎴愬姛");
-                            this.open = false;
-                            this.getList();
-                        });
-                    } else {
-                        addSvytitle(this.form).then(response => {
-                            this.$modal.msgSuccess("鏂板鎴愬姛");
-                            this.open = false;
-                            this.getList();
-                        });
-                    }
-                }
-            });
-        },
-        /** 鍒犻櫎鎸夐挳鎿嶄綔 */
-        handleDelete(row) {
-            const svyids = row.svyid || this.ids;
-            this.$modal.confirm('鏄惁纭鍒犻櫎闂嵎缂栧彿涓�"' + svyids + '"鐨勬暟鎹」锛�').then(function() {
-                return delSvytitle(svyids);
-            }).then(() => {
-                this.getList();
-                this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
-            }).catch(() => {});
-        },
-        /** 瀵煎嚭鎸夐挳鎿嶄綔 */
-        handleExport() {
-            this.download('smartor/svytitle/export', {
-                ...this.queryParams
-            }, `svytitle_${new Date().getTime()}.xlsx`)
-        },
-     },
+    /** 瀵煎嚭鎸夐挳鎿嶄綔 */
+    handleExport() {
+      this.download('smartor/svytitle/export', {
+        ...this.queryParams
+      }, `svytitle_${new Date().getTime()}.xlsx`)
+    },
+  },
 };
 </script>
diff --git a/ruoyi-ui/src/views/smartor/svytitle/index1.vue b/ruoyi-ui/src/views/smartor/svytitle/index1.vue
index e9b87ff..36d512a 100644
--- a/ruoyi-ui/src/views/smartor/svytitle/index1.vue
+++ b/ruoyi-ui/src/views/smartor/svytitle/index1.vue
@@ -224,7 +224,7 @@
    },
   components:
   {
-    dw_topic: () => import("@/smartor/dataobject/dw_ivrtopic_view.vue")
+    dw_topic: () => import("@/smartor/dataobject/dw_svytopic_view.vue")
   }
 };
 </script>
diff --git a/ruoyi-ui/src/views/smartor/svytopicoption/index.vue b/ruoyi-ui/src/views/smartor/svytopicoption/index.vue
index e927599..d1329f4 100644
--- a/ruoyi-ui/src/views/smartor/svytopicoption/index.vue
+++ b/ruoyi-ui/src/views/smartor/svytopicoption/index.vue
@@ -5,7 +5,7 @@
         <el-input v-model="queryParams.optioncontent" placeholder="璇疯緭鍏� 閫夐」鍐呭 " clearable
           @keyup.enter.native="handleQuery" />
       </el-form-item>
-      <el-form-item label=" 褰掑鏈烘瀯 " prop="orgid">
+      <el-form-item label=" 褰掑睘鏈烘瀯 " prop="orgid">
         <el-input v-model="queryParams.orgid" placeholder="璇疯緭鍏� 鏈烘瀯ID " clearable @keyup.enter.native="handleQuery" />
       </el-form-item>
       <el-form-item>

--
Gitblit v1.9.3