| | |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | v-if="dialogUpdate" |
| | | :visible.sync="dialogUpdate" |
| | | width="40%" |
| | | title="修改部门" |
| | |
| | | @closeUpdateDialog="closeUpdateDialog()" |
| | | :updateDepartmentData="updateDepartmentData" |
| | | :isUpdate="dialogType === 'update'" |
| | | ref="childAdd" |
| | | /> |
| | | </el-dialog> |
| | | <el-dialog |
| | |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | v-if="dialogAdd" |
| | | :visible.sync="dialogAdd" |
| | | width="40%" |
| | | title="添加部门" |
| | |
| | | @closeUpdateDialog="closeUpdateDialog()" |
| | | :updateDepartmentData="updateDepartmentData" |
| | | :isUpdate="dialogType === 'update'" |
| | | ref="childAdd" |
| | | /> |
| | | </el-dialog> |
| | | |
| | |
| | | |
| | | data() { |
| | | return { |
| | | updateDepartmentData: null, |
| | | updateDepartmentData: { |
| | | name:'', |
| | | peopleNumber:'', |
| | | regionIds:'', |
| | | upUndergraduatePeopleNumber:'', |
| | | holderNumber:'', |
| | | underFortyFivePeopleNumber:'', |
| | | legalProfessionalQualificationCertificatePeopleNumber:'', |
| | | reportNumber:'', |
| | | disciplinaryOffenceNumber:'', |
| | | criminalOffenseNumber:'', |
| | | monthCaseNumber:'', |
| | | noTimeoutCaseNumber:'', |
| | | reviewOrLawsuitNumber:'', |
| | | }, |
| | | searchDepartment: null, |
| | | searchStatus: null, |
| | | dialogUpdate: false, |
| | |
| | | caseCode: null, |
| | | dialogAdd: false, |
| | | dialogType: "update", |
| | | updateData: { |
| | | name:'', |
| | | peopleNumber:'', |
| | | regionIds:'', |
| | | upUndergraduatePeopleNumber:'', |
| | | holderNumber:'', |
| | | underFortyFivePeopleNumber:'', |
| | | legalProfessionalQualificationCertificatePeopleNumber:'', |
| | | reportNumber:'', |
| | | disciplinaryOffenceNumber:'', |
| | | criminalOffenseNumber:'', |
| | | monthCaseNumber:'', |
| | | noTimeoutCaseNumber:'', |
| | | reviewOrLawsuitNumber:'', |
| | | }, |
| | | }; |
| | | }, |
| | | |
| | |
| | | showAddDialog() { |
| | | this.dialogAdd = true; |
| | | this.dialogType = "add"; |
| | | this.updateDepartmentData = this.updateData; |
| | | }, |
| | | |
| | | // 导出 |
| | |
| | | closeUpdateDialog() { |
| | | this.dialogAdd = false; |
| | | this.dialogUpdate = false; |
| | | this.$refs.childAdd.clearFields() |
| | | this.getDepartmentList(); |
| | | |
| | | }, |
| | | |
| | | // 顶部下拉框 |
| | |
| | | // 删除单条数据 |
| | | handleDelete(row) { |
| | | this.$confirm("确认删除?").then(() => { |
| | | deleteTeam({ id: row.id }) |
| | | .then(({ code, message }) => { |
| | | if (code === SUCCESS_CODE) { |
| | | this.$message({ type: "success", message }); |
| | | this.getDepartmentList(); |
| | | } else { |
| | | this.$message({ type: "error", message }); |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | this.$message({ type: "error", message: err }); |
| | | }); |
| | | this.$axios({url:'/sccg/team_construction/deletion?id='+row.id, |
| | | method:'delete' |
| | | }) |
| | | .then(({ code, message }) => { |
| | | if (code === SUCCESS_CODE) { |
| | | this.$message({ type: "success", message }); |
| | | this.getDepartmentList(); |
| | | } else { |
| | | this.$message({ type: "error", message }); |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | this.$message({ type: "error", message: err }); |
| | | }); |
| | | // deleteTeam({ id: row.id }) |
| | | // .then(({ code, message }) => { |
| | | // if (code === SUCCESS_CODE) { |
| | | // this.$message({ type: "success", message }); |
| | | // this.getDepartmentList(); |
| | | // } else { |
| | | // this.$message({ type: "error", message }); |
| | | // } |
| | | // }) |
| | | // .catch((err) => { |
| | | // this.$message({ type: "error", message: err }); |
| | | // }); |
| | | }); |
| | | }, |
| | | |
| | |
| | | handleClose(done) { |
| | | this.$confirm("确认关闭?") |
| | | .then((_) => { |
| | | console.log('==========') |
| | | this.$refs.childAdd.clearFields() |
| | | this.dialogUpload = false; |
| | | done(); |
| | | }) |
| | | .catch((_) => {}); |
| | | .catch((_) => { |
| | | console.log('==========') |
| | | // console.log('============') |
| | | // this.$refs.childAdd.clearFields() |
| | | }); |
| | | }, |
| | | |
| | | async JumpView(data) { |
| | | |
| | | await this.getEventInfo(data.code); |
| | | }, |
| | | |