From 32d69fcb07f2325d9b93ce1a8b3716eec73ae70f Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 08 四月 2024 18:24:07 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/record/index.vue |  409 ++++++++++++++++------------------------------------------
 1 files changed, 114 insertions(+), 295 deletions(-)

diff --git a/src/views/followvisit/record/index.vue b/src/views/followvisit/record/index.vue
index 0b922c4..9159b14 100644
--- a/src/views/followvisit/record/index.vue
+++ b/src/views/followvisit/record/index.vue
@@ -2,7 +2,6 @@
   <div class="app-container">
     <el-row :gutter="20">
       <!--鐢ㄦ埛鏁版嵁-->
-
       <el-form
         :model="topqueryParams"
         ref="queryForm"
@@ -87,7 +86,7 @@
             >鏂板</el-button
           >
         </el-col>
-        <!-- <el-col :span="1.5">
+        <el-col :span="1.5">
           <el-button
             type="success"
             plain
@@ -96,10 +95,10 @@
             :disabled="single"
             @click="handleUpdate"
             v-hasPermi="['system:user:edit']"
-            >淇敼</el-button
+            >璇︽儏</el-button
           >
-        </el-col> -->
-        <!-- <el-col :span="1.5">
+        </el-col>
+        <el-col :span="1.5">
           <el-button
             type="danger"
             plain
@@ -110,14 +109,14 @@
             v-hasPermi="['system:user:remove']"
             >鍒犻櫎</el-button
           >
-        </el-col> -->
-        <el-col :span="1.5">
+        </el-col>
+        <el-col :span="19">
           <div class="documentf">
             <div class="document">
               <el-button
                 type="warning"
                 plain
-                icon="el-icon-upload2"
+                icon="el-icon-download"
                 size="medium"
                 @click="handleExport"
                 v-hasPermi="['system:user:export']"
@@ -126,85 +125,8 @@
             </div>
           </div>
         </el-col>
-        <el-col :span="1.5">
-          <div class="documentf">
-            <div class="document">
-              <el-button
-                type="success"
-                plain
-                icon="el-icon-download"
-                size="medium"
-                @click="toleadExport"
-                v-hasPermi="['system:user:export']"
-                >瀵煎叆</el-button
-              >
-            </div>
-          </div>
-        </el-col>
-        <el-col :span="1.5">
-          <div class="documentf">
-            <div class="document">
-              <el-button
-                type="info"
-                icon="el-icon-refresh"
-                size="medium"
-                @click="TaskReset"
-                v-hasPermi="['system:user:export']"
-                >浠诲姟閲嶇疆</el-button
-              >
-            </div>
-          </div>
-        </el-col>
-        <el-col :span="1.5">
-          <div class="documentf">
-            <div class="document">
-              <el-button
-                type="success"
-                icon="el-icon-position"
-                size="medium"
-                @click="AllStarted"
-                v-hasPermi="['system:user:export']"
-                >鍏ㄩ儴寮�濮�</el-button
-              >
-            </div>
-          </div>
-        </el-col>
-        <el-col :span="1.5">
-          <div class="documentf">
-            <div class="document">
-              <el-button
-                type="warning"
-                icon="el-icon-remove"
-                size="medium"
-                @click="AllStop"
-                v-hasPermi="['system:user:export']"
-                >鍏ㄩ儴鍋滄</el-button
-              >
-            </div>
-          </div>
-        </el-col>
-        <el-col :span="1.5">
-          <div class="documentf">
-            <div class="document">
-              <el-button
-                type="primary"
-                icon="el-icon-remove"
-                size="medium"
-                @click="Sendtimesetting"
-                v-hasPermi="['system:user:export']"
-                >鍙戦�佹椂闂磋缃�</el-button
-              >
-            </div>
-          </div>
-        </el-col>
-
         <!-- <el-col :span="1.5"> </el-col> -->
       </el-row>
-      <!-- <right-toolbar
-              :showSearch.sync="showSearch"
-              @queryTable="getList"
-              :columns="columns"
-            ></right-toolbar> -->
       <el-table
         v-loading="loading"
         :data="userList"
@@ -213,47 +135,50 @@
         <el-table-column type="selection" width="50" align="center" />
         <el-table-column
           label="搴忓彿"
+          fixed
           align="center"
           key="userId"
           prop="userId"
         />
 
         <el-table-column
