修改工单
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m26s

This commit is contained in:
sexygoat
2026-02-25 16:14:38 +08:00
parent ca3184857e
commit dccad819cf
20 changed files with 2163 additions and 1229 deletions

View File

@@ -19,7 +19,9 @@
@refresh="handleRefresh"
>
<template #left>
<ElButton type="primary" @click="showDialog('add')" v-permission="'package_assign:add'">新增分配</ElButton>
<ElButton type="primary" @click="showDialog('add')" v-permission="'package_assign:add'"
>新增分配</ElButton
>
</template>
</ArtTableHeader>
@@ -113,7 +115,12 @@
<script setup lang="ts">
import { h } from 'vue'
import { useRouter } from 'vue-router'
import { ShopPackageAllocationService, PackageManageService, ShopService, ShopSeriesAllocationService } from '@/api/modules'
import {
ShopPackageAllocationService,
PackageManageService,
ShopService,
ShopSeriesAllocationService
} from '@/api/modules'
import { ElMessage, ElMessageBox, ElSwitch } from 'element-plus'
import type { FormInstance, FormRules } from 'element-plus'
import type { ShopPackageAllocationResponse, PackageResponse, ShopResponse } from '@/types/api'
@@ -386,14 +393,14 @@
{
prop: 'operation',
label: '操作',
width: 200,
width: 220,
fixed: 'right',
formatter: (row: ShopPackageAllocationResponse) => {
const buttons = []
buttons.push(
h(ArtButtonTable, {
type:"view",
text: '详情',
onClick: () => handleViewDetail(row)
})
)
@@ -401,7 +408,7 @@
if (hasAuth('package_assign:edit')) {
buttons.push(
h(ArtButtonTable, {
type:"edit",
text: '编辑',
onClick: () => showDialog('edit', row)
})
)
@@ -410,7 +417,7 @@
if (hasAuth('package_assign:delete')) {
buttons.push(
h(ArtButtonTable, {
type:"delete",
text: '删除',
onClick: () => deleteAllocation(row)
})
)