bri-components 1.4.42 → 1.4.44
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/lib/0.bri-components.min.js +1 -1
- package/lib/1.bri-components.min.js +1 -1
- package/lib/10.bri-components.min.js +1 -1
- package/lib/2.bri-components.min.js +1 -1
- package/lib/3.bri-components.min.js +1 -1
- package/lib/4.bri-components.min.js +1 -1
- package/lib/5.bri-components.min.js +1 -1
- package/lib/6.bri-components.min.js +1 -1
- package/lib/7.bri-components.min.js +1 -1
- package/lib/8.bri-components.min.js +1 -1
- package/lib/9.bri-components.min.js +1 -1
- package/lib/bri-components.min.js +4 -76
- package/package.json +1 -1
- package/src/components/controls/base/BriUpload/BriUpload.vue +6 -5
- package/src/components/controls/base/DshDate/DshDaterange.vue +57 -25
- package/src/components/controls/base/DshNumber/DshNumber.vue +4 -6
- package/src/components/controls/mixins/userAndDepartMixin.js +3 -3
- package/src/components/controls/senior/selectDepartments.vue +23 -19
- package/src/components/controls/senior/selectUsers/selectUsers.vue +8 -8
- package/src/components/list/BriCard.vue +43 -0
- package/src/components/list/BriTree.vue +59 -1
- package/src/components/list/BriTreeItem.vue +53 -0
- package/src/components/list/DshPage.vue +95 -0
- package/src/components/list/mixins/tableBaseMixin.js +1 -4
- package/src/components/other/BriAvatar.vue +77 -12
- package/src/components/other/BriCode.vue +9 -2
- package/src/components/other/BriCollapseTree.vue +95 -2
- package/src/components/other/BriGantt.vue +319 -6
- package/src/components/other/BriIframe.vue +20 -0
- package/src/components/other/BriLoading.vue +61 -2
- package/src/components/other/DshColorPanel.vue +43 -0
- package/src/components/other/DshMenuNav.vue +84 -0
- package/src/components/small/BriDrawer.vue +43 -8
- package/src/components/small/BriTooltip.vue +1 -1
- package/src/components/small/DshBtnModal.vue +6 -0
- package/src/components/small/DshButtons.vue +34 -0
- package/src/components/small/DshIcons.vue +10 -0
- package/src/components/small/DshSteps.vue +61 -0
- package/src/components/small/DshTitle.vue +14 -0
- package/src/styles/components/index.less +3 -29
- package/src/styles/components/list/BriCard.less +0 -40
- package/src/styles/components/list/BriTree.less +0 -56
- package/src/styles/components/list/BriTreeItem.less +0 -50
- package/src/styles/components/list/DshPage.less +0 -92
- package/src/styles/components/other/BriAvatar.less +0 -64
- package/src/styles/components/other/BriCode.less +0 -5
- package/src/styles/components/other/BriCollapseTree.less +0 -91
- package/src/styles/components/other/BriGantt.less +0 -313
- package/src/styles/components/other/BriIframe.less +0 -17
- package/src/styles/components/other/BriLoading.less +0 -57
- package/src/styles/components/other/DshColorPanel.less +0 -40
- package/src/styles/components/other/DshMenuNav.less +0 -82
- package/src/styles/components/small/BriDrawer.less +0 -34
- package/src/styles/components/small/DshBtnModal.less +0 -3
- package/src/styles/components/small/DshButtons.less +0 -31
- package/src/styles/components/small/DshIcons.less +0 -7
- package/src/styles/components/small/DshSteps.less +0 -58
- package/src/styles/components/small/DshTitle.less +0 -15
- /package/src/styles/components/{small/BriButton.less → BriButton.less} +0 -0
- /package/src/styles/components/{list/BriTable.less → BriTable.less} +0 -0
- /package/src/styles/components/{small/DshModal.less → DshModal.less} +0 -0
package/package.json
CHANGED
|
@@ -17,16 +17,17 @@
|
|
|
17
17
|
'BriUpload-unit': !canEdit && isInTable,
|
|
18
18
|
[`BriUpload-${showMode}`]: true,
|
|
19
19
|
}"
|
|
20
|
+
@click="clickUpload"
|
|
21
|
+
@drop.prevent="handleDrop"
|
|
22
|
+
@paste="handlePaste"
|
|
23
|
+
@dragover.prevent="dragOver = true"
|
|
24
|
+
@dragleave.prevent="dragOver = false"
|
|
20
25
|
>
|
|
26
|
+
|
|
21
27
|
<!-- 编辑 -->
|
|
22
28
|
<div
|
|
23
29
|
v-if="!disabled"
|
|
24
30
|
:class="classes"
|
|
25
|
-
@click="clickUpload"
|
|
26
|
-
@drop.prevent="handleDrop"
|
|
27
|
-
@paste="handlePaste"
|
|
28
|
-
@dragover.prevent="dragOver = true"
|
|
29
|
-
@dragleave.prevent="dragOver = false"
|
|
30
31
|
>
|
|
31
32
|
<input
|
|
32
33
|
ref="input"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
:options="options1"
|
|
54
54
|
:open="open1"
|
|
55
55
|
:transfer="true"
|
|
56
|
-
:transfer-class-name="
|
|
56
|
+
:transfer-class-name="selfPropsObj._transferClassName"
|
|
57
57
|
@on-change="changeVal($event, 1)"
|
|
58
58
|
@on-open-change="changeOpen($event, 1)"
|
|
59
59
|
>
|
|
@@ -119,27 +119,27 @@
|
|
|
119
119
|
dateTypes: ["date", "datetime"]
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
_key: "
|
|
123
|
-
name: "
|
|
124
|
-
numbers: [
|
|
122
|
+
_key: "dyn_add_3_days",
|
|
123
|
+
name: "三天后",
|
|
124
|
+
numbers: [1],
|
|
125
125
|
dateTypes: ["date", "datetime"]
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
_key: "
|
|
129
|
-
name: "
|
|
128
|
+
_key: "dyn_subtract_7_days",
|
|
129
|
+
name: "七天前",
|
|
130
130
|
numbers: [0],
|
|
131
131
|
dateTypes: ["date", "datetime"]
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
_key: "
|
|
135
|
-
name: "
|
|
134
|
+
_key: "dyn_add_7_days",
|
|
135
|
+
name: "七天后",
|
|
136
136
|
numbers: [1],
|
|
137
137
|
dateTypes: ["date", "datetime"]
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
|
-
_key: "
|
|
141
|
-
name: "
|
|
142
|
-
numbers: [
|
|
140
|
+
_key: "dyn_subtract_30_days",
|
|
141
|
+
name: "三十天前",
|
|
142
|
+
numbers: [0],
|
|
143
143
|
dateTypes: ["date", "datetime"]
|
|
144
144
|
},
|
|
145
145
|
{
|
|
@@ -148,16 +148,24 @@
|
|
|
148
148
|
numbers: [1],
|
|
149
149
|
dateTypes: ["date", "datetime"]
|
|
150
150
|
},
|
|
151
|
+
|
|
152
|
+
// 月
|
|
151
153
|
{
|
|
152
154
|
_key: "last_month_start",
|
|
153
155
|
name: "上月初",
|
|
154
156
|
numbers: [0],
|
|
155
157
|
dateTypes: ["month", "date", "datetime"]
|
|
156
158
|
},
|
|
159
|
+
{
|
|
160
|
+
_key: "dyn_month_start",
|
|
161
|
+
name: "上月末",
|
|
162
|
+
numbers: [1],
|
|
163
|
+
dateTypes: ["month", "date", "datetime"]
|
|
164
|
+
},
|
|
157
165
|
{
|
|
158
166
|
_key: "dyn_month_start",
|
|
159
167
|
name: "月初",
|
|
160
|
-
numbers: [0
|
|
168
|
+
numbers: [0],
|
|
161
169
|
dateTypes: ["month", "date", "datetime"]
|
|
162
170
|
},
|
|
163
171
|
{
|
|
@@ -166,6 +174,32 @@
|
|
|
166
174
|
numbers: [1],
|
|
167
175
|
dateTypes: ["month", "date", "datetime"]
|
|
168
176
|
},
|
|
177
|
+
{
|
|
178
|
+
_key: "dyn_nextmonth_start",
|
|
179
|
+
name: "下月初",
|
|
180
|
+
numbers: [0],
|
|
181
|
+
dateTypes: ["month", "date", "datetime"]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
_key: "dyn_nextmonth_end",
|
|
185
|
+
name: "下月末",
|
|
186
|
+
numbers: [1],
|
|
187
|
+
dateTypes: ["month", "date", "datetime"]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
_key: "last_month_21",
|
|
191
|
+
name: "上月21日",
|
|
192
|
+
numbers: [0],
|
|
193
|
+
dateTypes: ["month", "date", "datetime"]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
_key: "dyn_month_21",
|
|
197
|
+
name: "本月21日",
|
|
198
|
+
numbers: [0, 1],
|
|
199
|
+
dateTypes: ["month", "date", "datetime"]
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
// 季度、年
|
|
169
203
|
{
|
|
170
204
|
_key: "dyn_quarter_start",
|
|
171
205
|
name: "本季初",
|
|
@@ -201,18 +235,6 @@
|
|
|
201
235
|
name: "次年末",
|
|
202
236
|
numbers: [1],
|
|
203
237
|
dateTypes: ["year", "date", "datetime"]
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
_key: "last_month_21",
|
|
207
|
-
name: "上月21日",
|
|
208
|
-
numbers: [0],
|
|
209
|
-
dateTypes: ["month", "date", "datetime"]
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
_key: "dyn_month_21",
|
|
213
|
-
name: "本月21日",
|
|
214
|
-
numbers: [0, 1],
|
|
215
|
-
dateTypes: ["month", "date", "datetime"]
|
|
216
238
|
}
|
|
217
239
|
]
|
|
218
240
|
};
|
|
@@ -222,6 +244,7 @@
|
|
|
222
244
|
return {
|
|
223
245
|
_icon: "ios-calendar-outline",
|
|
224
246
|
_useShortcuts: true,
|
|
247
|
+
_transferClassName: "DshDaterange-dropdown",
|
|
225
248
|
|
|
226
249
|
...this.propsObj,
|
|
227
250
|
...this.commonDealPropsObj
|
|
@@ -336,7 +359,7 @@
|
|
|
336
359
|
};
|
|
337
360
|
</script>
|
|
338
361
|
|
|
339
|
-
<style lang="less">
|
|
362
|
+
<style lang="less" scoped>
|
|
340
363
|
.DshDaterange {
|
|
341
364
|
width: 100%;
|
|
342
365
|
display: flex;
|
|
@@ -356,3 +379,12 @@
|
|
|
356
379
|
}
|
|
357
380
|
}
|
|
358
381
|
</style>
|
|
382
|
+
<style lang="less">
|
|
383
|
+
.DshDaterange {
|
|
384
|
+
&-dropdown {
|
|
385
|
+
.ivu-picker-panel-sidebar {
|
|
386
|
+
width: 100px;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
</style>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
<!-- 查看 -->
|
|
30
30
|
<template v-else>
|
|
31
|
-
<!--
|
|
31
|
+
<!-- 单元格的查看-进度条模式 -->
|
|
32
32
|
<div
|
|
33
33
|
v-if="selfPropsObj._showProgress"
|
|
34
34
|
:class="{
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</Progress>
|
|
46
46
|
</div>
|
|
47
47
|
|
|
48
|
-
<!--
|
|
48
|
+
<!-- 单元格的查看-非进度条模式 和 详情页的查看 -->
|
|
49
49
|
<template v-else>
|
|
50
50
|
<bri-tooltip
|
|
51
51
|
:content="showVal"
|
|
@@ -160,12 +160,10 @@
|
|
|
160
160
|
progressNum () {
|
|
161
161
|
return this.$isEmptyData(this.curVal) || this.curVal < 0
|
|
162
162
|
? 0
|
|
163
|
-
: this.curVal > 100
|
|
164
|
-
? 100
|
|
165
|
-
: Math.round(this.curVal * 100) / 100;
|
|
163
|
+
: Math.round((this.curVal > 100 ? 100 : this.curVal) * 100) / 100;
|
|
166
164
|
},
|
|
167
165
|
progressStr () {
|
|
168
|
-
return
|
|
166
|
+
return this.$numToStrAndUnit(this.$isEmptyData(this.curVal) ? 0 : this.curVal, this.selfPropsObj);
|
|
169
167
|
},
|
|
170
168
|
showVal () {
|
|
171
169
|
return this.$isEmptyData(this.curVal)
|
|
@@ -84,9 +84,9 @@ export default {
|
|
|
84
84
|
return this.tmpValList.map(item => item._key);
|
|
85
85
|
},
|
|
86
86
|
showVal () {
|
|
87
|
-
return this.$isEmptyData(this.
|
|
87
|
+
return this.$isEmptyData(this.curValShowList)
|
|
88
88
|
? this.emptyShowVal
|
|
89
|
-
: this.
|
|
89
|
+
: this.curValShowList
|
|
90
90
|
.map(item => this.getShowName(item))
|
|
91
91
|
.join("、");
|
|
92
92
|
}
|
|
@@ -96,7 +96,7 @@ export default {
|
|
|
96
96
|
if (newBool) {
|
|
97
97
|
this.modalInited = true;
|
|
98
98
|
this.showModalContent = true;
|
|
99
|
-
this.tmpValList = this.$deepCopy(this.
|
|
99
|
+
this.tmpValList = this.$deepCopy(this.curValShowList);
|
|
100
100
|
|
|
101
101
|
if (this.loadinged !== true) {
|
|
102
102
|
this.getData();
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<dsh-control-input
|
|
17
17
|
v-if="canEdit"
|
|
18
18
|
:class="commonClass"
|
|
19
|
-
:value="
|
|
19
|
+
:value="curValShowList"
|
|
20
20
|
:disabled="disabled"
|
|
21
21
|
:heightAuto="isHeightAuto"
|
|
22
22
|
:propsObj="selfPropsObj"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
</div>
|
|
29
29
|
</bri-tooltip>
|
|
30
30
|
|
|
31
|
-
<!--
|
|
31
|
+
<!-- 点击选中项后的自定义内容 -->
|
|
32
32
|
<dsh-render :render="itemTipRender"></dsh-render>
|
|
33
33
|
|
|
34
34
|
<!-- 搜索选择框 -->
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
class="selectDepartments-show"
|
|
120
120
|
>
|
|
121
121
|
<!-- 有值 -->
|
|
122
|
-
<template v-if="!$isEmptyData(
|
|
122
|
+
<template v-if="!$isEmptyData(curValShowList)">
|
|
123
123
|
<!-- 高度自由时 -->
|
|
124
124
|
<dsh-tags
|
|
125
125
|
v-if="isHeightAuto"
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
'selectDepartments-show-auto': true
|
|
129
129
|
}"
|
|
130
130
|
itemClass="selectDepartments-show-auto-tag"
|
|
131
|
-
:list="
|
|
131
|
+
:list="curValShowList"
|
|
132
132
|
></dsh-tags>
|
|
133
133
|
|
|
134
134
|
<!-- 高度不自由(不换行) -->
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
'selectDepartments-show-ellipsis': true
|
|
146
146
|
}"
|
|
147
147
|
itemClass="selectDepartments-show-ellipsis-tag"
|
|
148
|
-
:list="
|
|
148
|
+
:list="curValShowList"
|
|
149
149
|
></dsh-tags>
|
|
150
150
|
</bri-tooltip>
|
|
151
151
|
</template>
|
|
@@ -265,11 +265,11 @@
|
|
|
265
265
|
return this.transformDepartList(departList, this.tmpValKeys);
|
|
266
266
|
},
|
|
267
267
|
|
|
268
|
-
|
|
269
|
-
return this.curValList.map(
|
|
268
|
+
curValShowList () {
|
|
269
|
+
return this.curValList.map(itemObj => {
|
|
270
270
|
return {
|
|
271
|
-
...
|
|
272
|
-
full_name: this.useFullName ?
|
|
271
|
+
...itemObj,
|
|
272
|
+
full_name: this.useFullName ? this.getFullName(itemObj) : undefined
|
|
273
273
|
};
|
|
274
274
|
});
|
|
275
275
|
}
|
|
@@ -278,10 +278,13 @@
|
|
|
278
278
|
methods: {
|
|
279
279
|
/* ----------- 接口方法和加工方法 --------- */
|
|
280
280
|
// 获取显示名
|
|
281
|
-
getShowName (
|
|
281
|
+
getShowName (itemObj) {
|
|
282
282
|
return this.useFullName
|
|
283
|
-
?
|
|
284
|
-
:
|
|
283
|
+
? this.getFullName(itemObj)
|
|
284
|
+
: itemObj.name;
|
|
285
|
+
},
|
|
286
|
+
getFullName (itemObj) {
|
|
287
|
+
return itemObj.full_name || this.$getTreeLinealDatasByNode(itemObj, this.departShowList, "_key").map(levelObj => levelObj.name).join("/") || itemObj.name;
|
|
285
288
|
},
|
|
286
289
|
|
|
287
290
|
getData () {
|
|
@@ -385,29 +388,30 @@
|
|
|
385
388
|
display: flex;
|
|
386
389
|
flex-wrap: wrap;
|
|
387
390
|
align-items: center;
|
|
388
|
-
line-height: 30px;
|
|
389
391
|
|
|
390
392
|
&-label {}
|
|
391
393
|
|
|
392
394
|
&-item {
|
|
393
|
-
|
|
394
|
-
height: 24px;
|
|
395
|
+
height: auto;
|
|
395
396
|
padding: 2px 6px 2px 10px;
|
|
396
397
|
margin: 3px 5px;
|
|
397
|
-
border-radius:
|
|
398
|
+
border-radius: 14px;
|
|
398
399
|
background-color: @themeColor;
|
|
399
400
|
color: #ffffff;
|
|
400
|
-
font-size: 12px;
|
|
401
401
|
display: flex;
|
|
402
402
|
align-items: center;
|
|
403
403
|
|
|
404
404
|
&-name {
|
|
405
|
-
|
|
405
|
+
padding: 2px 0px;
|
|
406
|
+
line-height: 16px;
|
|
407
|
+
font-size: 12px;
|
|
408
|
+
// .dsh-ellipsis();
|
|
406
409
|
}
|
|
407
410
|
|
|
408
411
|
&-delete {
|
|
409
|
-
padding:
|
|
412
|
+
padding: 2px;
|
|
410
413
|
margin-left: 5px;
|
|
414
|
+
line-height: 16px;
|
|
411
415
|
font-size: 14px;
|
|
412
416
|
cursor: pointer;
|
|
413
417
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<slot>
|
|
15
15
|
<dsh-control-input
|
|
16
16
|
:class="commonClass"
|
|
17
|
-
:value="
|
|
17
|
+
:value="curValShowList"
|
|
18
18
|
:disabled="disabled"
|
|
19
19
|
:heightAuto="isHeightAuto"
|
|
20
20
|
:propsObj="selfPropsObj"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
</bri-tooltip>
|
|
28
28
|
|
|
29
|
-
<!--
|
|
29
|
+
<!-- 点击选中项后的自定义内容 -->
|
|
30
30
|
<dsh-render :render="itemTipRender"></dsh-render>
|
|
31
31
|
|
|
32
32
|
<!-- 搜索选择框 -->
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
class="selectUsers-show"
|
|
172
172
|
>
|
|
173
173
|
<!-- 有值 -->
|
|
174
|
-
<template v-if="!$isEmptyData(
|
|
174
|
+
<template v-if="!$isEmptyData(curValShowList)">
|
|
175
175
|
<!-- 单元格查看 -->
|
|
176
176
|
<template v-if="isUnitShow">
|
|
177
177
|
<!-- 高度自由时 -->
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
'selectUsers-show-unit': true
|
|
184
184
|
}"
|
|
185
185
|
>
|
|
186
|
-
<template v-for="item in
|
|
186
|
+
<template v-for="item in curValShowList">
|
|
187
187
|
<img
|
|
188
188
|
:src="getAvatarUrl(item)"
|
|
189
189
|
:key="item._key"
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
'selectUsers-show-ellipsis': true,
|
|
212
212
|
'selectUsers-show-unit': true
|
|
213
213
|
}">
|
|
214
|
-
<template v-for="item in
|
|
214
|
+
<template v-for="item in curValShowList">
|
|
215
215
|
<img
|
|
216
216
|
:src="getAvatarUrl(item)"
|
|
217
217
|
:key="item._key"
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
'selectUsers-show-auto': true
|
|
239
239
|
}"
|
|
240
240
|
itemClass="selectUsers-show-auto-tag"
|
|
241
|
-
:list="
|
|
241
|
+
:list="curValShowList"
|
|
242
242
|
></dsh-tags>
|
|
243
243
|
|
|
244
244
|
<!-- 高度不自由(不换行) -->
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
'selectUsers-show-ellipsis': true
|
|
256
256
|
}"
|
|
257
257
|
itemClass="selectUsers-show-ellipsis-tag"
|
|
258
|
-
:list="
|
|
258
|
+
:list="curValShowList"
|
|
259
259
|
></dsh-tags>
|
|
260
260
|
</bri-tooltip>
|
|
261
261
|
</template>
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
this.tmpValKeys.includes(userKey)
|
|
442
442
|
);
|
|
443
443
|
},
|
|
444
|
-
|
|
444
|
+
curValShowList () {
|
|
445
445
|
return this.curValList;
|
|
446
446
|
}
|
|
447
447
|
},
|
|
@@ -50,3 +50,46 @@
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
</script>
|
|
53
|
+
|
|
54
|
+
<style lang="less">
|
|
55
|
+
.BriCard {
|
|
56
|
+
.item {
|
|
57
|
+
height: 50px;
|
|
58
|
+
margin-bottom: 10px;
|
|
59
|
+
float: left;
|
|
60
|
+
width: 33.3%;
|
|
61
|
+
padding: 0 10px;
|
|
62
|
+
min-width: 160px;
|
|
63
|
+
|
|
64
|
+
&-normal {
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
border: 1px solid #eaeaea;
|
|
68
|
+
position: relative;
|
|
69
|
+
border-radius: 5px;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
|
|
72
|
+
.label {
|
|
73
|
+
.dsh-ellipsis();
|
|
74
|
+
display: block;
|
|
75
|
+
width: 160px;
|
|
76
|
+
height: 100%;
|
|
77
|
+
position: absolute;
|
|
78
|
+
left: 50%;
|
|
79
|
+
margin-left: -80px;
|
|
80
|
+
line-height: 50px;
|
|
81
|
+
text-align: center;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-active {
|
|
86
|
+
background-color: @themeColor;
|
|
87
|
+
color: #fff;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&-nodata {
|
|
92
|
+
#dsh-nodata();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
</style>
|
|
@@ -186,7 +186,6 @@
|
|
|
186
186
|
this.treeData = loop(this.data);
|
|
187
187
|
},
|
|
188
188
|
methods: {
|
|
189
|
-
|
|
190
189
|
// 点击添加节点按钮
|
|
191
190
|
clickAddNode (item, node, a) {
|
|
192
191
|
this.treeFormData = {
|
|
@@ -469,3 +468,62 @@
|
|
|
469
468
|
}
|
|
470
469
|
};
|
|
471
470
|
</script>
|
|
471
|
+
|
|
472
|
+
<style lang="less">
|
|
473
|
+
.BriTree {
|
|
474
|
+
max-width: 1200px;
|
|
475
|
+
min-width: 720px;
|
|
476
|
+
height: 100%;
|
|
477
|
+
margin: 0px auto;
|
|
478
|
+
background: #fff;
|
|
479
|
+
display: flex;
|
|
480
|
+
flex-direction: column;
|
|
481
|
+
|
|
482
|
+
&-action {
|
|
483
|
+
padding: 10px;
|
|
484
|
+
display: flex;
|
|
485
|
+
justify-content: flex-end;
|
|
486
|
+
|
|
487
|
+
&-create {
|
|
488
|
+
display: flex;
|
|
489
|
+
flex-direction: row;
|
|
490
|
+
align-items: center;
|
|
491
|
+
|
|
492
|
+
.ivu-icon {
|
|
493
|
+
font-size: 20px;
|
|
494
|
+
font-weight: bold;
|
|
495
|
+
margin-right: -10px;
|
|
496
|
+
vertical-align: middle;
|
|
497
|
+
transform: translate(0, -1px);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
&-tree {
|
|
503
|
+
width: 100%;
|
|
504
|
+
flex: 1;
|
|
505
|
+
min-height: 0px;
|
|
506
|
+
overflow: auto;
|
|
507
|
+
|
|
508
|
+
.ivu-tree-title {
|
|
509
|
+
width: calc(100% - 18px);
|
|
510
|
+
}
|
|
511
|
+
.ivu-tree-arrow {
|
|
512
|
+
margin-top: 5px;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
&-modal {
|
|
517
|
+
&-content {
|
|
518
|
+
&-btns {
|
|
519
|
+
.dsh-padding20();
|
|
520
|
+
text-align: right;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
&-dropdown-menu {
|
|
526
|
+
width: 242px!important;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
</style>
|
|
@@ -108,3 +108,56 @@
|
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
</script>
|
|
111
|
+
|
|
112
|
+
<style lang="less">
|
|
113
|
+
.BriTreeItem {
|
|
114
|
+
padding-left: 16px;
|
|
115
|
+
|
|
116
|
+
&-content {
|
|
117
|
+
line-height: 36px;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
display: flex;
|
|
120
|
+
|
|
121
|
+
&:hover {
|
|
122
|
+
background-color: @btn-hover;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&-expand {
|
|
126
|
+
width: 28px;
|
|
127
|
+
text-align: center;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&-select {
|
|
131
|
+
width: 100%;
|
|
132
|
+
color: rgba(36, 36, 63, 0.9);
|
|
133
|
+
|
|
134
|
+
.ivu-checkbox-inner {
|
|
135
|
+
border-color: rgba(36, 36, 63, 0.3)
|
|
136
|
+
}
|
|
137
|
+
.ivu-checkbox {
|
|
138
|
+
margin-right: 2px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&-radio {
|
|
142
|
+
.ivu-checkbox-inner {
|
|
143
|
+
border-radius: 50%;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&-text {
|
|
149
|
+
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.default-enter,
|
|
154
|
+
.default-leave-to {
|
|
155
|
+
opacity: 0;
|
|
156
|
+
max-height: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&-children {
|
|
160
|
+
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
</style>
|