工作台我的已办不刷新

需求申请被驳回之后,点击修改,之前的附件名称被修改了,直接命名为附件,而非原附件名称
This commit is contained in:
a0049873 2022-12-13 11:36:05 +08:00
parent 90f9f54528
commit 95252d1f49
10 changed files with 53 additions and 46 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2022-04-11 16:30:04 * @Date: 2022-04-11 16:30:04
* @LastEditors: Light * @LastEditors: Light
* @LastEditTime: 2022-10-26 11:05:07 * @LastEditTime: 2022-12-13 11:10:46
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
--> -->
<template> <template>
@ -103,7 +103,7 @@ export default {
padding-left: 20px; padding-left: 20px;
color: #212121; color: #212121;
font-size: 16px; font-size: 16px;
margin-bottom: 10px; margin-bottom: 10px;
margin-top: 10px; margin-top: 10px;
background: url("~@/assets/img/biaoti.png") no-repeat; background: url("~@/assets/img/biaoti.png") no-repeat;
background-position-y: 2px; background-position-y: 2px;

View File

@ -109,31 +109,31 @@
</template> </template>
<script> <script>
import mixinViewModule from "@/mixins/view-module"; import mixinViewModule from '@/mixins/view-module'
import processModule from "@/mixins/process-module"; import processModule from '@/mixins/process-module'
export default { export default {
mixins: [mixinViewModule, processModule], mixins: [mixinViewModule, processModule],
data() { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: "/act/his/getMyHandledInstancePage", getDataListURL: '/act/his/getMyHandledInstancePage?ended=1',
getDataListIsPage: true, getDataListIsPage: true,
deleteIsBatch: true, deleteIsBatch: true,
deleteIsBatchKey: "deploymentId", deleteIsBatchKey: 'deploymentId'
}, },
dataForm: { dataForm: {
processDefinitionId: "", processDefinitionId: ''
}, }
}; }
}, },
components: {}, components: {},
methods: { methods: {
showDetail(row) { showDetail (row) {
if (!row.businessKey) { if (!row.businessKey) {
return this.$message.error(this.$t("task.detailError")); return this.$message.error(this.$t('task.detailError'))
} }
this.getProcDefRouteSet(row, this.forwardDetail); this.getProcDefRouteSet(row, this.forwardDetail)
}, }
}, }
}; }
</script> </script>

View File

@ -115,7 +115,7 @@ export default {
data () { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/act/his/getMyHandledInstancePage', getDataListURL: '/act/his/getMyHandledInstancePage?ended=1',
getDataListIsPage: true, getDataListIsPage: true,
deleteIsBatch: true, deleteIsBatch: true,
deleteIsBatchKey: 'deploymentId' deleteIsBatchKey: 'deploymentId'

View File

@ -115,7 +115,7 @@ export default {
data () { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/act/his/getMyHandledInstancePage', getDataListURL: '/act/his/getMyHandledInstancePage?ended=1',
getDataListIsPage: true, getDataListIsPage: true,
deleteIsBatch: true, deleteIsBatch: true,
deleteIsBatchKey: 'deploymentId' deleteIsBatchKey: 'deploymentId'

View File

@ -115,7 +115,7 @@ export default {
data () { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/act/his/getMyHandledInstancePage', getDataListURL: '/act/his/getMyHandledInstancePage?ended=1',
getDataListIsPage: true, getDataListIsPage: true,
deleteIsBatch: true, deleteIsBatch: true,
deleteIsBatchKey: 'deploymentId' deleteIsBatchKey: 'deploymentId'

View File

@ -115,7 +115,7 @@ export default {
data () { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/act/his/getMyHandledInstancePage', getDataListURL: '/act/his/getMyHandledInstancePage?ended=1',
getDataListIsPage: true, getDataListIsPage: true,
deleteIsBatch: true, deleteIsBatch: true,
deleteIsBatchKey: 'deploymentId' deleteIsBatchKey: 'deploymentId'

View File

@ -116,7 +116,7 @@ export default {
data () { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/act/his/getMyHandledInstancePage', getDataListURL: '/act/his/getMyHandledInstancePage?ended=1',
getDataListIsPage: true, getDataListIsPage: true,
deleteIsBatch: true, deleteIsBatch: true,
deleteIsBatchKey: 'deploymentId' deleteIsBatchKey: 'deploymentId'

View File

@ -90,7 +90,7 @@ export default {
created () { created () {
bus.$off('workInit') bus.$off('workInit')
bus.$on('workInit', () => { bus.$on('workInit', () => {
console.log("刷新工作台===================") console.log('刷新工作台===================')
this.getToDo() this.getToDo()
this.getHasToDo() this.getHasToDo()
}) })
@ -140,7 +140,7 @@ export default {
// page: 1 // page: 1
// } // }
this.loadingHasToDo = true this.loadingHasToDo = true
this.$http.get('/act/his/getMyHandledInstancePage?page=1&limit=5').then(res => { this.$http.get('/act/his/getMyHandledInstancePage?ended=1?page=1&limit=5').then(res => {
this.loadingHasToDo = false this.loadingHasToDo = false
this.hasToDodoData.list = res.data.data.list || [] this.hasToDodoData.list = res.data.data.list || []
this.hasToDodoData.num = res.data.data.total || 0 this.hasToDodoData.num = res.data.data.total || 0

View File

@ -220,13 +220,13 @@
联系方式 联系方式
</div> </div>
<div class="button" @click="showDetail(item)">查看详情</div> <div class="button" @click="showDetail(item)">查看详情</div>
<!-- <div <div
class="button" class="button"
@click="showAdd(item)" @click="showAdd(item)"
v-if="item.backToFirst" v-if="typeName !== '能力申请' && item.backToFirst"
> >
修改 修改
</div> --> </div>
<svg <svg
t="1652233950228" t="1652233950228"
class="icon" class="icon"
@ -535,14 +535,11 @@
name: yunForm.busineesName, name: yunForm.busineesName,
} }
total.value = 5 total.value = 5
getZwyBusinessList(params).then( getZwyBusinessList(params).then((res) => {
(res) => { cloudList.data = res.data.data.list
num.value = []
cloudList.data = res.data.data.list total.value = res.data.data.total
num.value = [] })
total.value = res.data.data.total
}
)
} }
// //
const getCloudResource = () => { const getCloudResource = () => {

View File

@ -255,7 +255,6 @@
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
export default { export default {
name: '',
props: {}, props: {},
components: { components: {
HomeHeader, HomeHeader,
@ -296,7 +295,7 @@
fileList.value = [ fileList.value = [
{ {
uid: res.data.data.id, uid: res.data.data.id,
name: '附件', name: res.data.data.enclosureName || '附件',
staus: 'done', staus: 'done',
}, },
] ]
@ -339,6 +338,7 @@
} }
const handleRemove = () => { const handleRemove = () => {
formName.enclosure = '' formName.enclosure = ''
formName.enclosureName = ''
} }
const handleChange = (info) => { const handleChange = (info) => {
if (info.file.status !== 'uploading') { if (info.file.status !== 'uploading') {
@ -346,12 +346,15 @@
} }
if (info.file.status === 'removed') { if (info.file.status === 'removed') {
formName.enclosure = '' formName.enclosure = ''
formName.enclosureName = ''
} }
if (info.file.status === 'done') { if (info.file.status === 'done') {
message.success(`${info.file.name} 文件上传成功`) message.success(`${info.file.name} 文件上传成功`)
formName.enclosure = info.file.response.data formName.enclosure = info.file.response.data
formName.enclosureName = info.file.name
} else if (info.file.status === 'error') { } else if (info.file.status === 'error') {
formName.enclosure = '' formName.enclosure = ''
formName.enclosureName = ''
fileList.value = [] fileList.value = []
message.error(`${info.file.name} 文件上传失败`) message.error(`${info.file.name} 文件上传失败`)
} }
@ -368,21 +371,20 @@
// copy // copy
let _postData = JSON.parse(JSON.stringify(formName)) let _postData = JSON.parse(JSON.stringify(formName))
_postData.detailsField = detailsField _postData.detailsField = detailsField
if (id.value) { if (id.value) {
updateDemandForm(_postData).then((upres) => { updateDemandForm(_postData).then((upres) => {
if (upres.data.code == 0) { if (upres.data.code == 0) {
relaunch({ data: _postData, taskId: taskId.value }).then( relaunch({ data: _postData, taskId: taskId.value }).then(
(res) => { (res) => {
console.log('驳回================>', res) console.log('驳回================>', res)
if (res.data.code == 0) { // if (res.data.code == 0) {
message.success('重新发起流程成功!') // message.success('')
window.setTimeout(() => { // window.setTimeout(() => {
window.close() // window.close()
}, 1000) // }, 1000)
} else { // } else {
message.error('重新发起流程失败!') // message.error('')
} // }
} }
) )
} else { } else {
@ -396,8 +398,16 @@
console.log(detString, _postData.detailsField, 'detString') console.log(detString, _postData.detailsField, 'detString')
demandApply(_postData).then((res) => { demandApply(_postData).then((res) => {
applySuccess.value = false applySuccess.value = false
message.success('操作成功!') // message.success('')
console.log('能力申请================>', res) console.log('能力申请================>', res)
if (res.data.code == 0) {
message.success('操作成功!')
window.setTimeout(() => {
window.close()
}, 1000)
} else {
message.error('操作失败')
}
}) })
}) })
} }