|
@@ -71,12 +71,14 @@
|
|
<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">
|
|
<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">
|
|
<span slot="action" slot-scope="record">
|
|
<template>
|
|
<template>
|
|
- <a @click="handleAudit(record.id)">审核</a>
|
|
|
|
|
|
+ <a @click="handleView(record.id)">查看</a>
|
|
|
|
+ <operation-button @click="handleAudit(record.id)">审核</operation-button>
|
|
</template>
|
|
</template>
|
|
</span>
|
|
</span>
|
|
</s-table>
|
|
</s-table>
|
|
</div>
|
|
</div>
|
|
<AuditDetail ref="auditDetail" @ok="handleOk" />
|
|
<AuditDetail ref="auditDetail" @ok="handleOk" />
|
|
|
|
+ <Detail ref="detail" @ok="handleOk" />
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -84,11 +86,13 @@
|
|
import { STable, Ellipsis } from '@/components'
|
|
import { STable, Ellipsis } from '@/components'
|
|
import { getWorplacePublishPage, getWorkflowBomInfo } from '@/api/workflow/publish'
|
|
import { getWorplacePublishPage, getWorkflowBomInfo } from '@/api/workflow/publish'
|
|
import AuditDetail from './modules/AuditDetail.vue'
|
|
import AuditDetail from './modules/AuditDetail.vue'
|
|
|
|
+import Detail from './modules/Detail.vue'
|
|
export default {
|
|
export default {
|
|
name: 'WorkflowTaskList',
|
|
name: 'WorkflowTaskList',
|
|
components: {
|
|
components: {
|
|
STable,
|
|
STable,
|
|
Ellipsis,
|
|
Ellipsis,
|
|
|
|
+ Detail,
|
|
AuditDetail,
|
|
AuditDetail,
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
@@ -288,6 +292,12 @@ export default {
|
|
// this.$refs.table.clearSelected()
|
|
// this.$refs.table.clearSelected()
|
|
// })
|
|
// })
|
|
},
|
|
},
|
|
|
|
+ handleView(id) {
|
|
|
|
+ getWorkflowBomInfo({ id }).then((res) => {
|
|
|
|
+ this.visible = false
|
|
|
|
+ this.$refs.detail.base(res.data)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
handleAudit(id) {
|
|
handleAudit(id) {
|
|
getWorkflowBomInfo({ id }).then((res) => {
|
|
getWorkflowBomInfo({ id }).then((res) => {
|
|
this.visible = false
|
|
this.visible = false
|