From e52fe71fb9c6dd82f996a9db07b2bd765c27f09b Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期二, 21 一月 2025 16:36:58 +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