From d0136913a2c74a44f5bb30327ebbb3fd85e24fce Mon Sep 17 00:00:00 2001 From: feige <feige@qq.com> Date: 星期二, 23 一月 2024 10:56:30 +0800 Subject: [PATCH] 修改了很多 --- ruoyi-ui/src/views/doctor/index.vue | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue index 540b65c..4222612 100644 --- a/ruoyi-ui/src/views/doctor/index.vue +++ b/ruoyi-ui/src/views/doctor/index.vue @@ -198,6 +198,7 @@ size="mini" type="text" icon="el-icon-edit" + :disabled="!scope.row.ownData" @click="handleUpdate(scope.row)" v-hasPermi="['system:role:edit']" > @@ -208,6 +209,7 @@ type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" + :disabled="!scope.row.ownData" v-hasPermi="['system:role:remove']" ><span style="font-size: 14px;">鍒犻櫎</span></el-button> <el-button @@ -520,14 +522,21 @@ /** 鏌ヨ璁板綍鍒楄〃 */ getList() { this.loading = true; + let _this = this; // console.log(this.queryParams) // listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => { listDoctor(this.queryParams).then(response => { // alert(123) // console.log(response.data) - this.doctorList = response.data.data; - this.total = response.data.total; - this.loading = false; + if(response.msg=="鎮ㄦ病鍔犲叆鍒板搴旂殑瀹跺涵锛岃鑱旂郴绠$悊鍛�") + { + _this.$modal.msgSuccess("鎮ㄦ病鍔犲叆鍒板搴旂殑瀹跺涵锛岃鑱旂郴绠$悊鍛�"); + _this.loading = false; + }else{ + _this.doctorList = response.data.data; + _this.total = response.data.total; + _this.loading = false; + } } ); listType(this.queryParams).then(response => { -- Gitblit v1.9.1