From a22820cfed42dd22b21208b7a310d5d46dc759c0 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 01 七月 2025 14:34:09 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/satisfaction/index.vue |  269 +++++++++++------------------------------------------
 1 files changed, 59 insertions(+), 210 deletions(-)

diff --git a/src/views/followvisit/satisfaction/index.vue b/src/views/followvisit/satisfaction/index.vue
index 1a45f3c..0e1ea1f 100644
--- a/src/views/followvisit/satisfaction/index.vue
+++ b/src/views/followvisit/satisfaction/index.vue
@@ -141,146 +141,99 @@
         <el-table-column
           label="搴忓彿"
           align="center"
-          key="userId"
-          prop="userId"
+          key="id"
+          prop="id"
         />
 
         <el-table-column
-          label="浣忛櫌缂栧彿"
+          label="鐥呭尯"
           align="center"
           sortable
-          key="userName"
-          prop="userName"
+          key="hospitaldistrictname"
+          prop="hospitaldistrictname"
+          :show-overflow-tooltip="true"
+        />
+        <el-table-column
+          label="绉戝"
+          width="100"
+          align="center"
+          sortable
+          key="deptname"
+          prop="deptname"
           :show-overflow-tooltip="true"
         />
         <el-table-column
           label="濮撳悕"
-          width="100"
-          align="center"
-          sortable
-          key="userName"
-          prop="userName"
-          :show-overflow-tooltip="true"
-        />
-        <el-table-column
-          label="骞撮緞"
           align="center"
           key="age"
           prop="age"
           width="120"
         />
         <el-table-column
-          label="璋冩煡妯℃澘"
+          label="鑱旂郴鐢佃瘽"
           align="center"
-          key="types"
-          prop="types"
+          key="phone"
+          prop="phone"
         />
         <el-table-column
-          label="璋冩煡绫诲瀷"
+          label="鐪熷疄鎬�(20)"
           align="center"
-          key="types"
-          prop="types"
+          key="authenticity"
+          prop="authenticity"
         />
         <el-table-column
-          label="璋冩煡鍐呭"
+          label="涓�鍛ㄥ唴瀹屾垚(20)"
           align="center"
-          key="nickName"
-          prop="nickName"
+          key="weekFinish"
+          prop="weekFinish"
         />
         <el-table-column
-          label="浣忛櫌鐥呭尯"
+          label="瑙勮寖鎬�(10)"
           align="center"
-          key="nickName"
-          prop="nickName"
+          key="standard"
+          prop="standard"
         />
         <el-table-column
-          label="搴婂彿"
+          label="鍙婃椂鎬�(10)"
           align="center"
-          key="nickName"
-          prop="nickName"
+          key="timeliness"
+          prop="timeliness"
         />
         <el-table-column
-          label="涓绘不鍖荤敓"
+          label="瀹f暀鎯呭喌(10)"
           align="center"
-          key="nickName"
-          prop="nickName"
+          key="library"
+          prop="library"
         />
         <el-table-column
-          label="绠″簥鎶ゅ+"
+          label="鐜婊℃剰搴�(10)"
           align="center"
-          key="nickName"
-          prop="nickName"
+          key="environment"
+          prop="environment"
         />
 
         <el-table-column
-          label="鎵ц鐘舵��"
+          label="鍖荤敓婊℃剰搴�(10)"
           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="璇婃柇"
-          align="center"
-          key="topicnumberaa"
-          prop="topicnumberaa"
-          sortable
-          width="120"
-          :show-overflow-tooltip="true"
-        />
+          key="doctorSatisfaction"
+          prop="doctorSatisfaction"
 
+        />
         <el-table-column
-          label="鍏ラ櫌鏃堕棿"
+          label="鎶ゅ+婊℃剰搴�(10)"
+          align="center"
+          key="nurseSatisfaction"
+          prop="nurseSatisfaction"
           sortable
-          align="center"
-          prop="createTime"
-          width="160"
-        >
-          <template slot-scope="scope">
-            <span>{{ formatTime(scope.row.createTime) }}</span>
-          </template>
-        </el-table-column>
+
+        />
         <el-table-column
-          label="浠诲姟璇︽儏"
+          label="鎬诲垎"
           align="center"
-          width="200"
-          class-name="small-padding fixed-width"
-        >
-          <template slot-scope="scope">
-            <el-button
-              size="medium"
-              type="text"
-              @click="handleUpdate(scope.row)"
-              v-hasPermi="['system:user:edit']"
-              ><span class="button-xq"
-                ><i class="el-icon-s-data"></i>璇︽儏</span
-              ></el-button
-            >
-            <el-button
-              size="medium"
-              type="text"
-              @click="handleUpdate(scope.row)"
-              v-hasPermi="['system:user:edit']"
-              ><span class="button-bb"
-                ><i class="el-icon-s-order"></i>鎶ヨ〃</span
-              ></el-button
-            >
-            <el-button
-              size="medium"
-              type="text"
-              @click="handleUpdate(scope.row)"
-              v-hasPermi="['system:user:edit']"
-              ><span class="button-sc"
-                ><i class="el-icon-delete"></i>鍒犻櫎</span
-              ></el-button
-            >
-          </template>
-        </el-table-column>
+          key="total"
+          prop="total"
+          sortable
+        />
       </el-table>
 
       <pagination
