update 标准选择

This commit is contained in:
赵霄
2023-09-25 17:18:48 +08:00
parent 4c173b7a22
commit 8a5bc88a11
5 changed files with 12 additions and 18 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ export default {
}, },
flag: { flag: {
type: String, type: String,
default: '' default: null
}, },
disabled: { disabled: {
type: Boolean, type: Boolean,
@@ -131,15 +131,17 @@ export default {
open () { open () {
this.visible = true this.visible = true
this.queryParam = {} this.queryParam = {}
this.replacePage() this.$nextTick(() => {
this.source ? this.queryParam.source = this.source : this.queryParam = {}
this.replacePage()
})
}, },
// 获取表格数据 // 获取表格数据
replacePage () { replacePage () {
const query = { const query = {
...this.queryParam, ...this.queryParam,
pageNo: this.ipagination.current, pageNo: this.ipagination.current,
pageSize: this.ipagination.pageSize, pageSize: this.ipagination.pageSize
source: this.source
} }
this.selectedRowKeys = [] this.selectedRowKeys = []
this.loading = true this.loading = true
@@ -37,16 +37,6 @@
v-decorator="['standardNumber', validatorRules.standardNumber]" /> v-decorator="['standardNumber', validatorRules.standardNumber]" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12">
<!-- 问题发生时间-->
<a-form-item :label="$t('standardRegulationLibrary.standardDetail.problemOccurrenceTime')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-date-picker class="box-input"
:placeholder="$t('pleaseSelect') + $t('standardRegulationLibrary.standardDetail.problemOccurrenceTime')"
:getCalendarContainer="(trigger) => trigger.parentNode"
v-decorator="['problemOccurrenceTime', validatorRules.problemOccurrenceTime]"
style="width: 100%" />
</a-form-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<!-- 回答人--> <!-- 回答人-->
<a-form-item :label="$t('standardRegulationLibrary.standardDetail.respondent')" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item :label="$t('standardRegulationLibrary.standardDetail.respondent')" :labelCol="labelCol" :wrapperCol="wrapperCol">
@@ -197,7 +197,7 @@ import {
collectionDomesticStandard, collectionDomesticStandard,
cancelCollectionDomesticStandard cancelCollectionDomesticStandard
} from '../../../api/standardRegulationLibraryApi' } from '../../../api/standardRegulationLibraryApi'
import { StandardSystemTreeNodeType, YesOrNoEnum } from '../../../enums/commonEnums' import { StandardSource, StandardSystemTreeNodeType, YesOrNoEnum } from '../../../enums/commonEnums'
import UserSelectModal from '../../../components/selection/UserSelectModal.vue' import UserSelectModal from '../../../components/selection/UserSelectModal.vue'
import DomesticSystemTreeModal from './modules/DomesticSystemTreeModal.vue' import DomesticSystemTreeModal from './modules/DomesticSystemTreeModal.vue'
import SelectionDomesticStandardDrawer from './modules/SelectionDomesticStandardDrawer.vue' import SelectionDomesticStandardDrawer from './modules/SelectionDomesticStandardDrawer.vue'
@@ -246,7 +246,7 @@ export default {
list: '/laws/standard/domestic/getCommonPage', list: '/laws/standard/domestic/getCommonPage',
delete: '/laws/standard/domestic/deleteByIdsAndModule', delete: '/laws/standard/domestic/deleteByIdsAndModule',
deleteBatch: '/laws/standard/domestic/deleteByIdsAndModule', deleteBatch: '/laws/standard/domestic/deleteByIdsAndModule',
downTemplateUrl: '', // 下载模板 downTemplateUrl: '/laws/standard/domestic/templateDownload', // 下载模板
exportXlsUrl: '/laws/standard/domestic/exportData', // 导出 exportXlsUrl: '/laws/standard/domestic/exportData', // 导出
exportZipUrl: '/laws/standard/domestic/exportDataWithFile', // 带文件导出 exportZipUrl: '/laws/standard/domestic/exportDataWithFile', // 带文件导出
importExcelUrl: '' // 导入 importExcelUrl: '' // 导入
@@ -567,6 +567,7 @@ export default {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
param.selections = this.selectedRowKeys.join(',') param.selections = this.selectedRowKeys.join(',')
} }
param.module = StandardSource.DOMESTIC.value
console.log('导出参数', param) console.log('导出参数', param)
// 加一个大的提示 // 加一个大的提示
const modalLoading = this.$info({ const modalLoading = this.$info({
@@ -196,7 +196,7 @@ import {
configOverseasStandard, configOverseasStandard,
removeOverseasStandard removeOverseasStandard
} from '../../../api/standardRegulationLibraryApi' } from '../../../api/standardRegulationLibraryApi'
import { StandardSystemTreeNodeType, YesOrNoEnum } from '../../../enums/commonEnums' import { StandardSource, StandardSystemTreeNodeType, YesOrNoEnum } from '../../../enums/commonEnums'
import UserSelectModal from '../../../components/selection/UserSelectModal.vue' import UserSelectModal from '../../../components/selection/UserSelectModal.vue'
import OverseasStandardModal from './modules/OverseasStandardModal.vue' import OverseasStandardModal from './modules/OverseasStandardModal.vue'
import OverseasSystemTreeModal from './modules/OverseasSystemTreeModal.vue' import OverseasSystemTreeModal from './modules/OverseasSystemTreeModal.vue'
@@ -246,7 +246,7 @@ export default {
list: '/laws/standard/overseas/getCommonPage', list: '/laws/standard/overseas/getCommonPage',
delete: '/laws/standard/overseas/deleteByIdsAndModule', delete: '/laws/standard/overseas/deleteByIdsAndModule',
deleteBatch: '/laws/standard/overseas/deleteByIdsAndModule', deleteBatch: '/laws/standard/overseas/deleteByIdsAndModule',
downTemplateUrl: '', // 下载模板 downTemplateUrl: '/laws/standard/overseas/templateDownload', // 下载模板
exportXlsUrl: '/laws/standard/overseas/exportData', // 导出 exportXlsUrl: '/laws/standard/overseas/exportData', // 导出
exportZipUrl: '/laws/standard/overseas/exportDataWithFile', // 带文件导出 exportZipUrl: '/laws/standard/overseas/exportDataWithFile', // 带文件导出
importExcelUrl: '' // 导入 importExcelUrl: '' // 导入
@@ -567,6 +567,7 @@ export default {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
param.selections = this.selectedRowKeys.join(',') param.selections = this.selectedRowKeys.join(',')
} }
param.module = StandardSource.OVERSEAS.value
console.log('导出参数', param) console.log('导出参数', param)
// 加一个大的提示 // 加一个大的提示
const modalLoading = this.$info({ const modalLoading = this.$info({