瀏覽代碼

no message

kllay 1 周之前
父節點
當前提交
5876ce5ed3

+ 9 - 0
src/views/system/allusers/crud.tsx

@@ -47,6 +47,15 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 					},
 				},
 			},
+			form:{
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交'
+						}
+					}
+				}
+			},
 			pagination: {
 				show: false,
 			},		

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

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

+ 9 - 0
src/views/system/borrowingnotice/crud.tsx

@@ -27,6 +27,15 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				delRequest,
 
 			},
+			form:{
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交'
+						}
+					}
+				}
+			},
 			actionbar: {
 				buttons: {
 					add: {

+ 8 - 1
src/views/system/device/crud.tsx

@@ -10,7 +10,7 @@ import Cookies from 'js-cookie';
 import { successMessage } from '/@/utils/message';
 import { dictionary } from '/@/utils/dictionary';
 import { APIResponseData } from '../columns/types';
-import { h } from 'vue';
+import { computed, h } from 'vue';
 
 export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOptionsRet {
 	const pageRequest = async (query: UserPageQuery) => {
@@ -559,6 +559,13 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				// }),
 			},
 			form: {
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交',
+						}
+					}
+				},
 				row: { gutter: 20 },
 				group: {
 				groupType: "tabs", //collapse, tabs

+ 10 - 0
src/views/system/deviceclass/crud.tsx

@@ -1,6 +1,7 @@
 import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet,dict, UserPageQuery } from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
+import { computed } from 'vue';
 
 export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOptionsRet {
 	const pageRequest = async (query: UserPageQuery) => {
@@ -31,6 +32,15 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				delRequest,
 				getDetail,
 			},
+			form:{
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交',
+						}
+					}
+				}
+			},
 			toolbar:{
 				show:false,
 			},

+ 9 - 0
src/views/system/devicelabel/crud.tsx

@@ -27,6 +27,15 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				delRequest,
 
 			},
+			form:{
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交'
+						}
+					}
+				}
+			},
 			actionbar: {
 				buttons: {
 					add: {

+ 10 - 1
src/views/system/devicemanual/crud.tsx

@@ -15,7 +15,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 		return await api.UpdateObj(form);
 	};
 	const delRequest = async ({ row }: DelReq) => {
-		console.log("delform:::",row)
+		// console.log("delform:::",row)
 		return await api.DelObj(row.id);
 	};
 	const addRequest = async ({ form }: AddReq) => {
@@ -43,6 +43,15 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 					},
 				},
 			},
+			form:{
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交'
+						}
+					}
+				}
+			},
 			toolbar:{
 				show:false,
 			},

+ 9 - 0
src/views/system/noticelist/crud.tsx

@@ -34,6 +34,15 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 					},
 				},
 			},
+			form:{
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交'
+						}
+					}
+				}
+			},
 			toolbar:{
 				show:false,
 			},

+ 9 - 0
src/views/system/storelist/crud.tsx

@@ -32,6 +32,15 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 					},
 				},
 			},
+			form:{
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交'
+						}
+					}
+				}
+			},
 			pagination: {
 				show: false,
 			},		

+ 9 - 0
src/views/system/studentInfo/crud.tsx

@@ -47,6 +47,15 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 					},
 				},
 			},
+			form:{
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交'
+						}
+					}
+				}
+			},
 			pagination: {
 				show: false,
 			},		

+ 9 - 0
src/views/system/suppliermanage/crud.tsx

@@ -27,6 +27,15 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				editRequest,
 				delRequest,
 			},
+			form:{
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交'
+						}
+					}
+				}
+			},
 			toolbar:{
 				show:false,
 			},

+ 9 - 0
src/views/system/teacherInfor/crud.tsx

@@ -40,6 +40,15 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				addRequest,
 				getDetail,
 			},
+			form:{
+				wrapper: {
+					buttons: {
+						ok:{
+							text:'提交'
+						}
+					}
+				}
+			},
 			actionbar: {
 				buttons: {
 					add: {

+ 1 - 1
src/views/system/timetablemanage/AdditionDialog/index.vue

@@ -52,7 +52,7 @@
 
     <template #footer>
       <el-button @click="close">取消</el-button>
-      <el-button type="primary" @click="save">保存</el-button>
+      <el-button type="primary" @click="save">提交</el-button>
     </template>
   </el-dialog>
 </template>