1.参数收集清单-数据导出增加弹框

2.法规清单-流程状态多选
3.代办-办理-角色标识
This commit is contained in:
zyx.net
2023-06-28 11:47:09 +08:00
parent 301a0209c7
commit a2da942929
6 changed files with 142 additions and 19 deletions
+4
View File
@@ -1528,6 +1528,7 @@ module.exports = {
Taskresponsibilityrecognition:'Responsibility Confirm',
uploadattachment:'Upload',
Processhistory:'Process history',
historyData:'1. Regulatory Engineer, 2. Responsible person, 3. Responsible person, 4. Regulatory Engineer',
resultofhandling:'Result of handling',
cause:'cause',
networksecurityrequirements:'Network security requirements',
@@ -1897,4 +1898,7 @@ module.exports = {
pleaseViewOnPc:'Please view on PC',
taskHandling:'Task Handling',
pleaseEnterUserAccountSearchFor:'Please enter a user account to search for',
exportOption:'Export Option',
includeTitle:'Include title',
Notitleincluded:'No title included',
}
+4
View File
@@ -3538,6 +3538,7 @@ module.exports = {
Taskresponsibilityrecognition: '任务责任确认',
uploadattachment: '上传附件',
Processhistory: '流程历史',
historyData: '1.法规工程师2.责任人3.责任人4.法规工程师',
resultofhandling: '处理结果',
Listoftreatableregulations: '可处理法规列表',
Listofuntractableregulations: '不可处理法规列表',
@@ -3860,4 +3861,7 @@ module.exports = {
copyLink:'复制链接',
successfulReplication:'复制成功',
pleaseEnterUserAccountSearchFor:'请输入用户账号搜索',
exportOption:'导出选项',
includeTitle:'包含标题',
Notitleincluded:'不包含标题',
}
@@ -583,6 +583,46 @@
</div>
</div>
</a-modal>
<!-- 数据导出弹框-->
<a-modal
:title="$t('dataExport')"
:width="500"
:visible="dataExportFailed"
:maskClosable="false"
@ok="handleExportSubmit"
@cancel="handleCancel"
>
<a-form-model
class='formAdd'
ref='dataExportruleForm'
:model='dataExportformInline'
:rules='dataExportrules'
:label-col='labelCol'
:wrapper-col='wrapperCol'
>
<a-row :gutter="24">
<a-col :span="24">
<div class="box-title-text" >
<div class="title-text" :title="$t('exportOption')" style='margin-top: -17px;'>
<span class="Required">*</span>
<span class="title-text-text" :title="$t('exportOption')">
{{$t('exportOption')}}</span>
</div>
<a-form-model-item class="itemModel" prop="exportOption">
<a-select class="box-input" allowClear v-model="dataExportformInline.exportOption" :placeholder="$t('PleaseSelect')+$t('exportOption')">
<a-select-option :value="'1'">
{{$t('includeTitle')}}
</a-select-option>
<a-select-option :value="'0'">
{{$t('Notitleincluded')}}
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</a-col>
</a-row>
</a-form-model>
</a-modal>
<JLoading :loading="textLoading">{{this.$t('pleaseWaitWhileRunning')}}</JLoading>
<batchUpdateDeadline ref="batchUpdateDeadlineRef" @batchUpdateDeadlineForm="batchUpdateDeadlineForm"/>
@@ -877,6 +917,7 @@
selectedRowKeys: [],
textLoading: false,
formInline: {},
dataExportformInline: {},
queryParamQuery: {},
url: {
tableHeader: 'params/collectManifest/getHeader',
@@ -919,6 +960,7 @@
areaVisiblereferenceparameter: false, // 引用参数弹框
areaVisibsynchronous: false, // 同步上报库弹框
visibleoperationFailed: false, // 数据失败的弹框
dataExportFailed: false, // 数据失败的弹框
currentPersonRole: '', // 当前人角色
jurisdiction: '',
wrapperCol: {
@@ -930,6 +972,11 @@
sm: { span: 7 }
},
rules: {},
dataExportrules: {
exportOption:[
{ required: true, message: this.$t('PleaseSelect')+this.$t('exportOption'), trigger: 'change' }
]
},
FreezeList: [], // 冻结字段
roleSwitchingList: [],
JTextLoading: false,
@@ -1329,24 +1376,56 @@
},
//导出
handleExport() {
this.$message.success(this.$t('Intheexport'))
let long = localStorage.getItem('language')
this.cut = ''
if (long && long === 'zh-cn') {
this.cut = 'cn'
} else if (long && long === 'en-us') {
this.cut = 'en'
}
let query = {
paramsManifestId: this.paramsManifest.id,
paramsTemplateId: this.$route.query.paramsTemplateId,
paramsTemplatePublishVersion: 1,
cut: this.cut,
userTypes: this.currentPersonRole,
exportName: this.$route.query.projectName + '(' + this.$route.query.title + ')'
}
let name = this.$route.query.projectName + '(' + this.$route.query.title + ')' + '.zip'
downloadFile('/params/collectManifest/exportAll', name, query, this.selectClear)
this.dataExportFailed = true
// this.$message.success(this.$t('Intheexport'))
// let long = localStorage.getItem('language')
// this.cut = ''
// if (long && long === 'zh-cn') {
// this.cut = 'cn'
// } else if (long && long === 'en-us') {
// this.cut = 'en'
// }
// let query = {
// paramsManifestId: this.paramsManifest.id,
// paramsTemplateId: this.$route.query.paramsTemplateId,
// paramsTemplatePublishVersion: 1,
// cut: this.cut,
// userTypes: this.currentPersonRole,
// exportName: this.$route.query.projectName + '(' + this.$route.query.title + ')'
// }
// let name = this.$route.query.projectName + '(' + this.$route.query.title + ')' + '.zip'
// downloadFile('/params/collectManifest/exportAll', name, query, this.selectClear)
},
// 导出确定
handleExportSubmit(){
this.$refs.dataExportruleForm.validate(valid => {
if(valid){
this.$message.success(this.$t('Intheexport'))
let long = localStorage.getItem('language')
this.cut = ''
if (long && long === 'zh-cn') {
this.cut = 'cn'
} else if (long && long === 'en-us') {
this.cut = 'en'
}
let query = {
paramsManifestId: this.paramsManifest.id,
paramsTemplateId: this.$route.query.paramsTemplateId,
exportOption:this.dataExportformInline.exportOption,
paramsTemplatePublishVersion: 1,
cut: this.cut,
userTypes: this.currentPersonRole,
exportName: this.$route.query.projectName + '(' + this.$route.query.title + ')'
}
let name = this.$route.query.projectName + '(' + this.$route.query.title + ')' + '.zip'
downloadFile('/params/collectManifest/exportAll', name, query, this.selectClear)
}
})
},
handleCancel() {
this.dataExportformInline = {}
this.$refs.dataExportruleForm.clearValidate()
this.dataExportFailed = false
},
//填写人导出
handleExportDre() {
@@ -2631,7 +2710,11 @@
height: 42px;
line-height: 36px;
}
.itemModel {
width: 100%;
display: inline-block;
margin-top: 2px;
}
.box-input .ant-select-selection {
height: 38px !important;
}
@@ -30,6 +30,7 @@
</div>
<a-select :placeholder="$t('PleaseSelect')+$t('ProcessStatus')"
class="box-input"
mode="multiple"
allowClear
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="queryParam.flowStatus">
@@ -53,6 +53,7 @@
allowClear
show-search
style="width: calc(100% - 80px);"
mode="multiple"
optionFilterProp="label"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="queryParam[selectModel]">
@@ -22,6 +22,7 @@
</span>
<div class="process-content-right">
<div class="process-content-right-top" :title="item.name">{{item.name}}</div>
<div class="process-content-right-top-user" :title="item.userName">{{item.userName}}</div>
</div>
</div>
</div>
@@ -303,6 +304,23 @@
})
}
}
this.regulatoryCertificationTaskPlanList.forEach(val => {
if (val.name == this.$t('initiatingProcess')) {
val.userName = this.$t('regulatoryEngineer')
} else if (val.name == this.$t('Taskresponsibilityrecognition')) {
val.userName = this.$t('personLiable')
} else if (val.name == this.$t('designComplianceReview')) {
val.userName = this.$t('personLiable')
} else if (val.name == this.$t('verificationComplianceReview')) {
val.userName = this.$t('personLiable')
} else if (val.name == this.$t('designComplianceReviewAdmin')) {
val.userName = this.$t('regulatoryEngineer')
} else if (val.name == this.$t('verificationComplianceExamine')) {
val.userName = this.$t('regulatoryEngineer')
} else {
val.userName = ''
}
})
this.regulatoryCertificationTaskPlanList = [...this.regulatoryCertificationTaskPlanList]
}
this.loading = false
@@ -403,6 +421,18 @@
white-space: nowrap;
overflow: hidden;
}
.process-content-right-top-user{
//background: #E6FAFA;
//padding: 5px;
color: #00B3BE;
font-size: 14px;
font-weight: lighter;
margin-top: 5px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
}