|
|
|
@ -10,20 +10,10 @@
|
|
|
|
|
>
|
|
|
|
|
<span class="iconfont icon-qiyong-danse" @click="handleApply">启用</span>
|
|
|
|
|
<span class="iconfont icon-quxiaoqiyong-danse" @click="handleWithdraw">取消启用</span>
|
|
|
|
|
<span class="iconfont icon-qiyong-danse" @click="handlePub">发布</span>
|
|
|
|
|
</TableButton>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:bodyCell="{ column, record }">
|
|
|
|
|
<!-- <template v-if="column.key === 'action'">
|
|
|
|
|
<TableAction :actions="[
|
|
|
|
|
{
|
|
|
|
|
icon: 'clarity:note-edit-line',
|
|
|
|
|
tooltip: '编辑',
|
|
|
|
|
onClick: () => {
|
|
|
|
|
GoDetailed(true, record)
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]" />
|
|
|
|
|
</template> -->
|
|
|
|
|
<template v-if="column.key === 'isEnable'">
|
|
|
|
|
<span v-if="record.isEnable == 1">是</span>
|
|
|
|
|
<span v-if="record.isEnable == 0">否</span>
|
|
|
|
@ -36,7 +26,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup name="服务流程台账">
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
import { GetList, SetUnEnable, SetEnable, Delete } from './api.js'
|
|
|
|
|
import { GetList, SetUnEnable, SetEnable, Delete,workFlowSetUnPublishRelease } from './api.js'
|
|
|
|
|
import { BasicTable, useTable } from '/@/components/Table'
|
|
|
|
|
import { columns, searchFormSchema, detailForm } from './columns'
|
|
|
|
|
import manyModel from './manyModel.vue'
|
|
|
|
@ -84,6 +74,24 @@ function GoDetailed(type, row) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const manyModelRef = ref()
|
|
|
|
|
function handlePub(){
|
|
|
|
|
let ids = []
|
|
|
|
|
ids = getVxeSelectRows().map((item) => {
|
|
|
|
|
return item.pkId
|
|
|
|
|
})
|
|
|
|
|
if (ids.length == 0) {
|
|
|
|
|
createMessage.error('请选择数据')
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
workFlowSetUnPublishRelease(ids).then(res => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
createMessage.success('操作成功')
|
|
|
|
|
clearSelectedRowKeys()
|
|
|
|
|
reload()
|
|
|
|
|
manyModelRef.value.init(res)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function handleSuccess(){
|
|
|
|
|
reload()
|
|
|
|
|