From bb2ffd967d0a951ce61830050df99687f9b47618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Tue, 5 Aug 2025 14:49:37 +0800 Subject: [PATCH] tijiao --- src/router/index.js | 1 + src/views/components/commonBookTags/tags.vue | 66 +- .../modules/medicalrecords/addCertificate.vue | 43 +- src/views/modules/medicalrecords/addUser.vue | 1099 ++++++++++++ src/views/modules/medicalrecords/userList.vue | 1475 +++++++++++++++++ src/views/modules/talents/talents-list.vue | 369 +++-- 6 files changed, 2845 insertions(+), 208 deletions(-) create mode 100644 src/views/modules/medicalrecords/addUser.vue create mode 100644 src/views/modules/medicalrecords/userList.vue diff --git a/src/router/index.js b/src/router/index.js index 5a5e85e..f5d3cda 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -84,6 +84,7 @@ const mainRoutes = { { path: '/mergeList', component: _import('modules/certificate/mergeList'), name: 'mergeList', meta: { title: '小班、自考证书', isTab: true } }, { path: '/medicalrecords-medicalList', component: _import('modules/medicalrecords/medicalList'), name: 'medicalrecords-medicalList', meta: { title: '医案列表', isTab: true } }, + { path: '/medicalrecords-userList', component: _import('modules/medicalrecords/userList'), name: 'medicalrecords-userList', meta: { title: '审核人员列表', isTab: true } }, ], beforeEnter (to, from, next) { diff --git a/src/views/components/commonBookTags/tags.vue b/src/views/components/commonBookTags/tags.vue index 116eb67..4161493 100644 --- a/src/views/components/commonBookTags/tags.vue +++ b/src/views/components/commonBookTags/tags.vue @@ -1,17 +1,31 @@ @@ -677,6 +684,7 @@ export default { props: ["data", "pageType", "dataInfo", "labelId", "currentNode"], data() { return { + dataForm:{}, isShowWord: false, imagePreviews: false, record: {}, @@ -1609,8 +1617,9 @@ this.addCertificateForm.mark='' console.log("options", this.options); // this.getCate(val) }, - handlePictureCardPreview(file) { - // 图片预览逻辑 + handlePictureCardPreview(file) { + this.dataForm.productImages = file.url; + this.dialogVisibleImg = true; }, handleClose(done) { done(); @@ -1632,31 +1641,31 @@ this.addCertificateForm.mark='' margin-bottom: 15px; } /deep/.el-upload-list--picture-card .el-upload-list__item { - width: 80px !important; - height: 80px !important; - line-height: 80px !important; + width:80px !important; + height:80px !important; + line-height:80px !important; } /deep/.el-upload--picture-card { - width: 80px !important; - height: 80px !important; - line-height: 80px !important; + width:80px !important; + height:80px !important; + line-height:80px !important; } } /deep/.yianDrawer header { margin-bottom: 10px !important; } /deep/.custom-upload { - min-height: 60px !important; + min-height: 120px !important; } /deep/.custom-upload .el-upload--picture-card { - width: 60px !important; - height: 60px !important; - line-height: 70px !important; + width:80px !important; + height:80px !important; + line-height:80px !important; } /deep/.custom-upload .el-upload-list--picture-card .el-upload-list__item { - width: 60px !important; - height: 60px !important; - line-height: 60px !important; + width:80px !important; + height:80px !important; + line-height:80px !important; } /deep/.custom-upload-box .el-form-item__label { line-height: 60px !important; diff --git a/src/views/modules/medicalrecords/addUser.vue b/src/views/modules/medicalrecords/addUser.vue new file mode 100644 index 0000000..c78c49a --- /dev/null +++ b/src/views/modules/medicalrecords/addUser.vue @@ -0,0 +1,1099 @@ + + + + diff --git a/src/views/modules/medicalrecords/userList.vue b/src/views/modules/medicalrecords/userList.vue new file mode 100644 index 0000000..997baa2 --- /dev/null +++ b/src/views/modules/medicalrecords/userList.vue @@ -0,0 +1,1475 @@ + + + + diff --git a/src/views/modules/talents/talents-list.vue b/src/views/modules/talents/talents-list.vue index a67f7cd..380d406 100644 --- a/src/views/modules/talents/talents-list.vue +++ b/src/views/modules/talents/talents-list.vue @@ -6,11 +6,7 @@ @keyup.enter.native="getDataList()" > - + @@ -29,11 +25,7 @@ " >查询 - 新增 + 新增 - + @@ -87,21 +80,14 @@ query: { id: scope.row.id } }" > - 查看课程 + 查看课程 - 修改 - 删除 + 修改 + 删除 @@ -129,7 +115,7 @@ :rules="addFormRule" label-width="110px" > - +
{{ item.tel ? item.tel : item.email }} - ({{ item.name }})
@@ -162,20 +146,41 @@ - + +
- +
- 修改 + 修改
@@ -226,17 +231,30 @@ - + - + - + - + - + { + if (data && data.code === 0) { + this.departmentList = data.Medicals; + } else { + this.departmentList = []; + } + }); + }, getDataList() { this.dataListLoading = true; this.$http({ @@ -389,7 +401,7 @@ export default { limit: this.pageSize, name: this.dataForm.name, region: this.dataForm.region - }), + }) }).then(({ data }) => { if (data && data.code === 0) { this.dataList = data.pageRes.records; @@ -426,72 +438,78 @@ export default { this.addForm.userId = item.id; }, //新增 - addHandle(){ + addHandle() { this.addOrUpdateVisible = true; - this.titlesub = '新增'; - this.statusType = 0; //新增 - + this.titlesub = "新增"; + this.statusType = 0; //新增 + this.changeStatus = true; this.chinaStatus = false; this.selectCode = null; this.selectedProvId = null; - this.selectedCity = ''; - + this.selectedCity = ""; + this.selectCode = null; this.selectedProvId = null; - this.selectedCity = ''; + this.selectedCity = ""; this.fileList = []; this.stopLoad = false; this.addForm = { - tel: '', + tel: "", name: "", title: "", - department: '', + department: "", specialty: "", region: "", reservation: "", introduce: "", clinic: "", icon: "" - } + }; this.$nextTick(() => { this.$refs.addFormRef.clearValidate(); }); }, //点击确定 - addOrEditCate(){ + addOrEditCate() { //如果是中国 城市必选 - if(this.chinaStatus){ - if(!this.selectedCity){ + if (this.chinaStatus) { + if (!this.selectedCity) { this.$message({ message: "请选择城市", type: "warning" }); - return + return; } } - if(this.statusType==0){ //如果是新增 + if (this.statusType == 0) { + //如果是新增 this.addCate(); - }else if(this.statusType==1){ //如果是修改 + } else if (this.statusType == 1) { + //如果是修改 this.editCate(this.addForm); } }, - addCate(){ + addCate() { + console.log("this.addForm at line 490:", this.addForm); this.$refs["addFormRef"].validate(valid => { if (valid) { - var icon = ''; - var region = ''; - if(this.fileList&&this.fileList.length>0){ - icon = this.fileList[0].url + var icon = ""; + var region = ""; + if (this.fileList && this.fileList.length > 0) { + icon = this.fileList[0].url; } - if(this.selectedCountry){ - if(!this.selectedProvince){ - region = this.selectedCountry - }else{ + if (this.selectedCountry) { + if (!this.selectedProvince) { + region = this.selectedCountry; + } else { region = this.selectedProvince + this.selectedCity; } } + const department = Array.isArray(this.addForm.department) + ? this.addForm.department[this.addForm.department.length - 1] + : this.addForm.department; this.$http({ url: this.$http.adornUrl("/master/taihuTalent/addTaihuTalent"), method: "post", @@ -499,14 +517,14 @@ export default { userId: this.addForm.userId, name: this.addForm.name, title: this.addForm.title, - department: this.addForm.department, + department: department, specialty: this.addForm.specialty, region: region, reservation: this.addForm.reservation, introduce: this.addForm.introduce, clinic: this.addForm.clinic, icon: icon - }), + }) }).then(({ data }) => { if (data && data.code === 0) { this.$message({ @@ -519,25 +537,28 @@ export default { } }); } - }) + }); }, - editCate(data){ - console.log('data at line 524:', data) + editCate(data) { + console.log("data at line 524:", data); this.$refs["addFormRef"].validate(valid => { if (valid) { - var icon = ''; - var region = ''; - if(this.fileList&&this.fileList.length>0){ - icon = this.fileList[0].url + var icon = ""; + var region = ""; + if (this.fileList && this.fileList.length > 0) { + icon = this.fileList[0].url; } - if(this.selectedCountry){ - if(!this.selectedProvince){ - region = this.selectedCountry - }else{ + if (this.selectedCountry) { + if (!this.selectedProvince) { + region = this.selectedCountry; + } else { region = this.selectedProvince + this.selectedCity; } } + const department = Array.isArray(data.department) + ? data.department[data.department.length - 1] + : data.department; this.$http({ url: this.$http.adornUrl("/master/taihuTalent/updateTaihuTalent"), method: "post", @@ -545,14 +566,14 @@ export default { id: data.id, name: data.name, title: data.title, - department: data.department, + department: department, specialty: data.specialty, - region: region?region:data.region, + region: region ? region : data.region, reservation: data.reservation, introduce: data.introduce, clinic: data.clinic, icon: icon - }), + }) }).then(({ data }) => { if (data && data.code === 0) { this.$message({ @@ -565,17 +586,17 @@ export default { } }); } - }) + }); }, //修改地域 - changeCountry(){ + changeCountry() { this.changeStatus = true; this.chinaStatus = false; this.selectCode = null; this.selectedProvId = null; }, //取消 - cancleClose(){ + cancleClose() { this.addOrUpdateVisible = false; }, // 每页数 @@ -592,11 +613,11 @@ export default { //操作 //点击修改 - editHandle(data){ + editHandle(data) { this.fileList = []; this.addOrUpdateVisible = true; - this.titlesub = '修改'; - this.statusType = 1; //修改 + this.titlesub = "修改"; + this.statusType = 1; //修改 this.changeStatus = false; this.addForm.id = data.id; @@ -610,7 +631,7 @@ export default { this.addForm.clinic = data.clinic; this.addForm.icon = data.icon; //图片赋值 - if(data.icon){ + if (data.icon) { this.fileList.push({ url: data.icon }); @@ -620,7 +641,7 @@ export default { }); }, //点击删除 - deleteHandle(data){ + deleteHandle(data) { this.$confirm("确定删除该数据?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", @@ -675,86 +696,88 @@ export default { //获取国家数据 loadCountries() { this.countryLoading = true; - this.$http({ + this.$http({ url: this.$http.adornUrl("/common/baseArea/getAllBaseArea"), method: "post", - data: this.$http.adornData({}), + data: this.$http.adornData({}) }).then(({ data }) => { if (data && data.code === 0) { - if (data.baseAreas&&data.baseAreas.length>0) { + if (data.baseAreas && data.baseAreas.length > 0) { this.countryLoading = false; this.countries = data.baseAreas; } } }); - }, + }, //获取中国省份 - loadProvinces() { + loadProvinces() { this.provinceLoading = true; this.$http({ url: this.$http.adornUrl("/common/province/getProvinceList"), method: "post", - data: this.$http.adornData({}), + data: this.$http.adornData({}) }).then(({ data }) => { if (data && data.code === 0) { - if (data.provinceList&&data.provinceList.length>0) { + if (data.provinceList && data.provinceList.length > 0) { this.provinceLoading = false; this.provinces = data.provinceList; } } }); - }, + }, //选择国家 - handleCountryChange(code){ - if(code=='86'){ + handleCountryChange(code) { + if (code == "86") { this.chinaStatus = true; - }else{ + } else { this.chinaStatus = false; } const data = this.countries.find(country => country.code === code); this.selectedCountry = data.title; - this.selectedProvince = ''; - this.selectedCity = ''; + this.selectedProvince = ""; + this.selectedCity = ""; this.selectedProvId = null; this.provinces = []; this.cities = []; - console.log('所选国家-', this.selectedCountry) + console.log("所选国家-", this.selectedCountry); }, //选择省份 - handleProvinceChange(provId){ + handleProvinceChange(provId) { this.cityLoading = true; const data = this.provinces.find(prov => prov.provId === provId); this.selectedProvince = data.provName; - this.selectedCity = ''; + this.selectedCity = ""; this.$http({ - url: this.$http.adornUrl("/common/province/getCityList?provId="+ provId), + url: this.$http.adornUrl( + "/common/province/getCityList?provId=" + provId + ), method: "post", - data: this.$http.adornData({}), + data: this.$http.adornData({}) }).then(({ data }) => { if (data && data.code === 0) { - if (data.prov&&data.prov.length>0) { + if (data.prov && data.prov.length > 0) { this.cities = data.prov; this.cityLoading = false; } } }); - console.log('所选省份-', this.selectedProvince) + console.log("所选省份-", this.selectedProvince); }, //选择城市 - handleCityChange(val){ + handleCityChange(val) { this.selectedCity = val; - console.log('所选城市-', this.selectedCity) - }, - }, + console.log("所选城市-", this.selectedCity); + } + } }; -