-          label="浠诲姟鍚嶇О"
-          align="center"
-          sortable
-          key="userName"
-          prop="userName"
-          :show-overflow-tooltip="true"
-        />
-        <el-table-column
-          label="鏈嶅姟妯℃澘"
+          label="濮撳悕"
+          fixed
           align="center"
           key="types"
           prop="types"
         />
         <el-table-column
-          label="鍒涘缓鏃ユ湡"
+          label="鐥呭巻鍙�"
+          align="center"
+          sortable
+          key="userName"
+          prop="userName"
+          width="120"
+        />
+        <el-table-column
+          label="骞撮緞"
           align="center"
           key="nickName"
           prop="nickName"
         />
         <el-table-column
-          label="寰呮墽琛�/鎬绘暟"
+          label="搴婂彿"
+          align="center"
+          key="nickName"
+          prop="nickName"
+        />
+        <el-table-column
+          label="绉戝/鐥呭尯"
           align="center"
           key="phonenumber"
           prop="phonenumber"
           width="120"
         >
-          <template slot-scope="scope">
-            <span style="margin-left: 10px"
-              >{{ scope.row.date }}/{{ scope.row.data }}</span
-            >
-          </template>
         </el-table-column>
 
         <el-table-column
-          label="鎵ц鐘舵��"
+          label="鐤剧梾鍚嶇О"
           align="center"
           key="topicnumber"
           prop="topicnumber"
@@ -261,21 +186,62 @@
           :show-overflow-tooltip="true"
         >
           <template slot-scope="scope">
-            <div>鎵ц瀹屾垚/寰呭鏍�</div>
+            <div>杞诲害楠ㄨ</div>
           </template>
         </el-table-column>
         <el-table-column
-          label="瀹℃牳浜�"
+          label="瀹f暀鍐呭"
           align="center"
           key="topicnumberaa"
           prop="topicnumberaa"
-          sortable
           width="120"
-          :show-overflow-tooltip="true"
+        />
+        <el-table-column
+          label="瀹f暀鏉愭枡"
+          align="center"
+          key="topicnumberaa"
+          prop="topicnumberaa"
+          width="120"
+        />
+        <el-table-column
+          label="瀹f暀鏂瑰紡"
+          align="center"
+          key="topicnumberaa"
+          prop="topicnumberaa"
+          width="120"
+        />
+        <el-table-column
+          label="瀹f暀浜哄憳"
+          align="center"
+          key="topicnumberaa"
+          prop="topicnumberaa"
+          width="120"
         />
 
         <el-table-column
