kllay 3 өдөр өмнө
parent
commit
81051d933c

+ 1 - 1
src/views/system/borrow/approval/curd.tsx

@@ -115,7 +115,7 @@ export const createCrudOptions = function ({ crudExpose ,context, showRejectDial
 						click: ({ row }) => {
 							// eslint-disable-next-line no-console
 							// console.log("row:::",row);
-							window.dispatchEvent(new CustomEvent('borrow-view', { detail: row }));
+							window.dispatchEvent(new CustomEvent('approve-view', { detail: row }));
 						},
 					},
 					edit: { show: false },

+ 2 - 2
src/views/system/borrow/approval/index.vue

@@ -95,13 +95,13 @@ const formData = ref<any>(null);
 
 onMounted(() => {
 	crudExpose.doRefresh();
-  window.addEventListener('borrow-view', handleView);
+  window.addEventListener('approve-view', handleView);
  
 
 });
 
 onBeforeUnmount(() => {
-	window.removeEventListener('borrow-view', handleView);
+	window.removeEventListener('approve-view', handleView);
 });
 
 

+ 1 - 1
src/views/system/borrow/workflow/WorkflowDialog/index.vue

@@ -176,7 +176,7 @@
 			</div>
 		</el-form>
 		<template #footer>
-			<el-button @click="onCancel">取消</el-button>
+			<el-button @click="onCancel">关闭</el-button>
 			<el-button v-if="props.mode !== 'view'" type="primary" @click="onSave">保存</el-button>
 		</template>
 	</el-dialog>