1.参数收集清单-数据导出增加弹框
2.法规清单-流程状态多选 3.代办-办理-角色标识
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user