|
|
@@ -148,7 +148,7 @@ export default {
|
|
|
listConfig: {
|
|
|
// 工具栏
|
|
|
toolbars: [
|
|
|
- { key: 'search' },
|
|
|
+ { key: 'search' }
|
|
|
// {
|
|
|
// key: 'agree',
|
|
|
// label: '提交/通过',
|
|
|
@@ -209,7 +209,8 @@ export default {
|
|
|
*/
|
|
|
loadData () {
|
|
|
this.loading = true
|
|
|
- pending(this.getFormatParams()).then(response => {
|
|
|
+ // pending(this.getFormatParams()).then(response => {
|
|
|
+ pending(this.getSearchFormData()).then(response => {
|
|
|
const { data } = response || {}
|
|
|
data.dataResult.forEach((item, i) => {
|
|
|
item.createDept = this.getTaskInfo(item.subject)
|
|
|
@@ -221,26 +222,42 @@ export default {
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
|
- /**
|
|
|
- * 获取格式化参数
|
|
|
- */
|
|
|
- getFormatParams () {
|
|
|
- const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
|
|
|
- if (this.$utils.isNotEmpty(this.procDefIdSelect)) {
|
|
|
- params['Q^temp.proc_def_key_^S'] = this.procDefIdSelect
|
|
|
+ // /**
|
|
|
+ // * 获取格式化参数
|
|
|
+ // */
|
|
|
+ // getFormatParams () {
|
|
|
+ // const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
|
|
|
+ // if (this.$utils.isNotEmpty(this.procDefIdSelect)) {
|
|
|
+ // params['Q^temp.proc_def_key_^S'] = this.procDefIdSelect
|
|
|
+ // }
|
|
|
+ // let res = {}
|
|
|
+ // if (params.hasOwnProperty('Q^temp.proc_def_name_^SL')) {
|
|
|
+ // const temp = params['Q^temp.proc_def_name_^SL']
|
|
|
+ // delete params['Q^temp.proc_def_name_^SL']
|
|
|
+ // res = ActionUtils.formatParams(params, this.pagination, this.sorts)
|
|
|
+ // res.customs = {
|
|
|
+ // procDefName: temp
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // res = ActionUtils.formatParams(params, this.pagination, this.sorts)
|
|
|
+ // }
|
|
|
+ // return res
|
|
|
+ // },
|
|
|
+ // 获取格式化参数
|
|
|
+ getSearchFormData () {
|
|
|
+ let params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
|
|
|
+ params = {
|
|
|
+ ...params,
|
|
|
+ ...this.searchParams
|
|
|
}
|
|
|
- let res = {}
|
|
|
- if (params.hasOwnProperty('Q^temp.proc_def_name_^SL')) {
|
|
|
- const temp = params['Q^temp.proc_def_name_^SL']
|
|
|
- delete params['Q^temp.proc_def_name_^SL']
|
|
|
- res = ActionUtils.formatParams(params, this.pagination, this.sorts)
|
|
|
- res.customs = {
|
|
|
- procDefName: temp
|
|
|
- }
|
|
|
- } else {
|
|
|
- res = ActionUtils.formatParams(params, this.pagination, this.sorts)
|
|
|
+ if (this.$utils.isNotEmpty(this.typeId)) {
|
|
|
+ params['Q^TYPE_ID_^S'] = this.typeId
|
|
|
}
|
|
|
- return res
|
|
|
+ return ActionUtils.formatParams(
|
|
|
+ params,
|
|
|
+ this.pagination,
|
|
|
+ this.sorts
|
|
|
+ )
|
|
|
},
|
|
|
/**
|
|
|
* 点击表格
|