From a7d09900629902c8170f639f070fc6da8d168e0b Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期二, 20 二月 2024 17:55:50 +0800
Subject: [PATCH] 测试

---
 ruoyi-ui/src/views/contacts/index.vue |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/ruoyi-ui/src/views/contacts/index.vue b/ruoyi-ui/src/views/contacts/index.vue
index fe9ea72..c5cbb96 100644
--- a/ruoyi-ui/src/views/contacts/index.vue
+++ b/ruoyi-ui/src/views/contacts/index.vue
@@ -82,6 +82,7 @@
           plain
           icon="el-icon-plus"
           size="mini"
+
           @click="handleAdd"
           v-hasPermi="['system:role:add']"
         >鏂板</el-button>
@@ -94,6 +95,7 @@
           size="mini"
           :disabled="multiple"
           @click="handleDelete"
+
           v-hasPermi="['system:role:remove']"
         >鍒犻櫎</el-button>
       </el-col>
@@ -217,6 +219,7 @@
               size="mini"
               type="text"
               icon="el-icon-edit"
+                     :disabled="!scope.row.ownData"
               @click="handleUpdate(scope.row)"
               v-hasPermi="['system:role:edit']"
             >
@@ -226,6 +229,7 @@
               size="mini"
               type="text"
               icon="el-icon-delete"
+                     :disabled="!scope.row.ownData"
               @click="handleDelete(scope.row)"
               v-hasPermi="['system:role:remove']"
             ><span style="font-size: 14px;">鍒犻櫎</span></el-button>
@@ -416,7 +420,9 @@
       // 鏃ユ湡鑼冨洿
       dateRange: [],
       // 鏁版嵁鑼冨洿閫夐」
-      fot:[".jpg",".jif"],
+      fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
+        '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
+
       fileList:[
       ],
       fileListOther:[
@@ -570,15 +576,22 @@
     /** 鏌ヨ閫氳褰曞垪琛� */
     getList() {
       this.loading = true;
+      let _this = this
       // console.log(this.queryParams)
       //  listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
       getContactList(this.queryParams).then(response => {
           //  alert(123)
           //   console.log(response.data)
-          this.contactList = response.data.data;
+         if(response.msg=="鎮ㄦ病鍔犲叆鍒板搴旂殑瀹跺涵锛岃鑱旂郴绠$悊鍛�")
+         {
+             _this.$modal.msgSuccess("鎮ㄦ病鍔犲叆鍒板搴旂殑瀹跺涵锛岃鑱旂郴绠$悊鍛�");
+             _this.loading = false;
+         }else{
+          _this.contactList = response.data.data;
 
-          this.total = response.data.total;
-          this.loading = false;
+          _this.total = response.data.total;
+          _this.loading = false;
+          }
         }
       );
     },

--
Gitblit v1.9.1