From c6d3157eb616116c84d35e221ed9c57ef8da0ad6 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期四, 01 二月 2024 16:24:11 +0800
Subject: [PATCH] 操作频繁锁(60秒)

---
 src/components/xio_customer_select/index.vue |   46 ++++++++++++++++++++++++++++++++++------------
 1 files changed, 34 insertions(+), 12 deletions(-)

diff --git a/src/components/xio_customer_select/index.vue b/src/components/xio_customer_select/index.vue
index 9ed82b5..ff560fd 100644
--- a/src/components/xio_customer_select/index.vue
+++ b/src/components/xio_customer_select/index.vue
@@ -1,19 +1,19 @@
 <template>
-  <div class="mask hide">
-    <div class="xio_customer_select_dialog">
-      <div class="title">鏄惁閫夋嫨瀹汉[寮犳��姘慮锛屼娇鐢ㄥ綋鍓嶆埧闂达紵</div>
+  <div v-if="isShow" class="mask" @click="hideDialog">
+    <div class="xio_customer_select_dialog" @click.stop="noop">
+      <div class="title">鏄惁閫夋嫨瀹汉[{{ dialogData.userName }}]锛屼娇鐢ㄥ綋鍓嶆埧闂达紵</div>
       <div class="content flex flex-sb">
-        <div class="tx flex-1" style="text-align: left;">鍖荤敓锛氬紶鎬�姘�</div>
-        <div class="tx flex-1">鎶ゅ+锛氬紶鎬�姘�</div>
-        <div class="tx flex-1" style="text-align: right;">椤鹃棶锛氬紶鎬�姘�</div>
+        <div v-if="dialogData.aDoctorName" class="tx flex-1" style="text-align: left;">鍖荤敓锛歿{ dialogData.aDoctorName }}</div>
+        <div v-if="dialogData.aNurseName" class="tx flex-1">鎶ゅ+锛歿{ dialogData.aNurseName }}</div>
+        <div v-if="dialogData.adviserName" class="tx flex-1" style="text-align: right;">椤鹃棶锛歿{ dialogData.adviserName }}</div>
       </div>
       <div class="content flex flex-ver">
-        <div class="tx">娌荤枟椤圭洰锛歱his-Fotona4D</div>
+        <div v-if="dialogData.projectName" class="tx">娌荤枟椤圭洰锛歿{ dialogData.projectName }}</div>
       </div>
       <div class="btn_box flex flex-center">
         <div class="flex flex-ver">
-          <div class="btn_box__item flex flex-center">鍙栨秷</div>
-          <div class="btn_box__item flex flex-center">纭畾</div>
+          <div class="btn_box__item flex flex-center" @click="cancel">鍙栨秷</div>
+          <div class="btn_box__item flex flex-center" @click="submit">纭畾</div>
         </div>
       </div>
     </div>
@@ -31,12 +31,34 @@
   },
   data() {
     return {
-      isShow: false
+      isShow: false,
+      dialogData: {}
     }
   },
   methods: {
-    toggleClick() {
-      this.$emit('toggleClick')
+    // 鍙栨秷
+    cancel() {
+      this.$emit('cancel', {})
+    },
+    // 鎻愪氦
+    submit() {
+      this.$emit('submit', this.dialogData)
+    },
+    noop() {
+      return
+    },
+    // 鏄剧ず寮圭獥
+    showDialog() {
+      this.isShow = true
+    },
+    // 鍏抽棴寮圭獥
+    hideDialog() {
+      this.isShow = false
+      this.dialogData = {}
+    },
+    // 鏁版嵁鍒濆鍖�
+    dataInit(data) {
+      this.dialogData = data
     }
   }
 }

--
Gitblit v1.8.0