|
@@ -21,12 +21,32 @@
|
|
<el-button type="danger">作废</el-button>
|
|
<el-button type="danger">作废</el-button>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
+ <template #identificationSlot="scope">
|
|
|
|
+ <el-dropdown>
|
|
|
|
+ <span class="el-dropdown-link">
|
|
|
|
+ {{ scope.row.name }}
|
|
|
|
+ <el-icon class="el-icon--right">
|
|
|
|
+ <ArrowDown />
|
|
|
|
+ </el-icon>
|
|
|
|
+ </span>
|
|
|
|
+ <template #dropdown>
|
|
|
|
+ <el-dropdown-menu>
|
|
|
|
+ <el-dropdown-item @click="test1Ev">审批流</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item @click="test2Ev">详情</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </template>
|
|
|
|
+ </el-dropdown>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
<template #statusSlot="scope">
|
|
<template #statusSlot="scope">
|
|
<status-indicator v-if="scope.row.status === 1" pulse type="success"></status-indicator>
|
|
<status-indicator v-if="scope.row.status === 1" pulse type="success"></status-indicator>
|
|
<status-indicator v-else pulse type="danger"></status-indicator>
|
|
<status-indicator v-else pulse type="danger"></status-indicator>
|
|
</template>
|
|
</template>
|
|
</LeTable>
|
|
</LeTable>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <instance-detail v-if="detailVisibile"
|
|
|
|
+ v-model="detailVisibile"></instance-detail>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script lang="tsx" setup>
|
|
<script lang="tsx" setup>
|
|
@@ -34,7 +54,10 @@ import app from '@/api/system/app'
|
|
import { nextTick, ref } from 'vue'
|
|
import { nextTick, ref } from 'vue'
|
|
import { useTablePage } from '@/hooks/useTablePage'
|
|
import { useTablePage } from '@/hooks/useTablePage'
|
|
import StatusIndicator from '@/components/StatusIndicator'
|
|
import StatusIndicator from '@/components/StatusIndicator'
|
|
|
|
+import { ArrowDown } from '@element-plus/icons-vue'
|
|
|
|
+import InstanceDetail from './instance-detail.vue'
|
|
|
|
|
|
|
|
+const detailVisibile = ref(false)
|
|
// 表格搜索条件
|
|
// 表格搜索条件
|
|
const forms = ref([
|
|
const forms = ref([
|
|
{
|
|
{
|
|
@@ -78,12 +101,17 @@ const queryList = async () => {
|
|
// table 参数
|
|
// table 参数
|
|
const columns = [
|
|
const columns = [
|
|
{
|
|
{
|
|
- prop: 'identification',
|
|
|
|
|
|
+ prop: 'name',
|
|
label: '审批标题',
|
|
label: '审批标题',
|
|
- minWidth: 80
|
|
|
|
|
|
+ minWidth: 150,
|
|
|
|
+
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
+ slots: {
|
|
|
|
+ default: 'identificationSlot'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- prop: 'name',
|
|
|
|
|
|
+ prop: 'name1',
|
|
label: '单据名称',
|
|
label: '单据名称',
|
|
minWidth: 100
|
|
minWidth: 100
|
|
},
|
|
},
|
|
@@ -98,32 +126,32 @@ const columns = [
|
|
minWidth: 80
|
|
minWidth: 80
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- prop: 'sort',
|
|
|
|
|
|
+ prop: 'sort1',
|
|
label: '机构',
|
|
label: '机构',
|
|
minWidth: 80
|
|
minWidth: 80
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- prop: 'sort',
|
|
|
|
|
|
+ prop: 'sort2',
|
|
label: '岗位',
|
|
label: '岗位',
|
|
minWidth: 80
|
|
minWidth: 80
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- prop: 'sort',
|
|
|
|
|
|
+ prop: 'sort3',
|
|
label: '提交人',
|
|
label: '提交人',
|
|
minWidth: 80
|
|
minWidth: 80
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- prop: 'sort',
|
|
|
|
|
|
+ prop: 'sort4',
|
|
label: '代理人',
|
|
label: '代理人',
|
|
minWidth: 80
|
|
minWidth: 80
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- prop: 'sort',
|
|
|
|
|
|
+ prop: 'sort5',
|
|
label: '发起时间',
|
|
label: '发起时间',
|
|
minWidth: 80
|
|
minWidth: 80
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- prop: 'sort',
|
|
|
|
|
|
+ prop: 'sort6',
|
|
label: '完成时间',
|
|
label: '完成时间',
|
|
minWidth: 80
|
|
minWidth: 80
|
|
},
|
|
},
|
|
@@ -136,12 +164,20 @@ const columns = [
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- prop: 'sort',
|
|
|
|
|
|
+ prop: 'sort7',
|
|
label: '流程版本',
|
|
label: '流程版本',
|
|
minWidth: 80
|
|
minWidth: 80
|
|
}
|
|
}
|
|
]
|
|
]
|
|
|
|
|
|
|
|
+const test1Ev = () => {
|
|
|
|
+ detailVisibile.value = true
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const test2Ev = () => {
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
const { searchData, tableOpts, checkedColumns, activeColumns } = useTablePage(
|
|
const { searchData, tableOpts, checkedColumns, activeColumns } = useTablePage(
|
|
{
|
|
{
|
|
options: {
|
|
options: {
|