From 450fa7ffab10285506b0c9aa2b0869d9580608ac Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Thu, 11 Jan 2024 14:26:15 +0800
Subject: [PATCH] 重点人员

---
 src/views/article/components/deitDiscussion.vue |  145 ++++--------------------------------------------
 1 files changed, 12 insertions(+), 133 deletions(-)

diff --git a/src/views/article/components/deitDiscussion.vue b/src/views/article/components/deitDiscussion.vue
index 8d81e53..5ac6b3a 100644
--- a/src/views/article/components/deitDiscussion.vue
+++ b/src/views/article/components/deitDiscussion.vue
@@ -10,35 +10,7 @@
 -->
 <template>
   <div>
-    <el-dialog title="" append-to-body :visible.sync="popupTableShow" width="80%" :before-close="handleClose">
-      <span slot="title" class="dialog-footer">
-        {{ ontitle }}
-      </span>
 
-      <div id="" v-if="editFlag">
-        <avue-form @submit="handleSubmit" :option="optionDiscuss" @reset-change="handleReset" v-model="disCussFrom">
-        </avue-form>
-      </div>
-
-      <div id="" v-if="!editFlag">
-        <avue-crud :table-loading="loading" :option="optionList" :data="data" v-model="form" ref="crud"
-          @row-update="rowUpdate" @row-del="rowDel">
-          <template slot="menuLeft" v-if="!editFlag">
-            <el-button type="primary" size="small" plain icon="el-icon-circle-plus-outline" @click="add()">添加
-            </el-button>
-          </template>
-          <template #icon="scope">
-            <i :class="scope.row.icon" style="font-size:14px"></i>
-          </template>
-          <template #menu="{ row, size }">
-            <el-button v-if="row.level === 1" :size="size" text type="primary" @click="edit(row)">编辑</el-button>
-            <el-button v-if="row.level === 1" :size="size" text type="danger" @click="deletes(row)">删除</el-button>
-            <el-button v-if="row.level === 2" :size="size" text type="primary" @click="openUser(row, 1)">
-              选择此项人数:{{ row.number }} 详情</el-button>
-          </template>
-        </avue-crud>
-      </div>
-    </el-dialog>
 
     <el-dialog title="" append-to-body :visible.sync="popupTableUserShow" width="50%" :before-close="userHandleClose">
       <avue-crud :data="userData" :page="userPage" :option="userOption"></avue-crud>
@@ -60,6 +32,9 @@
   } from "@/api/discuss/userTopics"
 
 
+  import website from '@/config/website'
+
+
   import {
     getLists,
     getList,
@@ -74,116 +49,11 @@
       return {
         popupTableShow: false,
         popupTableUserShow: false,
-
         loading: true,
-
-        ontitle: '编辑议题',
-        editFlag: false,
-
-        disCussFrom: {
-          discussContent: '',
-          optionRange: 0,
-          sort: 1,
-          optionContent: '',
-          optionDetail: '',
-          number: '',
-          createTime: '',
-          updateTime: '',
-          deleteFlag: '',
-          articleId: '',
-          parentId: '',
-          level: '',
-          children: [{
-            optionContent: '',
-            optionDetail: '',
-            number: '',
-            createTime: '',
-            updateTime: '',
-            deleteFlag: '',
-            articleId: '',
-            parentId: '',
-            level: '',
-          }]
-        },
-        optionDiscuss: {
-          emptyText: '取消',
-          column: [{
-              label: '议题',
-              prop: 'discussContent',
-              type: 'input',
-              row: true,
-            },
-            {
-              label: '选项范围',
-              prop: 'optionRange',
-              type: 'radio',
-              button: true,
-              row: true,
-              dicData: [{
-                label: '多选',
-                value: 1
-              }, {
-                label: '单选',
-                value: 0
-              }]
-            },
-            {
-              label: '排序',
-              prop: 'sort',
-              controlsPosition: '',
-              type: 'number'
-            },
-            {
-              label: '选项内容',
-              prop: 'children',
-              type: 'dynamic',
-              span: 24,
-              children: {
-                column: [{
-                  label: '选项标题',
-                  prop: 'optionContent',
-                  type: 'input',
-                  rules: [{
-                    required: true,
-                    message: '请输入选项标题',
-                    trigger: 'blur'
-                  }]
-                }, {
-                  label: '选项说明',
-                  prop: 'optionDetail',
-                  type: 'input',
-                }]
-              }
-            },
-          ]
-        },
-
         // 表单数据
         form: {},
         data: [],
-        optionList: {
-          headerAlign: 'center',
-          align: 'center',
-          border: true,
-          addBtn: false,
-          editBtn: false,
-          delBtn: false,
-          defaultExpandAll: true,
-          rowKey: 'id',
-          rowParentKey: 'parentId',
-          column: [{
-              label: '标题',
-              prop: 'discussContent',
-            },
-            {
-              label: '选项内容',
-              prop: 'optionContent',
-            }
-          ]
-        },
-
         articleId: '',
-
         userData: [],
         userOption: {
           addBtn: false,
@@ -194,6 +64,11 @@
           }, {
             label: '头像',
             prop: 'avatar'
+          }, {
+            label: '签名',
+            type: 'upload',
+            listType: "picture-img",
+            prop: 'signaturePath'
           }, {
             label: '手机',
             prop: 'phone'
@@ -362,6 +237,10 @@
             if (item.avatar.length > 0) {
               item.avatar = website.minioUrl + item.avatar
             }
+            if (item.signaturePath && item.signaturePath.length > 0) {
+              item.signaturePath = website.minioUrl + item.signaturePath
+              // console.log("=====>", item.signaturePath)
+            }
           })
         })
       },

--
Gitblit v1.9.3