[update] 修改企标流程bug

This commit is contained in:
lideqin
2023-11-27 12:04:10 +08:00
parent 770c9a4970
commit da73b49cbf
4 changed files with 51 additions and 34 deletions
+12 -9
View File
@@ -99,6 +99,7 @@ import { previewPdf } from '../utils/previewPdf.js'
import { Base64 } from 'js-base64'
import FlowChartModal from './FlowChartModal.vue'
import UploadFile from './UploadFile'
import { filterObj } from '../utils/util'
// 支持预览的文件后缀
const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx']
@@ -209,10 +210,6 @@ export default {
this.$message.warning('请设置url.list属性!')
return
}
// 加载数据 若传入参数1则加载第一页的内容
if (arg === 1) {
this.ipagination.current = 1
}
const params = this.getQueryParams()// 查询条件
if (this.$route.query.processInstanceId) {
params.processInstanceId = this.$route.query.processInstanceId
@@ -225,11 +222,6 @@ export default {
if (res.success) {
// update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
this.dataSource = res.result.records || res.result
if (res.result.total) {
this.ipagination.total = res.result.total
} else {
this.ipagination.total = 0
}
// update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
} else {
this.$message.warning(res.message)
@@ -238,6 +230,17 @@ export default {
this.loading = false
})
},
getQueryParams () {
// 获取查询条件
const sqp = {}
if (this.superQueryParams) {
sqp.superQueryParams = encodeURI(this.superQueryParams)
sqp.superQueryMatchType = this.superQueryMatchType
}
const param = Object.assign(sqp, this.queryParam, this.isorter, this.filters)
param.field = this.getQueryField()
return filterObj(param)
},
// 计算耗时
computedTimeConsuming (record) {
// 结束时间和创建时间