修改流程的按钮

This commit is contained in:
qq787203167
2022-03-08 16:11:40 +08:00
parent 40a35fedf3
commit b9c245e356
7 changed files with 35 additions and 31 deletions
+2
View File
@@ -500,4 +500,6 @@ module.exports = {
ProcessStatus:'Process status',
CompletionTime:'Completion time',
draft:'draft',
Processing:'Processing',
See:'See',
}
+2
View File
@@ -504,4 +504,6 @@ module.exports = {
ProcessStatus:'流程状态',
CompletionTime:'完成时间',
draft:'草稿',
Processing:'办理',
See:'查看',
}
@@ -11,6 +11,9 @@
:loading="loading"
:columns="columns"
>
<span slot="operation" slot-scope="record">
<a @click="classAdd(record)" style="margin-right:8px">{{$t('See')}}</a>
</span>
</a-table>
<div class="page" v-if="dataSource.length > 0">
<a-pagination
@@ -11,6 +11,9 @@
:loading="loading"
:columns="columns"
>
<span slot="operation" slot-scope="record">
<a @click="classAdd(record)" style="margin-right:8px">{{$t('See')}}</a>
</span>
</a-table>
<div class="page" v-if="dataSource.length > 0">
<a-pagination
@@ -11,6 +11,9 @@
:loading="loading"
:columns="columns"
>
<span slot="operation" slot-scope="record">
<a @click="classAdd(record)" style="margin-right:8px">{{$t('See')}}</a>
</span>
</a-table>
<div class="page" v-if="dataSource.length > 0">
<a-pagination
@@ -11,6 +11,9 @@
:loading="loading"
:columns="columns"
>
<span slot="operation" slot-scope="record">
<a @click="dealWith(record)" style="margin-right:8px">{{$t('Processing')}}</a>
</span>
</a-table>
<div class="page" v-if="dataSource.length > 0">
<a-pagination
@@ -11,6 +11,10 @@
:loading="loading"
:columns="columns"
>
<span slot="operation" slot-scope="record">
<a @click="dealWith(record)" style="margin-right:8px">{{$t('Processing')}}</a>
<a @click="classDel(record)" style="margin-right:8px">{{$t('deleteLib')}}</a>
</span>
</a-table>
<div class="page" v-if="dataSource.length > 0">
<a-pagination
@@ -30,6 +34,7 @@
import { mapMutations, mapActions, mapGetters } from 'vuex'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import moment from 'moment'
import eventBUs from '../../../../../common/event'
export default {
name: 'ProcessCenter',
@@ -117,40 +122,23 @@
...mapGetters(['userInfo']),
onSelectChange() {
},
handleCommand(command) {
switch (command[1]) {
case '查看':
this.classAdd(command[0])
break
case '办理':
this.dealWith(command[0])
break
case '删除':
this.classDel(command[0])
break
}
},
// 删除
classDel(row) {
this.$confirm('确认删除信息?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
this.$http.get('lawss/activiti/deleteDraft', { id: row.id }, {
_this: this,
loading: 'loading'
}, res => {
if (res.success) {
this.$message.success('删除成功')
this.pageNo = 1
this.queryProcess()
} else {
}
})
let _this = this
this.$confirm({
content: _this.$t('ConfirmDelete'),
onOk() {
deleteAction('task/deleteDraft', { id: row.id }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'));
this.pageNo = 1
_this.queryProcess()
} else {
_this.$message.warning(_this.$t('operationFailed'))
}
})
}
})
},
// 查询待办流程