-          label="瀹℃牳鏃堕棿"
+          label="灏辫瘖鏃堕棿"
+          sortable
+          align="center"
+          prop="createTime"
+          width="160"
+        >
+          <template slot-scope="scope">
+            <span>{{ parseTime(scope.row.createTime) }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column
+          label="瀹f暀鏃堕棿"
+          sortable
+          align="center"
+          prop="createTime"
+          width="160"
+        >
+          <template slot-scope="scope">
+            <span>{{ parseTime(scope.row.createTime) }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column
+          label="鍥炲鏃堕棿"
           sortable
           align="center"
           prop="createTime"
@@ -287,7 +253,21 @@
         </el-table-column>
 
         <el-table-column
-          label="鎿嶄綔"
+          label="閫氱煡鐘舵��"
+          fixed="right"
+          align="center"
+          key="topicnumber"
+          prop="topicnumber"
+          width="120"
+          :show-overflow-tooltip="true"
+        >
+          <template slot-scope="scope">
+            <div>鏈畬鎴�</div>
+          </template>
+        </el-table-column>
+        <el-table-column
+          label="浠诲姟璇︽儏"
+          fixed="right"
           align="center"
           width="200"
           class-name="small-padding fixed-width"
@@ -296,28 +276,19 @@
             <el-button
               size="medium"
               type="text"
-              @click="followupvisit(scope.row)"
+              @click="handleUpdate(scope.row)"
               v-hasPermi="['system:user:edit']"
-              ><span class="button-bb"
-                ><i class="el-icon-s-promotion"></i>閲嶆柊闅忚</span
+              ><span class="button-xq"
+                ><i class="el-icon-s-data"></i>璇︽儏</span
               ></el-button
             >
             <el-button
               size="medium"
               type="text"
-              @click="handlestop(scope.row)"
+              @click="handleDelete(scope.row)"
               v-hasPermi="['system:user:edit']"
               ><span class="button-sc"
-                ><i class="el-icon-delete"></i>鍋滄</span
-              ></el-button
-            >
-            <el-button
-              size="medium"
-              type="text"
-              @click="Seedetails(scope.row)"
-              v-hasPermi="['system:user:edit']"
-              ><span class="button-zx"
-                ><i class="el-icon-s-order"></i>鏌ョ湅璇︽儏</span
+                ><i class="el-icon-delete"></i>鍒犻櫎</span
               ></el-button
             >
           </template>
@@ -386,81 +357,6 @@
         <el-button @click="cancel">杩� 鍥�</el-button>
       </div>
     </el-dialog>
-    <!-- 淇敼鍙戦�佹椂闂村璇濇 -->
-    <el-dialog
-      title="鍙戦�佹椂闂磋缃�"
-      :visible.sync="modificationVisible"
-      width="45%"
-    >
-      <div style="margin-bottom: 20px; color: red">
-        缁熶竴淇敼褰撳ぉ鏈彂閫佺殑浠诲姟鏃堕棿
-      </div>
-
-      <el-form
-        :model="ruleForm"
-        :rules="rules"
-        ref="ruleForm"
-        label-width="120px"
-        class="demo-ruleForm"
-      >
-        <el-form-item label="鍙戦�佹棩鏈�">
-          <el-date-picker
-            v-model="ruleForm.value1"
-            type="date"
-            placeholder="閫夋嫨鏃ユ湡"
-          >
-          </el-date-picker>
-        </el-form-item>
-
-        <el-form-item label="鏃堕棿娈�" prop="type">
-          <el-checkbox-group v-model="ruleForm.type">
-            <el-checkbox label="涓婂崍" name="type"></el-checkbox>
-            <el-checkbox label="涓嬪崍" name="type"></el-checkbox>
-            <el-checkbox label="鏅氫笂" name="type"></el-checkbox>
-          </el-checkbox-group>
-        </el-form-item>
-        <el-form-item label="涓婂崍鏃堕棿鍖洪棿" required>
-          <el-time-picker
-            is-range
-            v-model="ruleForm.value2"
-            range-separator="鑷�"
-            start-placeholder="寮�濮嬫椂闂�"
-            end-placeholder="缁撴潫鏃堕棿"
-            placeholder="閫夋嫨鏃堕棿鑼冨洿"
-          >
-          </el-time-picker>
-        </el-form-item>
-        <el-form-item label="涓嬪崍鏃堕棿鍖洪棿" required>
-          <el-time-picker
-            is-range
-            v-model="ruleForm.value3"
-            range-separator="鑷�"
-            start-placeholder="寮�濮嬫椂闂�"
-            end-placeholder="缁撴潫鏃堕棿"
-            placeholder="閫夋嫨鏃堕棿鑼冨洿"
-          >
-          </el-time-picker>
-        </el-form-item>
-        <el-form-item label="鏅氫笂鏃堕棿鍖洪棿" required>
-          <el-time-picker
-            is-range
-            v-model="ruleForm.value4"
-            range-separator="鑷�"
-            start-placeholder="寮�濮嬫椂闂�"
-            end-placeholder="缁撴潫鏃堕棿"
-            placeholder="閫夋嫨鏃堕棿鑼冨洿"
-          >
-          </el-time-picker>
-        </el-form-item>
-      </el-form>
-
-      <span slot="footer" class="dialog-footer">
-        <el-button @click="modificationVisible = false">鍙� 娑�</el-button>
-        <el-button type="primary" @click="modificationVisible = false"
-          >纭� 瀹�</el-button
-        >
-      </span>
-    </el-dialog>
   </div>
 </template>
 
@@ -501,8 +397,6 @@
       title: "鏂板闂ㄨ瘖闅忚",
       // 鏄惁鏄剧ず淇敼銆佹坊鍔犲脊鍑哄眰
       addalteropen: false,
-      // 淇敼鍙戦�佹椂闂村璇濇
-      modificationVisible: false,
       // 閮ㄩ棬鍚嶇О
       deptName: undefined,
       // 榛樿瀵嗙爜
@@ -511,9 +405,8 @@
       dateRange: [],
       // 宀椾綅閫夐」
       postOptions: [],
-      ruleForm: {
-        type: [],
-      },
+      // 瑙掕壊閫夐」
+      roleOptions: [],
       dynamicTags: ["閫夐」涓�", "閫夐」浜�", "閫夐」涓�"], //閫夐」
       inputVisible: false,
       inputValue: "",
@@ -819,30 +712,18 @@
     },
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
-      this.reset();
-      this.addalteropen = true;
-      // getUser().then((response) => {
-      //   this.postOptions = response.posts;
-      //   this.roleOptions = response.roles;
-      //   this.title = "鏂板闂ㄨ瘖闅忚";
-      //   this.form.password = this.initPassword;
-      // });
+      this.$router.push({
+        path: "/followvisit/particty",
+        query: { type: 1 },
+      });
     },
     /** 淇敼鎸夐挳鎿嶄綔 */
