zant-admin 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +1 -1
- package/bin/cli.js +1 -1
- package/package.json +1 -1
- package/src/components/MainPage.vue +2 -0
- package/src/components/edit/SysAccountEdit.vue +3 -3
- package/src/components/edit/SysDictEdit.vue +3 -3
- package/src/components/edit/SysDictItemEdit.vue +3 -3
- package/src/components/edit/SysRoleEdit.vue +3 -3
- package/src/components/edit/organizationalStructure/DepartmentEdit.vue +3 -3
- package/src/components/edit/organizationalStructure/EmployeeEdit.vue +3 -3
- package/src/components/edit/organizationalStructure/PositionEdit.vue +3 -3
- package/src/components/edit/sysMenuEdit.vue +3 -3
- package/src/views/demo/importexport.vue +2 -2
- package/src/views/login.vue +1 -1
- package/src/views/organizationalStructure/department.vue +4 -4
- package/src/views/organizationalStructure/employee.vue +4 -4
- package/src/views/organizationalStructure/position.vue +4 -4
- package/src/views/system/sysAccount.vue +4 -4
- package/src/views/system/sysDict.vue +4 -4
- package/src/views/system/sysDictItem.vue +4 -4
- package/src/views/system/sysMenu.vue +4 -4
- package/src/views/system/sysRole.vue +4 -4
package/.env.development
CHANGED
package/bin/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -752,9 +752,11 @@ provide('menuclick', menuclick)
|
|
|
752
752
|
background: #fff !important;
|
|
753
753
|
padding: 0 !important;
|
|
754
754
|
border-bottom: 1px solid rgba(5, 5, 5, 0.06);
|
|
755
|
+
z-index: 100 !important;
|
|
755
756
|
}
|
|
756
757
|
.zc-layout-header-top {
|
|
757
758
|
padding: 0 !important;
|
|
759
|
+
z-index: 100 !important;
|
|
758
760
|
}
|
|
759
761
|
.zc-layout-content-tabs {
|
|
760
762
|
align-items: center;
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
<a-input v-model:value="formInfo.email" placeholder="请输入" />
|
|
55
55
|
</a-form-item>
|
|
56
56
|
|
|
57
|
-
<a-form-item label="是否启用" name="
|
|
58
|
-
<a-switch v-model:checked="formInfo.
|
|
57
|
+
<a-form-item label="是否启用" name="isEnabled">
|
|
58
|
+
<a-switch v-model:checked="formInfo.isEnabled" />
|
|
59
59
|
</a-form-item>
|
|
60
60
|
<a-form-item label="备注" name="remark">
|
|
61
61
|
<a-textarea v-model:value="formInfo.remark" />
|
|
@@ -95,7 +95,7 @@ const defaultformInfo = {
|
|
|
95
95
|
password: '',
|
|
96
96
|
email: '',
|
|
97
97
|
roleId: null,
|
|
98
|
-
|
|
98
|
+
isEnabled: true,
|
|
99
99
|
remark: '',
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
>
|
|
24
24
|
<a-input v-model:value="formInfo.type" placeholder="请输入" />
|
|
25
25
|
</a-form-item>
|
|
26
|
-
<a-form-item label="是否启用" name="
|
|
27
|
-
<a-switch v-model:checked="formInfo.
|
|
26
|
+
<a-form-item label="是否启用" name="isEnabled">
|
|
27
|
+
<a-switch v-model:checked="formInfo.isEnabled" />
|
|
28
28
|
</a-form-item>
|
|
29
29
|
<a-form-item label="备注" name="remark">
|
|
30
30
|
<a-textarea v-model:value="formInfo.remark" />
|
|
@@ -55,7 +55,7 @@ const defaultformInfo = {
|
|
|
55
55
|
id: null,
|
|
56
56
|
name: '',
|
|
57
57
|
type: '',
|
|
58
|
-
|
|
58
|
+
isEnabled: true,
|
|
59
59
|
remark: '',
|
|
60
60
|
}
|
|
61
61
|
// 使用 reactive 定义表单状态
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
<a-form-item label="排序" name="sort">
|
|
40
40
|
<a-input-number v-model:value="formInfo.sort" placeholder="请输入" />
|
|
41
41
|
</a-form-item>
|
|
42
|
-
<a-form-item label="是否启用" name="
|
|
43
|
-
<a-switch v-model:checked="formInfo.
|
|
42
|
+
<a-form-item label="是否启用" name="isEnabled">
|
|
43
|
+
<a-switch v-model:checked="formInfo.isEnabled" />
|
|
44
44
|
</a-form-item>
|
|
45
45
|
<a-form-item label="备注" name="remark">
|
|
46
46
|
<a-textarea v-model:value="formInfo.remark" />
|
|
@@ -78,7 +78,7 @@ const defaultformInfo = {
|
|
|
78
78
|
colorClass: 'default',
|
|
79
79
|
value: 0,
|
|
80
80
|
sort: 0,
|
|
81
|
-
|
|
81
|
+
isEnabled: true,
|
|
82
82
|
remark: '',
|
|
83
83
|
}
|
|
84
84
|
// 使用 reactive 定义表单状态
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
>
|
|
17
17
|
<a-input v-model:value="formInfo.name" placeholder="请输入" />
|
|
18
18
|
</a-form-item>
|
|
19
|
-
<a-form-item label="是否启用" name="
|
|
20
|
-
<a-switch v-model:checked="formInfo.
|
|
19
|
+
<a-form-item label="是否启用" name="isEnabled">
|
|
20
|
+
<a-switch v-model:checked="formInfo.isEnabled" />
|
|
21
21
|
</a-form-item>
|
|
22
22
|
<a-form-item label="备注" name="remark">
|
|
23
23
|
<a-textarea v-model:value="formInfo.remark" />
|
|
@@ -48,7 +48,7 @@ const props = defineProps({
|
|
|
48
48
|
const defaultformInfo = {
|
|
49
49
|
id: null,
|
|
50
50
|
name: '',
|
|
51
|
-
|
|
51
|
+
isEnabled: true,
|
|
52
52
|
remark: '',
|
|
53
53
|
}
|
|
54
54
|
// 响应式数据
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
placeholder="请输入"
|
|
47
47
|
/>
|
|
48
48
|
</a-form-item>
|
|
49
|
-
<a-form-item label="是否启用" name="
|
|
50
|
-
<a-switch v-model:checked="formInfo.
|
|
49
|
+
<a-form-item label="是否启用" name="isEnabled">
|
|
50
|
+
<a-switch v-model:checked="formInfo.isEnabled" />
|
|
51
51
|
</a-form-item>
|
|
52
52
|
</a-form>
|
|
53
53
|
</a-skeleton>
|
|
@@ -86,7 +86,7 @@ const defaultformInfo = {
|
|
|
86
86
|
name: '',
|
|
87
87
|
orgType: 1,
|
|
88
88
|
sort: 0,
|
|
89
|
-
|
|
89
|
+
isEnabled: true,
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
const formInfo = reactive({ ...defaultformInfo })
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
</a-form-item>
|
|
131
131
|
</a-col>
|
|
132
132
|
</a-row>
|
|
133
|
-
<a-form-item label="是否启用" name="
|
|
134
|
-
<a-switch v-model:checked="formInfo.
|
|
133
|
+
<a-form-item label="是否启用" name="isEnabled">
|
|
134
|
+
<a-switch v-model:checked="formInfo.isEnabled" />
|
|
135
135
|
</a-form-item>
|
|
136
136
|
</a-form>
|
|
137
137
|
</a-skeleton>
|
|
@@ -194,7 +194,7 @@ const defaultformInfo = {
|
|
|
194
194
|
leaveDate: null,
|
|
195
195
|
status: 0,
|
|
196
196
|
employeeType: 0,
|
|
197
|
-
|
|
197
|
+
isEnabled: true,
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
const formInfo = reactive({ ...defaultformInfo })
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
placeholder="请输入"
|
|
53
53
|
/>
|
|
54
54
|
</a-form-item>
|
|
55
|
-
<a-form-item label="是否启用" name="
|
|
56
|
-
<a-switch v-model:checked="formInfo.
|
|
55
|
+
<a-form-item label="是否启用" name="isEnabled">
|
|
56
|
+
<a-switch v-model:checked="formInfo.isEnabled" />
|
|
57
57
|
</a-form-item>
|
|
58
58
|
</a-form>
|
|
59
59
|
</a-skeleton>
|
|
@@ -94,7 +94,7 @@ const defaultformInfo = {
|
|
|
94
94
|
type: 0,
|
|
95
95
|
level: 0,
|
|
96
96
|
sort: 0,
|
|
97
|
-
|
|
97
|
+
isEnabled: true,
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
const formInfo = reactive({ ...defaultformInfo })
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
</a-row>
|
|
101
101
|
<a-row :gutter="16">
|
|
102
102
|
<a-col :span="12">
|
|
103
|
-
<a-form-item label="是否启用" name="
|
|
104
|
-
<a-switch v-model:checked="formInfo.
|
|
103
|
+
<a-form-item label="是否启用" name="isEnabled">
|
|
104
|
+
<a-switch v-model:checked="formInfo.isEnabled" />
|
|
105
105
|
</a-form-item>
|
|
106
106
|
</a-col>
|
|
107
107
|
<a-col :span="12">
|
|
@@ -179,7 +179,7 @@ const defaultformInfo = {
|
|
|
179
179
|
icon: '',
|
|
180
180
|
url: '',
|
|
181
181
|
sort: 0,
|
|
182
|
-
|
|
182
|
+
isEnabled: true,
|
|
183
183
|
cache: true,
|
|
184
184
|
isShowMenu: true,
|
|
185
185
|
type: 1,
|
|
@@ -36,7 +36,7 @@ const columns = ref([
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
title: '是否启用',
|
|
39
|
-
dataIndex: '
|
|
39
|
+
dataIndex: 'isEnabled',
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
title: '创建时间',
|
|
@@ -60,7 +60,7 @@ const refreshData = () => {
|
|
|
60
60
|
const handleSwitchChange = record => {
|
|
61
61
|
var data = {
|
|
62
62
|
id: record.id,
|
|
63
|
-
isEnabled: record.
|
|
63
|
+
isEnabled: record.isEnabled,
|
|
64
64
|
}
|
|
65
65
|
sysRole.updateIsEnabled(data).then(() => {
|
|
66
66
|
childRef.value.tableLoad()
|
package/src/views/login.vue
CHANGED
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
v-html="dictTemplate.tabletempInt('organization_orgtype', record.orgType)"
|
|
34
34
|
></span>
|
|
35
35
|
</template>
|
|
36
|
-
<template #custom-
|
|
36
|
+
<template #custom-isEnabled="{ record }">
|
|
37
37
|
<a-switch
|
|
38
|
-
v-model:checked="record.
|
|
38
|
+
v-model:checked="record.isEnabled"
|
|
39
39
|
checked-children="是"
|
|
40
40
|
un-checked-children="否"
|
|
41
41
|
@change="handleSwitchIsEnableChange(record)"
|
|
@@ -101,7 +101,7 @@ const columns = ref([
|
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
title: '是否启用',
|
|
104
|
-
key: '
|
|
104
|
+
key: 'isEnabled',
|
|
105
105
|
resizable: true,
|
|
106
106
|
width: 100,
|
|
107
107
|
},
|
|
@@ -164,7 +164,7 @@ const refreshData = () => {
|
|
|
164
164
|
const handleSwitchIsEnableChange = record => {
|
|
165
165
|
var data = {
|
|
166
166
|
id: record.id,
|
|
167
|
-
|
|
167
|
+
isEnabled: record.isEnabled,
|
|
168
168
|
}
|
|
169
169
|
department.updateIsEnable(data).then(() => {
|
|
170
170
|
childRef.value.tableLoad()
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
<template #custom-employeeType="{ record }">
|
|
37
37
|
<span>{{ { 0: '正式员工', 1: '实习生', 2: '外包', 3: '兼职' }[record.employeeType] || record.employeeType }}</span>
|
|
38
38
|
</template>
|
|
39
|
-
<template #custom-
|
|
39
|
+
<template #custom-isEnabled="{ record }">
|
|
40
40
|
<a-switch
|
|
41
|
-
v-model:checked="record.
|
|
41
|
+
v-model:checked="record.isEnabled"
|
|
42
42
|
checked-children="是"
|
|
43
43
|
un-checked-children="否"
|
|
44
44
|
@change="handleSwitchIsEnableChange(record)"
|
|
@@ -148,7 +148,7 @@ const columns = ref([
|
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
title: '是否启用',
|
|
151
|
-
key: '
|
|
151
|
+
key: 'isEnabled',
|
|
152
152
|
resizable: true,
|
|
153
153
|
width: 100,
|
|
154
154
|
},
|
|
@@ -204,7 +204,7 @@ const refreshData = () => {
|
|
|
204
204
|
const handleSwitchIsEnableChange = record => {
|
|
205
205
|
const data = {
|
|
206
206
|
id: record.id,
|
|
207
|
-
|
|
207
|
+
isEnabled: record.isEnabled,
|
|
208
208
|
}
|
|
209
209
|
employee.updateIsEnable(data).then(() => {
|
|
210
210
|
childRef.value.tableLoad()
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
<template #custom-type="{ record }">
|
|
30
30
|
<span>{{ { 0: '高层', 1: '中层', 2: '基层' }[record.type] || record.type }}</span>
|
|
31
31
|
</template>
|
|
32
|
-
<template #custom-
|
|
32
|
+
<template #custom-isEnabled="{ record }">
|
|
33
33
|
<a-switch
|
|
34
|
-
v-model:checked="record.
|
|
34
|
+
v-model:checked="record.isEnabled"
|
|
35
35
|
checked-children="是"
|
|
36
36
|
un-checked-children="否"
|
|
37
37
|
@change="handleSwitchIsEnableChange(record)"
|
|
@@ -104,7 +104,7 @@ const columns = ref([
|
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
title: '是否启用',
|
|
107
|
-
key: '
|
|
107
|
+
key: 'isEnabled',
|
|
108
108
|
resizable: true,
|
|
109
109
|
width: 100,
|
|
110
110
|
},
|
|
@@ -166,7 +166,7 @@ const refreshData = () => {
|
|
|
166
166
|
const handleSwitchIsEnableChange = record => {
|
|
167
167
|
const data = {
|
|
168
168
|
id: record.id,
|
|
169
|
-
|
|
169
|
+
isEnabled: record.isEnabled,
|
|
170
170
|
}
|
|
171
171
|
position.updateIsEnable(data).then(() => {
|
|
172
172
|
childRef.value.tableLoad()
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
ref="childRef"
|
|
9
9
|
>
|
|
10
10
|
<!-- 可以通过插槽自定义单元格 -->
|
|
11
|
-
<template #custom-
|
|
11
|
+
<template #custom-isEnabled="{ record }">
|
|
12
12
|
<a-switch
|
|
13
|
-
v-model:checked="record.
|
|
13
|
+
v-model:checked="record.isEnabled"
|
|
14
14
|
checked-children="是"
|
|
15
15
|
un-checked-children="否"
|
|
16
16
|
@change="handleSwitchChange(record)"
|
|
@@ -87,7 +87,7 @@ const columns = ref([
|
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
title: '是否启用',
|
|
90
|
-
key: '
|
|
90
|
+
key: 'isEnabled',
|
|
91
91
|
resizable: true,
|
|
92
92
|
},
|
|
93
93
|
{
|
|
@@ -118,7 +118,7 @@ const refreshData = () => {
|
|
|
118
118
|
const handleSwitchChange = record => {
|
|
119
119
|
var data = {
|
|
120
120
|
id: record.id,
|
|
121
|
-
isEnabled: record.
|
|
121
|
+
isEnabled: record.isEnabled,
|
|
122
122
|
}
|
|
123
123
|
sysAccount.updateIsEnabled(data).then(() => {
|
|
124
124
|
childRef.value.tableLoad()
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
>
|
|
14
14
|
</template>
|
|
15
15
|
<!-- 可以通过插槽自定义单元格 -->
|
|
16
|
-
<template #custom-
|
|
16
|
+
<template #custom-isEnabled="{ record }">
|
|
17
17
|
<a-switch
|
|
18
|
-
v-model:checked="record.
|
|
18
|
+
v-model:checked="record.isEnabled"
|
|
19
19
|
checked-children="是"
|
|
20
20
|
un-checked-children="否"
|
|
21
21
|
@change="handleSwitchChange(record)"
|
|
@@ -90,7 +90,7 @@ const columns = ref([
|
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
title: '是否启用',
|
|
93
|
-
key: '
|
|
93
|
+
key: 'isEnabled',
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
title: '备注',
|
|
@@ -126,7 +126,7 @@ const refreshData = () => {
|
|
|
126
126
|
const handleSwitchChange = record => {
|
|
127
127
|
var data = {
|
|
128
128
|
id: record.id,
|
|
129
|
-
isEnabled: record.
|
|
129
|
+
isEnabled: record.isEnabled,
|
|
130
130
|
}
|
|
131
131
|
sysDict.updateIsEnabled(data).then(() => {
|
|
132
132
|
childRef.value.tableLoad()
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
@edit="edit"
|
|
8
8
|
ref="childRef"
|
|
9
9
|
>
|
|
10
|
-
<template #custom-
|
|
10
|
+
<template #custom-isEnabled="{ record }">
|
|
11
11
|
<a-switch
|
|
12
|
-
v-model:checked="record.
|
|
12
|
+
v-model:checked="record.isEnabled"
|
|
13
13
|
checked-children="是"
|
|
14
14
|
un-checked-children="否"
|
|
15
15
|
@change="sysDictItemhandleSwitchChange(record)"
|
|
@@ -68,7 +68,7 @@ const columns = ref([
|
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
title: '状态',
|
|
71
|
-
key: '
|
|
71
|
+
key: 'isEnabled',
|
|
72
72
|
width: 80,
|
|
73
73
|
},
|
|
74
74
|
{
|
|
@@ -93,7 +93,7 @@ const childRef = ref(null)
|
|
|
93
93
|
const sysDictItemhandleSwitchChange = record => {
|
|
94
94
|
var data = {
|
|
95
95
|
id: record.id,
|
|
96
|
-
isEnabled: record.
|
|
96
|
+
isEnabled: record.isEnabled,
|
|
97
97
|
}
|
|
98
98
|
sysDictItem.updateIsEnabled(data).then(() => {
|
|
99
99
|
refreshData()
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
<!-- <template #custom-title="{ record }">
|
|
16
16
|
{{record.type != 4 ? record.title : record.btnName}}
|
|
17
17
|
</template> -->
|
|
18
|
-
<template #custom-
|
|
18
|
+
<template #custom-isEnabled="{ record }">
|
|
19
19
|
<a-switch
|
|
20
|
-
v-model:checked="record.
|
|
20
|
+
v-model:checked="record.isEnabled"
|
|
21
21
|
checked-children="是"
|
|
22
22
|
un-checked-children="否"
|
|
23
23
|
@change="handleSwitchIsEnableChange(record)"
|
|
@@ -123,7 +123,7 @@ const columns = ref([
|
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
title: '是否启用',
|
|
126
|
-
key: '
|
|
126
|
+
key: 'isEnabled',
|
|
127
127
|
resizable: true,
|
|
128
128
|
},
|
|
129
129
|
{
|
|
@@ -183,7 +183,7 @@ const refreshData = () => {
|
|
|
183
183
|
const handleSwitchIsEnableChange = record => {
|
|
184
184
|
var data = {
|
|
185
185
|
id: record.id,
|
|
186
|
-
isEnabled: record.
|
|
186
|
+
isEnabled: record.isEnabled,
|
|
187
187
|
}
|
|
188
188
|
sysMenu.updateIsEnabled(data).then(() => {
|
|
189
189
|
childRef.value.tableLoad()
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
ref="childRef"
|
|
10
10
|
>
|
|
11
11
|
<!-- 可以通过插槽自定义单元格 -->
|
|
12
|
-
<template #custom-
|
|
12
|
+
<template #custom-isEnabled="{ record }">
|
|
13
13
|
<a-switch
|
|
14
|
-
v-model:checked="record.
|
|
14
|
+
v-model:checked="record.isEnabled"
|
|
15
15
|
checked-children="是"
|
|
16
16
|
un-checked-children="否"
|
|
17
17
|
@change="handleSwitchChange(record)"
|
|
@@ -116,7 +116,7 @@ const columns = ref([
|
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
title: '是否启用',
|
|
119
|
-
key: '
|
|
119
|
+
key: 'isEnabled',
|
|
120
120
|
resizable: true,
|
|
121
121
|
},
|
|
122
122
|
{
|
|
@@ -148,7 +148,7 @@ const refreshData = () => {
|
|
|
148
148
|
const handleSwitchChange = record => {
|
|
149
149
|
var data = {
|
|
150
150
|
id: record.id,
|
|
151
|
-
isEnabled: record.
|
|
151
|
+
isEnabled: record.isEnabled,
|
|
152
152
|
}
|
|
153
153
|
sysRole.updateIsEnabled(data).then(() => {
|
|
154
154
|
childRef.value.tableLoad()
|