diff --git a/jero-web/src/views/projectManagement/components/addModelconformance.vue b/jero-web/src/views/projectManagement/components/addModelconformance.vue index de8ad4ea5..978ba4b47 100644 --- a/jero-web/src/views/projectManagement/components/addModelconformance.vue +++ b/jero-web/src/views/projectManagement/components/addModelconformance.vue @@ -53,7 +53,7 @@ @@ -64,49 +64,17 @@
- - {{$t('creator')}} -
- - - -
-
- -
-
- - {{$t('createTime')}} -
- - - -
-
- - - -
-
{{$t('Relevantlawsregulations')}}
+ v-model="formInline.lawsId"/>
@@ -120,7 +88,7 @@ + :value="item.id"> {{ item.projectName}} @@ -156,7 +124,7 @@ class="box-input-search" optionFilterProp="label" :getPopupContainer="triggerNode=> triggerNode.parentNode" - v-model="formInline.firstLevelDutyTerritory"> + v-model="formInline.dutyTerritory"> @@ -223,24 +191,24 @@ {{$t('documents')}} - -
+ +
-
- {{ (formInline.accessory_id === 'null' || formInline.accessory_id === '' || - formInline.accessory_id == null) ? $t('Fileupload') : $t('viewUploadedFiles') + @click="clickButtonToUpload('file')"> + {{ (formInline.file === 'null' || formInline.file === '' || + formInline.file == null) ? $t('Fileupload') : $t('viewUploadedFiles') }}
@@ -256,15 +224,15 @@ :title="$t('progresstracking')">{{$t('progresstracking')}}
- @@ -278,9 +246,9 @@ {{$t('conculsion')}} - + @@ -295,24 +263,24 @@ {{$t('examineapproveevidence')}} - -
+ +
-
- {{ (formInline.examineapproveevidence === 'null' || formInline.examineapproveevidence === '' || - formInline.examineapproveevidence == null) ? $t('Fileupload') : $t('viewUploadedFiles') + @click="clickButtonToUpload('approvalEvidence')"> + {{ (formInline.approvalEvidence === 'null' || formInline.approvalEvidence === '' || + formInline.approvalEvidence == null) ? $t('Fileupload') : $t('viewUploadedFiles') }}
@@ -346,9 +314,9 @@ {{$t('progresstracking')}}
- + @@ -370,7 +338,7 @@ // import addModel from './a/ddModel' import Standardselection from '@/components/Standardselection/index' import uploadFile from '@/components/uploadFile/file' -import { getAction, postAction, downloadFile } from '@/api/manage' +import { getAction, postAction,putAction, downloadFile } from '@/api/manage' import moment from 'moment' import { mapGetters } from 'vuex' @@ -406,7 +374,7 @@ export default { visible: false, visibletrack: false, rulestracking:{ - text: [ + progressTracking: [ { required: true, message: this.$t('text') + this.$t('cannotEmpty'), @@ -415,9 +383,9 @@ export default { ] }, formInline: { - list:[{}], - examineapproveevidencelist:[{}], - progresstrackinglist:[{}] + fileLinkList:[{}], + progressTrackingList:[{}], + approvalEvidenceLink:[{}] }, formInlinetracking:{}, confirmLoading: false, @@ -449,8 +417,8 @@ export default { ], index:'', url: { - add: '/report/lawsMonthlyReportWriteEO/add', - edit: '/report/lawsMonthlyReportWriteEO/edit', + add: '/project/problemManagementEO/add', + edit: '/project/problemManagementEO/edit', queryById: '/report/lawsMonthlyReportWriteEO/queryById' } } @@ -514,17 +482,16 @@ export default { }, ...mapGetters(['userInfo']), add() { - console.log(this.userInfo()) this.templateDisabled = false this.getNameList() this.getFirstLevelDutyTerritory() - this.title = this.$t('newlyAdded') + this.title = this.$t('newlyAdded1') this.visible = true this.disabled = false this.formInline = { - list:[{}], - examineapproveevidencelist:[{}], - progresstrackinglist:[{}] + fileLinkList:[{}], + progressTrackingList:[{}], + approvalEvidenceLink:[{}] } this.$nextTick(() => { this.formInline = { ...this.formInline } @@ -544,19 +511,19 @@ export default { }) }, addClick(index){ - this.formInline.list.splice(index + 1, 0, {}) + this.formInline.fileLinkList.splice(index + 1, 0, {}) this.formInline = { ...this.formInline } }, deleteClick(index) { - this.formInline.list.splice(index, 1) + this.formInline.fileLinkList.splice(index, 1) this.formInline = { ...this.formInline } }, addvidenceClick(index){ - this.formInline.examineapproveevidencelist.splice(index + 1, 0, {}) + this.formInline.approvalEvidenceLinkList.splice(index + 1, 0, {}) this.formInline = { ...this.formInline } }, deletevidenceClick(index) { - this.formInline.examineapproveevidencelist.splice(index, 1) + this.formInline.approvalEvidenceLinkList.splice(index, 1) this.formInline = { ...this.formInline } }, addprogresstrackingClick(index){ @@ -570,11 +537,11 @@ export default { }) }, deleteprogresstrackingClick(index,item) { - if(item.text && item.text != ''){ + if(item.progressTracking && item.progressTracking != ''){ if(index == 0){ - item.text = '' + item.progressTracking = '' }else{ - this.formInline.progresstrackinglist.splice(index, 1) + this.formInline.progressTrackingList.splice(index, 1) } } this.formInline = { ...this.formInline } @@ -592,14 +559,14 @@ export default { let time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') this.$refs.ruleFormtracking.validate(valid => { if (valid) { - let text = this.userInfo().username + ' ' + time + ' ' + this.formInlinetracking.text - this.formInline.progresstrackinglist.forEach((item,index) => { - console.log(item.text) - if(!item.text){ - this.formInline.progresstrackinglist.splice(0,1) + let text = this.userInfo().username + ' ' + time + ' ' + this.formInlinetracking.progressTracking + this.formInline.progressTrackingList.forEach((item,index) => { + console.log(item.progressTracking) + if(!item.progressTracking){ + this.formInline.progressTrackingList.splice(0,1) } }) - this.formInline.progresstrackinglist.splice(this.index+1, 1, {text:text}) + this.formInline.progressTrackingList.splice(this.index+1, 1, {progressTracking:progressTracking}) this.visibletrack = false } }) @@ -608,37 +575,26 @@ export default { console.log(this.formInline) this.$refs.ruleForm.validate(valid => { if (valid) { - let text = '' - if (this.$refs.defaultTemplateRef) { - text = 'defaultTemplateRef' - } else if (this.$refs.solicitOpinionsRef) { - text = 'solicitOpinionsRef' - } else if (this.$refs.releaseStandardRef) { - text = 'releaseStandardRef' - } else if (this.$refs.industryTemplateRef) { - text = 'industryTemplateRef' - } - this.$refs[text].getData((val) => { this.confirmLoading = true let url = '' + let action = '' if (this.formInline.id) { url = this.url.edit + action = putAction } else { url = this.url.add + action = postAction } let formInline = JSON.parse(JSON.stringify(this.formInline)) - Object.keys(formInline).forEach(res => { - if (formInline[res] && formInline[res] instanceof Array) { - formInline[res] = formInline[res].join(',') - } - }) - let query = Object.assign(val, { - month: formInline.month, - memoriesChapter: formInline.memoriesChapter, - contentTemplate: formInline.contentTemplate, - memoriesChapterOne:formInline.memoriesChapterOne - }) - postAction(url, query).then((res) => { + // Object.keys(formInline).forEach(res => { + // if (formInline[res] && formInline[res] instanceof Array) { + // formInline[res] = formInline[res].join(',') + // } + // }) + let query = { + problemManagementEO:formInline + } + action(url, query).then((res) => { if (res.success) { this.$message.success(this.$t('OperationSuccessful')) this.visible = false @@ -649,7 +605,6 @@ export default { this.$message.warning(this.$t('operationFailed')) } }) - }) } }) } diff --git a/jero-web/src/views/projectManagement/components/nonConformance.vue b/jero-web/src/views/projectManagement/components/nonConformance.vue index 2124d0419..16dff372d 100644 --- a/jero-web/src/views/projectManagement/components/nonConformance.vue +++ b/jero-web/src/views/projectManagement/components/nonConformance.vue @@ -8,8 +8,8 @@
{{$t('title')}}
- + @@ -17,8 +17,8 @@
{{$t('Relevantlawsregulations')}}
- +
@@ -28,7 +28,7 @@ + :value="item.id"> {{ item.projectName}} @@ -75,7 +75,7 @@
- - -
-
- - {{$t('creator')}} -
- - - -
-
- -
-
- - {{$t('createTime')}} -
- - - -
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +