From ff4e34a9b624c182a9f49a962f1c7078bc75639e Mon Sep 17 00:00:00 2001 From: guoyuepeng <770272267@qq.com> Date: Thu, 26 Sep 2024 16:22:49 +0800 Subject: [PATCH 1/5] =?UTF-8?q?1.=E8=BF=98=E5=8E=9F=E9=9A=90=E6=82=A3?= =?UTF-8?q?=E9=AA=8C=E6=94=B6=E5=9B=BE=E7=89=87=E4=B8=8D=E8=83=BD=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hidden/rectify/components/change.vue | 161 +++--------------- 1 file changed, 24 insertions(+), 137 deletions(-) diff --git a/src/views/hidden/rectify/components/change.vue b/src/views/hidden/rectify/components/change.vue index 85c4268..c80f0f7 100644 --- a/src/views/hidden/rectify/components/change.vue +++ b/src/views/hidden/rectify/components/change.vue @@ -33,46 +33,25 @@ - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
+ + + + + +
@@ -215,13 +194,11 @@ export default { INVESTMENT_FUNDS: '', // 投入资金 RECTIFICATIONTIME: ''// 整改时间 }, - imgUrl: '', rectify_files: [], hideUpload: false, // 整改照片 dialogImageVisible: false, // 放大照片的显示和隐藏 dialogImageUrl: '', // 照片的地址 scheme_files: [], // 整改方案图片 - temporaryFilePath: [], formRule: { RECTIFICATIONDEPT: [{ required: true, message: '请选择整改部门', trigger: 'blur' }], RECTIFICATIONOR: [{ required: true, message: '请选择整改人', trigger: 'blur' }], @@ -275,53 +252,6 @@ export default { this.getEditMyInfo() }, methods: { - uploadFiles(file) { - // 调用文件大小校验方法 - if (this.beforeUpload(file.file)) { - this.formData = new FormData() - this.formData.append('FFILE', file.file) - // 请求接口 - upload( - '/mfolder/upLoadTemporary', - this.formData - ).then((data) => { - if (data.result == 'success') { - this.$message({ - message: '保存成功', - type: 'success' - }) - this.loading = false - this.temporaryFilePath.push(data.temporaryFilePath) - console.info('this.temporaryFilePath========' + this.temporaryFilePath) - } else { - this.$message({ - message: data.exception, - type: 'error' - }) - this.loading = false - } - }).catch((e) => { - this.listLoading = false - this.loading = false - }) - } - }, - // 文件大小校验 - beforeUpload(file) { - if (file.size > 10 * 1024 * 1024) { - this.$message('文件过大,请上传小于10MB的文件〜') - return false - } - return true - }, - // 删除图片 - imageRemove() { - this.imgUrl = '' - this.$message({ - message: '删除图片成功', - type: 'success' - }) - }, getEditMyInfo: function() { requestFN( '/user/goEditMyInfo', @@ -484,8 +414,7 @@ export default { }, saveRectify() { // 正常整改 this.loading = true - // if (this.$refs.zhenggaiupload.uploadFiles.length < 1) { - if (this.temporaryFilePath.length < 1) { + if (this.$refs.zhenggaiupload.uploadFiles.length < 1) { this.$message({ message: '请上传整改后照片', type: 'error' @@ -612,24 +541,16 @@ export default { text: '加载中......', background: 'rgba(0,0,0,0.5)' }) - // this.$refs.zhenggaiupload.submit() + this.$refs.zhenggaiupload.submit() var todata = new FormData() - for (var i = 0; i < _this.temporaryFilePath.length; i++) { - if (_this.temporaryFilePath[i]) { - todata.append('temporaryFilePath', _this.temporaryFilePath[i]) + for (var i = 0; i < _this.rectify_files.length; i++) { + if (_this.rectify_files[i]) { + todata.append('FFILE', _this.rectify_files[i]) } } - if (!todata.get('temporaryFilePath')) { + if (!todata.get('FFILE')) { return } - // for (var i = 0; i < _this.rectify_files.length; i++) { - // if (_this.rectify_files[i]) { - // todata.append('FFILE', _this.rectify_files[i]) - // } - // } - // if (!todata.get('FFILE')) {f - // return - // } todata.append('FOREIGN_KEY', this.HIDDEN_ID) todata.append('TYPE', 4) upload( @@ -682,7 +603,6 @@ export default { } todata.append('FOREIGN_KEY', this.HIDDEN_ID) todata.append('TYPE', 8) - todata.append('temporaryFilePath', this.temporaryFilePath) upload( '/imgfiles/add', todata @@ -764,39 +684,6 @@ export default { this.scheme_files.push(file) } }, - submitUpload() { - var _this = this - this.$refs.zhenggaiupload.submit() - var todata = new FormData() - for (var i = 0; i < _this.rectify_files.length; i++) { - if (_this.rectify_files[i]) { - todata.append('FFILE', _this.rectify_files[i]) - } - } - console.log(todata) - upload( - '/mfolder/upLoadTemporary', - todata - ).then((data) => { - if (data.result == 'success') { - this.$message({ - message: '保存成功', - type: 'success' - }) - this.loading = false - this.temporaryFilePath = data.temporaryFilePath - } else { - this.$message({ - message: data.exception, - type: 'error' - }) - this.loading = false - } - }).catch((e) => { - this.listLoading = false - this.loading = false - }) - }, back() { this.$parent.activeName = 'List' } From f565276ed7c6acff85462f0bca00f53c1648c075 Mon Sep 17 00:00:00 2001 From: shanao Date: Fri, 27 Sep 2024 18:06:51 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=B0=86=E4=BA=8B=E6=95=85/=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=88=86=E7=A6=BB=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accident/event/components/addOrEdit.vue | 479 ++++++++++++++++++ src/views/accident/event/components/list.vue | 354 +++++++++++++ src/views/accident/event/index.vue | 37 ++ .../accident/records/components/addOrEdit.vue | 145 +++++- .../accident/records/components/list.vue | 55 +- 5 files changed, 1016 insertions(+), 54 deletions(-) create mode 100644 src/views/accident/event/components/addOrEdit.vue create mode 100644 src/views/accident/event/components/list.vue create mode 100644 src/views/accident/event/index.vue diff --git a/src/views/accident/event/components/addOrEdit.vue b/src/views/accident/event/components/addOrEdit.vue new file mode 100644 index 0000000..d60d935 --- /dev/null +++ b/src/views/accident/event/components/addOrEdit.vue @@ -0,0 +1,479 @@ + + + + + diff --git a/src/views/accident/event/components/list.vue b/src/views/accident/event/components/list.vue new file mode 100644 index 0000000..b0acb2a --- /dev/null +++ b/src/views/accident/event/components/list.vue @@ -0,0 +1,354 @@ + + + + + diff --git a/src/views/accident/event/index.vue b/src/views/accident/event/index.vue new file mode 100644 index 0000000..33eb176 --- /dev/null +++ b/src/views/accident/event/index.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/src/views/accident/records/components/addOrEdit.vue b/src/views/accident/records/components/addOrEdit.vue index 9b3f0c1..86ea49e 100644 --- a/src/views/accident/records/components/addOrEdit.vue +++ b/src/views/accident/records/components/addOrEdit.vue @@ -32,6 +32,8 @@ v-model="infoForm.incidentDate" type="datetime" placeholder="选择事故发生时间" + format="yyyy-MM-dd HH:mm:ss" + value-format="yyyy-MM-dd HH:mm:ss" style="width: 100%;" /> @@ -53,6 +55,29 @@ + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + :file-list="infoForm.fileAddressList" + :multiple="false" + :auto-upload="true" + :limit="limitNum" + :on-remove="handleRemoveAnnex" + :before-upload="beforeEventUpload" + :on-error="handleError" + :on-exceed="handleExceed" + name="file" + action="#" + accept=".doc,.docx,.pdf,.xlsx"> + 点击上传 + + + + {{ infoForm.fileAddressList[0].name }} @@ -116,8 +146,9 @@ - - - diff --git a/src/views/index/index.vue b/src/views/index/index.vue index e9711ba..96db313 100644 --- a/src/views/index/index.vue +++ b/src/views/index/index.vue @@ -118,9 +118,10 @@ export default { this.jinduData[1] = nowYear + '-12-31' this.getJindu() this.getQingdan() - this.getWorkNumber() + // this.getWorkNumber() this.getRiskNumber() - this.getHiddenTypeCount()/* + // this.getHiddenTypeCount() + /* this.getNoticeList() this.getNoticeCorpList()*/ }, diff --git a/src/views/keyprojects/outsourced/components/edit.vue b/src/views/keyprojects/outsourced/components/edit.vue index 7d1fbc6..f3c2177 100644 --- a/src/views/keyprojects/outsourced/components/edit.vue +++ b/src/views/keyprojects/outsourced/components/edit.vue @@ -46,14 +46,26 @@ - + + + + + + + + + + + style="width: 100%;" + /> diff --git a/src/views/safetyenvironmental/inspection/components/list.vue b/src/views/safetyenvironmental/inspection/components/list.vue index 7d38400..6cd6438 100644 --- a/src/views/safetyenvironmental/inspection/components/list.vue +++ b/src/views/safetyenvironmental/inspection/components/list.vue @@ -24,6 +24,16 @@ placeholder="请选择检查部门"/> + + + + + + + + + + @@ -42,6 +52,8 @@ children-name="nodes" /> + + - - @@ -75,6 +85,11 @@ + + + + + @@ -259,6 +274,9 @@ export default { INSPECTION_ORIGINATOR_NAME: '', // 检查发起人 INSPECTION_TYPE: '', // 检查类型 INSPECTION_TIME: ['', ''], // 检查时间 + INSPECTION_USER_NAME: '', // 检查人员 + INSPECTION_USER_PHONE: '', // 检查人员手机 + INSPECTION_CASE: '', // 检查情况 INSPECTION_STATUS: '', // 检查状态 INSPECTION_SUBJECT: '' // 检查题目 }, From 754501dfe957fb28533cc400e7d2d1bae27b32a5 Mon Sep 17 00:00:00 2001 From: shanao Date: Sat, 19 Oct 2024 17:34:00 +0800 Subject: [PATCH 4/5] 11111 --- src/views/evaluate/initialevaluate/index.vue | 10 ++++++---- src/views/evaluate/publicity/index.vue | 8 +++++--- src/views/evaluate/reviewevaluate/index.vue | 14 ++++++++------ src/views/evaluate/workersevaluate/index.vue | 8 +++++--- src/views/risk/identificationparts/index.vue | 7 ++++--- src/views/risk/riskpoint/index.vue | 6 ++++-- src/views/risk/riskunit/index.vue | 6 ++++-- .../inspection/components/list.vue | 8 ++++---- src/views/xgf/insert/index.vue | 4 +++- 9 files changed, 43 insertions(+), 28 deletions(-) diff --git a/src/views/evaluate/initialevaluate/index.vue b/src/views/evaluate/initialevaluate/index.vue index 9fdbf12..32402db 100644 --- a/src/views/evaluate/initialevaluate/index.vue +++ b/src/views/evaluate/initialevaluate/index.vue @@ -1,9 +1,11 @@ diff --git a/src/views/evaluate/publicity/index.vue b/src/views/evaluate/publicity/index.vue index bc96be7..81d31f5 100644 --- a/src/views/evaluate/publicity/index.vue +++ b/src/views/evaluate/publicity/index.vue @@ -1,8 +1,10 @@ diff --git a/src/views/evaluate/reviewevaluate/index.vue b/src/views/evaluate/reviewevaluate/index.vue index c813383..8d3c5be 100644 --- a/src/views/evaluate/reviewevaluate/index.vue +++ b/src/views/evaluate/reviewevaluate/index.vue @@ -1,11 +1,13 @@ diff --git a/src/views/evaluate/workersevaluate/index.vue b/src/views/evaluate/workersevaluate/index.vue index 46e48c1..78004d2 100644 --- a/src/views/evaluate/workersevaluate/index.vue +++ b/src/views/evaluate/workersevaluate/index.vue @@ -1,8 +1,10 @@ diff --git a/src/views/risk/identificationparts/index.vue b/src/views/risk/identificationparts/index.vue index f08f9cd..cc4d18c 100644 --- a/src/views/risk/identificationparts/index.vue +++ b/src/views/risk/identificationparts/index.vue @@ -1,8 +1,9 @@ diff --git a/src/views/risk/riskpoint/index.vue b/src/views/risk/riskpoint/index.vue index 6e9132f..aae5c20 100644 --- a/src/views/risk/riskpoint/index.vue +++ b/src/views/risk/riskpoint/index.vue @@ -1,8 +1,10 @@ diff --git a/src/views/risk/riskunit/index.vue b/src/views/risk/riskunit/index.vue index dcbfcc2..a40b6bc 100644 --- a/src/views/risk/riskunit/index.vue +++ b/src/views/risk/riskunit/index.vue @@ -1,8 +1,10 @@ diff --git a/src/views/safetyenvironmental/inspection/components/list.vue b/src/views/safetyenvironmental/inspection/components/list.vue index 6cd6438..507fb54 100644 --- a/src/views/safetyenvironmental/inspection/components/list.vue +++ b/src/views/safetyenvironmental/inspection/components/list.vue @@ -26,12 +26,12 @@ - + - + @@ -87,7 +87,7 @@ - + @@ -281,7 +281,7 @@ export default { INSPECTION_SUBJECT: '' // 检查题目 }, statusList: [ - { ID: '', NAME: '请选择' }, + // { ID: '', NAME: '请选择' }, { ID: '0', NAME: '待检查人核实' }, { ID: '1', NAME: '检查人核实中' }, { ID: '2', NAME: '待被检查人确认' }, diff --git a/src/views/xgf/insert/index.vue b/src/views/xgf/insert/index.vue index a3a7ad0..89679ab 100644 --- a/src/views/xgf/insert/index.vue +++ b/src/views/xgf/insert/index.vue @@ -1,5 +1,7 @@