style:部门选择样式
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user