Просмотр исходного кода

各个列表过滤搜索条件更改

cyy 1 год назад
Родитель
Сommit
95ee7b221a

+ 2 - 44
src/utils/action.js

@@ -212,48 +212,6 @@ const action = {
     vm[resultKey] = []
   },
   /**
- * 处理列表数据(带过滤)
- * @param vm 当前对象
- * @param data 后台返回的列表数据
- * @param options 参数
- *   dataResultKey 默认 dataResult
- *  pageResultKey 默认 pageResult
- *  resultKey 结果key 默认 listData
- *  pageKey 分页key 默认 pagination
- */
-  handleListData: function (vm, data, options = {}) {
-    const loadingKey = options.loadingKey || 'loading'
-    const refreshingKey = options.refreshingKey || 'refreshing'
-    const finishedKey = options.finishedKey || 'finished'
-    const dataResultKey = options.dataResultKey || 'dataResult'
-    const pageResultKey = options.pageResultKey || 'pageResult'
-    const resultKey = options.resultKey || 'listData'
-    const paginationKey = options.paginationKey || 'pagination'
-    const pageKey = options.pageKey || 'page'
-    const resultTypeKey = options.resultTypeKey || 'resultType'
-    const resultMessageKey = options.resultMessageKey || 'resultMessage'
-
-    const listData = data ? data[dataResultKey] || [] : []
-    const pagination = data ? data[pageResultKey] || {} : {}
-
-    if (vm[refreshingKey]) {
-      vm[resultKey] = []
-      vm[refreshingKey] = false
-    }
-
-    if (Utils.isNotEmpty(listData)) {
-      pagination[pageKey] = pagination[pageKey] + 1
-      vm[resultKey] = vm[resultKey].concat(listData)
-    }
-    vm[loadingKey] = false
-    vm[finishedKey] = this.isFinished(pagination, vm[resultKey])
-
-    vm[paginationKey] = pagination
-    // 处理结果类型
-    vm[resultTypeKey] = this.handleResultType(vm, options)
-    vm[resultMessageKey] = null
-  },
-  /**
  * 处理列表数据(不过滤)
  * @param vm 当前对象
  * @param data 后台返回的列表数据
@@ -305,7 +263,7 @@ const action = {
  *  resultKey 结果key 默认 listData
  *  pageKey 分页key 默认 pagination
  */
