项目库 法规清单编辑回显
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<span>{{$t('entryName')}}</span>
|
||||
</div>
|
||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('entryName')"
|
||||
v-model="queryParam.projectName"></a-input>
|
||||
v-model="queryParam.projectNameId"></a-input>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :md="12" :sm="8">
|
||||
|
||||
@@ -16,16 +16,16 @@
|
||||
<a-col :span="12">
|
||||
<div class='detail-box'>
|
||||
<span class='detail-text' :title="$t('regulationNo')">{{$t('regulationNo')}}</span>
|
||||
<span class="title-text-text" :title="form.vdr">
|
||||
{{form.vdr}}</span>
|
||||
<span class="title-text-text" :title="form.serialNumber">
|
||||
{{form.serialNumber}}</span>
|
||||
</div>
|
||||
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class='detail-box'>
|
||||
<span class='detail-text' :title="$t('title')">{{$t('title')}}</span>
|
||||
<span class="title-text-text" :title="form.summary">
|
||||
{{form.summary}}</span>
|
||||
<span class="title-text-text" :title="form.title">
|
||||
{{form.title}}</span>
|
||||
</div>
|
||||
|
||||
</a-col>
|
||||
@@ -34,8 +34,8 @@
|
||||
<a-col :span="12">
|
||||
<div class='detail-box'>
|
||||
<span class='detail-text' :title="$t('subtitle')">{{$t('subtitle')}}</span>
|
||||
<span class="title-text-text" :title="form.homologationImpact">
|
||||
{{form.homologationImpact}}</span>
|
||||
<span class="title-text-text" :title="form.subtitle">
|
||||
{{form.subtitle}}</span>
|
||||
</div>
|
||||
|
||||
</a-col>
|
||||
@@ -49,14 +49,14 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
<div v-for='(item,index) in dataList' :key='index'>
|
||||
<div class='title' :title="item.title">{{item.title}}</div>
|
||||
<div class='title' :title="item.projectName">{{item.projectName}}</div>
|
||||
<div style='height:100%'>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class='detail-box'>
|
||||
<span class='detail-text' :title="$t('ProcessStatus')">{{$t('ProcessStatus')}}</span>
|
||||
<span class="title-text-text" :title="item.ProcessStatus">
|
||||
{{item.ProcessStatus}}</span>
|
||||
<span class="title-text-text" :title="flag == 'design'?item.designFlowStatusName : item.verifyFlowStatusName">
|
||||
{{flag == 'design'?item.designFlowStatusName : item.verifyFlowStatusName}}</span>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
@@ -66,15 +66,15 @@
|
||||
<a-col :span="12">
|
||||
<div class='detail-box'>
|
||||
<span class='detail-text' :title="$t('Sponsor')">{{$t('Sponsor')}}</span>
|
||||
<span class="title-text-text" :title="item.Sponsor">
|
||||
{{item.Sponsor}}</span>
|
||||
<span class="title-text-text" :title="item.createBy">
|
||||
{{item.createBy}}</span>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class='detail-box'>
|
||||
<span class='detail-text' :title="$t('personLiable')">{{$t('personLiable')}}</span>
|
||||
<span class="title-text-text" :title="item.personLiable">
|
||||
{{item.personLiable}}</span>
|
||||
<span class="title-text-text" :title="flag == 'design'?item.designDutyIdName : item.verifyDutyIdName">
|
||||
{{flag == 'design'?item.designDutyIdName : item.verifyDutyIdName}}</span>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@@ -82,15 +82,15 @@
|
||||
<a-col :span="12">
|
||||
<div class='detail-box'>
|
||||
<span class='detail-text' :title="$t('statisticalNodes')">{{$t('statisticalNodes')}}</span>
|
||||
<span class="title-text-text" :title="item.statisticalNodes">
|
||||
{{item.statisticalNodes}}</span>
|
||||
<span class="title-text-text" :title="item.dutyDepart">
|
||||
{{item.dutyDepart}}</span>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class='detail-box'>
|
||||
<span class='detail-text' :title="$t('areaOfResponsibility')">{{$t('areaOfResponsibility')}}</span>
|
||||
<span class="title-text-text" :title="item.areaOfResponsibility">
|
||||
{{item.areaOfResponsibility}}</span>
|
||||
<span class="title-text-text" :title="item.dutyTerritory_dictText">
|
||||
{{item.dutyTerritory_dictText}}</span>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@@ -98,15 +98,15 @@
|
||||
<a-col :span="12">
|
||||
<div class='detail-box'>
|
||||
<span class='detail-text' :title="$t('deliverableTemplate')">{{$t('deliverableTemplate')}}</span>
|
||||
<span class="title-text-text" :title="item.deliverableTemplate">
|
||||
{{item.deliverableTemplate}}</span>
|
||||
<a style='color:#00B3BE' class="title-text-text text-operation" @click="down(flag == 'design'?item.designDeliverableTemplate : item.verifyDeliverableTemplate),flag == 'design'?item.designDeliverableTemplateName : item.verifyDeliverableTemplateName" :title="flag == 'design'?item.designDeliverableTemplateName : item.verifyDeliverableTemplateName">
|
||||
{{flag == 'design'?item.designDeliverableTemplateName : item.verifyDeliverableTemplateName }}</a>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class='detail-box'>
|
||||
<span class='detail-text' :title="$t('typeOfDeliverables')">{{$t('typeOfDeliverables')}}</span>
|
||||
<span class="title-text-text" :title="item.typeOfDeliverables">
|
||||
{{item.typeOfDeliverables}}</span>
|
||||
<span class="title-text-text" :title="flag == 'design'?item.designDeliverableTypeName : item.verifyDeliverableTypeName">
|
||||
{{flag == 'design'?item.designDeliverableTypeName : item.verifyDeliverableTypeName}}</span>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@@ -114,8 +114,8 @@
|
||||
<a-col :span="24">
|
||||
<div class='detail-box' style='display:flex'>
|
||||
<span class='detail-text' :title="$t('descriptionDeliverables')">{{$t('descriptionDeliverables')}}</span>
|
||||
<span class="title-text-description" :title="item.descriptionDeliverables">
|
||||
{{item.descriptionDeliverables}}</span>
|
||||
<span class="title-text-description" :title="flag == 'design'?item.designRemark : item.verifyRemark">
|
||||
{{flag == 'design'?item.designRemark : item.verifyRemark}}</span>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@@ -134,7 +134,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
import { getAction, postAction,downloadFile } from '@/api/manage'
|
||||
import uploadFile from '@/components/uploadFile/file'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
@@ -153,52 +153,19 @@ export default {
|
||||
projectNameList: [],
|
||||
DeliverableTreeList: [],
|
||||
form:{
|
||||
VDR:'',
|
||||
theme:'',
|
||||
authenticationimpact:'',
|
||||
influencestatuteCn:'',
|
||||
serialNumber:'',
|
||||
title:'',
|
||||
subtitle:'',
|
||||
applicableSupplement:'',
|
||||
influencestatuteEu:'',
|
||||
},
|
||||
dataList:[
|
||||
{
|
||||
title:'平台件项目',
|
||||
ProcessStatus:'1',
|
||||
Sponsor:'1',
|
||||
personLiable:'1',
|
||||
statisticalNodes:'1',
|
||||
areaOfResponsibility:'1',
|
||||
deliverableTemplate:'1',
|
||||
typeOfDeliverables:'1',
|
||||
descriptionDeliverables:'1sdfdgdf法官大人风格的调1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的格式的',
|
||||
},
|
||||
{
|
||||
title:'平台件项目2',
|
||||
ProcessStatus:'1',
|
||||
Sponsor:'1',
|
||||
personLiable:'1',
|
||||
statisticalNodes:'1',
|
||||
areaOfResponsibility:'1',
|
||||
deliverableTemplate:'1',
|
||||
typeOfDeliverables:'1',
|
||||
descriptionDeliverables:'1sdfdgdf法官大人风格的调1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的格式的',
|
||||
},
|
||||
{
|
||||
title:'平台件项目2',
|
||||
ProcessStatus:'1',
|
||||
Sponsor:'1',
|
||||
personLiable:'1',
|
||||
statisticalNodes:'1',
|
||||
areaOfResponsibility:'1',
|
||||
deliverableTemplate:'1',
|
||||
typeOfDeliverables:'1',
|
||||
descriptionDeliverables:'1sdfdgdf法官大人风格的调1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的1sdfdgdf法官大人风格的调格式的格式的',
|
||||
}
|
||||
],
|
||||
dataList:[],
|
||||
url:{
|
||||
addModel:''
|
||||
},
|
||||
record:{},
|
||||
car:'',
|
||||
flag:'',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -206,13 +173,24 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
addModel(record,val) {
|
||||
this.form={}
|
||||
addModel(row, name) {
|
||||
this.form.serialNumber = row.serialNumber
|
||||
this.form.title = row.title
|
||||
this.form.subtitle = row.subtitle
|
||||
this.form.applicableSupplement = row.applicableSupplement
|
||||
this.flag = name == this.$t('designComplianceProcess') ? 'design' :'verify'
|
||||
this.visible = true
|
||||
this.confirmLoading = false
|
||||
console.log('555',record);
|
||||
this.confirmLoading = true
|
||||
getAction('/project/projectLawsInventoryEO/queryPlatformList', { lawsInventoryId: row.id , flowFlag:this.flag}).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataList = res.result || []
|
||||
this.confirmLoading = false
|
||||
}
|
||||
})
|
||||
},
|
||||
handleCancel() {
|
||||
this.form = {}
|
||||
this.dataList = []
|
||||
this.visible = false
|
||||
},
|
||||
/** 上传文件的回调 */
|
||||
@@ -227,9 +205,9 @@ export default {
|
||||
this.formInline[this.uploadName] = attIdList.join(',')
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
isEdit(){
|
||||
this.disabled=false
|
||||
}
|
||||
down(id,name){
|
||||
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -273,12 +273,6 @@
|
||||
<a-icon type="setting"/>
|
||||
{{ $t('Associatedplatform') }}
|
||||
</div>
|
||||
<div @click="a"
|
||||
v-if="roleSwitchingCode == 0"
|
||||
class="operator-text-title">
|
||||
<a-icon type="setting"/>
|
||||
{{ $t('Associatedplatform1') }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<div class="operator-text" style="position: relative">
|
||||
@@ -1832,7 +1826,11 @@
|
||||
primaryKeyId: row.primaryKeyId
|
||||
}
|
||||
}
|
||||
this.$refs.designComplianceRef.getList(JSON.parse(JSON.stringify(query)), name)
|
||||
if(row.projectLawsInventoryEOS && row.projectLawsInventoryEOS.length > 1){
|
||||
this.$refs.flowstatusdetialRef.addModel(row, name)
|
||||
}else{
|
||||
this.$refs.designComplianceRef.getList(JSON.parse(JSON.stringify(query)), name)
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
@@ -1963,6 +1961,7 @@
|
||||
if(this.selectedRowKeys && this.selectedRowKeys.length > 0){
|
||||
this.detailedWarningList = []
|
||||
let dataSource = []
|
||||
let status = ''
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
for (let j = 0; j < this.selectedRowKeys.length; j++) {
|
||||
if (this.dataSource[i].id == this.selectedRowKeys[j]) {
|
||||
@@ -1974,12 +1973,17 @@
|
||||
if (dataSource[i].verifyFlowStatus == 'List to be released' &&
|
||||
dataSource[i].designFlowStatus == 'List to be released') {
|
||||
flag = '1'
|
||||
this.$refs.associatedplatRef.transferModel(flag,type,this.selectedRowKeys.join(','))
|
||||
status = '1'
|
||||
} else {
|
||||
this.$message.warning(this.$t('unpublishedregulationsselected'))
|
||||
return
|
||||
status = '2'
|
||||
}
|
||||
}
|
||||
console.log(status)
|
||||
if(status == '1'){
|
||||
this.$refs.associatedplatRef.transferModel(flag,type,this.selectedRowKeys.join(','))
|
||||
}else{
|
||||
this.$message.warning(this.$t('unpublishedregulationsselected'))
|
||||
}
|
||||
}else{
|
||||
flag = '2'
|
||||
this.selectedRowKeys = this.dataSource.map(val => val.id)
|
||||
|
||||
Reference in New Issue
Block a user