Commit c729b3ab by 王宝涛

refactor(gps): 清理配置文件中的冗余属性并更新按钮配置

- 移除 config.ts 中多个表单字段的 maxlength 和 max 等无效属性
- 移除 config.ts 中 modal 和 defaultSelect 等未使用的配置项
- 更新 index.vue 中按钮配置结构,添加 buttonId 字段
- 优化按钮权限过滤逻辑,统一配置格式
parent 461ec8d5
...@@ -337,7 +337,6 @@ export const formProps: FormProps = { ...@@ -337,7 +337,6 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入机器编号', placeholder: '请输入机器编号',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -396,7 +395,6 @@ export const formProps: FormProps = { ...@@ -396,7 +395,6 @@ export const formProps: FormProps = {
click: click:
"formActionType.httpRequest({\n requestType: 'get', //请求方式有: get、post、put、delete\n requestUrl: '/system/dictionary-detail', //请求地址\n params: {\n itemId: '1419276800524423168'\n },//请求参数\n errorMessageMode: 'none' //错误提示方式,默认为none\n})\n// errorMessageMode='message' 错误提示为消息提示\n// errorMessageMode='modal' 显示modal错误弹窗,用于一些比较重要的错误\n// errorMessageMode='none' 一般是调用时明确表示不希望自动弹出错误提示", "formActionType.httpRequest({\n requestType: 'get', //请求方式有: get、post、put、delete\n requestUrl: '/system/dictionary-detail', //请求地址\n params: {\n itemId: '1419276800524423168'\n },//请求参数\n errorMessageMode: 'none' //错误提示方式,默认为none\n})\n// errorMessageMode='message' 错误提示为消息提示\n// errorMessageMode='modal' 显示modal错误弹窗,用于一些比较重要的错误\n// errorMessageMode='none' 一般是调用时明确表示不希望自动弹出错误提示",
}, },
modal: null,
type: 1, type: 1,
event: [], event: [],
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
...@@ -509,9 +507,7 @@ export const formProps: FormProps = { ...@@ -509,9 +507,7 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
min: 0, min: 0,
max: null,
step: 1, step: 1,
maxlength: null,
disabled: false, disabled: false,
showLabel: true, showLabel: true,
controls: true, controls: true,
...@@ -565,9 +561,7 @@ export const formProps: FormProps = { ...@@ -565,9 +561,7 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
min: 0, min: 0,
max: null,
step: 1, step: 1,
maxlength: null,
disabled: false, disabled: false,
showLabel: true, showLabel: true,
controls: true, controls: true,
...@@ -637,7 +631,6 @@ export const formProps: FormProps = { ...@@ -637,7 +631,6 @@ export const formProps: FormProps = {
datasourceType: 'dic', datasourceType: 'dic',
labelField: 'name', labelField: 'name',
valueField: 'value', valueField: 'value',
defaultSelect: null,
apiConfig: { apiConfig: {
path: 'CodeGeneration/selection', path: 'CodeGeneration/selection',
method: 'GET', method: 'GET',
...@@ -694,7 +687,6 @@ export const formProps: FormProps = { ...@@ -694,7 +687,6 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入破碎类别', placeholder: '请输入破碎类别',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -733,7 +725,6 @@ export const formProps: FormProps = { ...@@ -733,7 +725,6 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入供货厂家', placeholder: '请输入供货厂家',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -772,7 +763,6 @@ export const formProps: FormProps = { ...@@ -772,7 +763,6 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入到货车号', placeholder: '请输入到货车号',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -833,7 +823,6 @@ export const formProps: FormProps = { ...@@ -833,7 +823,6 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入到货破碎信息', placeholder: '请输入到货破碎信息',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -872,7 +861,6 @@ export const formProps: FormProps = { ...@@ -872,7 +861,6 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
placeholder: '请输入到货信息', placeholder: '请输入到货信息',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -911,9 +899,7 @@ export const formProps: FormProps = { ...@@ -911,9 +899,7 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
min: 0, min: 0,
max: null,
step: 1, step: 1,
maxlength: null,
disabled: false, disabled: false,
showLabel: true, showLabel: true,
controls: true, controls: true,
...@@ -1076,7 +1062,6 @@ export const formProps: FormProps = { ...@@ -1076,7 +1062,6 @@ export const formProps: FormProps = {
span: '', span: '',
defaultValue: '', defaultValue: '',
placeholder: '请输入库存id', placeholder: '请输入库存id',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -1107,7 +1092,6 @@ export const formProps: FormProps = { ...@@ -1107,7 +1092,6 @@ export const formProps: FormProps = {
span: '', span: '',
defaultValue: '', defaultValue: '',
placeholder: '请输入物料id', placeholder: '请输入物料id',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -1138,7 +1122,6 @@ export const formProps: FormProps = { ...@@ -1138,7 +1122,6 @@ export const formProps: FormProps = {
span: '', span: '',
defaultValue: '', defaultValue: '',
placeholder: '请输入物料编号', placeholder: '请输入物料编号',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -1169,7 +1152,6 @@ export const formProps: FormProps = { ...@@ -1169,7 +1152,6 @@ export const formProps: FormProps = {
span: '', span: '',
defaultValue: '', defaultValue: '',
placeholder: '请输入物料名称', placeholder: '请输入物料名称',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -1200,9 +1182,7 @@ export const formProps: FormProps = { ...@@ -1200,9 +1182,7 @@ export const formProps: FormProps = {
span: '', span: '',
defaultValue: '', defaultValue: '',
min: 0, min: 0,
max: null,
step: 1, step: 1,
maxlength: null,
disabled: true, disabled: true,
showLabel: true, showLabel: true,
controls: true, controls: true,
...@@ -1227,9 +1207,7 @@ export const formProps: FormProps = { ...@@ -1227,9 +1207,7 @@ export const formProps: FormProps = {
span: '', span: '',
defaultValue: '', defaultValue: '',
min: 0, min: 0,
max: null,
step: 1, step: 1,
maxlength: null,
disabled: false, disabled: false,
showLabel: true, showLabel: true,
controls: true, controls: true,
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
//展示在列表内的按钮 //展示在列表内的按钮
const actionButtons = ref<string[]>(["view","edit","delete"]); const actionButtons = ref<string[]>(["view","edit","delete"]);
const buttonConfigs = computed(()=>{ const buttonConfigs = computed(()=>{
const list = [{"isUse":true,"name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true},{"isUse":true,"name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true},{"isUse":true,"name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true,"isEnableLock":true},{"isUse":true,"name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true}] const list = [{"buttonId":"2020751420573388800","name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true,"isUse":true},{"buttonId":"2020751420573388801","name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"isUse":true},{"buttonId":"2020751420573388802","name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true,"isUse":true,"isEnableLock":true},{"buttonId":"2020751420573388803","name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":true}]
return filterButtonAuth(list); return filterButtonAuth(list);
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment