| | |
| | | return queryStr.slice(1); |
| | | } |
| | | function openWindow(path) { |
| | | const prefix = process.env.VUE_APP_TAB_URL_PREFIX; |
| | | const prefix = process.env.VUE_APP_FLOWABLE_PREFIX; |
| | | window.open(prefix + "" + path); |
| | | } |
| | | |
| | |
| | | |
| | | function normalizeDateTimeString(rawDatatimeStr) { |
| | | function genNumStr(num) { |
| | | return Number(num) < 10 ? "0" + num : ("" + num) |
| | | return Number(num) < 10 ? "0" + num : ("" + num) |
| | | } |
| | | if (rawDatatimeStr) { |
| | | const dateObj = new Date(rawDatatimeStr); |
| | |
| | | openWindow, |
| | | listToTree, |
| | | normalizeDateTimeString |
| | | }; |
| | | }; |
| | |
| | | this.getListAndRenderByParams(this.searchParams) |
| | | }, |
| | | handleDefinition(index, row) { |
| | | const {deploymentId, resourceName} = row; |
| | | const path = `/flow/manage/showProcessDefinition/${deploymentId}/${resourceName}` |
| | | let {deploymentId, resourceName} = row; |
| | | resourceName = encodeURIComponent(resourceName) |
| | | const path = `/flow/manage/showProcessDefinition/${deploymentId}?resource=${resourceName}` |
| | | commonHelper.openWindow(path); |
| | | }, |
| | | handleProcess(index, row) { |
| | | const {id} = row; |
| | | console.log("id是多少", id); |
| | | const path = `/flow/manage/showresource?pdid=${id}`; |
| | | commonHelper.openWindow(path); |
| | | const path = process.env.VUE_APP_FLOWABLE_PREFIX + `/flow/manage/showresource?pdid=${id}`; |
| | | window.open(path) |
| | | }, |
| | | handleExchange(index, row) { |
| | | const {id} = row; |
| | |
| | | }, |
| | | handleDesign(index, row) { |
| | | // flowable改变设计的路径 |
| | | const path = process.env.VUE_APP_FLOWABLE_PREFIX + "/designer/index.html#/editor/" + row.id; |
| | | const path = process.env.VUE_APP_FLOWABLE_PREFIX + "/designer/index.html#/editor/" + row.id; |
| | | // const path = "/editor?modelId=" + row.id; |
| | | window.open(path, '') |
| | | }, |