diff --git a/src/views/mes/abilityInfo/index.vue b/src/views/mes/abilityInfo/index.vue
index 85bc873ae..6c6a81d4d 100644
--- a/src/views/mes/abilityInfo/index.vue
+++ b/src/views/mes/abilityInfo/index.vue
@@ -52,7 +52,7 @@
+ :apiPage="AbilityInfoApi.getAbilityInfoPage" />
@@ -66,7 +66,6 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
-import {MesOrderMonthMain} from "@/views/mes/ordermonthplan/mesOrderMonthMain.data";
defineOptions({ name: 'AbilityInfo' })
@@ -190,7 +189,7 @@ const formsSuccess = async (formType,data) => {
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
- detailRef.value.openDetail(row, titleName, titleValue, 'basicAbilityInfo')
+ detailRef.value.openDetail(row, titleName, titleValue, 'AbilityInfo')
}
/** 删除按钮操作 */
diff --git a/src/views/mes/components/Detail.vue b/src/views/mes/components/Detail.vue
index 9e3ef06ea..9eb7b717e 100644
--- a/src/views/mes/components/Detail.vue
+++ b/src/views/mes/components/Detail.vue
@@ -40,7 +40,7 @@
-
-
+
+
-
+
+
+
+
+
-
+
+
+
+
+
-
+
@@ -226,10 +239,15 @@ const props = defineProps({
default: ()=>[]
},
//展示附件组件的tab标签
- annexAliasLabel: {
- type: String,
+ annexAlias: {
+ type: Object,
required: false,
- default: '附件'
+ default: ()=>({
+ label: '附件',
+ showDownload:false,
+ showPreview:false,
+ hiddenDelete:false
+ })
},
// 是否是基础数据 展现详情顶部表单
isBasic: {
@@ -402,7 +420,7 @@ const tabsList = ref(JSON.parse(JSON.stringify(props.tabs ? props.tabs : '')))
// }
const otherList = [...props.annexTable,{
- label:props.annexAliasLabel,
+ label:props.annexAlias.label,
prop:'Annex'
},{
label:'备注',
@@ -503,6 +521,7 @@ const getAnnexFileList = async (row:id) => {
}
/** 添加附件 */
const handleAnnexSuccess = () => {
+
getFileList()
getChangeRecordList()
}
@@ -520,6 +539,7 @@ const updateAnnexTableHandle = () => {
// Tabs当前选择
const current = ref(0)
const change = (item, index) => {
+
current.value = index
emit('changeTabs', item)
if(otherList.find(other=>other.label==item.label)){