UPDATE: 删除权限
This commit is contained in:
@@ -95,7 +95,6 @@
|
|||||||
icon="Cpu"
|
icon="Cpu"
|
||||||
@click="openChildrenPlan(scope.row)"
|
@click="openChildrenPlan(scope.row)"
|
||||||
v-if="modeStore.currentMode == '比对式' && scope.row.importFlag == 1"
|
v-if="modeStore.currentMode == '比对式' && scope.row.importFlag == 1"
|
||||||
v-auth.plan="'import_subplan'"
|
|
||||||
>
|
>
|
||||||
被检设备
|
被检设备
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -207,13 +206,11 @@ onMounted(async () => {
|
|||||||
//假分页后用data刷新
|
//假分页后用data刷新
|
||||||
const refreshTable = async () => {
|
const refreshTable = async () => {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
patternId.value = dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id
|
patternId.value = dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id
|
||||||
const result = await getPlanList({ patternId: patternId.value })
|
const result = await getPlanList({ patternId: patternId.value })
|
||||||
tableData.value = buildTree(result.data as any[])
|
tableData.value = buildTree(result.data as any[])
|
||||||
pageTotal.value = tableData.value.length
|
pageTotal.value = tableData.value.length
|
||||||
updateCurrentPageData(tableData.value)
|
updateCurrentPageData(tableData.value)
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
tableData.value = []
|
tableData.value = []
|
||||||
ElMessage.error('获取计划列表失败')
|
ElMessage.error('获取计划列表失败')
|
||||||
@@ -225,7 +222,6 @@ watch(
|
|||||||
() => tableData.value,
|
() => tableData.value,
|
||||||
newVal => {
|
newVal => {
|
||||||
if (childrenPlanView.value && newVal) {
|
if (childrenPlanView.value && newVal) {
|
||||||
|
|
||||||
childrenPlanView.value.handleTableDataUpdate?.(newVal)
|
childrenPlanView.value.handleTableDataUpdate?.(newVal)
|
||||||
updateCurrentPageData(newVal)
|
updateCurrentPageData(newVal)
|
||||||
}
|
}
|
||||||
@@ -309,7 +305,6 @@ const updateCurrentPageData = (data = tableData.value) => {
|
|||||||
const start = (currentPage.value - 1) * pageSize.value
|
const start = (currentPage.value - 1) * pageSize.value
|
||||||
const end = start + pageSize.value
|
const end = start + pageSize.value
|
||||||
currentPageData.value = data.slice(start, end)
|
currentPageData.value = data.slice(start, end)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const dataSourceType = computed(() => {
|
const dataSourceType = computed(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user