bri-components 1.4.59 → 1.4.61
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/base/DshDate/DshDate.vue +1 -11
- package/src/components/controls/base/DshDate/DshDaterange.vue +1 -11
- package/src/components/controls/mixins/dateMixin.js +1 -11
- package/src/components/list/mixins/tableBaseMixin.js +4 -0
- package/src/styles/reset-iview-controls.less +6 -0
package/package.json
CHANGED
|
@@ -20,16 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
<!-- 日期、日期时间、年、月 -->
|
|
22
22
|
<template v-else>
|
|
23
|
-
<!-- <DatePicker
|
|
24
|
-
class="DshDate-edit"
|
|
25
|
-
v-model="curVal"
|
|
26
|
-
:type="subType"
|
|
27
|
-
:placeholder="selfPropsObj._placeholder"
|
|
28
|
-
:disabled="disabled"
|
|
29
|
-
:clearable="clearable"
|
|
30
|
-
:options="options"
|
|
31
|
-
:transfer="selfPropsObj._transfer"
|
|
32
|
-
></DatePicker> -->
|
|
33
23
|
<DatePicker
|
|
34
24
|
class="DshDate-edit"
|
|
35
25
|
:model-value="curVal"
|
|
@@ -150,7 +140,7 @@
|
|
|
150
140
|
shortcuts: this.getShortCuts(index),
|
|
151
141
|
disabledDate: (date) => {
|
|
152
142
|
const curDateStr = this.$transformDate(date, "/", this.subType);
|
|
153
|
-
const rangeBool = this
|
|
143
|
+
const rangeBool = this.$isWithinRange(curDateStr, this.minDate, this.maxDate, this.subType);
|
|
154
144
|
|
|
155
145
|
const selfValue = {
|
|
156
146
|
...this.value,
|
|
@@ -91,7 +91,6 @@
|
|
|
91
91
|
selfPropsObj () {
|
|
92
92
|
return {
|
|
93
93
|
// _icon: "ios-calendar-outline",
|
|
94
|
-
_transferClassName: "DshDaterange-dropdown",
|
|
95
94
|
|
|
96
95
|
...this.basePropsObj
|
|
97
96
|
};
|
|
@@ -137,7 +136,7 @@
|
|
|
137
136
|
shortcuts: this.getShortCuts(index),
|
|
138
137
|
disabledDate: (date) => {
|
|
139
138
|
const curDateStr = this.$transformDate(date, "/", this.subType);
|
|
140
|
-
const rangeBool = this
|
|
139
|
+
const rangeBool = this.$isWithinRange(curDateStr, this.minDate, this.maxDate, this.subType);
|
|
141
140
|
|
|
142
141
|
return !rangeBool;
|
|
143
142
|
}
|
|
@@ -167,12 +166,3 @@
|
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
168
|
</style>
|
|
170
|
-
<style lang="less">
|
|
171
|
-
.DshDaterange {
|
|
172
|
-
&-dropdown {
|
|
173
|
-
.ivu-picker-panel-sidebar {
|
|
174
|
-
width: 100px;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import controlMixin from "./controlMixin.js";
|
|
2
|
-
import { dynDateData } from "
|
|
2
|
+
import { dynDateData } from "bri-datas";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
mixins: [
|
|
@@ -127,16 +127,6 @@ export default {
|
|
|
127
127
|
}
|
|
128
128
|
}))
|
|
129
129
|
: [];
|
|
130
|
-
},
|
|
131
|
-
getRangeCompareBool (curDateStr) {
|
|
132
|
-
const compareFunc = (curDateStr, compareDateStr, compareOperator) => {
|
|
133
|
-
return curDateStr && compareDateStr
|
|
134
|
-
? this.$isComparedAccord(curDateStr, compareDateStr, compareOperator, "date", this.subType, this.subType)
|
|
135
|
-
: true;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
return compareFunc(curDateStr, this.minDate, "gtAet") &&
|
|
139
|
-
compareFunc(curDateStr, this.maxDate, ["last_month_end", "dyn_month_end", "dyn_nextmonth_end", "dyn_quarter_end", "dyn_year_end", "dyn_nextyear_end"].includes(this.selfPropsObj._maxDate) ? "lt" : "ltAet");
|
|
140
130
|
}
|
|
141
131
|
}
|
|
142
132
|
};
|
|
@@ -234,6 +234,9 @@ export default {
|
|
|
234
234
|
allScreenKey () {
|
|
235
235
|
return this.propsObj.allScreenKey;
|
|
236
236
|
},
|
|
237
|
+
flowInstId () {
|
|
238
|
+
return this.propsObj.flowInstId;
|
|
239
|
+
},
|
|
237
240
|
|
|
238
241
|
commonPropsObj () {
|
|
239
242
|
return {
|
|
@@ -689,6 +692,7 @@ export default {
|
|
|
689
692
|
screenKey: this.screenKey,
|
|
690
693
|
_id: this.parentDataId,
|
|
691
694
|
_key: this.controlKey,
|
|
695
|
+
flowinst: this.flowInstId,
|
|
692
696
|
advSearch: this.finalTableAdvSearch
|
|
693
697
|
};
|
|
694
698
|
},
|