From f0cd5a4fe3b366fa753b8da5e387673c30c4d0f7 Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期三, 30 十一月 2022 08:55:19 +0800 Subject: [PATCH] 更新 --- src/views/enterprise/userinfo.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/enterprise/userinfo.vue b/src/views/enterprise/userinfo.vue index 447d8bd..dd74ae3 100644 --- a/src/views/enterprise/userinfo.vue +++ b/src/views/enterprise/userinfo.vue @@ -125,7 +125,7 @@ <el-table-column label="操作" align="center" width="180" class-name="small-padding fixed-width"> <template slot-scope="scope"> <el-button type="text" @click="showEditHandle(scope.row)">编辑</el-button> - <el-button v-if="scope.row.companyid !=null" type="text" @click="showEditDeadline(scope.row)">修改有效期</el-button> + <el-button v-if="scope.row.companyid !=null && userType == 1" type="text" @click="showEditDeadline(scope.row)">修改有效期</el-button> </template> </el-table-column> </el-table> @@ -729,6 +729,7 @@ showEditDeadline(row){ this.resetDeadlineForm() this.deadlineForm.uid = row.id + this.deadlineForm.deadline = row.deadline this.dialogDeadlineVisible = true }, @@ -737,7 +738,6 @@ this.$refs['deadlineForm'].validate((valid) => { if (valid) { const params = this.deadlineForm - console.log(params,'params') updateDeadline(params).then(response => { const res = response.data if (res.code == 200) { -- Gitblit v1.9.2