three-trees-ui 1.0.0
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/LICENSE +21 -0
- package/README.md +32 -0
- package/lib/demo.html +10 -0
- package/lib/three-trees-ui.common.js +49136 -0
- package/lib/three-trees-ui.css +1 -0
- package/lib/three-trees-ui.umd.js +49146 -0
- package/lib/three-trees-ui.umd.min.js +1 -0
- package/package.json +137 -0
- package/packages/AddQueryStrategy/index.js +7 -0
- package/packages/AddQueryStrategy/src/main.vue +236 -0
- package/packages/Autocomplete/index.js +7 -0
- package/packages/Autocomplete/src/main.vue +201 -0
- package/packages/Avatar/index.js +7 -0
- package/packages/Avatar/src/AvatarImage.vue +218 -0
- package/packages/Button/index.js +7 -0
- package/packages/Button/src/main.vue +90 -0
- package/packages/Cascader/index.js +7 -0
- package/packages/Cascader/src/main.vue +210 -0
- package/packages/Chart/index.js +7 -0
- package/packages/Chart/src/Chart.vue +856 -0
- package/packages/Checkbox/index.js +7 -0
- package/packages/Checkbox/src/main.vue +205 -0
- package/packages/Collapse/index.js +7 -0
- package/packages/Collapse/src/HtCollapse.vue +85 -0
- package/packages/Collapse/src/HtCollapseItem.vue +21 -0
- package/packages/CollapseItem/index.js +7 -0
- package/packages/CustomComponent/index.js +6 -0
- package/packages/CustomComponent/src/main.vue +87 -0
- package/packages/CustomDialog/index.js +7 -0
- package/packages/CustomDialog/src/customDialog.js +126 -0
- package/packages/CustomDialog/src/customDialog.vue +1864 -0
- package/packages/CustomDialog/src/customMobileDialog.vue +1619 -0
- package/packages/CustomDialog/src/main.vue +485 -0
- package/packages/DataView/index.js +7 -0
- package/packages/DataView/src/DataView.vue +45 -0
- package/packages/Date/index.js +7 -0
- package/packages/Date/src/main.vue +182 -0
- package/packages/DatePicker/index.js +7 -0
- package/packages/DatePicker/src/main.vue +155 -0
- package/packages/Demension/index.js +7 -0
- package/packages/Demension/src/main.vue +382 -0
- package/packages/Dialog/index.js +7 -0
- package/packages/Dialog/src/main.vue +169 -0
- package/packages/Dictionary/index.js +7 -0
- package/packages/Dictionary/src/main.vue +211 -0
- package/packages/DimensionSelector/index.js +7 -0
- package/packages/DimensionSelector/src/main.vue +526 -0
- package/packages/DimensionSelectorInput/index.js +7 -0
- package/packages/DimensionSelectorInput/src/main.vue +161 -0
- package/packages/Divider/index.js +7 -0
- package/packages/Divider/src/main.vue +38 -0
- package/packages/Duration/index.js +7 -0
- package/packages/Duration/src/main.vue +180 -0
- package/packages/Editor/index.js +7 -0
- package/packages/Editor/src/main.vue +320 -0
- package/packages/Explain/index.js +7 -0
- package/packages/Explain/src/main.vue +126 -0
- package/packages/FieldTail/index.js +7 -0
- package/packages/FieldTail/src/main.vue +188 -0
- package/packages/File/index.js +7 -0
- package/packages/File/src/FileCard.vue +169 -0
- package/packages/File/src/FileList.vue +180 -0
- package/packages/File/src/FileTable.vue +223 -0
- package/packages/File/src/main.vue +499 -0
- package/packages/FileUpload/index.js +7 -0
- package/packages/FileUpload/src/main.vue +242 -0
- package/packages/FlowChart/index.js +7 -0
- package/packages/FlowChart/src/main.vue +386 -0
- package/packages/FormItem/index.js +7 -0
- package/packages/FormItem/src/main.vue +175 -0
- package/packages/Global/index.js +12 -0
- package/packages/Global/src/GlobalQuery.vue +225 -0
- package/packages/Global/src/GlobalValidate.vue +132 -0
- package/packages/HistoricalApproval/index.js +7 -0
- package/packages/HistoricalApproval/src/main.vue +427 -0
- package/packages/Icon/index.js +7 -0
- package/packages/Icon/src/icons/ad.js +14 -0
- package/packages/Icon/src/icons/address-book.js +14 -0
- package/packages/Icon/src/icons/arrow.js +14 -0
- package/packages/Icon/src/icons/attachment.js +18 -0
- package/packages/Icon/src/icons/balance.js +14 -0
- package/packages/Icon/src/icons/ban.js +14 -0
- package/packages/Icon/src/icons/bell.js +14 -0
- package/packages/Icon/src/icons/block.js +26 -0
- package/packages/Icon/src/icons/book.js +14 -0
- package/packages/Icon/src/icons/bookmark.js +14 -0
- package/packages/Icon/src/icons/bug.js +22 -0
- package/packages/Icon/src/icons/bullhorn.js +14 -0
- package/packages/Icon/src/icons/calc.js +14 -0
- package/packages/Icon/src/icons/checkbox.js +14 -0
- package/packages/Icon/src/icons/circle.js +14 -0
- package/packages/Icon/src/icons/close.js +14 -0
- package/packages/Icon/src/icons/cloud-sun.js +14 -0
- package/packages/Icon/src/icons/coffee.js +14 -0
- package/packages/Icon/src/icons/component.js +14 -0
- package/packages/Icon/src/icons/compress.js +14 -0
- package/packages/Icon/src/icons/copyright.js +14 -0
- package/packages/Icon/src/icons/demension.js +18 -0
- package/packages/Icon/src/icons/dialog.js +14 -0
- package/packages/Icon/src/icons/down-unfold.js +18 -0
- package/packages/Icon/src/icons/download.js +14 -0
- package/packages/Icon/src/icons/duration.js +14 -0
- package/packages/Icon/src/icons/excel.js +18 -0
- package/packages/Icon/src/icons/expand.js +14 -0
- package/packages/Icon/src/icons/export.js +21 -0
- package/packages/Icon/src/icons/eye-slash.js +14 -0
- package/packages/Icon/src/icons/eye.js +14 -0
- package/packages/Icon/src/icons/file.js +18 -0
- package/packages/Icon/src/icons/form.js +14 -0
- package/packages/Icon/src/icons/ganged.js +14 -0
- package/packages/Icon/src/icons/gaode.js +27 -0
- package/packages/Icon/src/icons/gift.js +14 -0
- package/packages/Icon/src/icons/home.js +14 -0
- package/packages/Icon/src/icons/hotent.js +26 -0
- package/packages/Icon/src/icons/image.js +14 -0
- package/packages/Icon/src/icons/import.js +18 -0
- package/packages/Icon/src/icons/index.js +75 -0
- package/packages/Icon/src/icons/info.js +21 -0
- package/packages/Icon/src/icons/job.js +18 -0
- package/packages/Icon/src/icons/laptop.js +14 -0
- package/packages/Icon/src/icons/line.js +34 -0
- package/packages/Icon/src/icons/lock.js +14 -0
- package/packages/Icon/src/icons/map.js +18 -0
- package/packages/Icon/src/icons/more.js +19 -0
- package/packages/Icon/src/icons/move.js +14 -0
- package/packages/Icon/src/icons/org-tree.js +33 -0
- package/packages/Icon/src/icons/org-tree2.js +42 -0
- package/packages/Icon/src/icons/org.js +18 -0
- package/packages/Icon/src/icons/palette.js +14 -0
- package/packages/Icon/src/icons/plan.js +17 -0
- package/packages/Icon/src/icons/post.js +23 -0
- package/packages/Icon/src/icons/ppt.js +18 -0
- package/packages/Icon/src/icons/question.js +18 -0
- package/packages/Icon/src/icons/radio.js +14 -0
- package/packages/Icon/src/icons/refresh.js +14 -0
- package/packages/Icon/src/icons/role.js +38 -0
- package/packages/Icon/src/icons/search.js +14 -0
- package/packages/Icon/src/icons/select.js +14 -0
- package/packages/Icon/src/icons/setting.js +18 -0
- package/packages/Icon/src/icons/simple-collapse.js +18 -0
- package/packages/Icon/src/icons/simple-expand.js +14 -0
- package/packages/Icon/src/icons/sort.js +22 -0
- package/packages/Icon/src/icons/table.js +14 -0
- package/packages/Icon/src/icons/time.js +14 -0
- package/packages/Icon/src/icons/tree.js +14 -0
- package/packages/Icon/src/icons/typography.js +18 -0
- package/packages/Icon/src/icons/up-fold.js +18 -0
- package/packages/Icon/src/icons/upload.js +18 -0
- package/packages/Icon/src/icons/user.js +14 -0
- package/packages/Icon/src/icons/users.js +30 -0
- package/packages/Icon/src/icons/video.js +14 -0
- package/packages/Icon/src/icons/word.js +19 -0
- package/packages/Icon/src/main.vue +432 -0
- package/packages/Iframe/index.js +6 -0
- package/packages/Iframe/src/main.vue +208 -0
- package/packages/Image/index.js +7 -0
- package/packages/Image/src/main.vue +70 -0
- package/packages/Input/index.js +7 -0
- package/packages/Input/src/main.vue +659 -0
- package/packages/JobDialog/index.js +7 -0
- package/packages/JobDialog/src/main.vue +197 -0
- package/packages/JobSelector/index.js +7 -0
- package/packages/JobSelector/src/JobSelectorDialog.vue +305 -0
- package/packages/JobSelector/src/JobSelectorMobileDialog.vue +293 -0
- package/packages/JobSelector/src/main.vue +346 -0
- package/packages/JobSelectorInput/index.js +7 -0
- package/packages/JobSelectorInput/src/main.vue +166 -0
- package/packages/ListSelector/index.js +7 -0
- package/packages/ListSelector/src/ListSelector.vue +499 -0
- package/packages/Map/index.js +7 -0
- package/packages/Map/src/Map.vue +434 -0
- package/packages/Milepost/index.js +7 -0
- package/packages/Milepost/src/main.vue +45 -0
- package/packages/OnlineForm/index.js +7 -0
- package/packages/OnlineForm/src/Form.vue +659 -0
- package/packages/OrgPostDialog/index.js +7 -0
- package/packages/OrgPostDialog/src/main.vue +331 -0
- package/packages/OrgSelector/index.js +7 -0
- package/packages/OrgSelector/src/OrgSelectorDialog.vue +334 -0
- package/packages/OrgSelector/src/OrgSelectorMobileDialog.vue +307 -0
- package/packages/OrgSelector/src/Organization.vue +131 -0
- package/packages/OrgSelector/src/PolicyUser.vue +141 -0
- package/packages/OrgSelector/src/main.vue +409 -0
- package/packages/OrgSelectorInput/index.js +7 -0
- package/packages/OrgSelectorInput/src/OrgSelectorInput.vue +324 -0
- package/packages/PostDialog/index.js +7 -0
- package/packages/PostDialog/src/main.vue +309 -0
- package/packages/PostSelector/index.js +7 -0
- package/packages/PostSelector/src/Organization.vue +131 -0
- package/packages/PostSelector/src/PolicyUser.vue +141 -0
- package/packages/PostSelector/src/PostSelectorDialog.vue +342 -0
- package/packages/PostSelector/src/PostSelectorMobileDialog.vue +307 -0
- package/packages/PostSelector/src/main.vue +374 -0
- package/packages/PostSelectorInput/index.js +7 -0
- package/packages/PostSelectorInput/src/PostSelectorInput.vue +317 -0
- package/packages/Preview/index.js +7 -0
- package/packages/Preview/src/FillPage.vue +311 -0
- package/packages/Preview/src/FrameViewer.vue +157 -0
- package/packages/Preview/src/Loading.vue +126 -0
- package/packages/Preview/src/PdfViewer.vue +125 -0
- package/packages/Preview/src/TextViewer.vue +99 -0
- package/packages/Preview/src/main.vue +242 -0
- package/packages/Preview/src/watermark.js +124 -0
- package/packages/ProcessRecord/index.js +7 -0
- package/packages/ProcessRecord/src/main.vue +396 -0
- package/packages/Qrcode/index.js +7 -0
- package/packages/Qrcode/src/Qrcode.vue +110 -0
- package/packages/QuerySqlPreview/index.js +7 -0
- package/packages/QuerySqlPreview/src/QuerySqlPreview.vue +163 -0
- package/packages/Radio/index.js +7 -0
- package/packages/Radio/src/main.vue +174 -0
- package/packages/Rate/index.js +7 -0
- package/packages/Rate/src/main.vue +141 -0
- package/packages/ReadonlyInput/index.js +7 -0
- package/packages/ReadonlyInput/src/main.vue +92 -0
- package/packages/RelevantFlow/index.js +7 -0
- package/packages/RelevantFlow/src/main.vue +579 -0
- package/packages/RelevantFlow/src/relevantFlow.js +35 -0
- package/packages/RoleDialog/index.js +7 -0
- package/packages/RoleDialog/src/main.vue +198 -0
- package/packages/RoleSelector/index.js +7 -0
- package/packages/RoleSelector/src/RoleSelectorDialog.vue +307 -0
- package/packages/RoleSelector/src/RoleSelectorMobileDialog.vue +293 -0
- package/packages/RoleSelector/src/main.vue +367 -0
- package/packages/RoleSelectorInput/index.js +7 -0
- package/packages/RoleSelectorInput/src/main.vue +166 -0
- package/packages/SaveButton/index.js +7 -0
- package/packages/SaveButton/src/main.vue +73 -0
- package/packages/Select/index.js +7 -0
- package/packages/Select/src/main.vue +376 -0
- package/packages/SelectTree/index.js +7 -0
- package/packages/SelectTree/src/SelectTree.vue +360 -0
- package/packages/Selector/index.js +7 -0
- package/packages/Selector/src/main.vue +623 -0
- package/packages/SidebarDialog/index.js +7 -0
- package/packages/SidebarDialog/src/main.vue +156 -0
- package/packages/Slider/index.js +7 -0
- package/packages/Slider/src/main.vue +141 -0
- package/packages/Step/index.js +7 -0
- package/packages/StepLayout/index.js +7 -0
- package/packages/Steps/index.js +7 -0
- package/packages/Steps/src/Step.vue +139 -0
- package/packages/Steps/src/StepLayout.vue +35 -0
- package/packages/Steps/src/Steps.vue +65 -0
- package/packages/Subtable/index.js +33 -0
- package/packages/Subtable/src/SubDialog.vue +2145 -0
- package/packages/Subtable/src/SubExportDialog.vue +115 -0
- package/packages/Subtable/src/SubImportDialog.vue +340 -0
- package/packages/Subtable/src/SubPagination.vue +128 -0
- package/packages/Subtable/src/SubtableBackfill.vue +150 -0
- package/packages/Subtable/src/dialog.js +42 -0
- package/packages/Switch/index.js +7 -0
- package/packages/Switch/src/main.vue +92 -0
- package/packages/Table/index.js +7 -0
- package/packages/Table/src/CustomColumn.vue +353 -0
- package/packages/Table/src/Table.vue +1031 -0
- package/packages/TableColumn/index.js +7 -0
- package/packages/TableColumn/src/main.vue +189 -0
- package/packages/TableSearchField/index.js +7 -0
- package/packages/TableSearchField/src/main.vue +334 -0
- package/packages/TableSearchPanel/index.js +7 -0
- package/packages/TableSearchPanel/src/main.vue +182 -0
- package/packages/Tabs/index.js +7 -0
- package/packages/Tabs/src/Tabs.vue +140 -0
- package/packages/Tag/index.js +7 -0
- package/packages/Tag/src/main.vue +266 -0
- package/packages/TemplateBatchUpdate/index.js +7 -0
- package/packages/TemplateBatchUpdate/src/TemplateBatchUpdateDialog.vue +175 -0
- package/packages/TemplateForm/index.js +7 -0
- package/packages/TemplateForm/src/main.vue +661 -0
- package/packages/TemplateFormDialog/index.js +7 -0
- package/packages/TemplateFormDialog/src/main.vue +97 -0
- package/packages/TemplateIframeDialog/index.js +7 -0
- package/packages/TemplateIframeDialog/src/main.vue +72 -0
- package/packages/TemplateImportResult/index.js +7 -0
- package/packages/TemplateImportResult/src/main.vue +206 -0
- package/packages/TemplatePreview/index.js +19 -0
- package/packages/TemplatePreview/src/TemplatePreview.vue +239 -0
- package/packages/TemplatePreview/src/TemplatePreviewFile.vue +179 -0
- package/packages/TemplatePreview/src/TemplatePreviewImage.vue +83 -0
- package/packages/TemplateTaskCirculate/index.js +7 -0
- package/packages/TemplateTaskCirculate/src/main.vue +258 -0
- package/packages/Text/index.js +7 -0
- package/packages/Text/src/main.vue +58 -0
- package/packages/TimePicker/index.js +7 -0
- package/packages/TimePicker/src/main.vue +149 -0
- package/packages/TimeSelect/index.js +7 -0
- package/packages/TimeSelect/src/main.vue +106 -0
- package/packages/Tree/index.js +7 -0
- package/packages/Tree/src/main.vue +443 -0
- package/packages/TreeDialog/index.js +7 -0
- package/packages/TreeDialog/src/main.vue +322 -0
- package/packages/TreeListDialog/index.js +7 -0
- package/packages/TreeListDialog/src/main.vue +219 -0
- package/packages/Typography/index.js +8 -0
- package/packages/Typography/src/create-header.js +72 -0
- package/packages/UserDialog/index.js +7 -0
- package/packages/UserDialog/src/main.vue +393 -0
- package/packages/UserSelector/index.js +7 -0
- package/packages/UserSelector/src/Organization.vue +131 -0
- package/packages/UserSelector/src/PolicyUser.vue +141 -0
- package/packages/UserSelector/src/RoleUser.vue +139 -0
- package/packages/UserSelector/src/TopContactUser.vue +109 -0
- package/packages/UserSelector/src/UserSelectorDialog.vue +370 -0
- package/packages/UserSelector/src/UserSelectorMobileDialog.vue +332 -0
- package/packages/UserSelector/src/main.vue +519 -0
- package/packages/UserSelectorInput/index.js +7 -0
- package/packages/UserSelectorInput/src/main.vue +374 -0
- package/packages/picture/index.js +7 -0
- package/packages/picture/src/main.vue +736 -0
- package/packages/plugins/Echarts.js +30 -0
- package/packages/plugins/Map.js +29 -0
- package/packages/plugins/Preview.js +49 -0
- package/packages/plugins/Qrcode.js +7 -0
- package/packages/plugins/XLSX.js +7 -0
- package/packages/plugins/wangeditor.js +19 -0
- package/src/assets/icon_found_img.png +0 -0
- package/src/assets/no-data.png +0 -0
- package/src/assets/table-no-data.png +0 -0
- package/src/directive/badge.js +53 -0
- package/src/directive/copy.js +47 -0
- package/src/directive/ellipsis.js +6 -0
- package/src/directive/expandClick.js +23 -0
- package/src/directive/express.js +86 -0
- package/src/directive/form.js +122 -0
- package/src/directive/format.js +24 -0
- package/src/directive/formulas.js +710 -0
- package/src/directive/index.js +42 -0
- package/src/directive/permissionLine.js +59 -0
- package/src/directive/permissionLineLable.js +56 -0
- package/src/directive/permit.js +23 -0
- package/src/directive/popconfirm.js +86 -0
- package/src/directive/relatedQuery.js +61 -0
- package/src/directive/resize.js +18 -0
- package/src/directive/subSort.js +18 -0
- package/src/directive/tableDrag.js +25 -0
- package/src/directive/tooltip.js +37 -0
- package/src/filter/computerSize.js +23 -0
- package/src/filter/dateFormat.js +10 -0
- package/src/filter/index.js +10 -0
- package/src/index.js +295 -0
- package/src/locale/format.js +44 -0
- package/src/locale/index.js +48 -0
- package/src/locale/lang/en.js +59 -0
- package/src/locale/lang/zh-CN.js +59 -0
- package/src/locale/lang/zh-TW.js +57 -0
- package/src/locale/validate/dict.js +278 -0
- package/src/math.js +270 -0
- package/src/mixins/dialog.js +16 -0
- package/src/mixins/emitter.js +33 -0
- package/src/mixins/form.js +33 -0
- package/src/mixins/formDataUpdate.js +32 -0
- package/src/mixins/ganged.js +131 -0
- package/src/mixins/inputName.js +30 -0
- package/src/mixins/linkage.js +414 -0
- package/src/mixins/locale.js +9 -0
- package/src/mixins/mobileMode.js +27 -0
- package/src/mixins/onlineHottable.js +128 -0
- package/src/mixins/onlineSubtable.js +538 -0
- package/src/mixins/permission.js +94 -0
- package/src/mixins/querySqlPreview.js +852 -0
- package/src/mixins/regionValidator.js +70 -0
- package/src/mixins/script.js +37 -0
- package/src/mixins/templatePreview.js +4527 -0
- package/src/plugins/loading/index.js +37 -0
- package/src/plugins/loading/index.vue +18 -0
- package/src/service.js +336 -0
- package/src/services/CustomQuery.js +197 -0
- package/src/services/SubPagination.js +132 -0
- package/src/services/commonScripts.js +45 -0
- package/src/styles/index.scss +7 -0
- package/src/styles/selector.css +140 -0
- package/src/styles/selector.min.css +1 -0
- package/src/styles/selector.scss +130 -0
- package/src/styles/variables.css +67 -0
- package/src/styles/variables.min.css +1 -0
- package/src/styles/variables.scss +109 -0
- package/src/util/base64.js +46 -0
- package/src/util/brower.js +15 -0
- package/src/util/clone.js +61 -0
- package/src/util/path.js +4 -0
- package/src/util/request.js +14 -0
- package/src/utils.js +1242 -0
- package/src/validate.js +256 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="permission != 'n'"
|
|
4
|
+
:class="[
|
|
5
|
+
'inputs',
|
|
6
|
+
formInputsDisplay == 'block'
|
|
7
|
+
? 'ht-form-inputs__block'
|
|
8
|
+
: 'ht-form-inputs__inline',
|
|
9
|
+
]"
|
|
10
|
+
>
|
|
11
|
+
<ht-job-selector
|
|
12
|
+
v-model="value"
|
|
13
|
+
:title="title"
|
|
14
|
+
:form-inputs-display="formInputsDisplay"
|
|
15
|
+
:validate="validate"
|
|
16
|
+
select-label="name"
|
|
17
|
+
:placeholder="placeholder"
|
|
18
|
+
:permission="permission_sub"
|
|
19
|
+
:single="single"
|
|
20
|
+
:config="config"
|
|
21
|
+
:name="inputName"
|
|
22
|
+
:data="data"
|
|
23
|
+
:pagination="pagination"
|
|
24
|
+
:quick-search-props="quickSearchProps"
|
|
25
|
+
:mode="mode"
|
|
26
|
+
:append-to-body="appendToBody"
|
|
27
|
+
@valueChange="valueChange"
|
|
28
|
+
@change="handleChange"
|
|
29
|
+
@search="handleSearch"
|
|
30
|
+
@reset="handleReset"
|
|
31
|
+
@page-change="handlePageChange"
|
|
32
|
+
@row-click="(row) => $emit('row-click', row)"
|
|
33
|
+
@select-data="(data) => $emit('select-data', data)"
|
|
34
|
+
></ht-job-selector>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
<script>
|
|
38
|
+
import permission from '@/mixins/permission.js'
|
|
39
|
+
import inputName from '@/mixins/inputName.js'
|
|
40
|
+
import form from '@/mixins/form.js'
|
|
41
|
+
import mobileMode from '@/mixins/mobileMode.js'
|
|
42
|
+
|
|
43
|
+
export default {
|
|
44
|
+
name: 'HtJobSelectorInput',
|
|
45
|
+
mixins: [permission, inputName, form, mobileMode],
|
|
46
|
+
props: {
|
|
47
|
+
value: String,
|
|
48
|
+
single: Boolean,
|
|
49
|
+
config: Object,
|
|
50
|
+
appendToBody: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false,
|
|
53
|
+
},
|
|
54
|
+
title: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: '选择职务',
|
|
57
|
+
},
|
|
58
|
+
pageSize: {
|
|
59
|
+
type: Number,
|
|
60
|
+
default: 20,
|
|
61
|
+
},
|
|
62
|
+
quickSearchProps: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: 'name,code',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
data() {
|
|
68
|
+
return {
|
|
69
|
+
data: [],
|
|
70
|
+
mode: 'search', // 搜索模式
|
|
71
|
+
searchWord: null,
|
|
72
|
+
pagination: {
|
|
73
|
+
page: 1,
|
|
74
|
+
pageSize: this.pageSize,
|
|
75
|
+
total: 0,
|
|
76
|
+
showTotal: true,
|
|
77
|
+
},
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
mounted() {
|
|
81
|
+
if (!this.data || this.data.length == 0) {
|
|
82
|
+
this.handleLoad()
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
methods: {
|
|
86
|
+
getQueryFilter(page) {
|
|
87
|
+
const queryFilter = {
|
|
88
|
+
querys: [],
|
|
89
|
+
pageBean: this.getPageBean(page),
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (
|
|
93
|
+
this.quickSearchProps &&
|
|
94
|
+
this.quickSearchProps.constructor == String &&
|
|
95
|
+
this.searchWord
|
|
96
|
+
) {
|
|
97
|
+
const props = this.quickSearchProps.split(',')
|
|
98
|
+
props.forEach((item) => {
|
|
99
|
+
let query = {
|
|
100
|
+
property: item,
|
|
101
|
+
value: this.searchWord,
|
|
102
|
+
group: 'main',
|
|
103
|
+
operation: 'LIKE',
|
|
104
|
+
relation: 'OR',
|
|
105
|
+
}
|
|
106
|
+
queryFilter.querys.push(query)
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
return queryFilter
|
|
110
|
+
},
|
|
111
|
+
handleLoad(page) {
|
|
112
|
+
const param = this.getQueryFilter(page)
|
|
113
|
+
this.data = this.data || []
|
|
114
|
+
this.loadAllJob(param)
|
|
115
|
+
},
|
|
116
|
+
// 加载全部岗位
|
|
117
|
+
loadAllJob(param) {
|
|
118
|
+
this.$requestConfig.getJobList(param).then((data) => {
|
|
119
|
+
const { rows, page, pageSize, total } = data
|
|
120
|
+
if (this.isMobile && page > 1) {
|
|
121
|
+
this.data = this.data.concat(rows)
|
|
122
|
+
} else {
|
|
123
|
+
this.data = rows
|
|
124
|
+
}
|
|
125
|
+
const paginationResult = { page, pageSize, total }
|
|
126
|
+
this.$set(this, 'pagination', paginationResult)
|
|
127
|
+
})
|
|
128
|
+
},
|
|
129
|
+
valueChange(value) {
|
|
130
|
+
this.$emit('input', value)
|
|
131
|
+
},
|
|
132
|
+
handleChange(data) {
|
|
133
|
+
this.$emit('change', data)
|
|
134
|
+
},
|
|
135
|
+
handleSearch(word) {
|
|
136
|
+
if (!word || !word.trim()) {
|
|
137
|
+
this.handleReset()
|
|
138
|
+
return
|
|
139
|
+
}
|
|
140
|
+
// 存储搜索关键词
|
|
141
|
+
this.searchWord = word
|
|
142
|
+
// 进入搜索模式
|
|
143
|
+
this.mode = 'search'
|
|
144
|
+
this.handleLoad()
|
|
145
|
+
},
|
|
146
|
+
handleReset() {
|
|
147
|
+
// 置空搜索关键词
|
|
148
|
+
this.searchWord = null
|
|
149
|
+
// 退出搜索模式
|
|
150
|
+
this.mode = 'search'
|
|
151
|
+
this.handleLoad()
|
|
152
|
+
},
|
|
153
|
+
handlePageChange(page) {
|
|
154
|
+
// 搜索模式下或者未进行过滤时,查询所有数据
|
|
155
|
+
this.handleLoad(page)
|
|
156
|
+
},
|
|
157
|
+
// 获取查询参数中的分页信息(不传page时默认查询第一页)
|
|
158
|
+
getPageBean(page) {
|
|
159
|
+
const pageBean = { ...this.pagination }
|
|
160
|
+
delete pageBean['total']
|
|
161
|
+
pageBean.page = page || 1
|
|
162
|
+
return pageBean
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
}
|
|
166
|
+
</script>
|
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-row class="list-selector__container" :gutter="20">
|
|
3
|
+
<el-col
|
|
4
|
+
v-show="!isSearchMode"
|
|
5
|
+
class="list-selector__range"
|
|
6
|
+
:span="rangeSpan"
|
|
7
|
+
>
|
|
8
|
+
<slot name="range"></slot>
|
|
9
|
+
</el-col>
|
|
10
|
+
<el-col class="list-selector__main" :span="mainSpan">
|
|
11
|
+
<el-card shadow="hover">
|
|
12
|
+
<div slot="header" class="selector-main__header">
|
|
13
|
+
<span>{{ `${title}${userListCount}` }}</span>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="selector-main__body">
|
|
16
|
+
<el-scrollbar v-if="data.length > 0" class="selector-list__scroll">
|
|
17
|
+
<ul
|
|
18
|
+
class="selector-main__list"
|
|
19
|
+
:class="{ 'two-columns': isSearchMode }"
|
|
20
|
+
>
|
|
21
|
+
<li
|
|
22
|
+
v-for="(item, index) in data"
|
|
23
|
+
:key="item[primaryFieldProp] + index + item.code"
|
|
24
|
+
>
|
|
25
|
+
<div class="selector-main__item" @click="handleRowClick(item)">
|
|
26
|
+
<el-radio
|
|
27
|
+
v-if="single"
|
|
28
|
+
v-model="singleSelectedPrimary"
|
|
29
|
+
:label="item[primaryFieldProp]"
|
|
30
|
+
></el-radio>
|
|
31
|
+
<el-checkbox
|
|
32
|
+
v-else
|
|
33
|
+
v-model="multipleSelectedPrimary"
|
|
34
|
+
:label="item[primaryFieldProp]"
|
|
35
|
+
></el-checkbox>
|
|
36
|
+
<slot name="detail" :item="item"></slot>
|
|
37
|
+
</div>
|
|
38
|
+
</li>
|
|
39
|
+
</ul>
|
|
40
|
+
</el-scrollbar>
|
|
41
|
+
<div v-else class="list-selector__nodata">
|
|
42
|
+
<el-image :src="noDataImg"></el-image>
|
|
43
|
+
<span>{{ t('el.table.emptyText') }}</span>
|
|
44
|
+
</div>
|
|
45
|
+
<div v-if="data.length > 0" class="selector-main__pager">
|
|
46
|
+
<el-pagination
|
|
47
|
+
layout="prev, pager, next"
|
|
48
|
+
:disabled="loading"
|
|
49
|
+
:page-sizes="pageSizeArr"
|
|
50
|
+
:page-size="pagination.pageSize"
|
|
51
|
+
:pager-count="5"
|
|
52
|
+
:total="pagination.total"
|
|
53
|
+
:current-page="pagination.page"
|
|
54
|
+
@current-change="handleCurrentChange"
|
|
55
|
+
></el-pagination>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</el-card>
|
|
59
|
+
</el-col>
|
|
60
|
+
<el-col class="list-selector__selected" :span="7">
|
|
61
|
+
<el-card shadow="hover">
|
|
62
|
+
<div slot="header" class="selector-selected__header">
|
|
63
|
+
<span>已选择({{ selectsCount }})</span>
|
|
64
|
+
<el-button type="text" @click="clearAllSelects">
|
|
65
|
+
{{ $t('ht.common.clear') }}
|
|
66
|
+
</el-button>
|
|
67
|
+
</div>
|
|
68
|
+
<el-scrollbar v-if="selectsCount > 0" class="selector-selected__scroll">
|
|
69
|
+
<draggable
|
|
70
|
+
v-model="selects"
|
|
71
|
+
class="selector-selected__wrap"
|
|
72
|
+
tag="ul"
|
|
73
|
+
v-bind="dragOptions"
|
|
74
|
+
handle=".list-selector__handle"
|
|
75
|
+
@start="isDragging = true"
|
|
76
|
+
@end="isDragging = false"
|
|
77
|
+
>
|
|
78
|
+
<transition-group type="transition" name="flip-list">
|
|
79
|
+
<li
|
|
80
|
+
v-for="(select, selectIndex) in selects"
|
|
81
|
+
:key="select[primaryFieldProp] + selectIndex"
|
|
82
|
+
class="selector-selected__item"
|
|
83
|
+
>
|
|
84
|
+
<div
|
|
85
|
+
class="selector-selected__item-left"
|
|
86
|
+
@dblclick="removeSelected(select)"
|
|
87
|
+
>
|
|
88
|
+
<ht-icon
|
|
89
|
+
v-if="!single"
|
|
90
|
+
name="sort"
|
|
91
|
+
class="list-selector__handle"
|
|
92
|
+
/>
|
|
93
|
+
<slot name="selected" :select="select"></slot>
|
|
94
|
+
</div>
|
|
95
|
+
<ht-icon
|
|
96
|
+
name="close"
|
|
97
|
+
class="selector-selected__remove"
|
|
98
|
+
:title="t('ht.common.remove')"
|
|
99
|
+
@click="removeSelected(select)"
|
|
100
|
+
/>
|
|
101
|
+
</li>
|
|
102
|
+
</transition-group>
|
|
103
|
+
</draggable>
|
|
104
|
+
</el-scrollbar>
|
|
105
|
+
<div v-else class="el-tree__empty-block">
|
|
106
|
+
<span class="el-tree__empty-text">{{ t('el.table.emptyText') }}</span>
|
|
107
|
+
</div>
|
|
108
|
+
</el-card>
|
|
109
|
+
</el-col>
|
|
110
|
+
</el-row>
|
|
111
|
+
</template>
|
|
112
|
+
<script>
|
|
113
|
+
import Locale from '@/mixins/locale'
|
|
114
|
+
import mobileMode from '@/mixins/mobileMode.js'
|
|
115
|
+
import { debounce } from 'lodash'
|
|
116
|
+
const draggable = require('vuedraggable')
|
|
117
|
+
|
|
118
|
+
export default {
|
|
119
|
+
name: 'HtListSelector',
|
|
120
|
+
components: { draggable },
|
|
121
|
+
mixins: [Locale, mobileMode],
|
|
122
|
+
props: {
|
|
123
|
+
selectLabel: {
|
|
124
|
+
type: String,
|
|
125
|
+
default: 'name',
|
|
126
|
+
},
|
|
127
|
+
tableColumns: {
|
|
128
|
+
type: Array,
|
|
129
|
+
default: () => {
|
|
130
|
+
return []
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
title: {
|
|
134
|
+
type: String,
|
|
135
|
+
},
|
|
136
|
+
value: {
|
|
137
|
+
type: Array,
|
|
138
|
+
default: () => {
|
|
139
|
+
return []
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
data: Array,
|
|
143
|
+
single: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: false,
|
|
146
|
+
},
|
|
147
|
+
//服务端分页
|
|
148
|
+
pagination: {
|
|
149
|
+
type: Object,
|
|
150
|
+
default: () => {
|
|
151
|
+
return {
|
|
152
|
+
page: 1,
|
|
153
|
+
pageSize: 50,
|
|
154
|
+
total: 0,
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
//唯一标识字段
|
|
159
|
+
primaryField: {
|
|
160
|
+
type: String,
|
|
161
|
+
default: '',
|
|
162
|
+
},
|
|
163
|
+
mode: {
|
|
164
|
+
type: String,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
data() {
|
|
168
|
+
return {
|
|
169
|
+
isDragging: false,
|
|
170
|
+
loading: false,
|
|
171
|
+
selects: [],
|
|
172
|
+
currentSelectData: [],
|
|
173
|
+
noDataImg: require('@/assets/no-data.png'),
|
|
174
|
+
pageSizeArr: [10, 50, 100, 200, 300],
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
computed: {
|
|
178
|
+
isSearchMode: function() {
|
|
179
|
+
return this.mode && this.mode == 'search'
|
|
180
|
+
},
|
|
181
|
+
singleSelectedPrimary: {
|
|
182
|
+
get() {
|
|
183
|
+
return this.selects && this.selects.length == 1
|
|
184
|
+
? this.selects[0][this.primaryFieldProp]
|
|
185
|
+
: null
|
|
186
|
+
},
|
|
187
|
+
set() {},
|
|
188
|
+
},
|
|
189
|
+
multipleSelectedPrimary: {
|
|
190
|
+
get() {
|
|
191
|
+
return this.selects.map((select) => select[this.primaryFieldProp])
|
|
192
|
+
},
|
|
193
|
+
set() {},
|
|
194
|
+
},
|
|
195
|
+
primaryFieldProp: function() {
|
|
196
|
+
return this.primaryField ? this.primaryField : 'id'
|
|
197
|
+
},
|
|
198
|
+
dragOptions() {
|
|
199
|
+
return {
|
|
200
|
+
animation: 0,
|
|
201
|
+
group: 'description',
|
|
202
|
+
disabled: false,
|
|
203
|
+
ghostClass: 'ghost',
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
rangeSpan() {
|
|
207
|
+
return this.isSearchMode ? 0 : 7
|
|
208
|
+
},
|
|
209
|
+
mainSpan() {
|
|
210
|
+
return this.isSearchMode ? 17 : 10
|
|
211
|
+
},
|
|
212
|
+
currentPageSelectedCount() {
|
|
213
|
+
return this.single
|
|
214
|
+
? this.singleSelectedPrimary
|
|
215
|
+
? 1
|
|
216
|
+
: 0
|
|
217
|
+
: this.multipleSelectedPrimary.length > 0 && this.data.length > 0
|
|
218
|
+
? this.data.filter(
|
|
219
|
+
(d) =>
|
|
220
|
+
this.multipleSelectedPrimary.indexOf(d[this.primaryFieldProp]) >
|
|
221
|
+
-1
|
|
222
|
+
).length
|
|
223
|
+
: 0
|
|
224
|
+
},
|
|
225
|
+
selectsCount() {
|
|
226
|
+
return this.selects && this.selects.length > 0 ? this.selects.length : 0
|
|
227
|
+
},
|
|
228
|
+
userListCount() {
|
|
229
|
+
return this.pagination.total > 0
|
|
230
|
+
? `(${this.currentPageSelectedCount}/${this.pagination.total})`
|
|
231
|
+
: ''
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
watch: {
|
|
235
|
+
selects: {
|
|
236
|
+
handler(val) {
|
|
237
|
+
this.currentSelectData = val
|
|
238
|
+
this.$emit('current-selected', val)
|
|
239
|
+
},
|
|
240
|
+
deep: true,
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
methods: {
|
|
244
|
+
getSelectedData() {
|
|
245
|
+
return this.currentSelectData
|
|
246
|
+
},
|
|
247
|
+
// 同步已选行到已选数据中去
|
|
248
|
+
syncSelection2selects(row) {
|
|
249
|
+
// 当前在已选数组中,则移除选中状态
|
|
250
|
+
const index = this.selects.findIndex(
|
|
251
|
+
(select) =>
|
|
252
|
+
select[this.primaryFieldProp] == row[this.primaryFieldProp]
|
|
253
|
+
)
|
|
254
|
+
if (index > -1) {
|
|
255
|
+
this.selects.splice(index, 1)
|
|
256
|
+
} else {
|
|
257
|
+
// 复制一份当前已选数据
|
|
258
|
+
let tmpSelects = [...this.selects]
|
|
259
|
+
// 将剩余的已选数据与当前选中的数据合并
|
|
260
|
+
tmpSelects = [...tmpSelects, row]
|
|
261
|
+
// 数组去重
|
|
262
|
+
this.selects = tmpSelects.unique(this.primaryFieldProp)
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
onShow(initSelectors) {
|
|
266
|
+
// 每一次显示选择器时,重置当前选中数据为外部的v-model对象
|
|
267
|
+
if (!initSelectors) {
|
|
268
|
+
this.selects = [...this.value]
|
|
269
|
+
} else {
|
|
270
|
+
this.selects = initSelectors
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
onHide(sure) {
|
|
274
|
+
// 在隐藏选择器时,如果点击的是确定按钮,则将当前选中数据更新到外部的v-model对象上
|
|
275
|
+
if (sure) {
|
|
276
|
+
this.$emit('input', this.selects)
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
// 处理单击数据行的事件(加上防抖,避免用户点击复选框时因为连续触发2次导致无法选中)
|
|
280
|
+
handleRowClick: debounce(function(row) {
|
|
281
|
+
if (this.single) {
|
|
282
|
+
this.selects = [row]
|
|
283
|
+
} else {
|
|
284
|
+
this.syncSelection2selects(row)
|
|
285
|
+
}
|
|
286
|
+
this.$emit('row-click', row)
|
|
287
|
+
}, 10),
|
|
288
|
+
handleCurrentChange(currentPage) {
|
|
289
|
+
this.$emit('page-change', currentPage)
|
|
290
|
+
},
|
|
291
|
+
removeSelected(item) {
|
|
292
|
+
this.selects.remove(item)
|
|
293
|
+
},
|
|
294
|
+
clearAllSelects() {
|
|
295
|
+
this.selects = []
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
}
|
|
299
|
+
</script>
|
|
300
|
+
<style lang="scss" scoped>
|
|
301
|
+
.list-selector__container {
|
|
302
|
+
height: 100%;
|
|
303
|
+
|
|
304
|
+
::v-deep {
|
|
305
|
+
.el-card__header {
|
|
306
|
+
background-color: #fcfcfc;
|
|
307
|
+
padding: 0 20px;
|
|
308
|
+
height: 48px;
|
|
309
|
+
line-height: 48px;
|
|
310
|
+
}
|
|
311
|
+
.el-card__body {
|
|
312
|
+
height: 480px;
|
|
313
|
+
padding: 0;
|
|
314
|
+
}
|
|
315
|
+
.el-scrollbar {
|
|
316
|
+
height: 100%;
|
|
317
|
+
|
|
318
|
+
.el-scrollbar__wrap {
|
|
319
|
+
overflow-x: hidden;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.list-selector__range {
|
|
325
|
+
height: 100%;
|
|
326
|
+
}
|
|
327
|
+
.list-selector__main {
|
|
328
|
+
height: 100%;
|
|
329
|
+
|
|
330
|
+
.list-selector__nodata {
|
|
331
|
+
display: flex;
|
|
332
|
+
flex-direction: column;
|
|
333
|
+
justify-content: center;
|
|
334
|
+
align-items: center;
|
|
335
|
+
|
|
336
|
+
.el-image {
|
|
337
|
+
width: 80%;
|
|
338
|
+
margin-top: 20px;
|
|
339
|
+
}
|
|
340
|
+
span {
|
|
341
|
+
color: #909399;
|
|
342
|
+
font-size: 12px;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.selector-main__header {
|
|
347
|
+
span {
|
|
348
|
+
color: #333;
|
|
349
|
+
font-size: 14px;
|
|
350
|
+
font-weight: bold;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
.selector-main__body {
|
|
354
|
+
height: 100%;
|
|
355
|
+
|
|
356
|
+
.selector-list__scroll {
|
|
357
|
+
height: calc(100% - 42px);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.selector-main__list {
|
|
361
|
+
list-style: none;
|
|
362
|
+
padding: 10px 20px;
|
|
363
|
+
|
|
364
|
+
li + li {
|
|
365
|
+
margin-top: 10px;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
li {
|
|
369
|
+
line-height: 20px;
|
|
370
|
+
break-inside: avoid;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
&.two-columns {
|
|
374
|
+
columns: 2;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.selector-main__item {
|
|
379
|
+
cursor: default;
|
|
380
|
+
display: flex;
|
|
381
|
+
align-items: center;
|
|
382
|
+
|
|
383
|
+
&:hover {
|
|
384
|
+
background-color: #f8f8f8;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.el-checkbox,
|
|
388
|
+
.el-radio {
|
|
389
|
+
display: flex;
|
|
390
|
+
justify-content: center;
|
|
391
|
+
align-items: center;
|
|
392
|
+
margin-right: 0;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.el-radio {
|
|
396
|
+
::v-deep {
|
|
397
|
+
.el-radio__label {
|
|
398
|
+
display: none;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
.el-checkbox {
|
|
403
|
+
::v-deep {
|
|
404
|
+
.el-checkbox__label {
|
|
405
|
+
display: none;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.vue-avatar--wrapper {
|
|
411
|
+
margin-left: 10px;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.selector-main__pager {
|
|
416
|
+
border-top: 1px solid #e6e6e6;
|
|
417
|
+
height: 42px;
|
|
418
|
+
|
|
419
|
+
.el-pagination {
|
|
420
|
+
height: 38px;
|
|
421
|
+
display: flex;
|
|
422
|
+
justify-content: center;
|
|
423
|
+
align-items: center;
|
|
424
|
+
::v-deep {
|
|
425
|
+
.el-pager {
|
|
426
|
+
line-height: 25px;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
.list-selector__selected {
|
|
434
|
+
height: 100%;
|
|
435
|
+
|
|
436
|
+
.selector-selected__header {
|
|
437
|
+
display: flex;
|
|
438
|
+
justify-content: space-between;
|
|
439
|
+
|
|
440
|
+
span {
|
|
441
|
+
color: #333;
|
|
442
|
+
font-size: 14px;
|
|
443
|
+
font-weight: bold;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.selector-selected__wrap {
|
|
448
|
+
list-style: none;
|
|
449
|
+
width: calc(100% - 20px);
|
|
450
|
+
padding: 10px;
|
|
451
|
+
|
|
452
|
+
li {
|
|
453
|
+
line-height: 20px;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
li + li {
|
|
457
|
+
margin-top: 10px;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.selector-selected__item {
|
|
461
|
+
height: 36px;
|
|
462
|
+
padding: 0 6px;
|
|
463
|
+
display: flex;
|
|
464
|
+
align-items: center;
|
|
465
|
+
justify-content: space-between;
|
|
466
|
+
|
|
467
|
+
&:hover {
|
|
468
|
+
background-color: #f8f8f8;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.selector-selected__remove {
|
|
472
|
+
&:hover {
|
|
473
|
+
color: #dd6161;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.selector-selected__item-left {
|
|
478
|
+
display: flex;
|
|
479
|
+
align-items: center;
|
|
480
|
+
|
|
481
|
+
.list-selector__handle {
|
|
482
|
+
cursor: move;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
div {
|
|
486
|
+
margin-left: 10px;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
.el-tree__empty-block {
|
|
492
|
+
height: 80px;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
.flip-list-move {
|
|
496
|
+
transition: transform 0.5s;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
</style>
|