123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import list from '@/mixins/list'
- import {dibootApi} from '@/utils/dibootApi'
- export default {
- mixins: [list],
- created() {
- this.activeIndex = -100
- this.getList(true)
- },
-
- methods: {
- handle2ProcessTask(id, instId, category, definitionId, allowDeal) {
- uni.navigateTo({
- url:`/pages/workflowTask/webviewPages/dealTask?id=${id}&definitionId=${definitionId}&instId=${instId}&category=${category}&allowDeal=${allowDeal}`
- })
- },
- // 撤销
- handle2Click(processInstanceId, taskOperate) {
- uni.showModal({
- title: '',
- content: `确认撤销?`,
- showCancel: true,
- confirmText: '确定',
- success: async (res) => {
- if (res.confirm) {
- const res = await dibootApi.put('/workflow/task/taskOperate', {
- processInstanceId,
- taskOperate,
- validTask: false
- })
- if (res.code === 0) {
- uni.showToast({
- title: '撤销成功',
- icon: 'none'
- })
- this.page.pageIndex = 1
- this.getList(true)
- }
- }
- }
- })
- },
- // 重新发起
- handle2RestartWorkflow(item){
- uni.navigateTo({
- url: `/pages/workflowTask/webviewPages/startFlow?id=${item.procDefId}&processInstanceId=${item.id}&defaultTitle=${item.name}&name=${item.processDefinitionName}&restart=true&type=myLaunch`
- })
- }
- },
- watch: {
- searchKeyWord: {
- handler: function (val) {
- this.list = []
- this.queryParam['name'] = val
- this.handlePullDownRefresh()
- }
- }
- },
- props: {
- approveListHeight: {
- type: Number
- },
- searchKeyWord: {
- type: String
- }
- }
- }
|