1. 工作人员账号添加
This commit is contained in:
Zy
2026-10-15 09:30:04 +08:00
parent 2ccce95d44
commit 87cd3d2519
30 changed files with 1988 additions and 614 deletions

View File

@@ -2,7 +2,10 @@
import cardNav from '@/components/cardNav/index.vue';
import {getDevice} from "@/api/system/device";
import {DeviceForm} from "@/api/system/device/types";
import {useUserStore} from "@/store/modules/user";
const userStore = useUserStore();
const router = useRouter();
function backList() {
@@ -65,7 +68,6 @@ const form = ref();
function init() {
form.value = {...initFormData};
console.log(form.value);
if (route.query.id) {
getDevice(route.query.id as string).then(res => {
Object.assign(form.value, res.data);
@@ -82,7 +84,9 @@ init()
<nav class="flex justify-between" style="padding-top: 22px;">
<Pagecrumb></Pagecrumb>
<div>
<el-button plain type="info" @click="backList">返回设备列表</el-button>
<el-button v-if="!userStore.roles.includes('customer_service')" plain type="info" @click="backList">
返回设备列表
</el-button>
<el-button type="primary" @click="editDevice">编辑设备</el-button>
</div>
</nav>