From 245a9200ddaa5c2a9ab9f6a68969527bb121ec2f Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 04 七月 2024 13:34:37 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/PatientChart.vue | 2243 +++++++++++++++++++++++++++---------------------------
 src/permission.js                          |    3 
 src/views/outsideChainxj.vue               |  185 ++++
 src/assets/images/chainbackground1.jpg     |    0 
 src/views/patient/patient/outpatient.vue   |    1 
 src/router/index.js                        |   10 
 6 files changed, 1,313 insertions(+), 1,129 deletions(-)

diff --git a/src/assets/images/chainbackground1.webp b/src/assets/images/chainbackground1.jpg
similarity index 100%
rename from src/assets/images/chainbackground1.webp
rename to src/assets/images/chainbackground1.jpg
Binary files differ
diff --git a/src/permission.js b/src/permission.js
index 742cee5..7d22d34 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -8,8 +8,7 @@
 
 NProgress.configure({ showSpinner: false })
 
-const whiteList = ['/login', '/auth-redirect', '/bind', '/register', '/outsideChain']
-
+const whiteList = ['/login', '/auth-redirect', '/bind', '/register', '/outsideChain','/outsideChainwt','/outsideChainxj']
 router.beforeEach((to, from, next) => {
   NProgress.start()
   if (getToken()) {
diff --git a/src/router/index.js b/src/router/index.js
index d6cc56b..9f8e92d 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -52,6 +52,16 @@
     hidden: true
   },
   {
+    path: '/outsideChainwt',
+    component: () => import('@/views/outsideChainwt'),
+    hidden: true
+  },
+  {
+    path: '/outsideChainxj',
+    component: () => import('@/views/outsideChainxj'),
+    hidden: true
+  },
+  {
     path: '/previews',
     component: () => import('@/views/previews'),
     hidden: true
diff --git a/src/views/outsideChainxj.vue b/src/views/outsideChainxj.vue
new file mode 100644
index 0000000..0e19559
--- /dev/null
+++ b/src/views/outsideChainxj.vue
@@ -0,0 +1,185 @@
+<template>
+  <div class="questionnaire">
+    <div class="CONTENT">
+      <div class="title">鏆戞湡涓�鍙峰鏁�</div>
+      <div class="preview-left">
+        <!-- 鍗曢�� -->
+        <div
+          class="topic-dev"
+          v-for="(item, index) in questionList"
+          :key="item.aaa"
+        >
+          <div class="dev-text">
+            {{ index + 1 }}銆�<span>{{ item.questionText }}</span>
+          </div>
+
+          <div class="dev-xx" v-if="item.valueType == 1">
+            <el-radio-group v-model="item.asrtext">
+              <el-radio
+                v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
+                :key="items.id"
+                :label="items.targetvalue"
+                >{{ items.targetvalue }}</el-radio
+              >
+            </el-radio-group>
+          </div>
+          <div v-else>
+            <el-input
+              type="textarea"
+              placeholder="璇疯緭鍏ュ唴瀹�"
+              v-model.sync="item.asrtext"
+              :rows="2"
+            />
+          </div>
+        </div>
+      </div>
+      <el-form :model="formData" label-width="80px">
+        <el-form-item>
+          <el-button type="primary" @click="submitForm">纭鏌ョ湅</el-button>
+        </el-form-item>
+      </el-form>
+    </div>
+  </div>
+</template>
+
+<script>
+import {
+  getExternalfollowup,
+  SetsaveQuestionAnswer,
+} from "@/api/AiCentre/index";
+import JSEncrypt from "jsencrypt";
+export default {
+  data() {
+    return {
+      taskid: 355,
+      patid: 265823,
+      questionList: null,
+      // 鍓嶇鍏挜
+      publicKey:
+        "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKR0yHv0rbJWQE+Sc7/FwpW66qMd9qX2k6z+SDgkSdxWh/1GbBoAP7bDQQRF6vXmoKsD2ya42H6XRLSDXAoayuMCAwEAAQ== ",
+      // 鍚庣绉侀挜
+      privateKey:
+        " MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAtDOpbUQhcEoYy77agRhIHmAzs7H+KHJhN56gTTI9fWq23j77nI055MFV3oQQziIrNUTNaPpEQhZXBpI0+f9K9QIDAQABAkB3n0fcWfrcoMN/FU3VnrnZOEF6CzFNxkgU9P8y36QECWKZ9JhYQkNpKrMC9oXlN3VSaRigV7B+L/I/a0Rs1W+tAiEA4jx7xcXJ4y4BNwAmVHt6NNiEkzIwWnwC/0qsEu8NsOsCIQDL6MMn1D2uznC6OuOWpxDCkBh1JL1NzZTZeH2G+hj7nwIgKGAC9tjFnvWm4dn0/T7MIIJDpsFeP8fCAS2iZ/6hwuECIAS/eLvWr1EAsZNEh8QcQ8GkBU3E+ztyjAK8UX/xFt/VAiBf79/1tDErX4/DChecM8w3c3DhbBcjuE3fHZn7p6/UKg==",
+      formData: {
+        question1: "",
+        question2: "",
+        question3: "",
+      },
+    };
+  },
+
+  created() {
+    this.getQuestionnaire();
+  },
+  methods: {
+    // 鑾峰彇鏁版嵁
+    getQuestionnaire() {
+      let taskid = this.$route.query.param1;
+      let patid = this.$route.query.param2;
+      // let taskid =
+      //   "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw==";
+      // let patid =
+      //   "CVk0j8O86AeCqhV5WPsBBYDg9fec0wDoDlP9imYK4wDBNIkxywZzMJEGlPagOxnq6qr2WYZo0U8MUGWRGnq8ZA==";
+      this.taskid = this.decrypt(taskid);
+      this.patid = this.decrypt(patid);
+
+      // this.$modal.msgSuccess("鐢ㄦ埛id涓�" + this.patid);
+      // this.$modal.msgSuccess("浠诲姟id涓�" + this.taskid);
+      let taskids = this.encrypt(this.taskid);
+      let patids = this.encrypt(this.patid);
+      getExternalfollowup({ param1: taskids, param2: patids }).then((res) => {
+        if (res.code == 200) {
+          this.questionList = res.rows;
+        }
+      });
+    },
+    // 鍔犲瘑鍑芥暟
+    encrypt(txt) {
+      const encryptor = new JSEncrypt();
+      encryptor.setPublicKey(this.publicKey); // 璁剧疆鍏挜
+      return encryptor.encrypt(txt); // 瀵规暟鎹繘琛屽姞瀵�
+    },
+
+    // 瑙e瘑鍑芥暟
+    decrypt(txt) {
+      const encryptor = new JSEncrypt();
+      encryptor.setPrivateKey(this.privateKey); // 璁剧疆绉侀挜
+      return encryptor.decrypt(txt); // 瀵规暟鎹繘琛岃В瀵�
+    },
+    // 鎻愪氦
+    submitForm() {
+      // 鎻愪氦琛ㄥ崟閫昏緫
+      console.log(this.questionList);
+      let form = {
+        param1: this.encrypt(this.taskid),
+        param2: this.encrypt(this.patid),
+        ivrTaskcalldetailList: [],
+      };
+      this.questionList.forEach((item) => {
+        let optionarr = [];
+        item.ivrLibaScriptTargetoptionList.forEach((option) => {
+          optionarr.push(option.targetvalue);
+        });
+        let ivrTaskcalldetail = {
+          asrtext: item.asrtext,
+          valueType: item.valueType,
+          questiontext: item.questionText,
+          targetoptions: optionarr.join(","),
+        };
+        form.ivrTaskcalldetailList.push(ivrTaskcalldetail);
+      });
+      console.log(form, "form");
+
+      SetsaveQuestionAnswer(form).then((res) => {
+        if (res.code == 200) {
+          this.$modal.msgSuccess("鎻愪氦鎴愬姛");
+        }
+      });
+      // 鍙互灏嗘暟鎹彁浜ゅ埌鍚庣鎴栬�呰繘琛屽叾浠栧鐞�
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.questionnaire {
+  // background-image: url("../assets/images/chainbackground.jpg");
+  // background-repeat: no-repeat;
+  // background-position: center center;
+  // background-size: cover;
+  // height: 100vh;
+  background-image: url("../assets/images/chainbackground1.jpg");
+  background-size: cover;
+  background-attachment: fixed; /* 淇濇寔鑳屾櫙鍥哄畾 */
+  background-position: center;
+  font-family: Arial, sans-serif;
+  min-height: 100vh;
+  margin: 0;
+  padding: 0;
+  .CONTENT {
+    padding: 10px;
+    .title {
+      font-size: 22px;
+      font-weight: bold;
+      margin-bottom: 20px;
+      text-align: center;
+    }
+  }
+}
+.preview-left {
+  margin: 20px;
+  //   margin: 20px;
+  padding: 30px;
+  // background: #ffff;
+  border: 1px solid #dcdfe6;
+  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
+    0 0 6px 0 rgba(0, 0, 0, 0.04);
+  .topic-dev {
+    margin-bottom: 25px;
+    font-size: 20px !important;
+    .dev-text {
+      margin-bottom: 10px;
+    }
+  }
+}
+</style>
diff --git a/src/views/patient/patient/PatientChart.vue b/src/views/patient/patient/PatientChart.vue
index 2aa3881..a7fc6f3 100644
--- a/src/views/patient/patient/PatientChart.vue
+++ b/src/views/patient/patient/PatientChart.vue
@@ -1,1152 +1,1141 @@
 <template>
-    <div class="Questionnairemanagement">
-      <!-- 鍙充晶鏁版嵁 -->
-  
-          <el-row :gutter="20">
-            <!--鐢ㄦ埛鏁版嵁-->
-            <el-col :span="24" :xs="24">
-              <el-form
-                :model="queryParams"
-                ref="queryForm"
-                size="small"
-                :inline="true"
-                v-show="showSearch"
-                label-width="98px"
+  <div class="app-container">
+    <!-- 鍙充晶鏁版嵁 -->
+    <el-row :gutter="20">
+      <!--鐢ㄦ埛鏁版嵁-->
+      <el-col :span="24" :xs="24">
+        <el-form
+          :model="queryParams"
+          ref="queryForm"
+          size="small"
+          :inline="true"
+          v-show="showSearch"
+          label-width="98px"
+        >
+          <el-form-item label="闄㈠尯" prop="userName">
+            <el-select v-model="queryParams.value1" placeholder="璇烽�夋嫨">
+              <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value"
               >
-                <el-form-item label="闄㈠尯" prop="userName">
-                  <el-select v-model="queryParams.value1" placeholder="璇烽�夋嫨">
-                    <el-option
-                      v-for="item in options"
-                      :key="item.value"
-                      :label="item.label"
-                      :value="item.value"
-                    >
-                    </el-option>
-                  </el-select>
-                </el-form-item>
-                <el-form-item label="绉戝/鐥呭尯" prop="userName">
-                  <el-select v-model="queryParams.value2" placeholder="璇烽�夋嫨">
-                    <el-option
-                      v-for="item in options"
-                      :key="item.value"
-                      :label="item.label"
-                      :value="item.value"
-                    >
-                    </el-option>
-                  </el-select>
-                </el-form-item>
-                <el-form-item
-                  label-width="138px"
-                  label="涓绘不鍖荤敓"
-                  prop="userName"
-                >
-                  <el-select v-model="queryParams.value3" placeholder="璇烽�夋嫨">
-                    <el-option
-                      v-for="item in options"
-                      :key="item.value"
-                      :label="item.label"
-                      :value="item.value"
-                    >
-                    </el-option>
-                  </el-select>
-                </el-form-item>
-                <el-form-item label="鍏ラ櫌鏃ユ湡" prop="userName">
-                  <el-date-picker
-                    v-model="queryParams.valuetime1"
-                    align="right"
-                    type="date"
-                    placeholder="閫夋嫨鏃ユ湡"
-                  >
-                  </el-date-picker>
-                </el-form-item>
-                <el-form-item label="鍑洪櫌鏃ユ湡" prop="departuretime">
-                  <el-date-picker
-                    v-model="queryParams.departuretime"
-                    align="right"
-                    type="date"
-                    placeholder="閫夋嫨鏃ユ湡"
-                  >
-                  </el-date-picker>
-                </el-form-item>
-                <el-form-item label="灏辫瘖缂栧彿" prop="number">
-                  <el-input
-                    v-model="queryParams.number"
-                    placeholder="璇疯緭鍏ョ紪鍙�"
-                    maxlength="30"
-                  />
-                </el-form-item>
-                <el-form-item label="濮撳悕" prop="name">
-                  <el-input
-                    v-model="queryParams.name"
-                    placeholder="璇疯緭鍏ュ鍚�"
-                    maxlength="30"
-                  />
-                </el-form-item>
-  
-                <el-form-item>
-                  <el-button
-                    type="primary"
-                    icon="el-icon-search"
-                    size="medium"
-                    @click="handleQuery"
-                    >鎼滅储</el-button
-                  >
-                  <el-button
-                    icon="el-icon-refresh"
-                    size="medium"
-                    @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="medium"
-                    @click="handleAdd"
-                    v-hasPermi="['system:user:add']"
-                    >鏂板</el-button
-                  >
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button
-                    type="success"
-                    plain
-                    icon="el-icon-edit"
-                    size="medium"
-                    :disabled="single"
-                    @click="handleUpdate"
-                    v-hasPermi="['system:user:edit']"
-                    >淇敼</el-button
-                  >
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button
-                    type="danger"
-                    plain
-                    icon="el-icon-delete"
-                    size="medium"
-                    :disabled="multiple"
-                    @click="handleDelete"
-                    v-hasPermi="['system:user:remove']"
-                    >鍒犻櫎</el-button
-                  >
-                </el-col>
-                <el-col :span="6">
-                  <div class="documentf">
-                    <div class="document">
-                      <el-button
-                        type="info"
-                        plain
-                        icon="el-icon-upload2"
-                        size="medium"
-                        @click="handleImport"
-                        v-hasPermi="['system:user:import']"
-                        >瀵煎叆</el-button
-                      >
-                    </div>
-                    <div class="document">
-                      <el-button
-                        type="warning"
-                        plain
-                        icon="el-icon-download"
-                        size="medium"
-                        @click="handleExport"
-                        v-hasPermi="['system:user:export']"
-                        >瀵煎嚭</el-button
-                      >
-                    </div>
-                  </div>
-                </el-col>
-                <!-- <el-col :span="1.5"> </el-col> -->
-              </el-row>
-              <el-table
-                v-loading="loading"
-                :data="userList"
-                @selection-change="handleSelectionChange"
+              </el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label="绉戝/鐥呭尯" prop="userName">
+            <el-select v-model="queryParams.value2" placeholder="璇烽�夋嫨">
+              <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value"
               >
-                <el-table-column type="selection" width="50" align="center" />
-                <el-table-column
-                  fixed
-                  label="搴忓彿"
-                  align="center"
-                  key="patid"
-                  prop="patid"
-                />
-                <el-table-column
-                  fixed
-                  label="濮撳悕"
-                  align="center"
-                  key="name"
-                  prop="name"
-                />
-                <el-table-column label="鎬у埆" align="center" key="sex" prop="sex">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.sex == 1 ? "鐢�" : "濂�" }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column
-                  label="骞撮緞"
-                  align="center"
-                  key="age"
-                  prop="age"
-                  width="120"
-                />
-                <el-table-column
-                  label="鍑虹敓骞存湀"
-                  align="center"
-                  key="birthdate"
-                  prop="birthdate"
-                  width="160"
-                >
-                </el-table-column>
-                <el-table-column
-                  label="灞呬綇鍦�"
-                  align="center"
-                  key="placeOfResidence"
-                  prop="placeOfResidence"
-                  width="120"
-                />
-                <el-table-column
-                  label="鎮h�呮爣绛�"
-                  align="center"
-                  key="tagList"
-                  prop="tagList"
-                  width="160"
-                  :show-overflow-tooltip="true"
-                >
-                  <template slot-scope="scope">
-                    <span v-for="item in scope.row.tagList"
-                      >{{ item.tagname }}
-                    </span>
-                  </template>
-                </el-table-column>
-                <el-table-column
-                  label="璇佷欢绫诲瀷"
-                  align="center"
-                  key="idcardtype"
-                  prop="idcardtype"
-                  width="120"
-                /><el-table-column
-                  label="璇佷欢鍙风爜"
-                  align="center"
-                  key="idcardno"
-                  prop="idcardno"
-                  width="190"
-                />
-  
-                <el-table-column
-                  label="鑱旂郴鏂瑰紡"
-                  align="center"
-                  key="telcode"
-                  prop="telcode"
-                  width="120"
-                />
-                <el-table-column
-                  label="寤烘。鏃ユ湡"
-                  align="center"
-                  key="createTime"
-                  prop="createTime"
-                  width="160"
-                >
-                </el-table-column>
-                <el-table-column
-                  label="鏇存柊鏃ユ湡"
-                  align="center"
-                  prop="archivetime"
-                  width="160"
-                >
-                  <template slot-scope="scope">
-                    <span>{{ parseTime(scope.row.createTime) }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column
-                  fixed="right"
-                  label="鎿嶄綔"
-                  align="center"
-                  width="190"
-                  class-name="small-padding fixed-width"
-                >
-                  <template slot-scope="scope">
-                    <el-button
-                      size="medium"
-                      type="text"
-                      @click="
-                        $router.push({
-                          path: '/patient/patient/profile/',
-                          query: { id: scope.row.patid },
-                        })
-                      "
-                      v-hasPermi="['system:user:edit']"
-                      ><span class="button-textsc"
-                        ><i class="el-icon-zoom-in"></i>鏌ョ湅</span
-                      ></el-button
-                    >
-                    <el-button
-                      size="medium"
-                      type="text"
-                      @click="handleUpdate(scope.row)"
-                      v-hasPermi="['system:user:edit']"
-                      ><span class="button-textxga"
-                        ><i class="el-icon-edit"></i>淇敼</span
-                      ></el-button
-                    >
-                    <el-button
-                      size="medium"
-                      type="text"
-                      @click="Distributionservice(scope.row)"
-                      v-hasPermi="['system:user:edit']"
-                      ><span class="button-textxg"
-                        ><i class="el-icon-menu"></i>鏈嶅姟</span
-                      ></el-button
-                    >
-                  </template>
-                </el-table-column>
-              </el-table>
-  
-              <pagination
-                v-show="total > 0"
-                :total="total"
-                :page.sync="queryParams.pageNum"
-                :limit.sync="queryParams.pageSize"
-                @pagination="getList"
-              />
-            </el-col>
-          </el-row>
-  
-      <!-- 娣诲姞鎴栦慨鏀圭敤鎴烽厤缃璇濇 -->
-      <el-dialog
-        :title="amendtag ? '淇敼鎮h�呬俊鎭�' : '鏂板鎮h��'"
-        :visible.sync="Labelchange"
-        width="900px"
-      >
-        <el-form ref="form" :model="form" :rules="rules" label-width="100px">
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="濮撳悕" prop="name">
-                <el-input
-                  v-model="form.name"
-                  placeholder="璇疯緭鍏ュ鍚�"
-                  maxlength="30"
-                />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="鎬у埆" prop="sex">
-                <el-select v-model="form.sex" placeholder="璇烽�夋嫨鎬у埆">
-                  <el-option
-                    v-for="dict in dict.type.sys_user_sex"
-                    :key="dict.value"
-                    :label="dict.label"
-                    :value="dict.value"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="骞撮緞" prop="age">
-                <el-input
-                  v-model="form.age"
-                  placeholder="璇疯緭鍏ュ勾榫�"
-                  maxlength="30"
-                />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="姘戞棌" prop="name">
-                <el-input
-                  v-model="form.nation"
-                  placeholder="璇疯緭鍏ユ皯鏃�"
-                  maxlength="30"
-                />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="绫嶈疮" prop="age">
-                <el-input
-                  v-model="form.nativePlace"
-                  placeholder="璇疯緭鍏ョ睄璐�"
-                  maxlength="30"
-                />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="鑱旂郴鏂瑰紡" prop="telcode">
-                <el-input
-                  v-model="form.telcode"
-                  placeholder="璇疯緭鍏ヨ仈绯绘柟寮�"
-                  maxlength="30"
-                />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="璇佷欢绫诲瀷" prop="idcardtype">
-                <el-select v-model="form.idcardtype" placeholder="璇烽�夋嫨鎬у埆">
-                  <el-option
-                    v-for="item in paperstypes"
-                    :key="item.papersname"
-                    :label="item.papersname"
-                    :value="item.papersname"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="璇佷欢鍙�" prop="idcardno">
-                <el-input
-                  v-model="form.idcardno"
-                  placeholder="璇疯緭鍏ヨ瘉浠跺彿"
-                  maxlength="50"
-                />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="鍑虹敓鍦�" prop="idcardno">
-                <el-input
-                  v-model="form.birthplace"
-                  placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
-                  maxlength="50"
-                />
-              </el-form-item> </el-col
-            ><el-col :span="12">
-              <el-form-item label="灞呬綇鍦�" prop="idcardno">
-                <el-input
-                  v-model="form.placeOfResidence"
-                  placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
-                  maxlength="50"
-                />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="鎮h�呯被鍨�">
-                <el-select v-model="form.pattype" placeholder="璇烽�夋嫨绫诲瀷">
-                  <el-option
-                    v-for="item in Patienttype"
-                    :key="item.value"
-                    :label="item.label"
-                    :value="item.value"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="澶囨敞">
-                <el-input
-                  v-model="form.remark"
-                  type="textarea"
-                  placeholder="璇疯緭鍏ュ唴瀹�"
-                ></el-input>
-              </el-form-item>
-            </el-col>
-          </el-row>
+              </el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label-width="138px" label="涓绘不鍖荤敓" prop="userName">
+            <el-select v-model="queryParams.value3" placeholder="璇烽�夋嫨">
+              <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value"
+              >
+              </el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label="鍏ラ櫌鏃ユ湡" prop="userName">
+            <el-date-picker
+              v-model="queryParams.valuetime1"
+              align="right"
+              type="date"
+              placeholder="閫夋嫨鏃ユ湡"
+            >
+            </el-date-picker>
+          </el-form-item>
+          <el-form-item label="鍑洪櫌鏃ユ湡" prop="departuretime">
+            <el-date-picker
+              v-model="queryParams.departuretime"
+              align="right"
+              type="date"
+              placeholder="閫夋嫨鏃ユ湡"
+            >
+            </el-date-picker>
+          </el-form-item>
+          <el-form-item label="灏辫瘖缂栧彿" prop="number">
+            <el-input
+              v-model="queryParams.number"
+              placeholder="璇疯緭鍏ョ紪鍙�"
+              maxlength="30"
+            />
+          </el-form-item>
+          <el-form-item label="濮撳悕" prop="name">
+            <el-input
+              v-model="queryParams.name"
+              placeholder="璇疯緭鍏ュ鍚�"
+              maxlength="30"
+            />
+          </el-form-item>
+
+          <el-form-item>
+            <el-button
+              type="primary"
+              icon="el-icon-search"
+              size="medium"
+              @click="handleQuery"
+              >鎼滅储</el-button
+            >
+            <el-button icon="el-icon-refresh" size="medium" @click="resetQuery"
+              >閲嶇疆</el-button
+            >
+          </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>
-  
-      <!-- 鐢ㄦ埛瀵煎叆瀵硅瘽妗� -->
-      <el-dialog
-        :title="upload.title"
-        :visible.sync="upload.open"
-        width="70%"
-        append-to-body
-      >
-        <el-steps :active="dractive" simple>
-          <el-step title="涓婁紶瀵煎叆鏂囦欢" icon="el-icon-upload"></el-step>
-          <el-step title="瀵煎叆妫�鏌�" icon="el-icon-picture"></el-step>
-          <el-step title="瀵煎叆缁撴灉" icon="el-icon-picture"></el-step>
-        </el-steps>
-        <!-- 涓婁紶瀵煎叆鏂囦欢 -->
-        <div class="download" v-if="dractive == 1">
-          <el-upload
-            class="upload-demo"
-            ref="upload"
-            :limit="1"
-            accept=".xlsx, .xls"
-            :headers="upload.headers"
-            :action="upload.url + '?updateSupport=' + upload.updateSupport"
-            :disabled="upload.isUploading"
-            :on-progress="handleFileUploadProgress"
-            :on-success="handleFileSuccess"
-            :auto-upload="false"
-            drag
-          >
-            <i class="el-icon-upload"></i>
-            <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div>
-            <div class="el-upload__tip text-center" slot="tip">
-              <div class="el-upload__tip" slot="tip">
-                <el-checkbox v-model="upload.updateSupport" />
-                鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹�
+
+        <el-row :gutter="10" class="mb8">
+          <el-col :span="1.5">
+            <el-button
+              type="primary"
+              plain
+              icon="el-icon-plus"
+              size="medium"
+              @click="handleAdd"
+              v-hasPermi="['system:user:add']"
+              >鏂板</el-button
+            >
+          </el-col>
+          <el-col :span="1.5">
+            <el-button
+              type="success"
+              plain
+              icon="el-icon-edit"
+              size="medium"
+              :disabled="single"
+              @click="handleUpdate"
+              v-hasPermi="['system:user:edit']"
+              >淇敼</el-button
+            >
+          </el-col>
+          <el-col :span="1.5">
+            <el-button
+              type="danger"
+              plain
+              icon="el-icon-delete"
+              size="medium"
+              :disabled="multiple"
+              @click="handleDelete"
+              v-hasPermi="['system:user:remove']"
+              >鍒犻櫎</el-button
+            >
+          </el-col>
+          <el-col :span="6">
+            <div class="documentf">
+              <div class="document">
+                <el-button
+                  type="info"
+                  plain
+                  icon="el-icon-upload2"
+                  size="medium"
+                  @click="handleImport"
+                  v-hasPermi="['system:user:import']"
+                  >瀵煎叆</el-button
+                >
               </div>
-              <span>浠呭厑璁稿鍏ls銆亁lsx鏍煎紡鏂囦欢銆�</span>
-              <el-link
-                type="primary"
-                :underline="false"
-                style="font-size: 24px; vertical-align: baseline"
-                @click="importTemplate"
-                >涓嬭浇妯℃澘
-              </el-link>
-              <el-link
-                type="success"
-                :underline="false"
-                style="font-size: 24px; vertical-align: baseline"
-                href="http://m.qpic.cn/psc?/V50ZTolo1AIhq00dqrJP2169QM2VHGTU/ruAMsa53pVQWN7FLK88i5qfmCJclyMduqqL6kjE4h7TXDAjimVtmLmTyGVfF4qlkyOISsYQ4Mxx705X2tkXEIUPrfCS4L4yK.f11SmO8Tq0!/b&bo=twb0AgAAAAADB2U!&rf=viewer_4"
-                target="_blank"
-              >
-                鏌ョ湅妯$増</el-link
-              >
+              <div class="document">
+                <el-button
+                  type="warning"
+                  plain
+                  icon="el-icon-download"
+                  size="medium"
+                  @click="handleExport"
+                  v-hasPermi="['system:user:export']"
+                  >瀵煎嚭</el-button
+                >
+              </div>
             </div>
-          </el-upload>
-        </div>
-        <!-- 瀵煎叆妫�鏌� -->
-        <div class="uploading" v-else-if="dractive == 2">
-          <el-table :data="uploadingData" style="width: 100%">
-            <el-table-column prop="serial" label="搴忓彿"> </el-table-column>
-            <el-table-column prop="name" label="濮撳悕"> </el-table-column>
-            <el-table-column prop="sex" label="鎬у埆"> </el-table-column>
-            <el-table-column prop="certificate" label="璇佷欢绫诲瀷">
-            </el-table-column>
-            <el-table-column prop="certificatenum" label="璇佷欢鍙风爜">
-            </el-table-column>
-            <el-table-column prop="goday" label="鍑虹敓鏃ユ湡"> </el-table-column>
-            <el-table-column prop="menum" label="鏈汉鑱旂郴鏂瑰紡"> </el-table-column>
-            <el-table-column prop="younum" label="浜插睘鑱旂郴鏂瑰紡">
-            </el-table-column>
-            <el-table-column prop="tag" label="鎮h�呮爣绛�"> </el-table-column>
-            <el-table-column prop="erry" label="閿欒鍘熷洜"> </el-table-column>
-            <el-table-column prop="opinion" label="澶勭悊鎰忚"> </el-table-column>
-          </el-table>
-          <pagination
-            v-show="total > 0"
-            :total="total"
-            :page.sync="queryParams.pageNum"
-            :limit.sync="queryParams.pageSize"
-            @pagination="geterryList"
+          </el-col>
+          <!-- <el-col :span="1.5"> </el-col> -->
+        </el-row>
+
+        <el-table
+          v-loading="loading"
+          :data="userList"
+          @selection-change="handleSelectionChange"
+        >
+          <el-table-column type="selection" width="50" align="center" />
+          <el-table-column
+            fixed
+            label="搴忓彿"
+            align="center"
+            key="patid"
+            prop="patid"
           />
-        </div>
-        <!-- 瀹屾垚 -->
-        <div class="drexamine" v-else-if="dractive == 3">
-          <img src="@/assets/images/瀵煎叆.png" />
-          <p>瀵煎叆鎮h�呮垚鍔燂紒</p>
-          <p>
-            鏈
-            <span style="color: #158bb8; font-size: 20px">{{
-              ImportQuantity
-            }}</span>
-            鏉℃暟鎹垚鍔熷鍏�<span style="color: #72d3a9; font-size: 20px">{{
-              ImportQuantity
-            }}</span
-            >浣嶆偅鑰�
-          </p>
-        </div>
-        <div v-if="dractive == 3">
-          <el-table :data="uploadingData" style="width: 100%">
-            <el-table-column prop="serial" label="搴忓彿"> </el-table-column>
-            <el-table-column prop="name" label="濮撳悕"> </el-table-column>
-            <el-table-column prop="sex" label="鎬у埆"> </el-table-column>
-            <el-table-column prop="certificate" label="璇佷欢绫诲瀷">
-            </el-table-column>
-            <el-table-column prop="certificatenum" label="璇佷欢鍙风爜">
-            </el-table-column>
-            <el-table-column prop="goday" label="鍑虹敓鏃ユ湡"> </el-table-column>
-            <el-table-column prop="menum" label="鏈汉鑱旂郴鏂瑰紡"> </el-table-column>
-            <el-table-column prop="younum" label="浜插睘鑱旂郴鏂瑰紡">
-            </el-table-column>
-            <el-table-column prop="tag" label="鎮h�呮爣绛�"> </el-table-column>
-            <el-table-column prop="erry" label="閿欒鍘熷洜"> </el-table-column>
-            <el-table-column prop="opinion" label="澶勭悊鎰忚"> </el-table-column>
-          </el-table>
-          <pagination
-            v-show="total > 0"
-            :total="total"
-            :page.sync="queryParams.pageNum"
-            :limit.sync="queryParams.pageSize"
-            @pagination="geterryList"
+          <el-table-column
+            fixed
+            label="濮撳悕"
+            align="center"
+            key="name"
+            prop="name"
           />
-        </div>
-  
-        <div slot="footer" class="dialog-footer" v-if="dractive == 3">
-          <!-- <el-button type="primary" @click="submitFileForm">涓嬩竴姝�</el-button> -->
-          <el-button @click="submitclose">瀹屾垚</el-button>
-          <el-button type="warning" @click="submitclose">瀵煎嚭澶辫触鏁版嵁</el-button>
-        </div>
-        <div slot="footer" v-else>
-          <el-button type="primary" @click="submitFileForm">涓嬩竴姝�</el-button>
-          <el-button @click="submitclose">鍙� 娑�</el-button>
-        </div>
-      </el-dialog>
-      <!-- 璺宠浆鏈嶅姟瀵硅瘽妗� -->
-      <el-dialog title="閫夋嫨鏈嶅姟绫诲瀷" :visible.sync="serviceVisible">
-        <el-radio-group v-model="serviceradio">
-          <el-radio :label="1">瀹f暀闅忚</el-radio>
-          <el-radio :label="2">闂ㄨ瘖鏈嶅姟</el-radio>
-          <el-radio :label="3">鍑洪櫌鏈嶅姟</el-radio>
-          <el-radio :label="4">澶嶈瘖鏈嶅姟</el-radio>
-          <el-radio :label="5">浣撴閫氱煡</el-radio>
-          <el-radio :label="6">闂嵎鏈嶅姟</el-radio>
-        </el-radio-group>
-        <div slot="footer" class="dialog-footer">
-          <el-button @click="serviceVisible = false">鍙� 娑�</el-button>
-          <el-button type="primary" @click="CreateService">鍒涘缓鏈嶅姟</el-button>
-        </div>
-      </el-dialog>
-    </div>
-  </template>
-  
-  <script>
-  import { delUser } from "@/api/system/user";
-  
-  import {
-    messagelistpatient,
-    alterpatient,
-    addpatient,
-    particularpatient,
-    deletepatient,
-    Exporterrorpatient,
-    toleadpatient,
-  } from "@/api/patient/homepage";
-  import { listtag } from "@/api/system/label";
-  import { getToken } from "@/utils/auth";
-  import Treeselect from "@riophae/vue-treeselect";
-  import "@riophae/vue-treeselect/dist/vue-treeselect.css";
-  
-  export default {
-    name: "Userhuanze",
-    dicts: ["sys_normal_disable", "sys_user_sex"],
-    components: { Treeselect },
-    data() {
-      return {
-        // 閬僵灞�
-        loading: true,
-        // 閫変腑鏁扮粍
-        ids: [],
-        // 闈炲崟涓鐢�
-        single: true,
-        // 闈炲涓鐢�
-        multiple: true,
-        // 鏄剧ず鎼滅储鏉′欢
-        showSearch: true,
-        // 鎬绘潯鏁�
-        total: 0,
-        // 鐢ㄦ埛琛ㄦ牸鏁版嵁
-        userList: null,
-        // 寮瑰嚭灞傛爣棰�
-        title: "",
-        // 閮ㄩ棬鏍戦�夐」
-        deptOptions: undefined,
-        options: [],
-        // 鏄惁鏄剧ず寮瑰嚭灞�
+          <el-table-column label="鎬у埆" align="center" key="sex" prop="sex">
+            <template slot-scope="scope">
+              <span>{{ scope.row.sex == 1 ? "鐢�" : "濂�" }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            label="骞撮緞"
+            align="center"
+            key="age"
+            prop="age"
+            width="120"
+          />
+          <el-table-column
+            label="鍑虹敓骞存湀"
+            align="center"
+            key="birthdate"
+            prop="birthdate"
+            width="160"
+          >
+          </el-table-column>
+          <el-table-column
+            label="灞呬綇鍦�"
+            align="center"
+            key="placeOfResidence"
+            prop="placeOfResidence"
+            width="120"
+          />
+          <el-table-column
+            label="鎮h�呮爣绛�"
+            align="center"
+            key="tagList"
+            prop="tagList"
+            width="160"
+            :show-overflow-tooltip="true"
+          >
+            <template slot-scope="scope">
+              <span v-for="item in scope.row.tagList">{{ item.tagname }} </span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            label="璇佷欢绫诲瀷"
+            align="center"
+            key="idcardtype"
+            prop="idcardtype"
+            width="120"
+          /><el-table-column
+            label="璇佷欢鍙风爜"
+            align="center"
+            key="idcardno"
+            prop="idcardno"
+            width="190"
+          />
+
+          <el-table-column
+            label="鑱旂郴鏂瑰紡"
+            align="center"
+            key="telcode"
+            prop="telcode"
+            width="120"
+          />
+          <el-table-column
+            label="寤烘。鏃ユ湡"
+            align="center"
+            key="createTime"
+            prop="createTime"
+            width="160"
+          >
+          </el-table-column>
+          <el-table-column
+            label="鏇存柊鏃ユ湡"
+            align="center"
+            prop="archivetime"
+            width="160"
+          >
+            <template slot-scope="scope">
+              <span>{{ parseTime(scope.row.createTime) }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            fixed="right"
+            label="鎿嶄綔"
+            align="center"
+            width="190"
+            class-name="small-padding fixed-width"
+          >
+            <template slot-scope="scope">
+              <el-button
+                size="medium"
+                type="text"
+                @click="
+                  $router.push({
+                    path: '/patient/patient/profile/',
+                    query: { id: scope.row.patid },
+                  })
+                "
+                v-hasPermi="['system:user:edit']"
+                ><span class="button-textsc"
+                  ><i class="el-icon-zoom-in"></i>鏌ョ湅</span
+                ></el-button
+              >
+              <el-button
+                size="medium"
+                type="text"
+                @click="handleUpdate(scope.row)"
+                v-hasPermi="['system:user:edit']"
+                ><span class="button-textxga"
+                  ><i class="el-icon-edit"></i>淇敼</span
+                ></el-button
+              >
+              <el-button
+                size="medium"
+                type="text"
+                @click="Distributionservice(scope.row)"
+                v-hasPermi="['system:user:edit']"
+                ><span class="button-textxg"
+                  ><i class="el-icon-menu"></i>鏈嶅姟</span
+                ></el-button
+              >
+            </template>
+          </el-table-column>
+        </el-table>
+
+        <pagination
+          v-show="total > 0"
+          :total="total"
+          :page.sync="queryParams.pageNum"
+          :limit.sync="queryParams.pageSize"
+          @pagination="getList"
+        />
+      </el-col>
+    </el-row>
+
+    <!-- 娣诲姞鎴栦慨鏀圭敤鎴烽厤缃璇濇 -->
+    <el-dialog
+      :title="amendtag ? '淇敼鎮h�呬俊鎭�' : '鏂板鎮h��'"
+      :visible.sync="Labelchange"
+      width="900px"
+    >
+      <el-form ref="form" :model="form" :rules="rules" label-width="100px">
+        <el-row>
+          <el-col :span="8">
+            <el-form-item label="濮撳悕" prop="name">
+              <el-input
+                v-model="form.name"
+                placeholder="璇疯緭鍏ュ鍚�"
+                maxlength="30"
+              />
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="鎬у埆" prop="sex">
+              <el-select v-model="form.sex" placeholder="璇烽�夋嫨鎬у埆">
+                <el-option
+                  v-for="dict in dict.type.sys_user_sex"
+                  :key="dict.value"
+                  :label="dict.label"
+                  :value="dict.value"
+                ></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="骞撮緞" prop="age">
+              <el-input
+                v-model="form.age"
+                placeholder="璇疯緭鍏ュ勾榫�"
+                maxlength="30"
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row>
+          <el-col :span="8">
+            <el-form-item label="姘戞棌" prop="name">
+              <el-input
+                v-model="form.nation"
+                placeholder="璇疯緭鍏ユ皯鏃�"
+                maxlength="30"
+              />
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="绫嶈疮" prop="age">
+              <el-input
+                v-model="form.nativePlace"
+                placeholder="璇疯緭鍏ョ睄璐�"
+                maxlength="30"
+              />
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="鑱旂郴鏂瑰紡" prop="telcode">
+              <el-input
+                v-model="form.telcode"
+                placeholder="璇疯緭鍏ヨ仈绯绘柟寮�"
+                maxlength="30"
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row>
+          <el-col :span="12">
+            <el-form-item label="璇佷欢绫诲瀷" prop="idcardtype">
+              <el-select v-model="form.idcardtype" placeholder="璇烽�夋嫨鎬у埆">
+                <el-option
+                  v-for="item in paperstypes"
+                  :key="item.papersname"
+                  :label="item.papersname"
+                  :value="item.papersname"
+                ></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="璇佷欢鍙�" prop="idcardno">
+              <el-input
+                v-model="form.idcardno"
+                placeholder="璇疯緭鍏ヨ瘉浠跺彿"
+                maxlength="50"
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row>
+          <el-col :span="12">
+            <el-form-item label="鍑虹敓鍦�" prop="idcardno">
+              <el-input
+                v-model="form.birthplace"
+                placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
+                maxlength="50"
+              />
+            </el-form-item> </el-col
+          ><el-col :span="12">
+            <el-form-item label="灞呬綇鍦�" prop="idcardno">
+              <el-input
+                v-model="form.placeOfResidence"
+                placeholder="鍥姐�佺渷銆佸湴甯傘�佸尯鍘裤�佽閬撶瓑璇︾粏淇℃伅"
+                maxlength="50"
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row>
+          <el-col :span="24">
+            <el-form-item label="鎮h�呯被鍨�">
+              <el-select v-model="form.pattype" placeholder="璇烽�夋嫨绫诲瀷">
+                <el-option
+                  v-for="item in Patienttype"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value"
+                ></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row>
+          <el-col :span="24">
+            <el-form-item label="澶囨敞">
+              <el-input
+                v-model="form.remark"
+                type="textarea"
+                placeholder="璇疯緭鍏ュ唴瀹�"
+              ></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </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>
+
+    <!-- 鐢ㄦ埛瀵煎叆瀵硅瘽妗� -->
+    <el-dialog
+      :title="upload.title"
+      :visible.sync="upload.open"
+      width="70%"
+      append-to-body
+    >
+      <el-steps :active="dractive" simple>
+        <el-step title="涓婁紶瀵煎叆鏂囦欢" icon="el-icon-upload"></el-step>
+        <el-step title="瀵煎叆妫�鏌�" icon="el-icon-picture"></el-step>
+        <el-step title="瀵煎叆缁撴灉" icon="el-icon-picture"></el-step>
+      </el-steps>
+      <!-- 涓婁紶瀵煎叆鏂囦欢 -->
+      <div class="download" v-if="dractive == 1">
+        <el-upload
+          class="upload-demo"
+          ref="upload"
+          :limit="1"
+          accept=".xlsx, .xls"
+          :headers="upload.headers"
+          :action="upload.url + '?updateSupport=' + upload.updateSupport"
+          :disabled="upload.isUploading"
+          :on-progress="handleFileUploadProgress"
+          :on-success="handleFileSuccess"
+          :auto-upload="false"
+          drag
+        >
+          <i class="el-icon-upload"></i>
+          <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div>
+          <div class="el-upload__tip text-center" slot="tip">
+            <div class="el-upload__tip" slot="tip">
+              <el-checkbox v-model="upload.updateSupport" />
+              鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹�
+            </div>
+            <span>浠呭厑璁稿鍏ls銆亁lsx鏍煎紡鏂囦欢銆�</span>
+            <el-link
+              type="primary"
+              :underline="false"
+              style="font-size: 24px; vertical-align: baseline"
+              @click="importTemplate"
+              >涓嬭浇妯℃澘
+            </el-link>
+            <el-link
+              type="success"
+              :underline="false"
+              style="font-size: 24px; vertical-align: baseline"
+              href="http://m.qpic.cn/psc?/V50ZTolo1AIhq00dqrJP2169QM2VHGTU/ruAMsa53pVQWN7FLK88i5qfmCJclyMduqqL6kjE4h7TXDAjimVtmLmTyGVfF4qlkyOISsYQ4Mxx705X2tkXEIUPrfCS4L4yK.f11SmO8Tq0!/b&bo=twb0AgAAAAADB2U!&rf=viewer_4"
+              target="_blank"
+            >
+              鏌ョ湅妯$増</el-link
+            >
+          </div>
+        </el-upload>
+      </div>
+      <!-- 瀵煎叆妫�鏌� -->
+      <div class="uploading" v-else-if="dractive == 2">
+        <el-table :data="uploadingData" style="width: 100%">
+          <el-table-column prop="serial" label="搴忓彿"> </el-table-column>
+          <el-table-column prop="name" label="濮撳悕"> </el-table-column>
+          <el-table-column prop="sex" label="鎬у埆"> </el-table-column>
+          <el-table-column prop="certificate" label="璇佷欢绫诲瀷">
+          </el-table-column>
+          <el-table-column prop="certificatenum" label="璇佷欢鍙风爜">
+          </el-table-column>
+          <el-table-column prop="goday" label="鍑虹敓鏃ユ湡"> </el-table-column>
+          <el-table-column prop="menum" label="鏈汉鑱旂郴鏂瑰紡"> </el-table-column>
+          <el-table-column prop="younum" label="浜插睘鑱旂郴鏂瑰紡">
+          </el-table-column>
+          <el-table-column prop="tag" label="鎮h�呮爣绛�"> </el-table-column>
+          <el-table-column prop="erry" label="閿欒鍘熷洜"> </el-table-column>
+          <el-table-column prop="opinion" label="澶勭悊鎰忚"> </el-table-column>
+        </el-table>
+        <pagination
+          v-show="total > 0"
+          :total="total"
+          :page.sync="queryParams.pageNum"
+          :limit.sync="queryParams.pageSize"
+          @pagination="geterryList"
+        />
+      </div>
+      <!-- 瀹屾垚 -->
+      <div class="drexamine" v-else-if="dractive == 3">
+        <img src="@/assets/images/瀵煎叆.png" />
+        <p>瀵煎叆鎮h�呮垚鍔燂紒</p>
+        <p>
+          鏈
+          <span style="color: #158bb8; font-size: 20px">{{
+            ImportQuantity
+          }}</span>
+          鏉℃暟鎹垚鍔熷鍏�<span style="color: #72d3a9; font-size: 20px">{{
+            ImportQuantity
+          }}</span
+          >浣嶆偅鑰�
+        </p>
+      </div>
+      <div v-if="dractive == 3">
+        <el-table :data="uploadingData" style="width: 100%">
+          <el-table-column prop="serial" label="搴忓彿"> </el-table-column>
+          <el-table-column prop="name" label="濮撳悕"> </el-table-column>
+          <el-table-column prop="sex" label="鎬у埆"> </el-table-column>
+          <el-table-column prop="certificate" label="璇佷欢绫诲瀷">
+          </el-table-column>
+          <el-table-column prop="certificatenum" label="璇佷欢鍙风爜">
+          </el-table-column>
+          <el-table-column prop="goday" label="鍑虹敓鏃ユ湡"> </el-table-column>
+          <el-table-column prop="menum" label="鏈汉鑱旂郴鏂瑰紡"> </el-table-column>
+          <el-table-column prop="younum" label="浜插睘鑱旂郴鏂瑰紡">
+          </el-table-column>
+          <el-table-column prop="tag" label="鎮h�呮爣绛�"> </el-table-column>
+          <el-table-column prop="erry" label="閿欒鍘熷洜"> </el-table-column>
+          <el-table-column prop="opinion" label="澶勭悊鎰忚"> </el-table-column>
+        </el-table>
+        <pagination
+          v-show="total > 0"
+          :total="total"
+          :page.sync="queryParams.pageNum"
+          :limit.sync="queryParams.pageSize"
+          @pagination="geterryList"
+        />
+      </div>
+
+      <div slot="footer" class="dialog-footer" v-if="dractive == 3">
+        <!-- <el-button type="primary" @click="submitFileForm">涓嬩竴姝�</el-button> -->
+        <el-button @click="submitclose">瀹屾垚</el-button>
+        <el-button type="warning" @click="submitclose">瀵煎嚭澶辫触鏁版嵁</el-button>
+      </div>
+      <div slot="footer" v-else>
+        <el-button type="primary" @click="submitFileForm">涓嬩竴姝�</el-button>
+        <el-button @click="submitclose">鍙� 娑�</el-button>
+      </div>
+    </el-dialog>
+    <!-- 璺宠浆鏈嶅姟瀵硅瘽妗� -->
+    <el-dialog title="閫夋嫨鏈嶅姟绫诲瀷" :visible.sync="serviceVisible">
+      <el-radio-group v-model="serviceradio">
+        <el-radio :label="1">瀹f暀闅忚</el-radio>
+        <el-radio :label="2">闂ㄨ瘖鏈嶅姟</el-radio>
+        <el-radio :label="3">鍑洪櫌鏈嶅姟</el-radio>
+        <el-radio :label="4">澶嶈瘖鏈嶅姟</el-radio>
+        <el-radio :label="5">浣撴閫氱煡</el-radio>
+        <el-radio :label="6">闂嵎鏈嶅姟</el-radio>
+      </el-radio-group>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="serviceVisible = false">鍙� 娑�</el-button>
+        <el-button type="primary" @click="CreateService">鍒涘缓鏈嶅姟</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { delUser } from "@/api/system/user";
+
+import {
+  messagelistpatient,
+  alterpatient,
+  addpatient,
+  particularpatient,
+  deletepatient,
+  Exporterrorpatient,
+  toleadpatient,
+} from "@/api/patient/homepage";
+import { listtag } from "@/api/system/label";
+import { getToken } from "@/utils/auth";
+import Treeselect from "@riophae/vue-treeselect";
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+
+export default {
+  name: "Userhuanze",
+  dicts: ["sys_normal_disable", "sys_user_sex"],
+  components: { Treeselect },
+  data() {
+    return {
+      // 閬僵灞�
+      loading: true,
+      // 閫変腑鏁扮粍
+      ids: [],
+      // 闈炲崟涓鐢�
+      single: true,
+      // 闈炲涓鐢�
+      multiple: true,
+      // 鏄剧ず鎼滅储鏉′欢
+      showSearch: true,
+      // 鎬绘潯鏁�
+      total: 0,
+      // 鐢ㄦ埛琛ㄦ牸鏁版嵁
+      userList: null,
+      // 寮瑰嚭灞傛爣棰�
+      title: "",
+      // 閮ㄩ棬鏍戦�夐」
+      deptOptions: undefined,
+      options: [],
+      // 鏄惁鏄剧ず寮瑰嚭灞�
+      open: false,
+      // 閮ㄩ棬鍚嶇О
+      deptName: undefined,
+      // 榛樿瀵嗙爜
+      initPassword: undefined,
+      amendtag: false, //鏄惁淇敼
+      serviceVisible: false,
+      serviceradio: 1,
+      // 鏃ユ湡鑼冨洿
+      dateRange: [],
+      paperstypes: [
+        { papersname: "韬唤璇�" },
+        { papersname: "鎶ょ収" },
+        { papersname: "涓浗娓境灞呮皯韬唤璇�" },
+        { papersname: "涓浗鍙版咕灞呮皯韬唤璇�" },
+      ],
+      Patienttype: [
+        {
+          value: "1",
+          label: "浣忛櫌鎮h��",
+        },
+        {
+          value: "2",
+          label: "闂ㄨ瘖鎮h��",
+        },
+        {
+          value: "3",
+          label: "浣撴鎮h��",
+        },
+      ],
+
+      cardlist: [
+        {
+          name: "鎮h�呮�绘暟",
+          value: 123,
+        },
+        {
+          name: "鍦ㄩ櫌鎮h��",
+          value: 23,
+        },
+        {
+          name: "绂婚櫌鎮h��",
+          value: 41,
+        },
+        {
+          name: "璇婄枟鎮h��",
+          value: 56,
+        },
+        {
+          name: "绂讳笘鎮h��",
+          value: 0,
+        },
+      ],
+      // 琛ㄥ崟鍙傛暟
+      form: {
+        name: "",
+        age: "",
+        sex: "",
+        tagList: [],
+        idcardno: "",
+        telcode: "",
+        idcardtype: "",
+        relativetelcode: "",
+      },
+      activeName: "first", //渚ц竟閫夋嫨
+      //瀵煎叆杩涘害
+      dractive: 1,
+      // 瀵煎叆灞曠ず琛ㄥ崟
+      uploadingData: {},
+      total: 0, // 鎬绘潯鏁�
+      ImportQuantity: 999, //瀵煎叆鎮h�呮暟閲�
+      Labelchange: false, //淇敼鏂板寮圭獥
+      propss: { multiple: true },
+      optionstag: [], //鏍囩鍒楄〃
+      defaultProps: {
+        children: "children",
+        label: "label",
+      },
+      // 鐢ㄦ埛瀵煎叆鍙傛暟
+      upload: {
+        // 鏄惁鏄剧ず寮瑰嚭灞傦紙鐢ㄦ埛瀵煎叆锛�
         open: false,
-        // 閮ㄩ棬鍚嶇О
-        deptName: undefined,
-        // 榛樿瀵嗙爜
-        initPassword: undefined,
-        amendtag: false, //鏄惁淇敼
-        serviceVisible: false,
-        serviceradio: 1,
-        // 鏃ユ湡鑼冨洿
-        dateRange: [],
-        paperstypes: [
-          { papersname: "韬唤璇�" },
-          { papersname: "鎶ょ収" },
-          { papersname: "涓浗娓境灞呮皯韬唤璇�" },
-          { papersname: "涓浗鍙版咕灞呮皯韬唤璇�" },
-        ],
-        Patienttype: [
-          {
-            value: "1",
-            label: "浣忛櫌鎮h��",
-          },
-          {
-            value: "2",
-            label: "闂ㄨ瘖鎮h��",
-          },
-          {
-            value: "3",
-            label: "浣撴鎮h��",
-          },
-        ],
-  
-        cardlist: [
-          {
-            name: "鎮h�呮�绘暟",
-            value: 123,
-          },
-          {
-            name: "鍦ㄩ櫌鎮h��",
-            value: 23,
-          },
-          {
-            name: "绂婚櫌鎮h��",
-            value: 41,
-          },
-          {
-            name: "璇婄枟鎮h��",
-            value: 56,
-          },
-          {
-            name: "绂讳笘鎮h��",
-            value: 0,
-          },
-        ],
-        // 琛ㄥ崟鍙傛暟
-        form: {
-          name: "",
-          age: "",
-          sex: "",
-          tagList: [],
-          idcardno: "",
-          telcode: "",
-          idcardtype: "",
-          relativetelcode: "",
-        },
-        activeName: "first", //渚ц竟閫夋嫨
-        //瀵煎叆杩涘害
-        dractive: 1,
-        // 瀵煎叆灞曠ず琛ㄥ崟
-        uploadingData: {},
-        total: 0, // 鎬绘潯鏁�
-        ImportQuantity: 999, //瀵煎叆鎮h�呮暟閲�
-        Labelchange: false, //淇敼鏂板寮圭獥
-        propss: { multiple: true },
-        optionstag: [], //鏍囩鍒楄〃
-        defaultProps: {
-          children: "children",
-          label: "label",
-        },
-        // 鐢ㄦ埛瀵煎叆鍙傛暟
-        upload: {
-          // 鏄惁鏄剧ず寮瑰嚭灞傦紙鐢ㄦ埛瀵煎叆锛�
-          open: false,
-          // 寮瑰嚭灞傛爣棰橈紙鐢ㄦ埛瀵煎叆锛�
-          title: "",
-          // 鏄惁绂佺敤涓婁紶
-          isUploading: false,
-          // 鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹�
-          updateSupport: 0,
-          // 璁剧疆涓婁紶鐨勮姹傚ご閮�
-          headers: { Authorization: "Bearer " + getToken() },
-          // 涓婁紶鐨勫湴鍧�
-          url: process.env.VUE_APP_BASE_API + "/system/user/importData",
-        },
-        // 鏌ヨ鍙傛暟
-        queryParams: {
-          pageNum: 1,
-          allhosp: "1",
-          pageSize: 10,
-          idcardno: undefined,
-          name: undefined,
-          status: undefined,
-          tagIds: undefined,
-          telcode: undefined,
-        },
-        // 琛ㄥ崟鏍¢獙
-        rules: {
-          // userName: [
-          //   { required: true, message: "鐢ㄦ埛鍚嶇О涓嶈兘涓虹┖", trigger: "blur" },
-          //   {
-          //     min: 2,
-          //     max: 20,
-          //     message: "鐢ㄦ埛鍚嶇О闀垮害蹇呴』浠嬩簬 2 鍜� 20 涔嬮棿",
-          //     trigger: "blur",
-          //   },
-          // ],
-          // nickName: [
-          //   { required: true, message: "鐢ㄦ埛鏄电О涓嶈兘涓虹┖", trigger: "blur" },
-          // ],
-          // password: [
-          //   { required: true, message: "鐢ㄦ埛瀵嗙爜涓嶈兘涓虹┖", trigger: "blur" },
-          //   {
-          //     min: 5,
-          //     max: 20,
-          //     message: "鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿",
-          //     trigger: "blur",
-          //   },
-          // ],
-          // email: [
-          //   {
-          //     type: "email",
-          //     message: "璇疯緭鍏ユ纭殑閭鍦板潃",
-          //     trigger: ["blur", "change"],
-          //   },
-          // ],
-          // phonenumber: [
-          //   {
-          //     pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
-          //     message: "璇疯緭鍏ユ纭殑鎵嬫満鍙风爜",
-          //     trigger: "blur",
-          //   },
-          // ],
-          // IDnumber: [
-          //   {
-          //     pattern:
-          //       /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/,
-          //     message: "璇疯緭鍏ユ纭殑韬唤璇佸彿鐮�",
-          //     trigger: "blur",
-          //   },
-          // ],
-        },
-      };
-    },
-    watch: {
-      // 鏍规嵁鍚嶇О绛涢�夐儴闂ㄦ爲
-      deptName(val) {
-        this.$refs.tree.filter(val);
+        // 寮瑰嚭灞傛爣棰橈紙鐢ㄦ埛瀵煎叆锛�
+        title: "",
+        // 鏄惁绂佺敤涓婁紶
+        isUploading: false,
+        // 鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹�
+        updateSupport: 0,
+        // 璁剧疆涓婁紶鐨勮姹傚ご閮�
+        headers: { Authorization: "Bearer " + getToken() },
+        // 涓婁紶鐨勫湴鍧�
+        url: process.env.VUE_APP_BASE_API + "/system/user/importData",
       },
+      // 鏌ヨ鍙傛暟
+      queryParams: {
+        pageNum: 1,
+        allhosp: "1",
+        pageSize: 10,
+        idcardno: undefined,
+        name: undefined,
+        status: undefined,
+        tagIds: undefined,
+        telcode: undefined,
+      },
+      // 琛ㄥ崟鏍¢獙
+      rules: {
+        // userName: [
+        //   { required: true, message: "鐢ㄦ埛鍚嶇О涓嶈兘涓虹┖", trigger: "blur" },
+        //   {
+        //     min: 2,
+        //     max: 20,
+        //     message: "鐢ㄦ埛鍚嶇О闀垮害蹇呴』浠嬩簬 2 鍜� 20 涔嬮棿",
+        //     trigger: "blur",
+        //   },
+        // ],
+        // nickName: [
+        //   { required: true, message: "鐢ㄦ埛鏄电О涓嶈兘涓虹┖", trigger: "blur" },
+        // ],
+        // password: [
+        //   { required: true, message: "鐢ㄦ埛瀵嗙爜涓嶈兘涓虹┖", trigger: "blur" },
+        //   {
+        //     min: 5,
+        //     max: 20,
+        //     message: "鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿",
+        //     trigger: "blur",
+        //   },
+        // ],
+        // email: [
+        //   {
+        //     type: "email",
+        //     message: "璇疯緭鍏ユ纭殑閭鍦板潃",
+        //     trigger: ["blur", "change"],
+        //   },
+        // ],
+        // phonenumber: [
+        //   {
+        //     pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
+        //     message: "璇疯緭鍏ユ纭殑鎵嬫満鍙风爜",
+        //     trigger: "blur",
+        //   },
+        // ],
+        // IDnumber: [
+        //   {
+        //     pattern:
+        //       /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/,
+        //     message: "璇疯緭鍏ユ纭殑韬唤璇佸彿鐮�",
+        //     trigger: "blur",
+        //   },
+        // ],
+      },
+    };
+  },
+  watch: {
+    // 鏍规嵁鍚嶇О绛涢�夐儴闂ㄦ爲
+    deptName(val) {
+      this.$refs.tree.filter(val);
     },
-    created() {
+  },
+  created() {
+    this.getList();
+    this.gettabList();
+  },
+  methods: {
+    /** 鏌ヨ鎮h�呭垪琛� */
+    getList() {
+      console.log(this.dict.type.sys_user_sex);
+      this.loading = true;
+      messagelistpatient(this.queryParams).then((response) => {
+        console.log(response);
+        this.userList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    handleClick() {
       this.getList();
-      this.gettabList();
     },
-    methods: {
-      /** 鏌ヨ鎮h�呭垪琛� */
-      getList() {
-        console.log(this.dict.type.sys_user_sex);
-        this.loading = true;
-        messagelistpatient(this.queryParams).then((response) => {
-          console.log(response);
-          this.userList = response.rows;
-          this.total = response.total;
-          this.loading = false;
-        });
-      },
-      handleClick() {
-        this.getList();
-      },
-      /** 鏌ヨ鏍囩鍒楄〃 */
-      gettabList() {
-        const tagqueryParams = {
-          pageNum: 1,
-          pageSize: 1000,
-          tagname: undefined,
-          tagdescription: undefined,
-          tagcategoryid: "0",
-        };
-        listtag(tagqueryParams).then((response) => {
-          console.log(response);
-          this.optionstag = response.rows;
-        });
-      },
-      // 鏌ヨ瀵煎叆灞曠ず鍒楄〃
-      geterryList() {
-        this.loading = true;
-        listJob(this.queryParams).then((response) => {
-          this.jobList = 1;
-          this.total = 1;
-          this.loading = false;
-        });
-      },
-      Distributionservice(row) {
-        this.serviceVisible = true;
-      },
-  
-      // 鍙栨秷鎸夐挳
-      cancel() {
-        this.Labelchange = false;
-        this.reset();
-      },
-      // 琛ㄥ崟閲嶇疆
-      reset() {
-        this.form = {
-          name: "",
-          age: "",
-          sex: "",
-          tagList: [],
-          idcardno: "",
-          telcode: "",
-          idcardtype: "",
-          relativetelcode: "",
-        };
-        // this.resetForm("form");
-      },
-      /** 鎼滅储鎸夐挳鎿嶄綔 */
-      handleQuery() {
-        this.queryParams.pageNum = 1;
-        this.getList();
-      },
-      /** 閲嶇疆鎸夐挳鎿嶄綔 */
-      resetQuery() {
-        this.dateRange = [];
-        this.resetForm("queryForm");
-        this.$refs.tree.setCurrentKey(null);
-        this.handleQuery();
-      },
-      // 澶氶�夋閫変腑鏁版嵁
-      handleSelectionChange(selection) {
-        this.ids = selection.map((item) => item.patid);
-        this.single = selection.length != 1;
-        this.multiple = !selection.length;
-      },
-  
-      /** 鏂板鎸夐挳鎿嶄綔 */
-      handleAdd() {
-        this.reset();
-        this.Labelchange = true;
-        this.amendtag = false;
-      },
-      /** 淇敼鎸夐挳鎿嶄綔 */
-      handleUpdate(row) {
-        console.log(row);
-        const userIds = row.patid || this.ids;
-        particularpatient(userIds).then((response) => {
-          console.log(response);
-          this.form = response.data;
-        });
-        this.amendtag = true;
-        this.Labelchange = true;
-      },
-  
-      //淇敼/鏂板鎮h��
-      submitForm() {
-        if (this.amendtag) {
-          alterpatient(this.form)
-            .then((response) => {
-              console.log(response);
-            })
-            .then(() => {
-              this.getList();
-              this.$modal.msgSuccess("淇敼鎴愬姛");
-            });
-        } else {
-          addpatient(this.form)
-            .then((response) => {
-              console.log(response);
-            })
-            .then(() => {
-              this.getList();
-              this.$modal.msgSuccess("娣诲姞鎴愬姛");
-            });
-        }
-        this.reset();
-        // this.idds = "";
-        this.Labelchange = false;
-      },
-  
-      /** 鍒犻櫎鎸夐挳鎿嶄綔 */
-      handleDelete(row) {
-        const userIds = row.userId || this.ids;
-        this.$modal
-          .confirm('鏄惁纭鍒犻櫎鐢ㄦ埛缂栧彿涓�"' + userIds + '"鐨勬暟鎹」锛�')
-          .then(function () {
-            return deletepatient(userIds);
+    /** 鏌ヨ鏍囩鍒楄〃 */
+    gettabList() {
+      const tagqueryParams = {
+        pageNum: 1,
+        pageSize: 1000,
+        tagname: undefined,
+        tagdescription: undefined,
+        tagcategoryid: "0",
+      };
+      listtag(tagqueryParams).then((response) => {
+        console.log(response);
+        this.optionstag = response.rows;
+      });
+    },
+    // 鏌ヨ瀵煎叆灞曠ず鍒楄〃
+    geterryList() {
+      this.loading = true;
+      listJob(this.queryParams).then((response) => {
+        this.jobList = 1;
+        this.total = 1;
+        this.loading = false;
+      });
+    },
+    Distributionservice(row) {
+      this.serviceVisible = true;
+    },
+
+    // 鍙栨秷鎸夐挳
+    cancel() {
+      this.Labelchange = false;
+      this.reset();
+    },
+    // 琛ㄥ崟閲嶇疆
+    reset() {
+      this.form = {
+        name: "",
+        age: "",
+        sex: "",
+        tagList: [],
+        idcardno: "",
+        telcode: "",
+        idcardtype: "",
+        relativetelcode: "",
+      };
+      // this.resetForm("form");
+    },
+    /** 鎼滅储鎸夐挳鎿嶄綔 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 閲嶇疆鎸夐挳鎿嶄綔 */
+    resetQuery() {
+      this.dateRange = [];
+      this.resetForm("queryForm");
+      this.$refs.tree.setCurrentKey(null);
+      this.handleQuery();
+    },
+    // 澶氶�夋閫変腑鏁版嵁
+    handleSelectionChange(selection) {
+      this.ids = selection.map((item) => item.patid);
+      this.single = selection.length != 1;
+      this.multiple = !selection.length;
+    },
+
+    /** 鏂板鎸夐挳鎿嶄綔 */
+    handleAdd() {
+      this.reset();
+      this.Labelchange = true;
+      this.amendtag = false;
+    },
+    /** 淇敼鎸夐挳鎿嶄綔 */
+    handleUpdate(row) {
+      console.log(row);
+      const userIds = row.patid || this.ids;
+      particularpatient(userIds).then((response) => {
+        console.log(response);
+        this.form = response.data;
+      });
+      this.amendtag = true;
+      this.Labelchange = true;
+    },
+
+    //淇敼/鏂板鎮h��
+    submitForm() {
+      if (this.amendtag) {
+        alterpatient(this.form)
+          .then((response) => {
+            console.log(response);
           })
           .then(() => {
             this.getList();
-            this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+            this.$modal.msgSuccess("淇敼鎴愬姛");
+          });
+      } else {
+        addpatient(this.form)
+          .then((response) => {
+            console.log(response);
           })
-          .catch(() => {});
-      },
-      //鏈嶅姟璺宠浆
-      CreateService() {
-        this.$router.push({
-          path: "/followvisit/particty",
-          query: { type: this.serviceradio },
-        });
-      },
-      /** 瀵煎嚭鎸夐挳鎿嶄綔 */
-      handleExport() {
-        this.download(
-          "smartor/patarchive/export",
-          {
-            ...this.queryParams,
-          },
-          `user_${new Date().getTime()}.xlsx`
-        );
-      },
-      /** 瀵煎叆鎸夐挳鎿嶄綔 */
-      handleImport() {
-        this.upload.title = "鐢ㄦ埛瀵煎叆";
-        this.upload.open = true;
-      },
-      /** 涓嬭浇妯℃澘鎿嶄綔 */
-      importTemplate() {
-        this.download(
-          "system/user/importTemplate",
-          {},
-          `user_template_${new Date().getTime()}.xlsx`
-        );
-      },
-      // 鏂囦欢涓婁紶涓鐞�
-      handleFileUploadProgress(event, file, fileList) {
-        this.upload.isUploading = true;
-      },
-      // 鏂囦欢涓婁紶鎴愬姛澶勭悊
-      handleFileSuccess(response, file, fileList) {
-        this.upload.open = false;
-        this.upload.isUploading = false;
-        this.$refs.upload.clearFiles();
-        this.$alert(
-          "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
-            response.msg +
-            "</div>",
-          "瀵煎叆缁撴灉",
-          { dangerouslyUseHTMLString: true }
-        );
-        this.getList();
-      },
-      // 鎻愪氦涓婁紶鏂囦欢
-      submitFileForm() {
-        // 涓婁紶
-        if (this.dractive == 1) {
-          this.$refs.upload.submit();
-          this.dractive++;
-        } else {
-          this.dractive++;
-        }
-      },
-      submitclose() {
-        this.upload.open = false;
-        this.dractive = 1;
-      },
+          .then(() => {
+            this.getList();
+            this.$modal.msgSuccess("娣诲姞鎴愬姛");
+          });
+      }
+      this.reset();
+      // this.idds = "";
+      this.Labelchange = false;
     },
-  };
-  </script>
-  
-  <style lang="scss" scoped>
-  .Questionnairemanagement {
+
+    /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+    handleDelete(row) {
+      const userIds = row.userId || this.ids;
+      this.$modal
+        .confirm('鏄惁纭鍒犻櫎鐢ㄦ埛缂栧彿涓�"' + userIds + '"鐨勬暟鎹」锛�')
+        .then(function () {
+          return deletepatient(userIds);
+        })
+        .then(() => {
+          this.getList();
+          this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+        })
+        .catch(() => {});
+    },
+    //鏈嶅姟璺宠浆
+    CreateService() {
+      this.$router.push({
+        path: "/followvisit/particty",
+        query: { type: this.serviceradio },
+      });
+    },
+    /** 瀵煎嚭鎸夐挳鎿嶄綔 */
+    handleExport() {
+      this.download(
+        "smartor/patarchive/export",
+        {
+          ...this.queryParams,
+        },
+        `user_${new Date().getTime()}.xlsx`
+      );
+    },
+    /** 瀵煎叆鎸夐挳鎿嶄綔 */
+    handleImport() {
+      this.upload.title = "鐢ㄦ埛瀵煎叆";
+      this.upload.open = true;
+    },
+    /** 涓嬭浇妯℃澘鎿嶄綔 */
+    importTemplate() {
+      this.download(
+        "system/user/importTemplate",
+        {},
+        `user_template_${new Date().getTime()}.xlsx`
+      );
+    },
+    // 鏂囦欢涓婁紶涓鐞�
+    handleFileUploadProgress(event, file, fileList) {
+      this.upload.isUploading = true;
+    },
+    // 鏂囦欢涓婁紶鎴愬姛澶勭悊
+    handleFileSuccess(response, file, fileList) {
+      this.upload.open = false;
+      this.upload.isUploading = false;
+      this.$refs.upload.clearFiles();
+      this.$alert(
+        "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
+          response.msg +
+          "</div>",
+        "瀵煎叆缁撴灉",
+        { dangerouslyUseHTMLString: true }
+      );
+      this.getList();
+    },
+    // 鎻愪氦涓婁紶鏂囦欢
+    submitFileForm() {
+      // 涓婁紶
+      if (this.dractive == 1) {
+        this.$refs.upload.submit();
+        this.dractive++;
+      } else {
+        this.dractive++;
+      }
+    },
+    submitclose() {
+      this.upload.open = false;
+      this.dractive = 1;
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.Questionnairemanagement {
+}
+.sidecolumn {
+  width: 180px;
+  min-height: 100vh;
+  text-align: center;
+  //   display: flex;
+  margin-top: 20px;
+  margin: 20px;
+  padding: 30px;
+  background: #d0e9fd;
+  border: 1px solid #dcdfe6;
+  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
+    0 0 6px 0 rgba(0, 0, 0, 0.04);
+  .sidecolumn-top {
     display: flex;
-  }
-  .sidecolumn {
-    width: 180px;
-    min-height: 100vh;
-    text-align: center;
-    //   display: flex;
-    margin-top: 20px;
-    margin: 20px;
-    padding: 30px;
-    background: #d0e9fd;
-    border: 1px solid #dcdfe6;
-    -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
-      0 0 6px 0 rgba(0, 0, 0, 0.04);
-    .sidecolumn-top {
-      display: flex;
-      justify-content: space-between;
-      .top-wj {
-        font-size: 20px;
-      }
-      .top-tj {
-        font-size: 18px;
-  
-        color: rgb(0, 89, 255);
-        cursor: pointer;
-      }
-    }
-    .center-ss {
-      margin-top: 30px;
-      .input-with-select {
-        height: 40px !important;
-      }
-    }
-    .bottom-fl {
-      margin-top: 30px;
-      display: center !important;
-    }
-  }
-  ::v-deep.el-tabs--left,
-  .el-tabs--right {
-    overflow: hidden;
-    align-items: center;
-    display: flex;
-  }
-  ::v-deep.el-input--medium .el-input__inner {
-    height: 40px !important;
-  }
-  ::v-deep.el-tabs--right .el-tabs__active-bar.is-right {
-    height: 40px;
-    width: 5px;
-    left: 0;
-  }
-  ::v-deep.el-tabs--right .el-tabs__item.is-right {
-    display: block;
-    text-align: left;
-    font-size: 20px;
-  }
-  ::v-deep.leftvlue .el-card__body {
-    background: #d0e9fd;
-  }
-  ::v-deep.leftvlue .el-card__body:hover {
-    background: #8dc8f8;
-  }
-  .leftvlue {
-    margin-top: 10px;
-  }
-  .leftvlue-bg {
-    //   display: flex;
-    //   flex: 1;
-    margin-top: 20px;
-    //   margin: 20px;
-    padding: 30px;
-    background: #ffff;
-    border: 1px solid #dcdfe6;
-    -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
-      0 0 6px 0 rgba(0, 0, 0, 0.04);
-    .mulsz {
+    justify-content: space-between;
+    .top-wj {
       font-size: 20px;
     }
+    .top-tj {
+      font-size: 18px;
+
+      color: rgb(0, 89, 255);
+      cursor: pointer;
+    }
   }
-  .el-button--primary.is-plain {
-    color: #ffffff;
-    background: #409eff;
-    border-color: #4fabe9;
+  .center-ss {
+    margin-top: 30px;
+    .input-with-select {
+      height: 40px !important;
+    }
   }
-  .document {
-    width: 100px;
+  .bottom-fl {
+    margin-top: 30px;
+    display: center !important;
+  }
+}
+::v-deep.el-tabs--left,
+.el-tabs--right {
+  overflow: hidden;
+  align-items: center;
+  display: flex;
+}
+::v-deep.el-input--medium .el-input__inner {
+  height: 40px !important;
+}
+::v-deep.el-tabs--right .el-tabs__active-bar.is-right {
+  height: 40px;
+  width: 5px;
+  left: 0;
+}
+::v-deep.el-tabs--right .el-tabs__item.is-right {
+  display: block;
+  text-align: left;
+  font-size: 20px;
+}
+::v-deep.leftvlue .el-card__body {
+  background: #d0e9fd;
+}
+::v-deep.leftvlue .el-card__body:hover {
+  background: #8dc8f8;
+}
+.leftvlue {
+  margin-top: 10px;
+}
+.leftvlue-bg {
+  //   display: flex;
+  //   flex: 1;
+  margin-top: 20px;
+  //   margin: 20px;
+  padding: 30px;
+  background: #ffff;
+  border: 1px solid #dcdfe6;
+  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
+    0 0 6px 0 rgba(0, 0, 0, 0.04);
+  .mulsz {
+    font-size: 20px;
+  }
+}
+.el-button--primary.is-plain {
+  color: #ffffff;
+  background: #409eff;
+  border-color: #4fabe9;
+}
+.document {
+  width: 100px;
+  height: 50px;
+}
+.documentf {
+  display: flex;
+  justify-content: flex-end;
+}
+.download {
+  text-align: center;
+  .el-upload__tip {
+    font-size: 23px;
+  }
+  .el-upload__text {
+    font-size: 23px;
+  }
+}
+.uploading {
+  margin-top: 20px;
+  margin: 20px;
+  padding: 30px;
+  background: #ffffff;
+  border: 1px solid #dcdfe6;
+  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
+    0 0 6px 0 rgba(0, 0, 0, 0.04);
+}
+.drexamine {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  padding: 20px;
+  background: #daeaf5;
+  img {
+    width: 50px;
     height: 50px;
   }
-  .documentf {
-    display: flex;
-    justify-content: flex-end;
-  }
-  .download {
-    text-align: center;
-    .el-upload__tip {
-      font-size: 23px;
-    }
-    .el-upload__text {
-      font-size: 23px;
-    }
-  }
-  .uploading {
-    margin-top: 20px;
-    margin: 20px;
-    padding: 30px;
-    background: #ffffff;
-    border: 1px solid #dcdfe6;
-    -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
-      0 0 6px 0 rgba(0, 0, 0, 0.04);
-  }
-  .drexamine {
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    padding: 20px;
-    background: #daeaf5;
-    img {
-      width: 50px;
-      height: 50px;
-    }
-  }
-  .button-textsc {
-    color: #28cfe6;
-  }
-  .button-textxg {
-    color: #de7897;
-  }
-  </style>
-  
\ No newline at end of file
+}
+.button-textsc {
+  color: #28cfe6;
+}
+.button-textxg {
+  color: #de7897;
+}
+</style>
diff --git a/src/views/patient/patient/outpatient.vue b/src/views/patient/patient/outpatient.vue
index aaffe46..cfaeacb 100644
--- a/src/views/patient/patient/outpatient.vue
+++ b/src/views/patient/patient/outpatient.vue
@@ -154,6 +154,7 @@
           </el-col>
           <!-- <el-col :span="1.5"> </el-col> -->
         </el-row>
+        
         <el-table
           v-loading="loading"
           :data="userList"

--
Gitblit v1.9.3