Browse Source

no message

kllay 2 days ago
parent
commit
8f06b8cc60

+ 3 - 3
src/views/system/borrow/api.ts

@@ -1,12 +1,12 @@
 import { request } from '/@/utils/service';
 import { UserPageQuery, AddReq, DelReq, EditReq, InfoReq } from '@fast-crud/fast-crud';
 
-export const apiPrefix = '/api/system/borrow';
+export const apiPrefix = '/api/system/borrow/';
 export const apiPrefixDetail = '/api/system/borrow/application/';
 
 export function GetList(query: UserPageQuery) {
 	return request({
-		url: apiPrefix + "/application/",
+		url: apiPrefix + "application/",
 		method: 'get',
 		params: query
 	});
@@ -21,7 +21,7 @@ export function GetObj(id: InfoReq) {
 
 export function AddObj(obj: AddReq) {
 	return request({
-		url: apiPrefix+ "/application/",
+		url: apiPrefix+ "application/",
 		method: 'post',
 		data: obj
 	});

+ 0 - 1
src/views/system/borrow/approval/index.vue

@@ -13,7 +13,6 @@ import BorrowApprovalDialog from './BorrowApprovalDialog/index.vue';
 
 const approvalDialogRef = ref();
 
-// const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions });
 
 const { crudExpose, crudBinding } = useFs({
   createCrudOptions: (props) => createCrudOptions({ ...props, approvalDialogRef })

+ 1 - 1
src/views/system/borrow/component/ClassroomBorrow/index.vue

@@ -319,7 +319,7 @@ function onSave() {
 			form.value.team_members_count=Number(form.team_members_count)||1;
 			emit('submit', { ...form.value });
 			emit('update:visible', false);
-			ElMessage.success("添加成功!");
+			// ElMessage.success("添加成功!");
 			lastFormSnapshot.value = { ...form.value }; //用于记忆上次记录
 		}
 	});