diff --git a/src/views/admin/orgapplyinfo/OrgApplyInfo.data.ts b/src/views/admin/orgapplyinfo/OrgApplyInfo.data.ts index a6e6174..3c9cacd 100644 --- a/src/views/admin/orgapplyinfo/OrgApplyInfo.data.ts +++ b/src/views/admin/orgapplyinfo/OrgApplyInfo.data.ts @@ -46,26 +46,26 @@ export const columns: BasicColumn[] = [ dataIndex: 'status_dictText', width: '8%', }, + // { + // title: '工单类型', + // align: 'center', + // dataIndex: 'orgStatus_dictText', + // width: 100, + // }, { - title: '工单类型', + title: '运维状态', align: 'center', - dataIndex: 'orgStatus_dictText', - width: 100, - }, - { - title: '工单状态', - align: 'center', - dataIndex: 'workOrderStatus_dictText', + dataIndex: 'orgStatus', width: 100, customRender: ({ record }) => { - if (record.workOrderStatus == '0') { - return ''; - } else if (record.workOrderStatus == '1') { - return '待回执'; - } else if (record.workOrderStatus == '2') { - return '已回执'; + if (record.orgStatus == '3') { + return '待确认'; + } else if (record.orgStatus == '4') { + return '平台搭建中'; + } else if (record.orgStatus == '5') { + return '搭建完成'; } else { - return ''; + return '-'; } }, }, diff --git a/src/views/admin/orgapplyinfo/OrgInfoAuditList.vue b/src/views/admin/orgapplyinfo/OrgInfoAuditList.vue index b7b0b3d..b356eaa 100644 --- a/src/views/admin/orgapplyinfo/OrgInfoAuditList.vue +++ b/src/views/admin/orgapplyinfo/OrgInfoAuditList.vue @@ -290,12 +290,12 @@ function getTableAction(record) { onClick: handleUpAudit.bind(null, record), ifShow: record.status == '1' && record.optType == 'bg' }, - { - label: '上传合同', - onClick: handleUpContract.bind(null, record), - auth: 'orgapplyinfo:nu_org_apply_info:edit', - ifShow: record.orgStatus == '3' - }, + // { + // label: '上传合同', + // onClick: handleUpContract.bind(null, record), + // auth: 'orgapplyinfo:nu_org_apply_info:edit', + // ifShow: record.orgStatus == '3' + // }, // { // label: '运维平台进行搭建', // onClick: handleBuildPlat.bind(null, record), diff --git a/src/views/admin/orgapplyinfo/components/OrgApplyInfoForm.vue b/src/views/admin/orgapplyinfo/components/OrgApplyInfoForm.vue index 6af72bf..3b4ee50 100644 --- a/src/views/admin/orgapplyinfo/components/OrgApplyInfoForm.vue +++ b/src/views/admin/orgapplyinfo/components/OrgApplyInfoForm.vue @@ -276,35 +276,35 @@ - + - - + + - + - + + placeholder="" allow-clear /> - + @@ -464,6 +464,17 @@ const disabled = computed(() => { return props.formDisabled; }); +const orgStatusMap = { + '3': '待确认', + '4': '平台搭建中', + '5': '搭建完成', +}; + +// 计算属性转换状态值 +const orgStatusText = computed(() => { + const status = formData.orgStatus?.toString(); + return orgStatusMap[status] || status || '-'; +}); /** * 预览 @@ -614,20 +625,21 @@ defineExpose({ font-size: 14px; height: 32px; color: #fff !important; - + /* 【关键修复】建立定位上下文,防止伪元素错位导致上方空白 */ - position: relative; - + position: relative; + /* 【关键修复】隐藏溢出部分,防止动画撑大组件宽度 */ - overflow: hidden; - + overflow: hidden; + /* 确保显示模式正确,避免行高问题 */ - display: inline-block; - line-height: 24px; /* 根据高度微调,让文字垂直居中 */ + display: inline-block; + line-height: 24px; + /* 根据高度微调,让文字垂直居中 */ text-decoration: none; border: none; cursor: pointer; - + /* 可选:防止点击时的默认高亮背景干扰 */ -webkit-tap-highlight-color: transparent; } @@ -637,26 +649,25 @@ defineExpose({ content: ''; position: absolute; top: 0; - left: -100%; /* 初始状态:藏在按钮左侧外面 */ - + left: -100%; + /* 初始状态:藏在按钮左侧外面 */ + /* 光带宽度:设为 50%~100% 均可,这里用 100% 配合动画终点 */ - width: 100%; + width: 100%; height: 100%; - + /* 渐变效果:中间亮,两头透明 */ - background: linear-gradient( - 90deg, - transparent 0%, - rgba(255, 255, 255, 0.4) 50%, - transparent 100% - ); - + background: linear-gradient(90deg, + transparent 0%, + rgba(255, 255, 255, 0.4) 50%, + transparent 100%); + /* 倾斜角度:-25deg 会让光看起来更有速度感,如果不想要倾斜改为 0deg */ transform: skewX(0deg); - + /* 确保光在文字下面,虽然背景是透明的,但这是个好习惯 */ z-index: 1; - + /* 初始不执行动画,等待 hover */ }