Browse Source

修改

master_hella_20240701
zhaoxuebing 7 months ago
parent
commit
63417765bd
  1. 10
      src/views/wms/agvManage/interfaceInfo/index.vue
  2. 30
      src/views/wms/agvManage/interfaceInfo/interfaceInfo.data.ts

10
src/views/wms/agvManage/interfaceInfo/index.vue

@ -27,9 +27,9 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #code="{row}"> <template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '序号', row.number)">
<span>{{ row.code }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
@ -134,8 +134,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:interfaceInfo:update'}), // defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:interfaceInfo:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:interfaceInfo:delete'}), //
] ]
// - // -

30
src/views/wms/agvManage/interfaceInfo/interfaceInfo.data.ts

@ -11,6 +11,11 @@ export const InterfaceInfo = useCrudSchemas(reactive<CrudSchema[]>([
label: '序号', label: '序号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true,
table: {
width: 300,
fixed: 'left'
},
}, },
{ {
label: '接口类型', label: '接口类型',
@ -20,12 +25,19 @@ export const InterfaceInfo = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'SelectV2' component: 'SelectV2'
}, },
table: {
width: 180,
fixed: 'left'
},
}, },
{ {
label: '接口名称', label: '接口名称',
field: 'interfaceName', field: 'interfaceName',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 180,
},
}, },
{ {
label: '状态', label: '状态',
@ -36,27 +48,42 @@ export const InterfaceInfo = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'Radio' component: 'Radio'
}, },
table: {
width: 180,
},
isSearch: true, isSearch: true,
}, },
{ {
label: '请求地址', label: '请求地址',
field: 'url', field: 'url',
sort: 'custom', sort: 'custom',
table: {
width: 180,
},
}, },
{ {
label: '请求参数', label: '请求参数',
field: 'reqBody', field: 'reqBody',
sort: 'custom', sort: 'custom',
table: {
width: 180,
},
}, },
{ {
label: '返回结果', label: '返回结果',
field: 'respBody', field: 'respBody',
sort: 'custom', sort: 'custom',
table: {
width: 180,
},
}, },
{ {
label: '错误信息', label: '错误信息',
field: 'errorMsg', field: 'errorMsg',
sort: 'custom', sort: 'custom',
table: {
width: 180,
},
}, },
{ {
label: '创建时间', label: '创建时间',
@ -73,6 +100,9 @@ export const InterfaceInfo = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
isForm: false, isForm: false,
table: {
width: 180,
},
}, },
{ {
label: '扩展属性', label: '扩展属性',

Loading…
Cancel
Save