From de3a1dd6ed080145ad22b91a3f3216b2a8074e86 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 11 Feb 2025 16:21:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E7=90=86=E5=8D=95=E4=BD=8D=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supervisionUnit/index.vue | 73 +++++++++++-------- vue.config.js | 4 +- 2 files changed, 46 insertions(+), 31 deletions(-) diff --git a/src/views/externalUnitManagement/supervisionUnit/index.vue b/src/views/externalUnitManagement/supervisionUnit/index.vue index 7d2c78e..a35c032 100644 --- a/src/views/externalUnitManagement/supervisionUnit/index.vue +++ b/src/views/externalUnitManagement/supervisionUnit/index.vue @@ -46,7 +46,7 @@ - + - + - - {{ scope.row.userNum }} - + + {{ scope.row.userNum }} + - @@ -246,7 +245,9 @@ 编辑 - 删除 + + 删除 + @@ -259,7 +260,13 @@ /> - + - + - + - @@ -414,7 +430,7 @@ export default { directorInnerTitle: '新增', // 查询参数 directorQueryParams: { - unitId:'', + unitId: '', directorsName: '', // 姓名 pageNum: 1, pageSize: 20, @@ -427,10 +443,10 @@ export default { directorAddForm: { directorsName: '', directorsPhone: '', - directorsIdCard:'', - commUserId:'', - supId:'', - jlId:'', + directorsIdCard: '', + commUserId: '', + supId: '', + jlId: '', }, // 新增总监 rules directorAddFormRules: { @@ -464,8 +480,8 @@ export default { { // 身份证号码的正则表达式 pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/, - message: "请输入正确的身份证号码", - trigger: "blur" + message: '请输入正确的身份证号码', + trigger: 'blur', }, ], }, @@ -492,7 +508,7 @@ export default { this.supervisorFormOpen = false this.unitResetForm() }, - openUserInfo(){ + openUserInfo() { this.directorOuterVisible = true }, // 表单重置 @@ -658,15 +674,15 @@ export default { // 点击列表总监数量时打开弹框 onHandleDirector(row) { console.log('row当前行信息', row) - this.directorQueryParams.unitId=row.supId; + this.directorQueryParams.unitId = row.supId this.onHandleQueryDirectorList() this.directorOuterVisible = true }, // 查询弹框内总监列表 async onHandleQueryDirectorList() { const res = await getDirectorListApi(this.directorQueryParams) - this.directorList=res.rows; - this.directorTotal=res.total; + this.directorList = res.rows + this.directorTotal = res.total console.log('总监数据列表', res) }, // 新增总监按钮 @@ -679,13 +695,12 @@ export default { }, // 列表编辑按钮 onHandleEdit(row) { - this.directorInnerTitle = '编辑' - this.directorAddForm.directorsName = row.directorsName; - this.directorAddForm.directorsPhone = row.directorsPhone; - this.directorAddForm.directorsIdCard = row.commUserCode; - this.directorAddForm.commUserId = row.commUserId; - this.directorAddForm.supId = row.supId; + this.directorAddForm.directorsName = row.directorsName + this.directorAddForm.directorsPhone = row.directorsPhone + this.directorAddForm.directorsIdCard = row.commUserCode + this.directorAddForm.commUserId = row.commUserId + this.directorAddForm.supId = row.supId this.directorInnerVisible = true console.log('row当前行信息', row) }, @@ -716,7 +731,7 @@ export default { if (valid) { // 校验通过 console.log('this.directorAddForm新增总监提交参数', this.directorAddForm) - this.directorAddForm.jlId= this.directorQueryParams.unitId; + this.directorAddForm.jlId = this.directorQueryParams.unitId // 根据弹框标题判断当前是新增还是修改 const SEND_API = this.directorInnerTitle === '新增' ? addDirectorInfoApi : editDirectorInfoApi const res = await SEND_API(this.directorAddForm) diff --git a/vue.config.js b/vue.config.js index 4cc5ba5..1c93a06 100644 --- a/vue.config.js +++ b/vue.config.js @@ -38,10 +38,10 @@ module.exports = { // target: `http://localhost:18080`, // target: 'http://192.168.0.176:18080', // target: 'http://192.168.0.58:19090', // 杰 - // target: 'http://192.168.0.14:18080', // 测试环境 + target: 'http://192.168.0.14:18080', // 测试环境 // target: 'http://218.21.27.6:1999/prod-api', // 生产环境 // target: 'http://192.168.0.38:18080', // 郝志权 - target: 'http://192.168.2.122:18080', // 梁超 + // target: 'http://192.168.2.122:18080', // 梁超 changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '',