马宇豪
2025-01-10 03f0e2a3220106ec2a9dd8f53d3ef5ab824c3ae7
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) {