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