bri-components 1.4.41 → 1.4.43
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/package.json +1 -1
- package/src/components/controls/DshControlInput.vue +15 -1
- package/src/components/controls/mixins/controlMixin.js +7 -2
- package/src/components/controls/mixins/userAndDepartMixin.js +0 -1
- package/src/components/controls/senior/selectDepartments.vue +10 -7
- package/src/components/controls/senior/selectUsers/selectUsers.vue +2 -2
- package/src/components/small/BriTooltip.vue +1 -1
package/package.json
CHANGED
|
@@ -111,7 +111,21 @@
|
|
|
111
111
|
this.$emit("clickItem", ...params);
|
|
112
112
|
},
|
|
113
113
|
clickClear () {
|
|
114
|
-
|
|
114
|
+
const cb = () => {
|
|
115
|
+
this.$emit("clear");
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
if (this.propsObj._useDeleteTip === true) {
|
|
119
|
+
this.$Modal.confirm({
|
|
120
|
+
title: "提示",
|
|
121
|
+
content: "确定清除全部内容吗?",
|
|
122
|
+
onOk: () => {
|
|
123
|
+
cb();
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
} else {
|
|
127
|
+
cb();
|
|
128
|
+
}
|
|
115
129
|
}
|
|
116
130
|
}
|
|
117
131
|
};
|
|
@@ -105,12 +105,17 @@ export default {
|
|
|
105
105
|
commonDealPropsObj () {
|
|
106
106
|
const selectControlTypes = ["coordinates", "date", "switch", "select", "checkbox", "file", "region", "regions", "cascader", "cascaders", "users", "departments", "reference"];
|
|
107
107
|
return {
|
|
108
|
-
// TODO: 此处的请输入可能还有请选择之类的,待处理
|
|
109
108
|
_placeholder: this.canEdit && this.propsObj._enterType !== "calculate" && this.propsObj._disabled !== true && this.propsObj._readonly !== true
|
|
110
109
|
? (this.propsObj._placeholder || `${selectControlTypes.includes(this.controlType) ? "选择" : "输入"}${this.propsObj._name}`)
|
|
111
110
|
: "",
|
|
112
111
|
_clearable: this.finalCanEdit && !this.propsObj._disabled && !this.propsObj._readonly && (this.propsObj._clearable === undefined ? true : this.propsObj._clearable),
|
|
113
|
-
_disabled: !(this.finalCanEdit && !this.propsObj._disabled && !this.propsObj._readonly)
|
|
112
|
+
_disabled: !(this.finalCanEdit && !this.propsObj._disabled && !this.propsObj._readonly),
|
|
113
|
+
// 目前部门、用户在用,以后还会增多
|
|
114
|
+
_useDeleteTip: this.isInDftSearch || this.isInSearch
|
|
115
|
+
? false
|
|
116
|
+
: this.propsObj._useDeleteTip == undefined
|
|
117
|
+
? false
|
|
118
|
+
: this.propsObj._useDeleteTip // 删除项进行提示(筛选下删除项不提示)
|
|
114
119
|
};
|
|
115
120
|
},
|
|
116
121
|
// 是否为多选模式
|
|
@@ -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
|
<!-- 搜索选择框 -->
|
|
@@ -266,10 +266,10 @@
|
|
|
266
266
|
},
|
|
267
267
|
|
|
268
268
|
curShowValList () {
|
|
269
|
-
return this.curValList.map(
|
|
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 () {
|
|
@@ -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
|
<!-- 搜索选择框 -->
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
class="selectUsers-show-unit-img"
|
|
191
191
|
/>
|
|
192
192
|
<span
|
|
193
|
-
:key="item._key"
|
|
193
|
+
:key="item._key + 'img'"
|
|
194
194
|
class="selectUsers-show-unit-text"
|
|
195
195
|
>
|
|
196
196
|
{{ getShowName(item) }}
|