|
@@ -21,6 +21,9 @@
|
|
<hc-tooltip keys="tasks_flow_del">
|
|
<hc-tooltip keys="tasks_flow_del">
|
|
<el-button v-del-com:[handleTableDel]="row" plain size="small" type="danger" :disabled="!row.deletedIs">删除</el-button>
|
|
<el-button v-del-com:[handleTableDel]="row" plain size="small" type="danger" :disabled="!row.deletedIs">删除</el-button>
|
|
</hc-tooltip>
|
|
</hc-tooltip>
|
|
|
|
+ <hc-tooltip keys="tasks_flow_copy">
|
|
|
|
+ <el-button plain size="small" type="warning" @click="handleCopyEdit(row)">复制</el-button>
|
|
|
|
+ </hc-tooltip>
|
|
</template>
|
|
</template>
|
|
</hc-table>
|
|
</hc-table>
|
|
<template #action>
|
|
<template #action>
|
|
@@ -89,6 +92,7 @@ import { nextTick, onMounted, ref } from 'vue'
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
import { getArrValue, getObjValue } from 'js-fast-way'
|
|
import { getArrValue, getObjValue } from 'js-fast-way'
|
|
import tasksFlowApi from '~api/tasks/flow'
|
|
import tasksFlowApi from '~api/tasks/flow'
|
|
|
|
+import { isInDestructureAssignment } from '@vue/compiler-sfc'
|
|
|
|
|
|
|
|
|
|
//变量
|
|
//变量
|
|
@@ -356,6 +360,22 @@ const sortModalSave = async () => {
|
|
const sortModalClose = () => {
|
|
const sortModalClose = () => {
|
|
sortModal.value = false
|
|
sortModal.value = false
|
|
}
|
|
}
|
|
|
|
+//复制流程
|
|
|
|
+const handleCopyEditLoad = ref(false)
|
|
|
|
+const handleCopyEdit = async (row) => {
|
|
|
|
+ handleCopyEditLoad.value = true
|
|
|
|
+
|
|
|
|
+ const { error, code, msg } = await tasksFlowApi.copyFixedFlowData(
|
|
|
|
+ {
|
|
|
|
+ ids: row.id,
|
|
|
|
+ },
|
|
|
|
+ )
|
|
|
|
+ handleCopyEditLoad.value = false
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ window.$message?.success(msg)
|
|
|
|
+ getTableData().then()
|
|
|
|
+ }
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|