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