|
@@ -71,25 +71,29 @@
|
|
|
<s-table ref="table" :scroll="{x: 1300, y: BaseTool.Constant.scrollY }" size="default" rowKey="id" :columns="columns" :data="loadData" :alert="options.alert" :rowSelection="options.rowSelection" showPagination="auto">
|
|
|
<span slot="action" slot-scope="record">
|
|
|
<template>
|
|
|
- <a @click="handleView(record)">查看</a>
|
|
|
+ <a @click="handleView(record.id)">查看</a>
|
|
|
+
|
|
|
<operation-button @click="handleEdit(record)">修改</operation-button>
|
|
|
<operation-button :type="2" title="确认发送" @confirm="handleSend(record.id)">发送</operation-button>
|
|
|
</template>
|
|
|
</span>
|
|
|
</s-table>
|
|
|
</div>
|
|
|
+ <Detail ref="detail" @ok="handleOk" />
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { STable, Ellipsis } from '@/components'
|
|
|
-import { getWorplacePublishPage, sendWorkflow } from '@/api/workflow/publish'
|
|
|
+import { getWorplacePublishPage, sendWorkflow, getWorkflowBomInfo } from '@/api/workflow/publish'
|
|
|
+import Detail from './modules/Detail.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'WorkflowTaskList',
|
|
|
components: {
|
|
|
STable,
|
|
|
Ellipsis,
|
|
|
+ Detail,
|
|
|
},
|
|
|
props: {},
|
|
|
data() {
|
|
@@ -255,7 +259,12 @@ export default {
|
|
|
},
|
|
|
handleAdd() {},
|
|
|
handleEdit(record) {},
|
|
|
- handleView(record) {},
|
|
|
+ handleView(id) {
|
|
|
+ getWorkflowBomInfo({ id }).then((res) => {
|
|
|
+ this.visible = false
|
|
|
+ this.$refs.detail.base(res.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
handleSend(id) {
|
|
|
sendWorkflow({ id }).then((res) => {
|
|
|
this.$message.info('发送成功')
|