bri-components 1.2.26 → 1.2.28
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/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/bri-components.min.js +7 -7
- package/lib/styles/bri-components.css +1 -1
- package/package.json +1 -1
- package/src/abolish/DshFileShow.vue +0 -137
- package/src/abolish/DshFlatTable.vue +1 -1
- package/src/components/form/{DshAdvSearchForm.vue → DshAdvSearch.vue} +22 -22
- package/src/components/list/BriFlatTable.vue +1 -1
- package/src/components/unit/DshFormUnit.vue +1 -1
- package/src/index.js +52 -49
- package/src/styles/components/form/DshAdvSearchForm.less +2 -2
- package/src/styles/components/index.less +1 -1
- package/src/styles/components/unit/DshFormUnit.less +2 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="DshAdvSearch">
|
|
3
3
|
<!-- 无可筛选字段 -->
|
|
4
4
|
<template v-if="searchFormList.length">
|
|
5
5
|
<!-- 筛选逻辑 -->
|
|
6
|
-
<div class="
|
|
7
|
-
<div class="
|
|
6
|
+
<div class="DshAdvSearch-logic">
|
|
7
|
+
<div class="DshAdvSearch-logic-title">筛选逻辑</div>
|
|
8
8
|
<dsh-select
|
|
9
|
-
class="
|
|
9
|
+
class="DshAdvSearch-logic-option"
|
|
10
10
|
:value="value"
|
|
11
11
|
:propsObj="selfLogicPropsObj"
|
|
12
12
|
@change="change"
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
16
|
<!-- 筛选条件 -->
|
|
17
|
-
<div class="
|
|
18
|
-
<div class="
|
|
17
|
+
<div class="DshAdvSearch-title">筛选条件</div>
|
|
18
|
+
<div class="DshAdvSearch-conditions">
|
|
19
19
|
<template v-for="(conditionItem, conditionIndex) in value.conditions">
|
|
20
20
|
<!-- 'and', 'or' 循环模式 -->
|
|
21
21
|
<div
|
|
22
22
|
v-if="['and', 'or'].includes(conditionItem.logic)"
|
|
23
23
|
:key="`${conditionItem._id}andor`"
|
|
24
|
-
class="
|
|
24
|
+
class="DshAdvSearch-conditions-loop"
|
|
25
25
|
>
|
|
26
26
|
<dsh-advSearch-form
|
|
27
27
|
:isInner="true"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<!-- 删除 -->
|
|
36
36
|
<dsh-icons
|
|
37
37
|
slot="corner"
|
|
38
|
-
class="
|
|
38
|
+
class="DshAdvSearch-conditions-delete"
|
|
39
39
|
:list="$getOperationList(['deleteContion'])"
|
|
40
40
|
@click="$dispatchEvent($event, conditionItem, conditionIndex, value.conditions)"
|
|
41
41
|
/>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
<dsh-form-unit
|
|
46
46
|
v-else-if="['field', undefined].includes(conditionItem.logic)"
|
|
47
47
|
:key="`${conditionItem._id}field`"
|
|
48
|
-
class="
|
|
48
|
+
class="DshAdvSearch-conditions-item"
|
|
49
49
|
:formData="conditionItem"
|
|
50
50
|
:formItem="conditionItem.formItem"
|
|
51
51
|
height="80"
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
|
|
67
67
|
<div
|
|
68
68
|
v-else
|
|
69
|
-
class="
|
|
69
|
+
class="DshAdvSearch-conditions-item-loading"
|
|
70
70
|
>加载中……</div>
|
|
71
71
|
</template>
|
|
72
72
|
|
|
73
73
|
<!-- 动态筛选字段,出现是有条件的 -->
|
|
74
74
|
<dsh-select
|
|
75
75
|
v-else-if="conditionItem.parameterType === 'dynamicText'"
|
|
76
|
-
class="
|
|
76
|
+
class="DshAdvSearch-conditions-item-control"
|
|
77
77
|
:value="conditionItem"
|
|
78
78
|
:propsObj="{
|
|
79
79
|
_name: `${conditionItem.formItem._name}的动态参数`,
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
<!-- 为空和不为空时 啥不显示 -->
|
|
88
88
|
<div
|
|
89
89
|
v-else-if="['isnull', 'notnull', 'nosize', 'size', 'nolist', 'list'].includes(conditionItem.fieldOperator)"
|
|
90
|
-
class="
|
|
90
|
+
class="DshAdvSearch-conditions-item-blank"
|
|
91
91
|
>请选择右上角条件</div>
|
|
92
92
|
</template>
|
|
93
93
|
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
<div
|
|
96
96
|
v-if="!conditionItem.__isDelete__"
|
|
97
97
|
slot="extra"
|
|
98
|
-
class="
|
|
98
|
+
class="DshAdvSearch-conditions-item-extra"
|
|
99
99
|
>
|
|
100
100
|
<!-- 动态or固定 筛选条件,出现是有条件的 -->
|
|
101
101
|
<dsh-select
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<!-- 删除 -->
|
|
129
129
|
<dsh-icons
|
|
130
130
|
slot="corner"
|
|
131
|
-
class="
|
|
131
|
+
class="DshAdvSearch-conditions-delete"
|
|
132
132
|
:list="$getOperationList(['deleteContion'])"
|
|
133
133
|
@click="$dispatchEvent($event, conditionItem, conditionIndex, value.conditions)"
|
|
134
134
|
/>
|
|
@@ -153,26 +153,26 @@
|
|
|
153
153
|
</div>
|
|
154
154
|
|
|
155
155
|
<!-- 按钮s -->
|
|
156
|
-
<div class="
|
|
156
|
+
<div class="DshAdvSearch-btns">
|
|
157
157
|
<!-- 添加筛选项 -->
|
|
158
158
|
<dsh-dropdown
|
|
159
|
-
class="
|
|
160
|
-
menuClass="
|
|
159
|
+
class="DshAdvSearch-btns-field"
|
|
160
|
+
menuClass="DshAdvSearch-btns-field-list"
|
|
161
161
|
:list="searchFormList"
|
|
162
162
|
:useSearch="true"
|
|
163
163
|
trigger="click"
|
|
164
164
|
@click="$dispatchEvent(operationMap.createContion, false, $event)"
|
|
165
165
|
>
|
|
166
166
|
<dsh-buttons
|
|
167
|
-
itemClass="
|
|
167
|
+
itemClass="DshAdvSearch-btns-field-create"
|
|
168
168
|
:list="$getOperationList(['createContion'])"
|
|
169
169
|
></dsh-buttons>
|
|
170
170
|
</dsh-dropdown>
|
|
171
171
|
|
|
172
172
|
<!-- 添加循环层 -->
|
|
173
173
|
<dsh-buttons
|
|
174
|
-
class="
|
|
175
|
-
itemClass="
|
|
174
|
+
class="DshAdvSearch-btns-loop"
|
|
175
|
+
itemClass="DshAdvSearch-btns-loop-create"
|
|
176
176
|
:list="$getOperationList(['createLoopContion'])"
|
|
177
177
|
@click="$dispatchEvent($event, true)"
|
|
178
178
|
></dsh-buttons>
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
<!-- 无可筛选字段 -->
|
|
183
183
|
<div
|
|
184
184
|
v-else
|
|
185
|
-
class="
|
|
185
|
+
class="DshAdvSearch-nodata"
|
|
186
186
|
>
|
|
187
187
|
当前无可筛选的字段
|
|
188
188
|
</div>
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
import searchMixin from "./searchMixin.js";
|
|
194
194
|
|
|
195
195
|
export default {
|
|
196
|
-
name: "
|
|
196
|
+
name: "DshAdvSearch",
|
|
197
197
|
mixins: [
|
|
198
198
|
searchMixin
|
|
199
199
|
],
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
return !!this.oldListData.length;
|
|
152
152
|
},
|
|
153
153
|
filterColumns () {
|
|
154
|
-
return this.columns.filter(colItem =>
|
|
154
|
+
return this.columns.filter(colItem => this.$isAdvRelyShow(colItem, this.outObj));
|
|
155
155
|
},
|
|
156
156
|
showColumns () {
|
|
157
157
|
const operationList = this.$getOperationList(["delete"]);
|
package/src/index.js
CHANGED
|
@@ -8,21 +8,20 @@ import { VeTable, VeLocale } from "vue-easytable";
|
|
|
8
8
|
import CN from "vue-easytable/libs/locale/lang/zh-CN.js";
|
|
9
9
|
|
|
10
10
|
// list
|
|
11
|
+
import BriTable from "./components/list/BriTable.vue";
|
|
12
|
+
import BriFlatTable from "./components/list/BriFlatTable.vue";
|
|
11
13
|
import DshBox from "./components/list/DshBox/DshBox.vue";
|
|
12
|
-
import DshTable from "./components/list/DshBox/DshTable.vue";
|
|
13
14
|
import DshList from "./components/list/DshBox/DshList.vue";
|
|
14
|
-
import
|
|
15
|
+
import DshTable from "./components/list/DshBox/DshTable.vue";
|
|
15
16
|
import DshPage from "./components/list/DshPage.vue";
|
|
16
|
-
import BriFlatTable from "./components/list/BriFlatTable.vue";
|
|
17
17
|
// import DshCascaderTable from "./components/list/DshCascaderTable.vue";
|
|
18
18
|
|
|
19
19
|
// form
|
|
20
20
|
import DshForm from "./components/form/DshForm.vue";
|
|
21
|
-
import
|
|
21
|
+
import DshAdvSearch from "./components/form/DshAdvSearch.vue";
|
|
22
22
|
import DshDefaultSearch from "./components/form/DshDefaultSearch.vue";
|
|
23
23
|
// unit
|
|
24
24
|
import DshListUnit from "./components/unit/DshListUnit.vue";
|
|
25
|
-
|
|
26
25
|
// controls
|
|
27
26
|
import BriControlInput from "./components/controls/BriControlInput.vue";
|
|
28
27
|
import DshInput from "./components/controls/base/DshInput.vue";
|
|
@@ -33,6 +32,7 @@ import DshCascader from "./components/controls/base/DshCascader/DshCascader.vue"
|
|
|
33
32
|
|
|
34
33
|
// other
|
|
35
34
|
import BriLoading from "./components/other/BriLoading.vue";
|
|
35
|
+
import BriIframe from "./components/other/BriIframe.vue";
|
|
36
36
|
import BriSvg from "./components/other/BriSvg.vue";
|
|
37
37
|
import DshAvatar from "./components/other/DshAvatar.vue";
|
|
38
38
|
|
|
@@ -52,7 +52,7 @@ import DshRender from "./components/small/render.js";
|
|
|
52
52
|
import DshListRender from "./components/small/DshListRender.js";
|
|
53
53
|
|
|
54
54
|
/* -------------------- 局部组件 ----------------------- */
|
|
55
|
-
//
|
|
55
|
+
// Error
|
|
56
56
|
import Error500 from "./components/Error/Error500.vue";
|
|
57
57
|
import Error403 from "./components/Error/Error403.vue";
|
|
58
58
|
import Error404 from "./components/Error/Error404.vue";
|
|
@@ -89,7 +89,6 @@ import DshMenuNav from "./components/other/DshMenuNav.vue";
|
|
|
89
89
|
import BriCode from "./components/other/BriCode.vue";
|
|
90
90
|
import BriCollapseTree from "./components/other/BriCollapseTree.vue";
|
|
91
91
|
import BriGantt from "./components/other/BriGantt.vue";
|
|
92
|
-
import BriIframe from "./components/other/BriIframe.vue";
|
|
93
92
|
import DshColorPanel from "./components/other/DshColorPanel.vue";
|
|
94
93
|
|
|
95
94
|
// small
|
|
@@ -101,15 +100,15 @@ const map = {
|
|
|
101
100
|
DshCropper,
|
|
102
101
|
|
|
103
102
|
// list
|
|
103
|
+
BriTable,
|
|
104
104
|
DshBox,
|
|
105
|
-
DshTable,
|
|
106
105
|
DshList,
|
|
107
|
-
|
|
106
|
+
DshTable,
|
|
108
107
|
DshPage,
|
|
109
108
|
|
|
110
109
|
// form
|
|
111
110
|
DshForm,
|
|
112
|
-
|
|
111
|
+
DshAdvSearch,
|
|
113
112
|
DshDefaultSearch,
|
|
114
113
|
// unit
|
|
115
114
|
DshListUnit,
|
|
@@ -142,6 +141,8 @@ const map = {
|
|
|
142
141
|
DshListRender
|
|
143
142
|
};
|
|
144
143
|
const install = function (Vue, opts = {}) {
|
|
144
|
+
const { globalMap = {} } = opts;
|
|
145
|
+
|
|
145
146
|
ViewUI.LoadingBar.config({
|
|
146
147
|
color: "#2d8cf0",
|
|
147
148
|
failedColor: "red",
|
|
@@ -157,10 +158,9 @@ const install = function (Vue, opts = {}) {
|
|
|
157
158
|
});
|
|
158
159
|
|
|
159
160
|
// 挂载组件
|
|
160
|
-
const { globalMap } = opts;
|
|
161
161
|
const componentMap = {
|
|
162
162
|
...map,
|
|
163
|
-
...
|
|
163
|
+
...globalMap
|
|
164
164
|
};
|
|
165
165
|
Object.keys(componentMap).forEach(key => {
|
|
166
166
|
Vue.component(key, componentMap[key]);
|
|
@@ -175,38 +175,61 @@ export {
|
|
|
175
175
|
DshDraggable,
|
|
176
176
|
DshCropper,
|
|
177
177
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
Error404,
|
|
181
|
-
|
|
178
|
+
// list
|
|
179
|
+
BriTable,
|
|
182
180
|
DshBox,
|
|
183
|
-
DshTable,
|
|
184
181
|
DshList,
|
|
185
|
-
|
|
182
|
+
DshTable,
|
|
186
183
|
DshPage,
|
|
187
|
-
BriFlatTable,
|
|
188
|
-
// DshCascaderTable,
|
|
189
|
-
|
|
190
|
-
BriCard,
|
|
191
|
-
BriTree,
|
|
192
|
-
BriTreeItem,
|
|
193
184
|
|
|
194
185
|
// form
|
|
195
186
|
DshForm,
|
|
196
|
-
|
|
187
|
+
DshAdvSearch,
|
|
197
188
|
DshDefaultSearch,
|
|
198
|
-
// unit
|
|
199
189
|
DshListUnit,
|
|
200
|
-
|
|
201
|
-
DshFormUnit,
|
|
202
|
-
|
|
203
190
|
// controls
|
|
191
|
+
BriControlInput,
|
|
204
192
|
DshInput,
|
|
205
193
|
DshNumber,
|
|
206
194
|
DshSelect,
|
|
207
195
|
DshCheckbox,
|
|
208
196
|
DshCascader,
|
|
209
197
|
|
|
198
|
+
// other
|
|
199
|
+
BriLoading,
|
|
200
|
+
BriIframe,
|
|
201
|
+
BriSvg,
|
|
202
|
+
DshAvatar,
|
|
203
|
+
|
|
204
|
+
// small
|
|
205
|
+
BriButton,
|
|
206
|
+
BriDrawer,
|
|
207
|
+
BriTooltip,
|
|
208
|
+
DshButtons,
|
|
209
|
+
DshDropdown,
|
|
210
|
+
DshIcons,
|
|
211
|
+
DshModal,
|
|
212
|
+
DshSteps,
|
|
213
|
+
DshTabs,
|
|
214
|
+
DshTags,
|
|
215
|
+
DshTitle,
|
|
216
|
+
DshRender,
|
|
217
|
+
DshListRender,
|
|
218
|
+
|
|
219
|
+
/* 只局部导出的 */
|
|
220
|
+
Error500,
|
|
221
|
+
Error403,
|
|
222
|
+
Error404,
|
|
223
|
+
|
|
224
|
+
BriFlatTable,
|
|
225
|
+
// DshCascaderTable,
|
|
226
|
+
|
|
227
|
+
BriCard,
|
|
228
|
+
BriTree,
|
|
229
|
+
BriTreeItem,
|
|
230
|
+
|
|
231
|
+
DshFormUnit,
|
|
232
|
+
|
|
210
233
|
BriInputs,
|
|
211
234
|
DshNumberange,
|
|
212
235
|
DshDate,
|
|
@@ -223,32 +246,12 @@ export {
|
|
|
223
246
|
selectUsers,
|
|
224
247
|
selectDepartments,
|
|
225
248
|
|
|
226
|
-
// other
|
|
227
|
-
BriLoading,
|
|
228
|
-
BriSvg,
|
|
229
|
-
DshAvatar,
|
|
230
|
-
|
|
231
249
|
DshMenuNav,
|
|
232
250
|
BriCode,
|
|
233
251
|
BriCollapseTree,
|
|
234
252
|
BriGantt,
|
|
235
|
-
BriIframe,
|
|
236
253
|
DshColorPanel,
|
|
237
254
|
|
|
238
255
|
// small
|
|
239
|
-
BriButton,
|
|
240
|
-
BriDrawer,
|
|
241
|
-
DshButtons,
|
|
242
|
-
BriTooltip,
|
|
243
|
-
DshDropdown,
|
|
244
|
-
DshIcons,
|
|
245
|
-
DshModal,
|
|
246
|
-
DshSteps,
|
|
247
|
-
DshTabs,
|
|
248
|
-
DshTags,
|
|
249
|
-
DshTitle,
|
|
250
|
-
DshRender,
|
|
251
|
-
DshListRender,
|
|
252
|
-
|
|
253
256
|
DshBtnModal
|
|
254
257
|
};
|