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/views/smartor/svytitle/index0.vue |  540 ++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 271 insertions(+), 269 deletions(-)

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>

--
Gitblit v1.9.3