From cbe62bfd234f548daf95431bdb8f9f0d64905929 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期五, 12 五月 2023 14:38:14 +0800
Subject: [PATCH] 修改图片

---
 src/views/manager/User.vue |   71 ++++++++++++++++++++---------------
 1 files changed, 40 insertions(+), 31 deletions(-)

diff --git a/src/views/manager/User.vue b/src/views/manager/User.vue
index 0108609..8c119b7 100644
--- a/src/views/manager/User.vue
+++ b/src/views/manager/User.vue
@@ -120,11 +120,13 @@
               </el-input>
             </el-form-item>
           </el-col>
+          <el-col :span="12">
           <el-form-item label="澶囨敞" prop="userMemo">
             <el-input v-model="detailsRow.userMemo" placeholder="璇疯緭鍏ュ娉�" clearable
                       :style="{ width: '100%' }">
             </el-input>
           </el-form-item>
+          </el-col>
         </el-form>
       </el-row>
       <span slot="footer" class="dialog-footer">
@@ -225,31 +227,31 @@
   methods:
       {
         exportList(){
-        this.$http({
-          url:'/api/user/exp',
-          responseType: 'blob',
-          method: 'post',
-        }).then(res=>{
-          console.log(res)
-          this.$message.success('鎿嶄綔鎴愬姛');
-          let time = new Date()
-          let deathdate =time.toLocaleDateString()
-          const blob = new Blob([res.data], {
-            type: "application/vnd.ms-excel;charset=utf-8",
-          });
-          if (window.navigator.msSaveBlob) {
-            window.navigator.msSaveBlob(blob, deathdate + ".xlsx");
-          } else {
-            const url = window.URL.createObjectURL(blob);
-            const link = document.createElement("a");
-            link.style.display = "none";
-            link.href = url;
-            link.download = deathdate + ".xlsx";
-            document.body.appendChild(link);
-            link.click();
-            document.body.removeChild(link);
-          }
-        })
+          this.$http({
+            url:'/api/user/exp',
+            responseType: 'blob',
+            method: 'post',
+          }).then(res=>{
+            console.log(res)
+            this.$message.success('鎿嶄綔鎴愬姛');
+            let time = new Date()
+            let deathdate =time.toLocaleDateString()
+            const blob = new Blob([res.data], {
+              type: "application/vnd.ms-excel;charset=utf-8",
+            });
+            if (window.navigator.msSaveBlob) {
+              window.navigator.msSaveBlob(blob, deathdate + ".xlsx");
+            } else {
+              const url = window.URL.createObjectURL(blob);
+              const link = document.createElement("a");
+              link.style.display = "none";
+              link.href = url;
+              link.download = deathdate + ".xlsx";
+              document.body.appendChild(link);
+              link.click();
+              document.body.removeChild(link);
+            }
+          })
         },
         handleToManager(data) {
           toManager(data.id).then(res => {
@@ -313,12 +315,19 @@
         },
         update() {
           this.$http.put('/api/user', this.detailsRow).then(res => {
-                this.$message({
-                      message: '缂栬緫鎴愬姛',
-                      type: 'success'
-                    }
-                )
-                this.search();
+            console.log(res)
+            if (res.data.code == 200){
+              this.$message({
+                    message: '缂栬緫鎴愬姛',
+                    type: 'success'
+                  }
+              )
+              this.search();
+            }else {
+              this.$message.error(res.data.msg)
+              this.search();
+            }
+
               }
           );
           this.detailsVisible = false;

--
Gitblit v1.8.0