style:部门选择样式

This commit is contained in:
houjunxiang
2025-11-27 09:19:08 +08:00
parent fcc04865f9
commit f3c15b3692
3 changed files with 11 additions and 14 deletions

View File

@@ -2,6 +2,7 @@ import { defineStore } from 'pinia'
const defaultState = () => ({
show: false,
showCancel: false,
title: '请选择当前业务办理归属的公司部门信息',
companyList: [],
selectedCompanyId: null,
@@ -20,13 +21,15 @@ const companyDeptStore = defineStore({
onCancel = null,
defaultCompanyId = null,
defaultDeptId = null,
title = null
title = null,
showCancel = false
}) {
this.companyList = companyList
this.onConfirm = onConfirm
this.onCancel = onCancel
this.title = title || '请选择当前业务办理归属的公司部门信息'
this.show = true
this.showCancel = showCancel
this.selectedCompanyId = defaultCompanyId
this.selectedDeptId = defaultDeptId
if (!this.selectedCompanyId && this.companyList.length > 0) {