diff --git a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue index f385f2e98..e1b43a2ac 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue @@ -500,12 +500,12 @@ - - - - - - + + + + + + @@ -578,7 +578,7 @@ :title="$t('deliverableTemplate')">{{$t('deliverableTemplate')}} - + {{ (formInline.deliverableTemplate === 'null' || formInline.deliverableTemplate === '' @@ -690,6 +690,22 @@ + + +
+  {{$t('PlatformInformation')}} +
+ + + @@ -721,12 +737,14 @@ import addCodeNumber from './addCodeNumber' import PersonnelSelection from '@/components/PersonnelSelection/index' import uploadFile from '@/components/uploadFile/file' + import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header' import { getAction, postAction, downloadFile, putAction } from '@/api/manage' import { mapGetters } from 'vuex' import moment from 'moment' export default { name: 'addModel', + mixins: [ResizeHeader, ResizeColumnProvide], components: { PersonnelSelection, uploadFile, @@ -734,10 +752,12 @@ }, data() { return { + dataList: [], formInline: {}, + loading: false, confirmLoading: false, visible: false, - disabledType:'', + disabledType: '', personnelVisible: false, yearNameDataList: [], firstLevelDutyTerritoryList: [], @@ -804,13 +824,13 @@ trigger: 'blur' } ], - remark:[ + remark: [ { max: 500, message: this.$t('remarks') + this.$t('cannotExceed') + 500 + this.$t('Characters'), trigger: 'blur' } - ], + ] }, disabled: false, flowdisabled: false, @@ -824,7 +844,30 @@ edit: '/project/projectCertificationInventoryEO/edit', list: '/project/projectLawsInventoryEO/list' }, - engineeringInterfacePersonList: [] + engineeringInterfacePersonList: [], + columns: [ + { + title: this.$t('entryName'), + dataIndex: 'projectName', + align: 'left', + ellipsis: true, + width: 120 + }, + { + title: this.$t('typeOfDeliverables'), + dataIndex: 'deliverableTypeName', + align: 'left', + ellipsis: true, + width: 160 + }, + { + title: this.$t('deliverableTemplate'), + dataIndex: 'deliverableTemplate', + align: 'left', + ellipsis: true, + width: 200 + } + ] } }, mounted() { @@ -877,7 +920,7 @@ }, DutyDepartChangeOne(event) { this.formInline.dutyTerritory = [] - this.formInline = {...this.formInline} + this.formInline = { ...this.formInline } this.getDutyTerritoryOne(event.join(',')) }, getDutyTerritoryOne(row) { @@ -923,18 +966,30 @@ if (value.dutyTerritory && value.dutyTerritory.length > 0) { this.queryPersonByProject(value.dutyTerritory.join(',')) } - console.log(value) - if(value.projectCertificationInventoryEOS && (value.projectCertificationInventoryEOS.length > 0 || value.projectCertificationInventoryEOS != null)){ + if (value.projectCertificationInventoryEOS && (value.projectCertificationInventoryEOS.length > 0 || value.projectCertificationInventoryEOS != null)) { this.flowdisabled = true this.$refs.uploadFile.disabled = true } this.getRegulationNo() + this.getConnectPlatform(this.formInline.id) this.title = this.$t('edit') this.$nextTick(() => { this.formInline = { ...this.formInline } this.$refs.ruleForm.clearValidate() }) }, + getConnectPlatform(id) { + let query = { + id: id + } + getAction('/project/projectCertificationInventoryEO/connectPlatform', query).then((res) => { + if (res.success) { + this.dataList = res.result || [] + } else { + this.dataList = [] + } + }) + }, handleCancel() { this.visible = false this.personnelVisible = false @@ -1012,9 +1067,9 @@ DutyDepartChange(index) { this.formInline.dataList[index].dutyTerritory = [] this.formInline = { ...this.formInline } - this.getDutyTerritory(this.formInline.dataList[index].dutyDepart.join(','),index) + this.getDutyTerritory(this.formInline.dataList[index].dutyDepart.join(','), index) }, - getDutyTerritory(row,index) { + getDutyTerritory(row, index) { let query = { dutyDepart: row } @@ -1024,7 +1079,7 @@ } else { this.formInline.dataList[index].dutyTerritoryList = [] } - this.formInline = {...this.formInline} + this.formInline = { ...this.formInline } }) }, handleInput(value, id, index, array) { @@ -1299,11 +1354,21 @@ ::v-deep .ant-form-item-with-help { margin-bottom: 25px; } + .itemModel-text { width: calc(100% - 130px); display: inline-block; margin-top: 2px; } + + .header-text-text { + font-size: 16px; + font-weight: bold; + margin-left: 15px; + /*border-bottom: 1px #d9d9d9 dashed;*/ + height: 30px; + margin-bottom: 30px; + } \ No newline at end of file