-   existHandleListData: function (vm, data, filtration, options={}) {
+   existHandleListData: function (vm, data, filtration, itemid, tid, options={}) {
     const loadingKey = options.loadingKey || 'loading'
     const refreshingKey = options.refreshingKey || 'refreshing'
     const finishedKey = options.finishedKey || 'finished'
@@ -327,7 +285,7 @@ const action = {
     if (Utils.isNotEmpty(listData)) {
       let mid = []
       listData.forEach((item,i)=>{
-        const obj = filtration.findIndex(t=> t.liu_cheng_id_ === item.procDefId)
+        const obj = filtration.findIndex(t=> t[tid] === item[itemid])
         if(obj != -1){
           mid.push(item)
         }

+ 253 - 176
src/views/platform/bpmn/completed/index.vue

@@ -1,219 +1,296 @@
 <template>
   <div>
     <van-sticky>
-      <van-nav-bar :title="generateTitle($route.name,$route.params.title||$route.meta.title)"
-        :left-text="$t('common.button.back')" left-arrow @click-left="$router.push({ name: 'dashboard' })" />
-      <van-search v-model="subject" show-action placeholder="请输入搜索关键词" @search="onSearch">
+      <van-nav-bar
+        :title="
+          generateTitle($route.name, $route.params.title || $route.meta.title)
+        "
+        :left-text="$t('common.button.back')"
+        left-arrow
+        @click-left="$router.push({ name: 'dashboard' })"
+      />
+      <van-search
+        v-model="subject"
+        show-action
+        placeholder="请输入搜索关键词"
+        @search="onSearch"
+      >
         <template #left>
-          <van-icon name="bars" :class="{'ibps-active':$utils.isNotEmpty(typeId)}" class="ibps-pr-5"
-            @click="clickType" />
+          <van-icon
+            name="bars"
+            :class="{ 'ibps-active': $utils.isNotEmpty(typeId) }"
+            class="ibps-pr-5"
+            @click="clickType"
+          />
         </template>
         <template #action>
-          <van-icon name="filter-o" :class="{'ibps-active':stateActive}" @click="clickMoreSearch" />
+          <van-icon
+            name="filter-o"
+            :class="{ 'ibps-active': stateActive }"
+            @click="clickMoreSearch"
+          />
         </template>
       </van-search>
     </van-sticky>
     <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
       <van-list v-model="loading" :finished="finished" @load="loadData">
-        <van-cell v-for="(item,index) in listData" :key="item.id+index" :title="item.procDefName"
-          :label="getTaskDesc(item.subject)" size="large" @click="onClick(item,index)">
+        <van-cell
+          v-for="(item, index) in listData"
+          :key="item.id + index"
+          :title="item.procDefName"
+          :label="getTaskDesc(item.subject)"
+          size="large"
+          @click="onClick(item, index)"
+        >
           <template slot="icon">
-            <ibps-avatar :icon="_randomIcon(index)" :text="item.name" :bg-color="_randomColor(index)" radius="4"
-              icon-prefix="ibps-icon" class="ibps-mr-10" />
+            <ibps-avatar
+              :icon="_randomIcon(index)"
+              :text="item.name"
+              :bg-color="_randomColor(index)"
+              radius="4"
+              icon-prefix="ibps-icon"
+              class="ibps-mr-10"
+            />
           </template>
-          <span>{{ item.createTime|formatRelativeTime }}</span>
+          <span>{{ item.createTime | formatRelativeTime }}</span>
           <div>
             <!-- <van-tag plain :type=" item.status | optionsFilter(bpmnStatusOptions,'type')">{{ item.status | optionsFilter(bpmnStatusOptions) }}</van-tag> -->
-            <van-tag size="medium"
-              :color="item.status | optionsFilter(bpmnStatusOptions,'type') | optionsFilter(colorOptions,'color','type')"
-              :text-color="item.status | optionsFilter(bpmnStatusOptions,'type') | optionsFilter(colorOptions,'textColor','type')">
-              {{ item.status| optionsFilter(bpmnStatusOptions) }}</van-tag>
+            <van-tag
+              size="medium"
+              :color="
+                item.status
+                  | optionsFilter(bpmnStatusOptions, 'type')
+                  | optionsFilter(colorOptions, 'color', 'type')
+              "
+              :text-color="
+                item.status
+                  | optionsFilter(bpmnStatusOptions, 'type')
+                  | optionsFilter(colorOptions, 'textColor', 'type')
+              "
+            >
+              {{ item.status | optionsFilter(bpmnStatusOptions) }}</van-tag
+            >
           </div>
         </van-cell>
-        <ibps-list-result-page :result-type="resultType" :error-type="errorType" :result-message="resultMessage" />
+        <ibps-list-result-page
+          :result-type="resultType"
+          :error-type="errorType"
+          :result-message="resultMessage"
+        />
       </van-list>
     </van-pull-refresh>
-    <ibps-more-search :show="moreSearchPopup" :search-forms="searchForms" @callback="onMoreSearch"
-      @close="show => moreSearchPopup = show" @reset-form="resetForm" />
+    <ibps-more-search
+      :show="moreSearchPopup"
+      :search-forms="searchForms"
+      @callback="onMoreSearch"
+      @close="show => (moreSearchPopup = show)"
+      @reset-form="resetForm"
+    />
 
-    <ibps-type-tree v-model="typeTreePopup" title="流程分类" category-key="FLOW_TYPE" @node-click="clickTypeNode"
-      @close="visible => typeTreePopup = visible" />
+    <ibps-type-tree
+      v-model="typeTreePopup"
+      title="流程分类"
+      category-key="FLOW_TYPE"
+      @node-click="clickTypeNode"
+      @close="visible => (typeTreePopup = visible)"
+    />
 
-    <ibps-bpmn-formrender-dialog :visible="formrenderVisible" :title="formrenderTitle" :inst-id="instId"
-      @close="visible => formrenderVisible = visible" />
+    <ibps-bpmn-formrender-dialog
+      :visible="formrenderVisible"
+      :title="formrenderTitle"
+      :inst-id="instId"
+      @close="visible => (formrenderVisible = visible)"
+    />
   </div>
 </template>
 <script>
-  import { handled } from '@/api/platform/office/bpmReceived'
+import { handled } from '@/api/platform/office/bpmReceived'
 
-  import ActionUtils from '@/utils/action'
-  import i18n from '@/utils/i18n'
-  import random from '@/mixins/random'
-  import bpmnStatus from '@/mixins/bpmnStatus'
+import ActionUtils from '@/utils/action'
+import i18n from '@/utils/i18n'
+import random from '@/mixins/random'
+import bpmnStatus from '@/mixins/bpmnStatus'
 
-  import IbpsMoreSearch from '@/components/ibps-more-search'
-  import IbpsTypeTree from '@/business/platform/cat/type/tree'
-  import IbpsAvatar from '@/components/ibps-avatar'
-  import IbpsListResultPage from '@/components/ibps-list-result-page'
-  import IbpsBpmnFormrenderDialog from '@/business/platform/bpmn/form/dialog'
+import IbpsMoreSearch from '@/components/ibps-more-search'
+import IbpsTypeTree from '@/business/platform/cat/type/tree'
+import IbpsAvatar from '@/components/ibps-avatar'
+import IbpsListResultPage from '@/components/ibps-list-result-page'
+import IbpsBpmnFormrenderDialog from '@/business/platform/bpmn/form/dialog'
 
-  export default {
-    components: {
-      IbpsMoreSearch,
-      IbpsTypeTree,
-      IbpsAvatar,
-      IbpsListResultPage,
-      IbpsBpmnFormrenderDialog
-    },
-    mixins: [random, bpmnStatus],
-    data() {
-      return {
-        stateActive: false,
-        moreSearchPopup: false,
-        typeTreePopup: false,
-        searchForms: {
-          forms: [
-
-            { prop: 'Q^inst.subject_^SL', label: '事务名称', fieldType: 'text' },
-            // { prop: 'Q^inst.proc_def_name_^SL', label: '事务说明', fieldType: 'text' },
-            { prop: 'Q^inst.subject_^SL', label: '事务说明', fieldType: 'text' },
-            { prop: ['Q^inst.create_time_^DL', 'Q^inst.create_time_^DG'], label: '创建时间', fieldType: 'dateRange', options: { datefmt: 'yyyy-MM-dd' } },
-            {
-              prop: 'Q^inst.status_^S', label: '状态', fieldType: 'checker', cols: 3, options: [
-                { value: 'all', label: '全部' },
-                { value: 'end', label: '结束' },
-                { value: 'manualend', label: '人工结束' }
-              ]
-            }
-          ]
-        },
+export default {
+  components: {
+    IbpsMoreSearch,
+    IbpsTypeTree,
+    IbpsAvatar,
+    IbpsListResultPage,
+    IbpsBpmnFormrenderDialog
+  },
+  mixins: [random, bpmnStatus],
+  data() {
+    return {
+      stateActive: false,
+      moreSearchPopup: false,
+      typeTreePopup: false,
+      searchForms: {
+        forms: [
+          {
+            prop: 'Q^inst.proc_def_name_^SL',
+            label: '事务名称',
+            fieldType: 'text'
+          },
+          // { prop: 'Q^inst.proc_def_name_^SL', label: '事务说明', fieldType: 'text' },
+          { prop: 'Q^inst.subject_^SL', label: '事务说明', fieldType: 'text' },
+          {
+            prop: ['Q^inst.create_time_^DL', 'Q^inst.create_time_^DG'],
+            label: '创建时间',
+            fieldType: 'dateRange',
+            options: { datefmt: 'yyyy-MM-dd' }
+          },
+          {
+            prop: 'Q^inst.status_^S',
+            label: '状态',
+            fieldType: 'checker',
+            cols: 3,
+            options: [
+              { value: 'all', label: '全部' },
+              { value: 'end', label: '结束' },
+              { value: 'manualend', label: '人工结束' }
+            ]
+          }
+        ]
+      },
 
-        subject: '',
-        typeId: '',
-        checker: '',
-        moreParams: {},
+      subject: '',
+      typeId: '',
+      checker: '',
+      moreParams: {},
 
-        listData: [],
-        pagination: {},
-        sorts: {},
+      listData: [],
+      pagination: { limit: 100 },
+      sorts: {},
 
-        loading: false,
-        finished: false,
-        refreshing: false,
-        resultType: 'init',
-        errorType: null,
-        resultMessage: null,
+      loading: false,
+      finished: false,
+      refreshing: false,
+      resultType: 'init',
+      errorType: null,
+      resultMessage: null,
 
-        instId: '',
-        formrenderVisible: false,
-        formrenderTitle: ''
-      }
+      instId: '',
+      formrenderVisible: false,
+      formrenderTitle: ''
+    }
+  },
+  methods: {
+    generateTitle(name, title) {
+      // generateTitle by vue-i18n
+      return i18n.generateTitle(name, title)
     },
-    methods: {
-      generateTitle(name, title) { // generateTitle by vue-i18n
-        return i18n.generateTitle(name, title)
-      },
-      /**
-       * 加载数据
-       */
-      loadData() {
-        this.loading = true
-        handled(this.getSearcFormData()).then(response => {
+    /**
+     * 加载数据
+     */
+    loadData() {
+      this.loading = true
+      handled(this.getSearcFormData())
+        .then(response => {
           // 处理数据
-          ActionUtils.handleListData(this, response.data)
-        }).catch((e) => {
+          ActionUtils.existHandleListData(
+            this,
+            response.data,
+            this.$store.getters.flowList,
+            'bpmnDefId',
+            'bpmn_liu_cheng_di'
+          )
+        })
+        .catch(e => {
           ActionUtils.handleErrorData(this, e)
         })
-      },
-      /**
-       * 获取格式化参数
-       */
-      getSearcFormData() {
-        let params = { 'end': '1' }
-        if (this.$utils.isNotEmpty(this.subject)) {
-          params['Q^subject_^SL'] = this.subject
-        }
-        if (this.$utils.isNotEmpty(this.moreParams)) {
-          params = Object.assign(params, this.moreParams)
-        }
+    },
+    /**
+     * 获取格式化参数
+     */
+    getSearcFormData() {
+      let params = { end: '1' }
+      if (this.$utils.isNotEmpty(this.subject)) {
+        params['Q^subject_^SL'] = this.subject
+      }
+      if (this.$utils.isNotEmpty(this.moreParams)) {
+        params = Object.assign(params, this.moreParams)
+      }
 
-        return ActionUtils.formatParams(
-          params,
-          this.pagination,
-          this.sorts)
-      },
-      /**
-       * 下拉刷新
-       */
-      onRefresh() {
-        this.refreshing = true
-        this.finished = false
-        this.loading = true
-        this.onSearch()
-      },
-      /**
-       * 查询
-       */
-      onSearch() {
-        this.stateActive = false
-        ActionUtils.initListData(this)
-        this.loadData()
-      },
-      /**
-       * 高级查询
-       */
-      onMoreSearch(params) {
-        if (this.$utils.isNotEmpty(this.typeId)) {
-          params['Q^type_id_^SL'] = this.typeId
-        }
-        this.moreParams = params
-        this.onSearch()
-        if (this.$utils.isNotEmpty(params)) {
-          this.stateActive = true
-        }
-      },
-      /**
-       * 弹窗更多查询条件
-       */
-      clickMoreSearch() {
-        this.moreSearchPopup = true
-        this.stateActive = false
-      },
-      /**
-       * 重置表单
-       */
-      resetForm() {
-        this.typeId = ''
-        this.checker = ''
-      },
-      clickType() {
-        this.typeTreePopup = true
-      },
-      clickTypeNode(data) {
-        this.typeId = data.id
-        this.onMoreSearch({})
-      },
-      getTaskDesc(v) {
-        if (!v.includes('#')) {
-          return ''
-        }
-        return v.split('#')[1] || ''
-      },
-      onClick(item) {
-        this.instId = item.id
-        this.formrenderTitle = item.procDefName
-        this.formrenderVisible = true
+      return ActionUtils.formatParams(params, this.pagination, this.sorts)
+    },
+    /**
+     * 下拉刷新
+     */
+    onRefresh() {
+      this.refreshing = true
+      this.finished = false
+      this.loading = true
+      this.onSearch()
+    },
+    /**
+     * 查询
+     */
+    onSearch() {
+      this.stateActive = false
+      ActionUtils.initListData(this)
+      this.loadData()
+    },
+    /**
+     * 高级查询
+     */
+    onMoreSearch(params) {
+      if (this.$utils.isNotEmpty(this.typeId)) {
+        params['Q^type_id_^SL'] = this.typeId
+      }
+      this.moreParams = params
+      this.onSearch()
+      if (this.$utils.isNotEmpty(params)) {
+        this.stateActive = true
+      }
+    },
+    /**
+     * 弹窗更多查询条件
+     */
+    clickMoreSearch() {
+      this.moreSearchPopup = true
+      this.stateActive = false
+    },
+    /**
+     * 重置表单
+     */
+    resetForm() {
+      this.typeId = ''
+      this.checker = ''
+    },
+    clickType() {
+      this.typeTreePopup = true
+    },
+    clickTypeNode(data) {
+      this.typeId = data.id
+      this.onMoreSearch({})
+    },
+    getTaskDesc(v) {
+      if (!v.includes('#')) {
+        return ''
       }
+      return v.split('#')[1] || ''
+    },
+    onClick(item) {
+      this.instId = item.id
+      this.formrenderTitle = item.procDefName
+      this.formrenderVisible = true
     }
-
   }
+}
 </script>
 <style lang="scss" scoped>
-  ::v-deep .van-cell__title {
-    width: 65%;
+::v-deep .van-cell__title {
+  width: 65%;
 
-    .van-cell__label {
-      overflow-wrap: break-word;
-    }
+  .van-cell__label {
+    overflow-wrap: break-word;
   }
-</style>
+}
+</style>

+ 246 - 175
src/views/platform/bpmn/handled/index.vue

@@ -1,221 +1,292 @@
 <template>
   <div>
     <van-sticky>
-      <van-nav-bar :title="generateTitle($route.name,$route.params.title||$route.meta.title)"
-        :left-text="$t('common.button.back')" left-arrow @click-left="$router.push({ name: 'dashboard' })" />
-      <van-search v-model="subject" show-action placeholder="请输入搜索关键词" @search="onSearch">
+      <van-nav-bar
+        :title="
+          generateTitle($route.name, $route.params.title || $route.meta.title)
+        "
+        :left-text="$t('common.button.back')"
+        left-arrow
+        @click-left="$router.push({ name: 'dashboard' })"
+      />
+      <van-search
+        v-model="subject"
+        show-action
+        placeholder="请输入搜索关键词"
+        @search="onSearch"
+      >
         <template #left>
-          <van-icon name="bars" :class="{'ibps-active':$utils.isNotEmpty(typeId)}" class="ibps-pr-5"
-            @click="clickType" />
+          <van-icon
+            name="bars"
+            :class="{ 'ibps-active': $utils.isNotEmpty(typeId) }"
+            class="ibps-pr-5"
+            @click="clickType"
+          />
         </template>
         <template #action>
-          <van-icon name="filter-o" :class="{'ibps-active':stateActive}" @click="clickMoreSearch" />
+          <van-icon
+            name="filter-o"
+            :class="{ 'ibps-active': stateActive }"
+            @click="clickMoreSearch"
+          />
         </template>
       </van-search>
     </van-sticky>
     <div class="ibps-blank-bar" />
     <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
       <van-list v-model="loading" :finished="finished" @load="loadData">
-        <van-cell v-for="(item,index) in listData" :key="item.id+index" :title="item.taskName"
-          :label="getTaskDesc(item.subject)" size="large" @click="onClick(item,index)">
+        <van-cell
+          v-for="(item, index) in listData"
+          :key="item.id + index"
+          :title="item.taskName"
+          :label="getTaskDesc(item.subject)"
+          size="large"
+          @click="onClick(item, index)"
+        >
           <!-- <template slot="icon">
             <ibps-avatar :icon="_randomIcon(index)" :text="item.name" :bg-color="_randomColor(index)" radius="4"
               icon-prefix="ibps-icon" class="ibps-mr-10" />
           </template> -->
-          <span>{{ item.createTime|formatRelativeTime }}</span>
+          <span>{{ item.createTime | formatRelativeTime }}</span>
           <div>
             <!-- <van-tag plain :type=" item.status | optionsFilter(bpmnStatusOptions,'type')">{{ item.status | optionsFilter(bpmnStatusOptions) }}</van-tag> -->
-            <van-tag size="medium"
-              :color="item.status | optionsFilter(bpmnStatusOptions,'type') | optionsFilter(colorOptions,'color','type')"
-              :text-color="item.status | optionsFilter(bpmnStatusOptions,'type') | optionsFilter(colorOptions,'textColor','type')">
-              {{ item.status=='submit'?'编辑':item.status| optionsFilter(bpmnStatusOptions) }}</van-tag>
+            <van-tag
+              size="medium"
+              :color="
+                item.status
+                  | optionsFilter(bpmnStatusOptions, 'type')
+                  | optionsFilter(colorOptions, 'color', 'type')
+              "
+              :text-color="
+                item.status
+                  | optionsFilter(bpmnStatusOptions, 'type')
+                  | optionsFilter(colorOptions, 'textColor', 'type')
+              "
+            >
+              {{
+                item.status == 'submit'
+                  ? '编辑'
+                  : item.status | optionsFilter(bpmnStatusOptions)
+              }}</van-tag
+            >
           </div>
         </van-cell>
-        <ibps-list-result-page :result-type="resultType" :error-type="errorType" :result-message="resultMessage" />
+        <ibps-list-result-page
+          :result-type="resultType"
+          :error-type="errorType"
+          :result-message="resultMessage"
+        />
       </van-list>
     </van-pull-refresh>
-    <ibps-more-search :show="moreSearchPopup" :search-forms="searchForms" @callback="onMoreSearch"
-      @close="show => moreSearchPopup = show" @reset-form="resetForm" />
+    <ibps-more-search
+      :show="moreSearchPopup"
+      :search-forms="searchForms"
+      @callback="onMoreSearch"
+      @close="show => (moreSearchPopup = show)"
+      @reset-form="resetForm"
+    />
 
-    <ibps-type-tree v-model="typeTreePopup" title="流程分类" category-key="FLOW_TYPE" @node-click="clickTypeNode"
-      @close="visible => typeTreePopup = visible" />
-
-    <ibps-bpmn-formrender-dialog :visible="formrenderVisible" :title="formrenderTitle" :inst-id="instId"
-      @close="visible => formrenderVisible = visible" />
+    <ibps-type-tree
+      v-model="typeTreePopup"
+      title="流程分类"
+      category-key="FLOW_TYPE"
+      @node-click="clickTypeNode"
+      @close="visible => (typeTreePopup = visible)"
+    />
 
+    <ibps-bpmn-formrender-dialog
+      :visible="formrenderVisible"
+      :title="formrenderTitle"
+      :inst-id="instId"
+      @close="visible => (formrenderVisible = visible)"
+    />
   </div>
-
 </template>
 <script>
-  import { handledTask } from '@/api/platform/office/bpmReceived'
+import { handledTask } from '@/api/platform/office/bpmReceived'
 
-  import ActionUtils from '@/utils/action'
-  import i18n from '@/utils/i18n'
-  import random from '@/mixins/random'
-  import bpmnStatus from '@/mixins/bpmnStatus'
+import ActionUtils from '@/utils/action'
+import i18n from '@/utils/i18n'
+import random from '@/mixins/random'
+import bpmnStatus from '@/mixins/bpmnStatus'
 
-  import IbpsMoreSearch from '@/components/ibps-more-search'
-  import IbpsTypeTree from '@/business/platform/cat/type/tree'
-  import IbpsAvatar from '@/components/ibps-avatar'
-  import IbpsListResultPage from '@/components/ibps-list-result-page'
-  import IbpsBpmnFormrenderDialog from '@/business/platform/bpmn/form/dialog'
+import IbpsMoreSearch from '@/components/ibps-more-search'
+import IbpsTypeTree from '@/business/platform/cat/type/tree'
+import IbpsAvatar from '@/components/ibps-avatar'
+import IbpsListResultPage from '@/components/ibps-list-result-page'
+import IbpsBpmnFormrenderDialog from '@/business/platform/bpmn/form/dialog'
 
-  export default {
-    components: {
-      IbpsMoreSearch,
-      IbpsTypeTree,
-      IbpsAvatar,
-      IbpsListResultPage,
-      IbpsBpmnFormrenderDialog
-    },
-    mixins: [random, bpmnStatus],
-    data() {
-      return {
-        stateActive: false,
-        moreSearchPopup: false,
-        typeTreePopup: false,
-        searchForms: {
-          forms: [
-            { prop: 'Q^SUBJECT_^SL', label: '事务名称', fieldType: 'text' },
-            // { prop: 'Q^TASK_NAME_^SL', label: '事务说明', fieldType: 'text' },
-            { prop: 'Q^inst.subject_^SL', label: '事务说明', fieldType: 'text' },
-            { prop: ['Q^COMPLETE_TIME_^DL', 'Q^COMPLETE_TIME_^DG'], label: '创建时间', fieldType: 'dateRange', options: { datefmt: 'yyyy-MM-dd' } },
-            {
-              prop: 'Q^APO.STATUS_^S', label: '是否结束', fieldType: 'checker', cols: 3, valueKey: 'value', options: [
-                { value: 'agree', label: '是' },
-                { value: 'oppose', label: '否' },
-                // { value: 'reject', label: '驳回' },
-                // { value: 'rejectToStart', label: '驳回发起人' },
-                // { value: 'abandon', label: '弃权' }
-              ]
-            }
-          ]
-        },
+export default {
+  components: {
+    IbpsMoreSearch,
+    IbpsTypeTree,
+    IbpsAvatar,
+    IbpsListResultPage,
+    IbpsBpmnFormrenderDialog
+  },
+  mixins: [random, bpmnStatus],
+  data() {
+    return {
+      stateActive: false,
+      moreSearchPopup: false,
+      typeTreePopup: false,
+      searchForms: {
+        forms: [
+          { prop: 'Q^inst.subject_^SL', label: '事务说明', fieldType: 'text' },
+          // { prop: 'Q^TASK_NAME_^SL', label: '事务说明', fieldType: 'text' },
+          // { prop: 'Q^inst.subject_^SL', label: '事务说明', fieldType: 'text' },
+          {
+            prop: ['Q^inst.create_time_^DL', 'Q^inst.create_time_^DG'],
+            label: '创建时间',
+            fieldType: 'dateRange',
+            options: { datefmt: 'yyyy-MM-dd' }
+          },
+          {
+            prop: 'Q^APO.STATUS_^S',
+            label: '是否结束',
+            fieldType: 'checker',
+            cols: 3,
+            valueKey: 'value',
+            options: [
+              { value: 'agree', label: '是' },
+              { value: 'oppose', label: '否' }
+              // { value: 'reject', label: '驳回' },
+              // { value: 'rejectToStart', label: '驳回发起人' },
+              // { value: 'abandon', label: '弃权' }
+            ]
+          }
+        ]
+      },
 
-        subject: '',
-        typeId: '',
-        moreParams: {},
+      subject: '',
+      typeId: '',
+      moreParams: {},
 
-        listData: [],
-        pagination: {},
-        sorts: {},
+      listData: [],
+      pagination: { limit: 100 },
+      sorts: {},
 
-        loading: false,
-        finished: false,
-        refreshing: false,
-        resultType: 'init',
-        errorType: null,
-        resultMessage: null,
+      loading: false,
+      finished: false,
+      refreshing: false,
+      resultType: 'init',
+      errorType: null,
+      resultMessage: null,
 
-        instId: '',
-        formrenderVisible: false,
-        formrenderTitle: ''
-      }
+      instId: '',
+      formrenderVisible: false,
+      formrenderTitle: ''
+    }
+  },
+  methods: {
+    generateTitle(name, title) {
+      // generateTitle by vue-i18n
+      return i18n.generateTitle(name, title)
     },
-    methods: {
-      generateTitle(name, title) { // generateTitle by vue-i18n
-        return i18n.generateTitle(name, title)
-      },
-      /**
-       * 加载数据
-       */
-      loadData() {
-        this.loading = true
-        handledTask(this.getSearcFormData()).then(response => {
+    /**
+     * 加载数据
+     */
+    loadData() {
+      this.loading = true
+      handledTask(this.getSearcFormData())
+        .then(response => {
           // 处理数据
-          ActionUtils.handleListData(this, response.data)
-        }).catch((e) => {
+          ActionUtils.existHandleListData(
+            this,
+            response.data,
+            this.$store.getters.flowList,
+            'procDefId',
+            'bpmn_liu_cheng_di'
+          )
+        })
+        .catch(e => {
           ActionUtils.handleErrorData(this, e)
         })
-      },
-      /**
-       * 获取格式化参数
-       */
-      getSearcFormData() {
-        let params = {}
-        if (this.$utils.isNotEmpty(this.subject)) {
-          params['Q^subject_^SL'] = this.subject
-        }
-        if (this.$utils.isNotEmpty(this.moreParams)) {
-          params = Object.assign(params, this.moreParams)
-        }
+    },
+    /**
+     * 获取格式化参数
+     */
+    getSearcFormData() {
+      let params = {}
+      if (this.$utils.isNotEmpty(this.subject)) {
+        params['Q^subject_^SL'] = this.subject
+      }
+      if (this.$utils.isNotEmpty(this.moreParams)) {
+        params = Object.assign(params, this.moreParams)
+      }
 
-        return ActionUtils.formatParams(
-          params,
-          this.pagination,
-          this.sorts)
-      },
-      /**
-       * 下拉刷新
-       */
-      onRefresh() {
-        this.refreshing = true
-        this.finished = false
-        this.loading = true
-        this.onSearch()
-      },
-      /**
-       * 查询
-       */
-      onSearch() {
-        this.stateActive = false
-        ActionUtils.initListData(this)
-        this.loadData()
-      },
-      /**
-       * 高级查询
-       */
-      onMoreSearch(params) {
-        if (this.$utils.isNotEmpty(this.typeId)) {
-          params['Q^type_id_^SL'] = this.typeId
-        }
-        this.moreParams = params
-        this.onSearch()
-        if (this.$utils.isNotEmpty(params)) {
-          this.stateActive = true
-        }
-      },
-      /**
-       * 弹窗更多查询条件
-       */
-      clickMoreSearch() {
-        this.moreSearchPopup = true
-        this.stateActive = false
-      },
-      /**
-       * 重置表单
-       */
-      resetForm() {
-        this.typeId = ''
-      },
-      clickType() {
-        this.typeTreePopup = true
-      },
-      clickTypeNode(data) {
-        this.typeId = data.id
-        this.onMoreSearch({})
-      },
-      getTaskDesc(v) {
-        if (!v.includes('#')) {
-          return ''
-        }
-        return v.split('#')[1] || ''
-      },
-      onClick(item) {
-        this.instId = item.procInstId
-        this.formrenderTitle = item.taskName
-        this.formrenderVisible = true
+      return ActionUtils.formatParams(params, this.pagination, this.sorts)
+    },
+    /**
+     * 下拉刷新
+     */
+    onRefresh() {
+      this.refreshing = true
+      this.finished = false
+      this.loading = true
+      this.onSearch()
+    },
+    /**
+     * 查询
+     */
+    onSearch() {
+      this.stateActive = false
+      ActionUtils.initListData(this)
+      this.loadData()
+    },
+    /**
+     * 高级查询
+     */
+    onMoreSearch(params) {
+      if (this.$utils.isNotEmpty(this.typeId)) {
+        params['Q^type_id_^SL'] = this.typeId
       }
+      this.moreParams = params
+      this.onSearch()
+      if (this.$utils.isNotEmpty(params)) {
+        this.stateActive = true
+      }
+    },
+    /**
+     * 弹窗更多查询条件
+     */
+    clickMoreSearch() {
+      this.moreSearchPopup = true
+      this.stateActive = false
+    },
+    /**
+     * 重置表单
+     */
+    resetForm() {
+      this.typeId = ''
+    },
+    clickType() {
+      this.typeTreePopup = true
+    },
+    clickTypeNode(data) {
+      this.typeId = data.id
+      this.onMoreSearch({})
+    },
+    getTaskDesc(v) {
+      if (!v.includes('#')) {
+        return ''
+      }
+      return v.split('#')[1] || ''
+    },
+    onClick(item) {
+      this.instId = item.procInstId
+      this.formrenderTitle = item.taskName
+      this.formrenderVisible = true
     }
-
   }
+}
 </script>
 <style lang="scss" scoped>
-  ::v-deep .van-cell__title {
-    width: 65%;
+::v-deep .van-cell__title {
+  width: 65%;
 
-    .van-cell__label {
-      overflow-wrap: break-word;
-    }
+  .van-cell__label {
+    overflow-wrap: break-word;
   }
-</style>
+}
+</style>

+ 263 - 181
src/views/platform/bpmn/my-request/index.vue

@@ -1,226 +1,308 @@
 <template>
   <div>
     <van-sticky>
-      <van-nav-bar :title="generateTitle($route.name,$route.params.title||$route.meta.title)"
-        :left-text="$t('common.button.back')" left-arrow @click-left="$router.push({ name: 'dashboard' })" />
-      <van-search v-model="subject" show-action placeholder="请输入搜索关键词" @search="onSearch">
+      <van-nav-bar
+        :title="
+          generateTitle($route.name, $route.params.title || $route.meta.title)
+        "
+        :left-text="$t('common.button.back')"
+        left-arrow
+        @click-left="$router.push({ name: 'dashboard' })"
+      />
+      <van-search
+        v-model="subject"
+        show-action
+        placeholder="请输入搜索关键词"
+        @search="onSearch"
+      >
         <template #left>
-          <van-icon name="bars" :class="{'ibps-active':$utils.isNotEmpty(typeId)}" class="ibps-pr-5"
-            @click="clickType" />
+          <van-icon
+            name="bars"
+            :class="{ 'ibps-active': $utils.isNotEmpty(typeId) }"
+            class="ibps-pr-5"
+            @click="clickType"
+          />
         </template>
         <template #action>
-          <van-icon name="filter-o" :class="{'ibps-active':stateActive}" @click="clickMoreSearch" />
+          <van-icon
+            name="filter-o"
+            :class="{ 'ibps-active': stateActive }"
+            @click="clickMoreSearch"
+          />
         </template>
       </van-search>
     </van-sticky>
     <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
       <van-list v-model="loading" :finished="finished" @load="loadData">
-        <van-swipe-cell v-for="(item,index) in listData" :key="item.id+index" :right-width="65">
-          <van-cell :title="item.procDefName" :label="getTaskDesc(item.subject)" @click="onClick(item,index)">
+        <van-swipe-cell
+          v-for="(item, index) in listData"
+          :key="item.id + index"
+          :right-width="65"
+        >
+          <van-cell
+            :title="item.procDefName"
+            :label="getTaskDesc(item.subject)"
+            @click="onClick(item, index)"
+          >
             <template slot="icon">
-              <ibps-avatar :icon="_randomIcon(index)" :text="item.name" :bg-color="_randomColor(index)" radius="4"
-                icon-prefix="ibps-icon" class="ibps-mr-10" />
+              <ibps-avatar
+                :icon="_randomIcon(index)"
+                :text="item.name"
+                :bg-color="_randomColor(index)"
+                radius="4"
+                icon-prefix="ibps-icon"
+                class="ibps-mr-10"
+              />
             </template>
-            <span>{{ item.createTime|formatRelativeTime }}</span>
+            <span>{{ item.createTime | formatRelativeTime }}</span>
             <div>
               <!-- <van-tag plain :type=" item.status | optionsFilter(bpmnStatusOptions,'type')">{{ item.status | optionsFilter(bpmnStatusOptions) }}</van-tag> -->
-              <van-tag size="medium"
-                :color="item.status | optionsFilter(bpmnStatusOptions,'type') | optionsFilter(colorOptions,'color','type')"
-                :text-color="item.status | optionsFilter(bpmnStatusOptions,'type') | optionsFilter(colorOptions,'textColor','type')">
-                {{ item.status| optionsFilter(bpmnStatusOptions) }}</van-tag>
+              <van-tag
+                size="medium"
+                :color="
+                  item.status
+                    | optionsFilter(bpmnStatusOptions, 'type')
+                    | optionsFilter(colorOptions, 'color', 'type')
+                "
+                :text-color="
+                  item.status
+                    | optionsFilter(bpmnStatusOptions, 'type')
+                    | optionsFilter(colorOptions, 'textColor', 'type')
+                "
+              >
+                {{ item.status | optionsFilter(bpmnStatusOptions) }}</van-tag
+              >
             </div>
           </van-cell>
-          <van-button slot="right" name="copy" type="info" text="复制" class="ibps-swipe-button" @click="onCopy(item)" />
+          <van-button
+            slot="right"
+            name="copy"
+            type="info"
+            text="复制"
+            class="ibps-swipe-button"
+            @click="onCopy(item)"
+          />
         </van-swipe-cell>
 
-        <ibps-list-result-page :result-type="resultType" :error-type="errorType" :result-message="resultMessage" />
+        <ibps-list-result-page
+          :result-type="resultType"
+          :error-type="errorType"
+          :result-message="resultMessage"
+        />
       </van-list>
     </van-pull-refresh>
-    <ibps-more-search :show="moreSearchPopup" :search-forms="searchForms" @callback="onMoreSearch"
-      @close="show => moreSearchPopup = show" @reset-form="resetForm" />
+    <ibps-more-search
+      :show="moreSearchPopup"
+      :search-forms="searchForms"
+      @callback="onMoreSearch"
+      @close="show => (moreSearchPopup = show)"
+      @reset-form="resetForm"
+    />
 
-    <ibps-type-tree v-model="typeTreePopup" title="流程分类" category-key="FLOW_TYPE" @node-click="clickTypeNode"
-      @close="visible => typeTreePopup = visible" />
+    <ibps-type-tree
+      v-model="typeTreePopup"
+      title="流程分类"
+      category-key="FLOW_TYPE"
+      @node-click="clickTypeNode"
+      @close="visible => (typeTreePopup = visible)"
+    />
 
-    <ibps-bpmn-formrender-dialog :visible="formrenderVisible" :title="formrenderTitle" :inst-id="instId"
-      :pro-inst-id="proInstId" :def-id="defId" :copy-flow="copyFlow" @close="visible => formrenderVisible = visible" />
+    <ibps-bpmn-formrender-dialog
+      :visible="formrenderVisible"
+      :title="formrenderTitle"
+      :inst-id="instId"
+      :pro-inst-id="proInstId"
+      :def-id="defId"
+      :copy-flow="copyFlow"
+      @close="visible => (formrenderVisible = visible)"
+    />
   </div>
 </template>
 <script>
-  import { myRequested } from '@/api/platform/office/bpmInitiated'
+import { myRequested } from '@/api/platform/office/bpmInitiated'
 
-  import ActionUtils from '@/utils/action'
-  import i18n from '@/utils/i18n'
-  import random from '@/mixins/random'
-  import bpmnStatus from '@/mixins/bpmnStatus'
+import ActionUtils from '@/utils/action'
+import i18n from '@/utils/i18n'
+import random from '@/mixins/random'
+import bpmnStatus from '@/mixins/bpmnStatus'
 
-  import IbpsMoreSearch from '@/components/ibps-more-search'
-  import IbpsTypeTree from '@/business/platform/cat/type/tree'
-  import IbpsAvatar from '@/components/ibps-avatar'
-  import IbpsListResultPage from '@/components/ibps-list-result-page'
-  import IbpsBpmnFormrenderDialog from '@/business/platform/bpmn/form/dialog'
+import IbpsMoreSearch from '@/components/ibps-more-search'
+import IbpsTypeTree from '@/business/platform/cat/type/tree'
+import IbpsAvatar from '@/components/ibps-avatar'
+import IbpsListResultPage from '@/components/ibps-list-result-page'
+import IbpsBpmnFormrenderDialog from '@/business/platform/bpmn/form/dialog'
 
-  export default {
-    components: {
-      IbpsMoreSearch,
-      IbpsTypeTree,
-      IbpsAvatar,
-      IbpsListResultPage,
-      IbpsBpmnFormrenderDialog
-    },
-    mixins: [random, bpmnStatus],
-    data() {
-      return {
-        stateActive: false,
-        moreSearchPopup: false,
-        typeTreePopup: false,
-        searchForms: {
-          forms: [
-            { prop: 'Q^subject_^SL', label: '事务名称', fieldType: 'text' },
-            // { prop: 'Q^proc_def_name_^SL', label: '事务说明', fieldType: 'text' },
-            { prop: 'Q^inst.subject_^SL', label: '事务说明', fieldType: 'text' },
-            { prop: ['Q^create_time_^DL', 'Q^create_time_^DG'], label: '创建时间', fieldType: 'dateRange', options: { datefmt: 'yyyy-MM-dd' } }
-          ]
-        },
+export default {
+  components: {
+    IbpsMoreSearch,
+    IbpsTypeTree,
+    IbpsAvatar,
+    IbpsListResultPage,
+    IbpsBpmnFormrenderDialog
+  },
+  mixins: [random, bpmnStatus],
+  data() {
+    return {
+      stateActive: false,
+      moreSearchPopup: false,
+      typeTreePopup: false,
+      searchForms: {
+        forms: [
+          { prop: 'Q^proc_def_name_^SL', label: '事务名称', fieldType: 'text' },
+          // { prop: 'Q^proc_def_name_^SL', label: '事务说明', fieldType: 'text' },
+          { prop: 'Q^subject_^SL', label: '事务说明', fieldType: 'text' },
+          {
+            prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
+            label: '创建时间',
+            fieldType: 'dateRange',
+            options: { datefmt: 'yyyy-MM-dd' }
+          }
+        ]
+      },
 
-        subject: '',
-        typeId: '',
-        moreParams: {},
+      subject: '',
+      typeId: '',
+      moreParams: {},
 
-        listData: [],
-        pagination: {},
-        sorts: {},
+      listData: [],
+      pagination: { limit: 100 },
+      sorts: {},
 
-        loading: false,
-        finished: false,
-        refreshing: false,
-        resultType: 'init',
-        errorType: null,
-        resultMessage: null,
+      loading: false,
+      finished: false,
+      refreshing: false,
+      resultType: 'init',
+      errorType: null,
+      resultMessage: null,
 
-        defId: '',
-        instId: '',
-        proInstId: '',
-        copyFlow: false,
-        formrenderVisible: false,
-        formrenderTitle: ''
-      }
+      defId: '',
+      instId: '',
+      proInstId: '',
+      copyFlow: false,
+      formrenderVisible: false,
+      formrenderTitle: ''
+    }
+  },
+  methods: {
+    generateTitle(name, title) {
+      // generateTitle by vue-i18n
+      return i18n.generateTitle(name, title)
     },
-    methods: {
-      generateTitle(name, title) { // generateTitle by vue-i18n
-        return i18n.generateTitle(name, title)
-      },
-      /**
-       * 加载数据
-       */
-      loadData() {
-        this.loading = true
-        myRequested(this.getSearcFormData()).then(response => {
+    /**
+     * 加载数据
+     */
+    loadData() {
+      this.loading = true
+      myRequested(this.getSearcFormData())
+        .then(response => {
           // 处理数据
-          ActionUtils.handleListData(this, response.data)
-        }).catch((e) => {
+          ActionUtils.existHandleListData(
+            this,
+            response.data,
+            this.$store.getters.flowList,
+            'bpmnDefId',
+            'bpmn_liu_cheng_di'
+          )
+        })
+        .catch(e => {
           ActionUtils.handleErrorData(this, e)
         })
-      },
-      /**
-       * 获取格式化参数
-       */
-      getSearcFormData() {
-        let params = {}
-        if (this.$utils.isNotEmpty(this.subject)) {
-          params['Q^subject_^SL'] = this.subject
-        }
-        if (this.$utils.isNotEmpty(this.moreParams)) {
-          params = Object.assign(params, this.moreParams)
-        }
+    },
+    /**
+     * 获取格式化参数
+     */
+    getSearcFormData() {
+      let params = {}
+      if (this.$utils.isNotEmpty(this.subject)) {
+        params['Q^subject_^SL'] = this.subject
+      }
+      if (this.$utils.isNotEmpty(this.moreParams)) {
+        params = Object.assign(params, this.moreParams)
+      }
 
-        return ActionUtils.formatParams(
-          params,
-          this.pagination,
-          this.sorts)
-      },
-      /**
-       * 下拉刷新
-       */
-      onRefresh() {
-        this.refreshing = true
-        this.finished = false
-        this.loading = true
-        this.onSearch()
-      },
-      /**
-       * 查询
-       */
-      onSearch() {
-        this.stateActive = false
-        ActionUtils.initListData(this)
-        this.loadData()
-      },
-      /**
-       * 高级查询
-       */
-      onMoreSearch(params) {
-        if (this.$utils.isNotEmpty(this.typeId)) {
-          params['Q^type_id_^SL'] = this.typeId
-        }
-        this.moreParams = params
-        this.onSearch()
-        if (this.$utils.isNotEmpty(params)) {
-          this.stateActive = true
-        }
-      },
-      /**
-       * 弹窗更多查询条件
-       */
-      clickMoreSearch() {
-        this.moreSearchPopup = true
-        this.stateActive = false
-      },
-      /**
-       * 重置表单
-       */
-      resetForm() {
-        this.typeId = ''
-      },
-      clickType() {
-        this.typeTreePopup = true
-      },
-      clickTypeNode(data) {
-        this.typeId = data.id
-        this.onMoreSearch({})
-      },
-      getTaskDesc(v) {
-        if (!v.includes('#')) {
-          return ''
-        }
-        return v.split('#')[1] || ''
-      },
-      onClick(item) {
-        this.instId = item.id
-        this.proInstId = ''
-        this.defId = ''
-        this.copyFlow = false
-        this.formrenderTitle = item.procDefName
-        this.formrenderVisible = true
-      },
-      onCopy(item) {
-        this.instId = ''
-        this.proInstId = item.id
-        this.defId = item.procDefId || ''
-        this.copyFlow = true
-        this.formrenderTitle = item.procDefName
-        this.formrenderVisible = true
+      return ActionUtils.formatParams(params, this.pagination, this.sorts)
+    },
+    /**
+     * 下拉刷新
+     */
+    onRefresh() {
+      this.refreshing = true
+      this.finished = false
+      this.loading = true
+      this.onSearch()
+    },
+    /**
+     * 查询
+     */
+    onSearch() {
+      this.stateActive = false
+      ActionUtils.initListData(this)
+      this.loadData()
+    },
+    /**
+     * 高级查询
+     */
+    onMoreSearch(params) {
+      if (this.$utils.isNotEmpty(this.typeId)) {
+        params['Q^type_id_^SL'] = this.typeId
+      }
+      this.moreParams = params
+      this.onSearch()
+      if (this.$utils.isNotEmpty(params)) {
+        this.stateActive = true
       }
+    },
+    /**
+     * 弹窗更多查询条件
+     */
+    clickMoreSearch() {
+      this.moreSearchPopup = true
+      this.stateActive = false
+    },
+    /**
+     * 重置表单
+     */
+    resetForm() {
+      this.typeId = ''
+    },
+    clickType() {
+      this.typeTreePopup = true
+    },
+    clickTypeNode(data) {
+      this.typeId = data.id
+      this.onMoreSearch({})
+    },
+    getTaskDesc(v) {
+      if (!v.includes('#')) {
+        return ''
+      }
+      return v.split('#')[1] || ''
+    },
+    onClick(item) {
+      this.instId = item.id
+      this.proInstId = ''
+      this.defId = ''
+      this.copyFlow = false
+      this.formrenderTitle = item.procDefName
+      this.formrenderVisible = true
+    },
+    onCopy(item) {
+      this.instId = ''
+      this.proInstId = item.id
+      this.defId = item.procDefId || ''
+      this.copyFlow = true
+      this.formrenderTitle = item.procDefName
+      this.formrenderVisible = true
     }
-
   }
+}
 </script>
 <style lang="scss" scoped>
-  ::v-deep .van-cell__title {
-    width: 65%;
+::v-deep .van-cell__title {
+  width: 65%;
 
-    .van-cell__label {
-      overflow-wrap: break-word;
-    }
+  .van-cell__label {
+    overflow-wrap: break-word;
   }
-</style>
+}
+</style>

+ 9 - 4
src/views/platform/bpmn/pending/index.vue

@@ -226,9 +226,9 @@ export default {
         forms: [
           { prop: 'Q^procDefName^SL', label: '事务名称' },
           // { prop: 'Q^inst.subject_^SL', label: '事务说明' },
-          { prop: 'Q^subject_^SL', label: '事务说明' },
+          { prop: 'Q^temp.subject_^SL', label: '事务说明' },
           {
-            prop: ['Q^create_time_^DL', 'Q^create_time_^DG'],
+            prop: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'],
             label: '创建时间',
             fieldType: 'dateRange',
             options: { datefmt: 'yyyy-MM-dd' }
@@ -241,7 +241,9 @@ export default {
       moreParams: {},
 
       listData: [],
-      pagination: {},
+      pagination: {
+        limit: 100
+      },
       sorts: {},
 
       loading: false,
@@ -337,7 +339,9 @@ export default {
           ActionUtils.existHandleListData(
             this,
             response.data,
-            this.$store.getters.flowList
+            this.$store.getters.flowList,
+            'procDefId',
+            'liu_cheng_id_'
           )
         })
         .catch(e => {
@@ -349,6 +353,7 @@ export default {
      */
     getSearcFormData() {
       let params = {}
+      params['Q^temp.proc_def_id_^SL'] = ''
       if (this.$utils.isNotEmpty(this.subject)) {
         params['Q^temp.procDefName^SL'] = this.subject
       }