From 058c7c78326aaf9ff58e6bc63107dbfe50544e9e Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期六, 15 四月 2023 17:30:43 +0800
Subject: [PATCH] 主要新增了家庭小医生模块

---
 ruoyi-ui/src/views/self/show.vue |   62 ++++++++++++++++++++++--------
 1 files changed, 45 insertions(+), 17 deletions(-)

diff --git a/ruoyi-ui/src/views/self/show.vue b/ruoyi-ui/src/views/self/show.vue
index cad6e43..b7d0dd9 100644
--- a/ruoyi-ui/src/views/self/show.vue
+++ b/ruoyi-ui/src/views/self/show.vue
@@ -1,12 +1,4 @@
 <template>
-</template>
-
-<script>
-</script>
-
-<style>
-</style>
-<template>
   <div class="app-container">
     <!--    鍥炲埌椤堕儴-->
     <el-backtop :bottom="150" :right="30">
@@ -153,9 +145,10 @@
             <el-button
               type="primary"
               @click="handleUpdate(scope.row)"
+              :disabled="btn"
               v-hasPermi="['system:role:edit']"
             >缂栬緫</el-button>
-
+            <!--            @click="handleUpdate(scope.row)"-->
             <!--            <el-dropdown-->
             <!--              size="mini"-->
             <!--              @command="(command) => handleCommand(command, scope.row)"-->
@@ -172,13 +165,15 @@
             <el-button
               type="primary"
               @click="handleExport"
-              v-hasPermi="['self:user:export']"
+              v-hasPermi="['family:note:export']"
             >瀵煎嚭</el-button>
+            <br>
+            <el-button type="primary" @click="submitForm" :disabled="dsb">瀹屾垚</el-button>
           </el-row>
 
         </el-container>
       </div>
-      <!--      </el-dialog>-->
+      <!--      </el-dialog> self:user:export-->
     </el-container>
     <el-container>
       <div>
@@ -752,6 +747,33 @@
       this.openDataScope = false;
       this.reset();
     },
+
+    submitForm() {
+      let ul = this.fileList.map(function (elem){
+        return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
+      }).join(",")
+      let uls = this.fileListOther.map(function (elem){
+        return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
+      }).join(",")
+      this.formData.url = ul+","+uls
+
+      this.$refs['elForm'].validate(valid => {
+
+
+        if (valid) {
+          if (this.formData.id != undefined) {
+            updateIndividual(this.formData).then(response => {
+              this.$modal.msgSuccess("淇敼鎴愬姛");
+              // this.open = false;
+              this.btn=false
+            });
+          } else {
+            this.$modal.msgSuccess("淇敼澶辫触");
+
+          }
+        }
+      })
+    },
     // 琛ㄥ崟閲嶇疆
     reset() {
       if (this.$refs.menu != undefined) {
@@ -795,11 +817,11 @@
     },
 
     /** 鏂板鎸夐挳鎿嶄綔 */
-    handleAdd() {
-      this.reset();
-      this.open = true;
-      this.title = "娣诲姞涓汉淇℃伅";
-    },
+    // handleAdd() {
+    //   this.reset();
+    //   this.open = true;
+    //   this.title = "娣诲姞涓汉淇℃伅";
+    // },
 
 
     /** 鏌ョ湅璇︾粏淇℃伅 */
@@ -843,6 +865,12 @@
         const blob = new Blob([response])
         saveAs(blob, filename)
       })
+    },
+    //缂栬緫鎸夐挳
+    handleEdit()
+    {
+      this.dsb = false
+      this.btn = true
     },
 
     /** 鏌ヨ鑷紶淇℃伅 */
@@ -941,7 +969,7 @@
 /*}*/
 
 .el-icon-top {
-  background: url("");
+  background: url("/src/assets/icons/top.png");
 }
 
 

--
Gitblit v1.9.1