| | |
| | | <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> |
| | |
| | | showEditDeadline(row){ |
| | | this.resetDeadlineForm() |
| | | this.deadlineForm.uid = row.id |
| | | this.deadlineForm.deadline = row.deadline |
| | | this.dialogDeadlineVisible = true |
| | | }, |
| | | |
| | |
| | | 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) { |