|
|
@ -107,7 +107,7 @@ |
|
|
|
:key="milestoneUpdateKey" |
|
|
|
> |
|
|
|
<template #action="{ row }"> |
|
|
|
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonMilestoneClick($event, row)" /> |
|
|
|
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonMilestoneClick($event, row)" /> |
|
|
|
</template> |
|
|
|
</Table> |
|
|
|
<Table |
|
|
@ -219,6 +219,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import DetailTable from '@/components/DetailTable/src/DetailTable.vue' |
|
|
|
import { useUserStoreWithOut } from '@/store/modules/user' |
|
|
|
|
|
|
|
defineOptions({ name: 'Detail' }) |
|
|
|
|
|
|
@ -491,6 +492,7 @@ const buttondata = ref() |
|
|
|
const detailData = ref() |
|
|
|
const titleNameRef = ref() |
|
|
|
const titleValueRef = ref() |
|
|
|
const userStore = useUserStoreWithOut() |
|
|
|
const tabsKay = ref(0) //刷新tabs组件key值 |
|
|
|
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { |
|
|
|
titleNameRef.value = titleName |
|
|
@ -880,10 +882,12 @@ const setBeiJian = () => { |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = [ |
|
|
|
defaultButtons.mainListEditBtn(null), // 编辑 |
|
|
|
defaultButtons.uploadFileBtn(null),//上传 |
|
|
|
] |
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
|
defaultButtons.mainListEditBtn({ hide: !hasmMilestoneRight(row)}), // 编辑 |
|
|
|
defaultButtons.uploadFileBtn({ hide: !hasmMilestoneRight(row)}),//上传 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonMilestoneClick = async (val, row) => { |
|
|
@ -949,6 +953,17 @@ function dialogUploadFile() { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const hasmMilestoneRight = (row) => { |
|
|
|
const rolesOk = userStore.roles.find(item => { |
|
|
|
return item == 'mold_Engineer_role ' |
|
|
|
}) |
|
|
|
if (rolesOk != undefined && rolesOk != null) { |
|
|
|
return true |
|
|
|
} else { |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
<style lang="scss"> |
|
|
|
.el-drawer__body { |
|
|
|