pit-docs-mcp 1.0.2
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/README.md +180 -0
- package/dist/codegen.d.ts +5 -0
- package/dist/codegen.d.ts.map +1 -0
- package/dist/codegen.js +112 -0
- package/dist/constants.d.ts +6 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +10 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +115 -0
- package/dist/resources.d.ts +3 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +80 -0
- package/dist/tools.d.ts +3 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +258 -0
- package/dist/utils.d.ts +26 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +198 -0
- package/docs/codegen/pit-simplify-web.md +686 -0
- package/docs/pitBusinessUi/README.md +102 -0
- package/docs/pitBusinessUi/add-date-picker.md +57 -0
- package/docs/pitBusinessUi/add-operation.md +64 -0
- package/docs/pitBusinessUi/batch-download.md +44 -0
- package/docs/pitBusinessUi/bill-tree-dialog.md +82 -0
- package/docs/pitBusinessUi/collapse.md +88 -0
- package/docs/pitBusinessUi/date-time-picker.md +74 -0
- package/docs/pitBusinessUi/design-report-explain.md +47 -0
- package/docs/pitBusinessUi/dialog.md +89 -0
- package/docs/pitBusinessUi/dic-radio.md +67 -0
- package/docs/pitBusinessUi/dic.md +78 -0
- package/docs/pitBusinessUi/document-preview.md +54 -0
- package/docs/pitBusinessUi/drawer.md +67 -0
- package/docs/pitBusinessUi/editor.md +63 -0
- package/docs/pitBusinessUi/expand-search-form.md +65 -0
- package/docs/pitBusinessUi/file-preview.md +56 -0
- package/docs/pitBusinessUi/flow-table-status.md +47 -0
- package/docs/pitBusinessUi/icon-box.md +74 -0
- package/docs/pitBusinessUi/image-preview.md +55 -0
- package/docs/pitBusinessUi/image.md +53 -0
- package/docs/pitBusinessUi/input-formatter.md +100 -0
- package/docs/pitBusinessUi/input-number.md +47 -0
- package/docs/pitBusinessUi/input-select.md +68 -0
- package/docs/pitBusinessUi/input.md +56 -0
- package/docs/pitBusinessUi/jm-preview.md +47 -0
- package/docs/pitBusinessUi/json-editor.md +71 -0
- package/docs/pitBusinessUi/loading-btn.md +64 -0
- package/docs/pitBusinessUi/monaco.md +82 -0
- package/docs/pitBusinessUi/money-input.md +59 -0
- package/docs/pitBusinessUi/pagination.md +70 -0
- package/docs/pitBusinessUi/password-strength.md +59 -0
- package/docs/pitBusinessUi/positive-number.md +63 -0
- package/docs/pitBusinessUi/preview-image.md +62 -0
- package/docs/pitBusinessUi/preview-office.md +50 -0
- package/docs/pitBusinessUi/preview.md +57 -0
- package/docs/pitBusinessUi/quill.md +52 -0
- package/docs/pitBusinessUi/runflow-btn.md +52 -0
- package/docs/pitBusinessUi/search-date-picker.md +60 -0
- package/docs/pitBusinessUi/select-bid-list.md +66 -0
- package/docs/pitBusinessUi/select-color.md +38 -0
- package/docs/pitBusinessUi/select-contract-tree.md +41 -0
- package/docs/pitBusinessUi/select-dept.md +38 -0
- package/docs/pitBusinessUi/select-project-unit.md +48 -0
- package/docs/pitBusinessUi/select-section-tree.md +45 -0
- package/docs/pitBusinessUi/select-section.md +66 -0
- package/docs/pitBusinessUi/select-string.md +60 -0
- package/docs/pitBusinessUi/select-system-unit.md +41 -0
- package/docs/pitBusinessUi/select-user-by-role.md +51 -0
- package/docs/pitBusinessUi/switch.md +43 -0
- package/docs/pitBusinessUi/table-contract.md +66 -0
- package/docs/pitBusinessUi/table-operation.md +81 -0
- package/docs/pitBusinessUi/table.md +75 -0
- package/docs/pitBusinessUi/tag.md +86 -0
- package/docs/pitBusinessUi/textarea.md +65 -0
- package/docs/pitBusinessUi/transfer-direct.md +57 -0
- package/docs/pitBusinessUi/transfer-user-project.md +78 -0
- package/docs/pitBusinessUi/transfer.md +68 -0
- package/docs/pitBusinessUi/tree-lazy.md +72 -0
- package/docs/pitBusinessUi/tree-select-name.md +59 -0
- package/docs/pitBusinessUi/tree-select-plus.md +106 -0
- package/docs/pitBusinessUi/tree-select.md +86 -0
- package/docs/pitBusinessUi/upload-avatar.md +60 -0
- package/docs/pitBusinessUi/upload-file-dialog.md +86 -0
- package/docs/pitBusinessUi/upload-file.md +77 -0
- package/docs/pitBusinessUi/upload-list-card.md +62 -0
- package/docs/pitBusinessUi/upload-table.md +77 -0
- package/docs/pitBusinessUi/user-transform.md +72 -0
- package/docs/pitBusinessUi/utils.md +272 -0
- package/docs/pitBusinessUtils/README.md +144 -0
- package/docs/pitBusinessUtils/auth.md +170 -0
- package/docs/pitBusinessUtils/clipboard.md +72 -0
- package/docs/pitBusinessUtils/filePreview.md +60 -0
- package/docs/pitBusinessUtils/formValidate.md +75 -0
- package/docs/pitBusinessUtils/generateTitle.md +49 -0
- package/docs/pitBusinessUtils/get-page-title.md +65 -0
- package/docs/pitBusinessUtils/i18n.md +130 -0
- package/docs/pitBusinessUtils/jwks.md +82 -0
- package/docs/pitBusinessUtils/oss.md +391 -0
- package/docs/pitBusinessUtils/passwordValidate.md +120 -0
- package/docs/pitBusinessUtils/pit.md +496 -0
- package/docs/pitBusinessUtils/print.md +126 -0
- package/docs/pitBusinessUtils/request.md +137 -0
- package/docs/pitBusinessUtils/scroll-to.md +68 -0
- package/docs/pitBusinessUtils/utils.md +762 -0
- package/docs/pitBusinessUtils/validate.md +224 -0
- package/docs/pitElementUi/alert.md +238 -0
- package/docs/pitElementUi/avatar.md +147 -0
- package/docs/pitElementUi/backtop.md +60 -0
- package/docs/pitElementUi/badge.md +120 -0
- package/docs/pitElementUi/base-tabs.md +73 -0
- package/docs/pitElementUi/border.md +135 -0
- package/docs/pitElementUi/breadcrumb.md +44 -0
- package/docs/pitElementUi/button.md +301 -0
- package/docs/pitElementUi/calendar.md +66 -0
- package/docs/pitElementUi/card.md +170 -0
- package/docs/pitElementUi/carousel.md +212 -0
- package/docs/pitElementUi/cascader.md +1966 -0
- package/docs/pitElementUi/checkbox.md +283 -0
- package/docs/pitElementUi/collapse.md +131 -0
- package/docs/pitElementUi/color-picker.md +123 -0
- package/docs/pitElementUi/color.md +244 -0
- package/docs/pitElementUi/container.md +240 -0
- package/docs/pitElementUi/custom-theme.md +131 -0
- package/docs/pitElementUi/date-picker.md +448 -0
- package/docs/pitElementUi/datetime-picker.md +254 -0
- package/docs/pitElementUi/descriptions.md +191 -0
- package/docs/pitElementUi/dialog-header.md +53 -0
- package/docs/pitElementUi/dialog.md +239 -0
- package/docs/pitElementUi/divider.md +61 -0
- package/docs/pitElementUi/drawer.md +307 -0
- package/docs/pitElementUi/dropdown.md +308 -0
- package/docs/pitElementUi/empty.md +61 -0
- package/docs/pitElementUi/font-family.md +90 -0
- package/docs/pitElementUi/form-base.md +1239 -0
- package/docs/pitElementUi/form-item-checkbox-group.md +48 -0
- package/docs/pitElementUi/form-item-date.md +60 -0
- package/docs/pitElementUi/form-item-dic.md +18 -0
- package/docs/pitElementUi/form-item-editor.md +16 -0
- package/docs/pitElementUi/form-item-input-money.md +19 -0
- package/docs/pitElementUi/form-item-input-number.md +20 -0
- package/docs/pitElementUi/form-item-input.md +18 -0
- package/docs/pitElementUi/form-item-radio-group.md +21 -0
- package/docs/pitElementUi/form-item-select.md +21 -0
- package/docs/pitElementUi/form-item-switch.md +15 -0
- package/docs/pitElementUi/form-item-textarea.md +20 -0
- package/docs/pitElementUi/form-item-tree-select.md +27 -0
- package/docs/pitElementUi/form-item-upload-card.md +18 -0
- package/docs/pitElementUi/form-item-upload.md +1 -0
- package/docs/pitElementUi/form-two.md +102 -0
- package/docs/pitElementUi/form.md +952 -0
- package/docs/pitElementUi/i18n.md +228 -0
- package/docs/pitElementUi/icon-custom.md +99 -0
- package/docs/pitElementUi/icon-line-custom.md +12 -0
- package/docs/pitElementUi/icon.md +28 -0
- package/docs/pitElementUi/image.md +178 -0
- package/docs/pitElementUi/infiniteScroll.md +87 -0
- package/docs/pitElementUi/input-number.md +197 -0
- package/docs/pitElementUi/input-select.md +1 -0
- package/docs/pitElementUi/input.md +800 -0
- package/docs/pitElementUi/installation.md +9 -0
- package/docs/pitElementUi/layout-column.md +376 -0
- package/docs/pitElementUi/layout-tree.md +715 -0
- package/docs/pitElementUi/layout.md +354 -0
- package/docs/pitElementUi/link.md +66 -0
- package/docs/pitElementUi/loading.md +208 -0
- package/docs/pitElementUi/menu.md +403 -0
- package/docs/pitElementUi/message-box.md +326 -0
- package/docs/pitElementUi/message.md +219 -0
- package/docs/pitElementUi/notification.md +311 -0
- package/docs/pitElementUi/page-header.md +40 -0
- package/docs/pitElementUi/pagination.md +200 -0
- package/docs/pitElementUi/popconfirm.md +60 -0
- package/docs/pitElementUi/popover.md +167 -0
- package/docs/pitElementUi/progress.md +178 -0
- package/docs/pitElementUi/quickstart.md +290 -0
- package/docs/pitElementUi/radio.md +211 -0
- package/docs/pitElementUi/rate.md +135 -0
- package/docs/pitElementUi/result.md +76 -0
- package/docs/pitElementUi/select-tree.md +661 -0
- package/docs/pitElementUi/select.md +586 -0
- package/docs/pitElementUi/skeleton.md +316 -0
- package/docs/pitElementUi/slider.md +237 -0
- package/docs/pitElementUi/steps.md +154 -0
- package/docs/pitElementUi/switch.md +142 -0
- package/docs/pitElementUi/table.md +4023 -0
- package/docs/pitElementUi/tabs.md +303 -0
- package/docs/pitElementUi/tag.md +203 -0
- package/docs/pitElementUi/time-picker.md +199 -0
- package/docs/pitElementUi/timeline.md +154 -0
- package/docs/pitElementUi/tooltip.md +177 -0
- package/docs/pitElementUi/transfer.md +249 -0
- package/docs/pitElementUi/transition.md +155 -0
- package/docs/pitElementUi/tree.md +1157 -0
- package/docs/pitElementUi/typography.md +151 -0
- package/docs/pitElementUi/upload-table.md +39 -0
- package/docs/pitElementUi/upload.md +392 -0
- package/docs/pitElementUi/virtual-list.md +154 -0
- package/docs/pitElementUi/virtual-select-tree.md +243 -0
- package/docs/pitElementUi/virtual-select.md +451 -0
- package/docs/pitElementUi/virtual-table-column.md +1 -0
- package/docs/pitElementUi/virtual-table.md +490 -0
- package/docs/pitElementUi/virtual-tree.md +119 -0
- package/package.json +33 -0
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
## LayoutColumn 左右布局,主要用于左边树右边表格
|
|
2
|
+
|
|
3
|
+
### 基本用法
|
|
4
|
+
|
|
5
|
+
树形+表格布局
|
|
6
|
+
|
|
7
|
+
:::demo 在 Form 组件中,每一个表单域由一个 Form-Item 组件构成,表单域中可以放置各种类型的表单控件,包括 Input、Select、Checkbox、Radio、Switch、DatePicker、TimePicker
|
|
8
|
+
```html
|
|
9
|
+
<el-layout-column>
|
|
10
|
+
<div slot="left" class="h-full" style="height: 100%;">
|
|
11
|
+
<el-layout-tree no-search-input noFilterInput :dataList="dataList" :render-content="renderContent"></el-layout-tree>
|
|
12
|
+
</div>
|
|
13
|
+
<div slot="title-right">
|
|
14
|
+
<el-tooltip content="字典管理" placement="top">
|
|
15
|
+
<i class="el-icon-menu" />
|
|
16
|
+
</el-tooltip>
|
|
17
|
+
</div>
|
|
18
|
+
<div slot="right" class="h-full" style="height: 100%;">
|
|
19
|
+
<el-form-base
|
|
20
|
+
ref="peFormBase"
|
|
21
|
+
primary-key="departmentId"
|
|
22
|
+
query-interface="basics/department/page"
|
|
23
|
+
query-one-interface="basics/department/info"
|
|
24
|
+
save-interface="basics/department/save"
|
|
25
|
+
update-interface="basics/department/update"
|
|
26
|
+
delete-interface="basics/department/delete"
|
|
27
|
+
:form-inline="formInline"
|
|
28
|
+
:columns="columns"
|
|
29
|
+
:add-form="addForm"
|
|
30
|
+
:isDefaultQuery="false"
|
|
31
|
+
dialogType="dialog-header"
|
|
32
|
+
:rules="rules"
|
|
33
|
+
>
|
|
34
|
+
<template slot="searchForm" slot-scope="data">
|
|
35
|
+
<el-form-item label="关键词" prop="keyword">
|
|
36
|
+
<el-input
|
|
37
|
+
v-model="data.formInline.keyword"
|
|
38
|
+
placeholder="请输入关键词查询"
|
|
39
|
+
clearable
|
|
40
|
+
/>
|
|
41
|
+
</el-form-item>
|
|
42
|
+
</template>
|
|
43
|
+
<template slot="add" slot-scope="data">
|
|
44
|
+
<el-form-item label="部门名称" prop="fullName">
|
|
45
|
+
<el-input v-model="data.addForm.fullName" placeholder="输入名称" />
|
|
46
|
+
</el-form-item>
|
|
47
|
+
<el-form-item label="部门编码" prop="enCode">
|
|
48
|
+
<el-input v-model="data.addForm.enCode" placeholder="输入编码" />
|
|
49
|
+
</el-form-item>
|
|
50
|
+
<el-form-item label="部门主管" prop="managerId">
|
|
51
|
+
<el-input v-model="data.addForm.managerId" placeholder="输入部门主管" />
|
|
52
|
+
</el-form-item>
|
|
53
|
+
<el-form-item label="排序" prop="orderId">
|
|
54
|
+
<el-input-number v-model="data.addForm.orderId" :min="0" :max="9999" />
|
|
55
|
+
</el-form-item>
|
|
56
|
+
<el-form-item label="部门说明" prop="description">
|
|
57
|
+
<el-input v-model="data.addForm.description" type="textarea" :rows="6" />
|
|
58
|
+
</el-form-item>
|
|
59
|
+
</template>
|
|
60
|
+
</el-form-base>
|
|
61
|
+
</div>
|
|
62
|
+
</el-layout-column>
|
|
63
|
+
|
|
64
|
+
<script>
|
|
65
|
+
export default {
|
|
66
|
+
data() {
|
|
67
|
+
return {
|
|
68
|
+
operatingTypeProps: 'add',
|
|
69
|
+
columns: [
|
|
70
|
+
{
|
|
71
|
+
prop: 'fullName',
|
|
72
|
+
label: '名称',
|
|
73
|
+
align: 'left'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
prop: 'enCode',
|
|
77
|
+
label: '编码',
|
|
78
|
+
align: 'left'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
prop: 'managerId',
|
|
82
|
+
label: '部门主管',
|
|
83
|
+
align: 'left'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
prop: 'orderId',
|
|
87
|
+
label: '排序',
|
|
88
|
+
align: 'center',
|
|
89
|
+
width: 80
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
prop: 'createTime',
|
|
93
|
+
label: '创建时间',
|
|
94
|
+
align: 'center',
|
|
95
|
+
width: 160
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
prop: '',
|
|
99
|
+
label: '操作',
|
|
100
|
+
align: 'center',
|
|
101
|
+
width: 160,
|
|
102
|
+
render: (params) => (
|
|
103
|
+
<div>
|
|
104
|
+
<a
|
|
105
|
+
onClick={() => this.$refs.peFormBase.info(params['departmentId'])}
|
|
106
|
+
class='text-primary mr-2'
|
|
107
|
+
>
|
|
108
|
+
编辑
|
|
109
|
+
</a>
|
|
110
|
+
<a
|
|
111
|
+
onClick={() => this.$refs.peFormBase.delete(params['departmentId'])}
|
|
112
|
+
class='text-danger mr-2'
|
|
113
|
+
>
|
|
114
|
+
删除
|
|
115
|
+
</a>
|
|
116
|
+
</div>
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
formInline: {
|
|
121
|
+
id: '',
|
|
122
|
+
keyword: ''
|
|
123
|
+
},
|
|
124
|
+
addForm: {
|
|
125
|
+
organizeId: '',
|
|
126
|
+
departmentId: '',
|
|
127
|
+
description: '',
|
|
128
|
+
enCode: '',
|
|
129
|
+
fullName: '',
|
|
130
|
+
managerId: '',
|
|
131
|
+
orderId: 0,
|
|
132
|
+
parentId: ''
|
|
133
|
+
},
|
|
134
|
+
rules: {
|
|
135
|
+
parentId: [
|
|
136
|
+
{ required: true, message: '所属上级不能为空', trigger: 'input' }
|
|
137
|
+
],
|
|
138
|
+
fullName: [
|
|
139
|
+
{ required: true, message: '请输入部门名称', trigger: 'blur' },
|
|
140
|
+
{ max: 50, message: '部门名称最多为50个字符!', trigger: 'blur' }
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
dataList: [
|
|
144
|
+
{
|
|
145
|
+
id: 1,
|
|
146
|
+
label: '一级 1',
|
|
147
|
+
children: [
|
|
148
|
+
{
|
|
149
|
+
id: 2,
|
|
150
|
+
label: '一级 1-1'
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: 4,
|
|
156
|
+
label: '二级 1',
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
methods: {
|
|
162
|
+
renderContent(h, { node, data, store }) {
|
|
163
|
+
if(data.id===4){
|
|
164
|
+
return (
|
|
165
|
+
<span class="custom-tree-node">
|
|
166
|
+
<span>{node.label}</span>
|
|
167
|
+
<span>
|
|
168
|
+
<el-button size="mini" type="text" on-click={ () => this.append(data) }>Append</el-button>
|
|
169
|
+
<el-button size="mini" type="text" on-click={ () => this.remove(node, data) }>Delete</el-button>
|
|
170
|
+
</span>
|
|
171
|
+
</span>);
|
|
172
|
+
} else {
|
|
173
|
+
return (
|
|
174
|
+
<span class="custom-tree-node">
|
|
175
|
+
<span>{node.label}</span>
|
|
176
|
+
</span>);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
</script>
|
|
182
|
+
```
|
|
183
|
+
:::
|
|
184
|
+
|
|
185
|
+
:::demo 在 Form 组件中,每一个表单域由一个 Form-Item 组件构成,表单域中可以放置各种类型的表单控件,包括 Input、Select、Checkbox、Radio、Switch、DatePicker、TimePicker
|
|
186
|
+
```html
|
|
187
|
+
<el-layout-column>
|
|
188
|
+
<div slot="left" class="h-full" style="height: 100%;">
|
|
189
|
+
<p v-for="item in 100" :key="item">123</p>
|
|
190
|
+
|
|
191
|
+
</div>
|
|
192
|
+
<div slot="title-right">
|
|
193
|
+
<el-tooltip content="字典管理" placement="top">
|
|
194
|
+
<i class="el-icon-menu" />
|
|
195
|
+
</el-tooltip>
|
|
196
|
+
</div>
|
|
197
|
+
<div slot="right" class="h-full" style="height: 100%;">
|
|
198
|
+
<el-form-base
|
|
199
|
+
ref="peFormBase"
|
|
200
|
+
primary-key="departmentId"
|
|
201
|
+
query-interface="basics/department/page"
|
|
202
|
+
query-one-interface="basics/department/info"
|
|
203
|
+
save-interface="basics/department/save"
|
|
204
|
+
update-interface="basics/department/update"
|
|
205
|
+
delete-interface="basics/department/delete"
|
|
206
|
+
:form-inline="formInline"
|
|
207
|
+
:columns="columns"
|
|
208
|
+
:add-form="addForm"
|
|
209
|
+
:isDefaultQuery="false"
|
|
210
|
+
dialogType="dialog-header"
|
|
211
|
+
:rules="rules"
|
|
212
|
+
>
|
|
213
|
+
<template slot="searchForm" slot-scope="data">
|
|
214
|
+
<el-form-item label="关键词" prop="keyword">
|
|
215
|
+
<el-input
|
|
216
|
+
v-model="data.formInline.keyword"
|
|
217
|
+
placeholder="请输入关键词查询"
|
|
218
|
+
clearable
|
|
219
|
+
/>
|
|
220
|
+
</el-form-item>
|
|
221
|
+
</template>
|
|
222
|
+
<template slot="add" slot-scope="data">
|
|
223
|
+
<el-form-item label="部门名称" prop="fullName">
|
|
224
|
+
<el-input v-model="data.addForm.fullName" placeholder="输入名称" />
|
|
225
|
+
</el-form-item>
|
|
226
|
+
<el-form-item label="部门编码" prop="enCode">
|
|
227
|
+
<el-input v-model="data.addForm.enCode" placeholder="输入编码" />
|
|
228
|
+
</el-form-item>
|
|
229
|
+
<el-form-item label="部门主管" prop="managerId">
|
|
230
|
+
<el-input v-model="data.addForm.managerId" placeholder="输入部门主管" />
|
|
231
|
+
</el-form-item>
|
|
232
|
+
<el-form-item label="排序" prop="orderId">
|
|
233
|
+
<el-input-number v-model="data.addForm.orderId" :min="0" :max="9999" />
|
|
234
|
+
</el-form-item>
|
|
235
|
+
<el-form-item label="部门说明" prop="description">
|
|
236
|
+
<el-input v-model="data.addForm.description" type="textarea" :rows="6" />
|
|
237
|
+
</el-form-item>
|
|
238
|
+
</template>
|
|
239
|
+
</el-form-base>
|
|
240
|
+
</div>
|
|
241
|
+
</el-layout-column>
|
|
242
|
+
|
|
243
|
+
<script>
|
|
244
|
+
export default {
|
|
245
|
+
data() {
|
|
246
|
+
return {
|
|
247
|
+
operatingTypeProps: 'add',
|
|
248
|
+
columns: [
|
|
249
|
+
{
|
|
250
|
+
prop: 'fullName',
|
|
251
|
+
label: '名称',
|
|
252
|
+
align: 'left'
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
prop: 'enCode',
|
|
256
|
+
label: '编码',
|
|
257
|
+
align: 'left'
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
prop: 'managerId',
|
|
261
|
+
label: '部门主管',
|
|
262
|
+
align: 'left'
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
prop: 'orderId',
|
|
266
|
+
label: '排序',
|
|
267
|
+
align: 'center',
|
|
268
|
+
width: 80
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
prop: 'createTime',
|
|
272
|
+
label: '创建时间',
|
|
273
|
+
align: 'center',
|
|
274
|
+
width: 160
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
prop: '',
|
|
278
|
+
label: '操作',
|
|
279
|
+
align: 'center',
|
|
280
|
+
width: 160,
|
|
281
|
+
render: (params) => (
|
|
282
|
+
<div>
|
|
283
|
+
<a
|
|
284
|
+
onClick={() => this.$refs.peFormBase.info(params['departmentId'])}
|
|
285
|
+
class='text-primary mr-2'
|
|
286
|
+
>
|
|
287
|
+
编辑
|
|
288
|
+
</a>
|
|
289
|
+
<a
|
|
290
|
+
onClick={() => this.$refs.peFormBase.delete(params['departmentId'])}
|
|
291
|
+
class='text-danger mr-2'
|
|
292
|
+
>
|
|
293
|
+
删除
|
|
294
|
+
</a>
|
|
295
|
+
</div>
|
|
296
|
+
)
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
formInline: {
|
|
300
|
+
id: '',
|
|
301
|
+
keyword: ''
|
|
302
|
+
},
|
|
303
|
+
addForm: {
|
|
304
|
+
organizeId: '',
|
|
305
|
+
departmentId: '',
|
|
306
|
+
description: '',
|
|
307
|
+
enCode: '',
|
|
308
|
+
fullName: '',
|
|
309
|
+
managerId: '',
|
|
310
|
+
orderId: 0,
|
|
311
|
+
parentId: ''
|
|
312
|
+
},
|
|
313
|
+
rules: {
|
|
314
|
+
parentId: [
|
|
315
|
+
{ required: true, message: '所属上级不能为空', trigger: 'input' }
|
|
316
|
+
],
|
|
317
|
+
fullName: [
|
|
318
|
+
{ required: true, message: '请输入部门名称', trigger: 'blur' },
|
|
319
|
+
{ max: 50, message: '部门名称最多为50个字符!', trigger: 'blur' }
|
|
320
|
+
]
|
|
321
|
+
},
|
|
322
|
+
dataList: [
|
|
323
|
+
{
|
|
324
|
+
id: 1,
|
|
325
|
+
label: '一级 1',
|
|
326
|
+
children: [
|
|
327
|
+
{
|
|
328
|
+
id: 2,
|
|
329
|
+
label: '一级 1-1'
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
id: 4,
|
|
335
|
+
label: '二级 1',
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
};
|
|
339
|
+
},
|
|
340
|
+
methods: {
|
|
341
|
+
renderContent(h, { node, data, store }) {
|
|
342
|
+
if(data.id===4){
|
|
343
|
+
return (
|
|
344
|
+
<span class="custom-tree-node">
|
|
345
|
+
<span>{node.label}</span>
|
|
346
|
+
<span>
|
|
347
|
+
<el-button size="mini" type="text" on-click={ () => this.append(data) }>Append</el-button>
|
|
348
|
+
<el-button size="mini" type="text" on-click={ () => this.remove(node, data) }>Delete</el-button>
|
|
349
|
+
</span>
|
|
350
|
+
</span>);
|
|
351
|
+
} else {
|
|
352
|
+
return (
|
|
353
|
+
<span class="custom-tree-node">
|
|
354
|
+
<span>{node.label}</span>
|
|
355
|
+
</span>);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
</script>
|
|
361
|
+
```
|
|
362
|
+
:::
|
|
363
|
+
|
|
364
|
+
### LayoutColumn Attributes
|
|
365
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
366
|
+
|---------- |-------------- |---------- |-------------------------------- |-------- |
|
|
367
|
+
| title | 标题 | string | - | 菜单管理 |
|
|
368
|
+
| noTitle | 是否隐藏标题栏 | boolean | - | true |
|
|
369
|
+
| width | 左边宽度设置 | string | - | 260px |
|
|
370
|
+
|
|
371
|
+
### LayoutColumn Slot
|
|
372
|
+
| name | 说明 |
|
|
373
|
+
|------|--------|
|
|
374
|
+
| title-right | 标题栏功能区域 |
|
|
375
|
+
| left | 左边内容区域 |
|
|
376
|
+
| right | 右侧内容 |
|