-    // handleUpdate(row) {
-    //   this.reset();
-    //   const userId = row.userId || this.ids;
-    //   getUser(userId).then((response) => {
-    //     this.form = response.data;
-    //     this.postOptions = response.posts;
-    //     this.roleOptions = response.roles;
-    //     this.$set(this.form, "postIds", response.postIds);
-    //     this.$set(this.form, "roleIds", response.roleIds);
-    //     this.addalteropen = true;
-    //     this.title = "淇敼鐢ㄦ埛";
-    //     this.form.password = "";
-    //   });
-    // },
+    handleUpdate(row) {
+      this.$router.push({
+        path: "/followvisit/record/detailpage/",
+        query: { id: "1" },
+      });
+    },
     /** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */
     handleResetPwd(row) {
       this.$prompt('璇疯緭鍏�"' + row.userName + '"鐨勬柊瀵嗙爜', "鎻愮ず", {
@@ -894,58 +775,6 @@
         })
         .catch(() => {});
     },
-    // 鍏ㄩ儴鍋滄
-    AllStop() {
-      this.$modal
-        .confirm("鏄惁鍋滄鍏ㄩ儴浠诲姟锛�")
-        .then(function () {
-          return console.log("鍋滄鎴愬姛");
-        })
-        .then(() => {
-          this.getList();
-          this.$modal.msgWarning("鍋滄鎴愬姛");
-        })
-        .catch(() => {});
-    },
-    // 鍏ㄩ儴寮�濮�
-    AllStarted() {
-      this.$modal
-        .confirm("鏄惁寮�鍚叏閮ㄤ换鍔★紵")
-        .then(function () {
-          return console.log("寮�鍚垚鍔�");
-        })
-        .then(() => {
-          this.getList();
-          this.$modal.msgSuccess("寮�鍚垚鍔�");
-        })
-        .catch(() => {});
-    },
-    // 浠诲姟閲嶇疆
-    TaskReset() {
-      this.$modal
-        .confirm("鏄惁閲嶇疆閫変腑鐨勪换鍔¢」锛�")
-        .then(function () {
-          return console.log("閫変腑鎴愬姛");
-        })
-        .then(() => {
-          this.getList();
-          this.$modal.msgSuccess("閲嶇疆鎴愬姛");
-        })
-        .catch(() => {});
-    },
-    // 璁剧疆鍙戦�佹椂闂�
-    Sendtimesetting() {
-      this.modificationVisible = true;
-    },
-    // 璺宠浆璇︽儏椤�
-    Seedetails() {
-      this.$router.push({
-        path: "/followvisit/record/detailpage/",
-        query: { id: "1" },
-      });
-    },
-    // 瀵煎叆鎸夐挳
-    toleadExport() {},
     /** 瀵煎嚭鎸夐挳鎿嶄綔 */
     handleExport() {
       this.download(
@@ -968,7 +797,7 @@
 }
 
 .document {
-  // width: 100px;
+  width: 100px;
   height: 50px;
 }
 
@@ -1051,24 +880,15 @@
 }
 .button-bb {
   font-weight: 500;
-  background-color: #2ba05c;
-  padding: 5px;
-  border-radius: 1px;
-  color: #ffffff;
+  color: #2ba05c;
 }
 .button-xq {
   font-weight: 500;
-  background-color: #409eff;
-  padding: 5px;
-  border-radius: 1px;
-  color: #ffffff;
+  color: #409eff;
 }
 .button-sc {
   font-weight: 500;
-  background-color: #dd302a;
-  padding: 5px;
-  border-radius: 1px;
-  color: #ffffff;
+  color: #dd302a;
 }
 .button-zx {
   background: #4fabe9;
@@ -1083,10 +903,9 @@
   }
 }
 
-// 閫夐」瀛椾綋鏀惧ぇ
-// ::v-deep.el-checkbox-group {
-//   span {
-//     font-size: 24px;
-//   }
-// }
+::v-deep.el-checkbox-group {
+  span {
+    font-size: 24px;
+  }
+}
 </style>

--
Gitblit v1.9.3