|
@@ -27,7 +27,7 @@
|
|
|
<template #buttons>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
- @click="onAudit"
|
|
|
+ @click="onAuditBatch"
|
|
|
:disabled="isChecked"
|
|
|
v-if="state.queryParams.IsApply === 'false'"
|
|
|
:loading="state.loading"
|
|
@@ -108,10 +108,10 @@
|
|
|
{{ formatDate(row.afterDelay, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
- <vxe-column title="操作" fixed="right" width="90" align="center">
|
|
|
+ <vxe-column title="操作" fixed="right" width="130" align="center" :show-overflow="false">
|
|
|
<template #default="{ row }">
|
|
|
<el-button link type="primary" @click="onDetail(row)" title="延期详情"> 延期详情 </el-button>
|
|
|
- <!-- <el-button link type="primary" @click="onAudit(row)" title="审批" v-auth="'business:delay:audit:batch'"> 审批 </el-button>-->
|
|
|
+<!-- <el-button link type="primary" @click="onAudit(row)" title="审批" v-auth="'business:delay:audit:todo'"> 审批 </el-button>-->
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
@@ -165,7 +165,7 @@ const handleQuery = () => {
|
|
|
};
|
|
|
// 刷新列表
|
|
|
const refreshList = () => {
|
|
|
- queryList();
|
|
|
+ queryList();
|
|
|
};
|
|
|
/** 获取列表 */
|
|
|
const queryList = () => {
|
|
@@ -219,9 +219,14 @@ const selectChangeEvent = ({ checked }) => {
|
|
|
const isChecked = computed(() => {
|
|
|
return !Boolean(checkTable.value.length);
|
|
|
});
|
|
|
+// 延期审批
|
|
|
+const delayAuditRef = ref<RefType>();
|
|
|
+const onAudit = (row: any) => {
|
|
|
+ delayAuditRef.value.openDialog(row);
|
|
|
+};
|
|
|
// 批量审批
|
|
|
const delayAuditBatchRef = ref<RefType>();
|
|
|
-const onAudit = () => {
|
|
|
+const onAuditBatch = () => {
|
|
|
delayAuditBatchRef.value.openDialog(checkTable.value);
|
|
|
};
|
|
|
const tableRef = ref<RefType>();
|