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 | 45 ++++++++++++++++++++++++++++++++------------- 1 files changed, 32 insertions(+), 13 deletions(-) diff --git a/ruoyi-ui/src/views/contacts/index.vue b/ruoyi-ui/src/views/contacts/index.vue index 6a3865d..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> @@ -117,20 +119,26 @@ v-hasPermi="['family:note:export']" >瀵煎叆妯℃澘涓嬭浇</el-button> </el-col> - <el-col :span="1.2"> + <el-col :span="1.5"> - <el-upload + <el-upload action="" - class="upload-demo" + :auto-upload="true" :show-file-list="false" :http-request="handleEnport" - > - <el-button size="mini" type="primary" - plain - icon="el-icon-plus" >瀵煎叆</el-button> - </el-upload> + > + <el-button + type="primary" + plain + + icon="el-icon-top" + size="mini" + + >瀵煎叆</el-button> + + </el-upload> </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> @@ -211,6 +219,7 @@ size="mini" type="text" icon="el-icon-edit" + :disabled="!scope.row.ownData" @click="handleUpdate(scope.row)" v-hasPermi="['system:role:edit']" > @@ -220,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> @@ -410,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:[ @@ -564,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; + } } ); }, @@ -795,7 +814,7 @@ }; </script> -<style > +<style scoped> .app-container{ background-color: #FEF7FC; } -- Gitblit v1.9.1