@@ -350,14 +303,11 @@
 
 <script>
 import {
-  listUser,
-  getUser,
-  delUser,
-  addUser,
-  updateUser,
-  resetUserPwd,
+  listsatisfaction,
+  delsatisfaction,
+  updatesatisfaction,
   changeUserStatus,
-} from "@/api/system/user";
+} from "@/api/AiCentre/index";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 
@@ -427,56 +377,6 @@
       list: [],
       loading: false,
       states: [
-        "Alabama",
-        "Alaska",
-        "Arizona",
-        "Arkansas",
-        "California",
-        "Colorado",
-        "Connecticut",
-        "Delaware",
-        "Florida",
-        "Georgia",
-        "Hawaii",
-        "Idaho",
-        "Illinois",
-        "Indiana",
-        "Iowa",
-        "Kansas",
-        "Kentucky",
-        "Louisiana",
-        "Maine",
-        "Maryland",
-        "Massachusetts",
-        "Michigan",
-        "Minnesota",
-        "Mississippi",
-        "Missouri",
-        "Montana",
-        "Nebraska",
-        "Nevada",
-        "New Hampshire",
-        "New Jersey",
-        "New Mexico",
-        "New York",
-        "North Carolina",
-        "North Dakota",
-        "Ohio",
-        "Oklahoma",
-        "Oregon",
-        "Pennsylvania",
-        "Rhode Island",
-        "South Carolina",
-        "South Dakota",
-        "Tennessee",
-        "Texas",
-        "Utah",
-        "Vermont",
-        "Virginia",
-        "Washington",
-        "West Virginia",
-        "Wisconsin",
-        "Wyoming",
       ],
       pickerOptions: {
         disabledDate(time) {
@@ -610,7 +510,7 @@
     /** 鏌ヨ褰卞儚闅忚鍒楄〃 */
     getList() {
       this.loading = true;
-      listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then(
+      listsatisfaction(this.topqueryParams).then(
         (response) => {
           this.userList = response.rows;
           this.total = response.total;
@@ -635,21 +535,6 @@
       } else {
         this.options = [];
       }
-    },
-    // 褰卞儚闅忚鐘舵�佷慨鏀�
-    handleStatusChange(row) {
-      let text = row.status === "0" ? "鍚敤" : "鍋滅敤";
-      this.$modal
-        .confirm('纭瑕�"' + text + '""' + row.userName + '"鐢ㄦ埛鍚楋紵')
-        .then(function () {
-          return changeUserStatus(row.userId, row.status);
-        })
-        .then(() => {
-          this.$modal.msgSuccess(text + "鎴愬姛");
-        })
-        .catch(function () {
-          row.status = row.status === "0" ? "1" : "0";
-        });
     },
     // 鍙栨秷鎸夐挳
     cancel() {
@@ -721,43 +606,13 @@
         path: "/Intelligentcenter/satisfaction/particulars",
         query: { type: this.tasktopic },
       });
-      // getUser().then((response) => {
-      //   this.postOptions = response.posts;
-      //   this.roleOptions = response.roles;
-      //   this.title = "鏂板褰卞儚闅忚";
-      //   this.form.password = this.initPassword;
-      // });
+
     },
     /** 淇敼鎸夐挳鎿嶄綔 */
     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 = "";
-      });
-    },
-    /** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */
-    handleResetPwd(row) {
-      this.$prompt('璇疯緭鍏�"' + row.userName + '"鐨勬柊瀵嗙爜', "鎻愮ず", {
-        confirmButtonText: "纭畾",
-        cancelButtonText: "鍙栨秷",
-        closeOnClickModal: false,
-        inputPattern: /^.{5,20}$/,
-        inputErrorMessage: "鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿",
-      })
-        .then(({ value }) => {
-          resetUserPwd(row.userId, value).then((response) => {
-            this.$modal.msgSuccess("淇敼鎴愬姛锛屾柊瀵嗙爜鏄細" + value);
-          });
-        })
-        .catch(() => {});
+
     },
 
     /** 鎻愪氦鎸夐挳 */
@@ -765,14 +620,8 @@
       this.$refs["form"].validate((valid) => {
         if (valid) {
           if (this.form.userId != undefined) {
-            updateUser(this.form).then((response) => {
+            updatesatisfaction(this.form).then((response) => {
               this.$modal.msgSuccess("淇敼鎴愬姛");
-              this.open = false;
-              this.getList();
-            });
-          } else {
-            addUser(this.form).then((response) => {
-              this.$modal.msgSuccess("鏂板鎴愬姛");
               this.open = false;
               this.getList();
             });
@@ -786,7 +635,7 @@
       this.$modal
         .confirm('鏄惁纭鍒犻櫎鐢ㄦ埛缂栧彿涓�"' + userIds + '"鐨勬暟鎹」锛�')
         .then(function () {
-          return delUser(userIds);
+          return delsatisfaction(userIds);
         })
         .then(() => {
           this.getList();

--
Gitblit v1.9.3