功能变化: bug修复

pull/89/head
猿小天 2023-02-26 21:00:46 +08:00
parent e9b0cad5b8
commit ace9c00531
4 changed files with 31 additions and 40 deletions

View File

@ -30,8 +30,6 @@ system_url.register(r'system_config', SystemConfigViewSet)
system_url.register(r'message_center',MessageCenterViewSet)
urlpatterns = [
path('user/export/', UserViewSet.as_view({'post': 'export_data', })),
path('user/import/', UserViewSet.as_view({'get': 'import_data', 'post': 'import_data'})),
path('system_config/save_content/', SystemConfigViewSet.as_view({'put': 'save_content'})),
path('system_config/get_association_table/', SystemConfigViewSet.as_view({'get': 'get_association_table'})),
path('system_config/get_table_data/<int:pk>/', SystemConfigViewSet.as_view({'get': 'get_table_data'})),

View File

@ -29,34 +29,35 @@ export const crudOptions = (vm) => {
iconLoaded: 'el-icon-loading' // 美化loading图标
}
},
rowHandle: {
show: false,
width: 140,
view: {
thin: true,
text: '',
show: false,
disabled () {
return !vm.hasPermissions('Retrieve')
}
},
edit: {
thin: true,
text: '',
show: false,
disabled () {
return !vm.hasPermissions('Update')
}
},
remove: {
thin: true,
text: '',
show: false,
disabled () {
return !vm.hasPermissions('Delete')
}
}
},
// rowHandle: {
// show: false,
// width: 140,
// view: {
// thin: true,
// text: '',
// show: false,
// disabled () {
// return !vm.hasPermissions('Retrieve')
// }
// },
// edit: {
// thin: true,
// text: '',
// show: false,
// disabled () {
// return !vm.hasPermissions('Update')
// }
// },
// remove: {
// thin: true,
// text: '',
// show: false,
// disabled () {
// return !vm.hasPermissions('Delete')
// }
// }
// },
rowHandle: false,
viewOptions: {
componentType: 'form'
},

View File

@ -15,13 +15,7 @@ export const crudOptions = (vm) => {
return !vm.hasPermissions('Retrieve')
}
},
edit: {
thin: true,
text: '',
disabled () {
return !vm.hasPermissions('Update')
}
},
edit: false,
remove: {
thin: true,
text: '',

View File

@ -19,9 +19,7 @@ export const crudOptions = (vm) => {
edit: {
thin: true,
text: '',
show () {
return vm.tabActivted !== 'receive'
},
show: false,
disabled () {
return !vm.hasPermissions('Update')
}