Forráskód Böngészése

修改弹窗查看及提交

yangg 1 napja
szülő
commit
d62c4a4f2e

+ 3 - 0
src/theme/element.scss

@@ -256,6 +256,9 @@
 			pointer-events: auto;
 			margin: 0 auto !important;
 			position: absolute;
+			.el-dialog__header{
+				font-size: 16px;
+			}
 			.el-dialog__body {
 				padding: 20px !important;
 			}

+ 4 - 1
src/views/system/Inventorycount/crud.tsx

@@ -35,7 +35,10 @@ export const createCrudOptions = function ({ crudExpose , inventoryDialog}: Crea
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+														show:compute((row) => {
+															return row.mode !=='view'
+														})
 						}
 					}
 				}

+ 5 - 2
src/views/system/allusers/crud.tsx

@@ -1,4 +1,4 @@
-import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, dict, UserPageQuery } from '@fast-crud/fast-crud';
+import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, dict, UserPageQuery,compute } from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
 
@@ -53,7 +53,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+							show:compute((row) => {
+								return row.mode !=='view'
+							})
 						}
 					}
 				}

+ 4 - 1
src/views/system/borrowingnotice/crud.tsx

@@ -32,7 +32,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+							show:compute((row) => {
+								return row.mode !=='view'
+							})
 						}
 					}
 				}

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

@@ -694,6 +694,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 					buttons: {
 						ok:{
 							text:'提交',
+							show:false
 						}
 					}
 				},

+ 4 - 1
src/views/system/deviceclass/crud.tsx

@@ -1,4 +1,4 @@
-import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet,dict, UserPageQuery } from '@fast-crud/fast-crud';
+import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet,dict, UserPageQuery,compute } from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
 import { computed } from 'vue';
@@ -37,6 +37,9 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 					buttons: {
 						ok:{
 							text:'提交',
+							show:compute((row) => {
+								return row.mode !=='view'
+							})
 						}
 					}
 				}

+ 4 - 1
src/views/system/devicedamage/crud.tsx

@@ -34,7 +34,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+							show:compute((row) => {
+								return row.mode !=='view'
+							})
 						}
 					}
 				}

+ 5 - 2
src/views/system/devicelabel/crud.tsx

@@ -1,4 +1,4 @@
-import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, UserPageQuery } from '@fast-crud/fast-crud';
+import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, UserPageQuery,compute } from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
 
@@ -31,7 +31,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+							show:compute((row) => {
+								return row.mode !=='view'
+							})
 						}
 					}
 				}

+ 4 - 1
src/views/system/devicemaintenance/crud.tsx

@@ -36,7 +36,10 @@ export const createCrudOptions = function ({ crudExpose,  dialogId,
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+														show:compute((row) => {
+															return row.mode !=='view'
+														})
 						}
 					}
 				}

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

@@ -48,7 +48,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+														show:compute((row) => {
+															return row.mode !=='view'
+														})
 						}
 					}
 				}

+ 6 - 2
src/views/system/devicepreserve/crud.tsx

@@ -1,4 +1,4 @@
-import { AddReq, CreateCrudOptionsProps, dict,CreateCrudOptionsRet, UserPageQuery } from '@fast-crud/fast-crud';
+import { AddReq, CreateCrudOptionsProps, dict,CreateCrudOptionsRet, UserPageQuery,compute } from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
 import dayjs from 'dayjs';
@@ -31,7 +31,11 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+														show:compute((row) => {
+															return row.mode !=='view'
+														})
+							
 						}
 					}
 				}

+ 5 - 2
src/views/system/devicepreserveplan/crud.tsx

@@ -1,4 +1,4 @@
-import { AddReq, CreateCrudOptionsProps, dict,CreateCrudOptionsRet, UserPageQuery } from '@fast-crud/fast-crud';
+import { AddReq, CreateCrudOptionsProps, dict,CreateCrudOptionsRet, UserPageQuery,compute } from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
 import dayjs from 'dayjs';
@@ -31,7 +31,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+							show:compute((row) => {
+																						return row.mode !=='view'
+																					})
 						}
 					}
 				}

+ 5 - 2
src/views/system/noticelist/crud.tsx

@@ -1,4 +1,4 @@
-import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, UserPageQuery ,EditReq,DelReq} from '@fast-crud/fast-crud';
+import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, UserPageQuery ,EditReq,DelReq,compute} from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
 
@@ -38,7 +38,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+																					show:compute((row) => {
+																						return row.mode !=='view'
+																					})
 						}
 					}
 				}

+ 5 - 2
src/views/system/storelist/crud.tsx

@@ -1,4 +1,4 @@
-import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, dict, UserPageQuery } from '@fast-crud/fast-crud';
+import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, dict, UserPageQuery,compute } from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
 
@@ -36,7 +36,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+							show:compute((row) => {
+								return row.mode !=='view'
+							})
 						}
 					}
 				}

+ 5 - 2
src/views/system/studentInfo/crud.tsx

@@ -1,4 +1,4 @@
-import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, dict, UserPageQuery } from '@fast-crud/fast-crud';
+import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, dict, UserPageQuery,compute } from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
 
@@ -53,7 +53,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+							show:compute((row) => {
+								return row.mode !=='view'
+							})
 						}
 					}
 				}

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

@@ -1,4 +1,4 @@
-import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq, dict, EditReq, UserPageQuery } from '@fast-crud/fast-crud';
+import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq, dict, EditReq, UserPageQuery,compute } from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
 import { commonCrudConfig } from '/@/utils/commonCrud';
@@ -31,7 +31,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+							show:compute((row) => {
+							return row.mode !=='view'
+						})
 						}
 					}
 				}
@@ -48,16 +51,16 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
             },
 			rowHandle: {
 				fixed:'right',
-				width: 100,
+				width: 230,
 				buttons: {
 					view: {
-						type: 'text',
+					show: true,
 					},
 					edit: {
-						show: false,
+						show: true,
 					},
 					remove: {
-						show: false,
+						show: true,
 					},
 				},
 			},

+ 5 - 2
src/views/system/teacherInfor/crud.tsx

@@ -1,4 +1,4 @@
-import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, dict, UserPageQuery } from '@fast-crud/fast-crud';
+import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, dict, UserPageQuery,compute } from '@fast-crud/fast-crud';
 import * as api from './api';
 import { auth } from '/@/utils/authFunction';
 
@@ -37,7 +37,10 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				wrapper: {
 					buttons: {
 						ok:{
-							text:'提交'
+							text:'提交',
+							show:compute((row) => {
+								return row.mode !=='view'
+							})
 						}
 					}
 				}