lw-cdp-ui 1.3.44 → 1.3.45
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/dist/components/lwFlow/components/lfNodePanel.vue +1 -1
- package/dist/components/lwFormJson/JsonItem.vue +1 -1
- package/dist/components/lwFormJson/StatsConfig.vue +2 -2
- package/dist/components/lwFormJson/index.vue +3 -2
- package/dist/components/lwLayout/components/setting.vue +19 -16
- package/dist/components/lwLayout/init.vue +2 -1
- package/dist/components/lwSearch/index.vue +101 -138
- package/dist/lw-cdp-ui.esm.js +14 -10
- package/dist/lw-cdp-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -503,10 +503,10 @@ export default {
|
|
|
503
503
|
max-height: calc(100vh - 137px);
|
|
504
504
|
.form-title {
|
|
505
505
|
font-size: 12px;
|
|
506
|
-
color:
|
|
506
|
+
color: var(--color-title);
|
|
507
507
|
font-weight: bold;
|
|
508
508
|
padding: 15px 10px;
|
|
509
|
-
background-color: var(--
|
|
509
|
+
background-color: var(--color-white-1);
|
|
510
510
|
}
|
|
511
511
|
.form-body {
|
|
512
512
|
padding: 10px;
|
|
@@ -324,6 +324,7 @@ export default {
|
|
|
324
324
|
.menu-list {
|
|
325
325
|
:deep(.el-collapse) {
|
|
326
326
|
border-top: 0;
|
|
327
|
+
background-color: var(--color-white);
|
|
327
328
|
}
|
|
328
329
|
.menu-list-title {
|
|
329
330
|
:deep(.el-collapse-item__header) {
|
|
@@ -355,10 +356,10 @@ export default {
|
|
|
355
356
|
.aside-right {
|
|
356
357
|
border-right: 0;
|
|
357
358
|
border-left: 1px solid var(--el-border-color-light);
|
|
358
|
-
background-color:
|
|
359
|
+
background-color: var(--color-white);
|
|
359
360
|
}
|
|
360
361
|
.form-json-body {
|
|
361
362
|
max-height: calc(100vh - 137px);
|
|
362
|
-
background-color:
|
|
363
|
+
background-color: var(--color-white);
|
|
363
364
|
}
|
|
364
365
|
</style>
|
|
@@ -48,7 +48,7 @@ import colorTool from '@/utils/color'
|
|
|
48
48
|
import Lang from './lang.vue'
|
|
49
49
|
|
|
50
50
|
export default {
|
|
51
|
-
components: {
|
|
51
|
+
components: {Lang},
|
|
52
52
|
data() {
|
|
53
53
|
return {
|
|
54
54
|
layout: this.$store.state.global.layout,
|
|
@@ -60,39 +60,42 @@ export default {
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
watch: {
|
|
63
|
-
layout
|
|
64
|
-
|
|
63
|
+
layout: {
|
|
64
|
+
handler(val) {
|
|
65
|
+
this.$store.commit('SET_layout', val)
|
|
66
|
+
document.body.setAttribute('data-layout', val)
|
|
67
|
+
},
|
|
68
|
+
immediate: true
|
|
65
69
|
},
|
|
66
70
|
menuIsCollapse(val) {
|
|
67
|
-
this.$store.commit(
|
|
68
|
-
|
|
69
|
-
this.$tool.data.set(
|
|
71
|
+
this.$store.commit('TOGGLE_menuIsCollapse')
|
|
72
|
+
if (val) {
|
|
73
|
+
this.$tool.data.set('APP_menuIsCollapse', 'true')
|
|
70
74
|
} else {
|
|
71
|
-
this.$tool.data.remove(
|
|
75
|
+
this.$tool.data.remove('APP_menuIsCollapse')
|
|
72
76
|
}
|
|
73
77
|
},
|
|
74
78
|
layoutTags(val) {
|
|
75
|
-
this.$store.commit(
|
|
79
|
+
this.$store.commit('TOGGLE_layoutTags')
|
|
76
80
|
if (val) {
|
|
77
|
-
this.$tool.data.remove(
|
|
81
|
+
this.$tool.data.remove('APP_LAYOUTTAGS')
|
|
78
82
|
} else {
|
|
79
|
-
this.$tool.data.set(
|
|
83
|
+
this.$tool.data.set('APP_LAYOUTTAGS', 'hide')
|
|
80
84
|
}
|
|
81
|
-
|
|
82
85
|
},
|
|
83
86
|
dark(val) {
|
|
84
87
|
document.body.setAttribute('data-theme', val)
|
|
85
|
-
this.$tool.data.set(
|
|
88
|
+
this.$tool.data.set('APP_THEME', val)
|
|
86
89
|
},
|
|
87
90
|
colorPrimary(val) {
|
|
88
|
-
document.documentElement.style.setProperty('--el-color-primary', val)
|
|
91
|
+
document.documentElement.style.setProperty('--el-color-primary', val)
|
|
89
92
|
for (let i = 1; i <= 9; i++) {
|
|
90
|
-
document.documentElement.style.setProperty(`--el-color-primary-light-${i}`, colorTool.lighten(val, i / 10))
|
|
93
|
+
document.documentElement.style.setProperty(`--el-color-primary-light-${i}`, colorTool.lighten(val, i / 10))
|
|
91
94
|
}
|
|
92
95
|
for (let i = 1; i <= 9; i++) {
|
|
93
|
-
document.documentElement.style.setProperty(`--el-color-primary-dark-${i}`, colorTool.darken(val, i / 10))
|
|
96
|
+
document.documentElement.style.setProperty(`--el-color-primary-dark-${i}`, colorTool.darken(val, i / 10))
|
|
94
97
|
}
|
|
95
|
-
this.$tool.data.set(
|
|
98
|
+
this.$tool.data.set('APP_COLOR', val)
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
101
|
}
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
|
|
60
60
|
<style lang="scss" scoped>
|
|
61
61
|
:deep(.el-main) {
|
|
62
|
-
background-color:
|
|
62
|
+
background-color: var(--color-white-1);
|
|
63
63
|
}
|
|
64
64
|
.footer-body {
|
|
65
65
|
text-align: right;
|
|
@@ -69,6 +69,7 @@ export default {
|
|
|
69
69
|
border: 1px solid var(--el-fill-color);
|
|
70
70
|
height: calc(100vh - 85px);
|
|
71
71
|
padding: 20px;
|
|
72
|
+
overflow: auto;
|
|
72
73
|
}
|
|
73
74
|
.notice-block {
|
|
74
75
|
position: relative;
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
<el-form-item :label-width="hideLabel ? 0 : labelWidth"
|
|
16
16
|
:required="item.required"
|
|
17
17
|
:label="hideLabel ? '' : $t(item.label)">
|
|
18
|
-
<template
|
|
19
|
-
v-if="item.dateSection && item.prop && item.prop.length === 2">
|
|
18
|
+
<template v-if="item.dateSection && item.prop && item.prop.length === 2">
|
|
20
19
|
<el-row :gutter="10"
|
|
21
20
|
class="date-section">
|
|
22
21
|
<el-col :span="12"
|
|
@@ -53,12 +52,13 @@
|
|
|
53
52
|
</el-row>
|
|
54
53
|
|
|
55
54
|
<div class="control">
|
|
56
|
-
<el-button
|
|
55
|
+
<el-button text
|
|
56
|
+
bg
|
|
57
|
+
type="primary"
|
|
57
58
|
@click="resetForm('searchForm')">
|
|
58
59
|
{{$t('btn.reset')}}
|
|
59
60
|
</el-button>
|
|
60
|
-
<el-button
|
|
61
|
-
type="primary"
|
|
61
|
+
<el-button type="primary"
|
|
62
62
|
@click="submitForm('searchForm')">
|
|
63
63
|
{{$t('btn.query')}}
|
|
64
64
|
</el-button>
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
</template>
|
|
75
75
|
|
|
76
76
|
<script>
|
|
77
|
-
import SearchInput from
|
|
78
|
-
import SearchSelect from
|
|
79
|
-
import SearchDate from
|
|
80
|
-
import SearchDates from
|
|
81
|
-
import SearchDateRange from
|
|
82
|
-
import SearchCascader from
|
|
83
|
-
import dayjs from
|
|
77
|
+
import SearchInput from './input/input.vue'
|
|
78
|
+
import SearchSelect from './select/select.vue'
|
|
79
|
+
import SearchDate from './date/date.vue'
|
|
80
|
+
import SearchDates from './dates/dates.vue'
|
|
81
|
+
import SearchDateRange from './dateRange/dateRange.vue'
|
|
82
|
+
import SearchCascader from './cascader/cascader.vue'
|
|
83
|
+
import dayjs from 'dayjs'
|
|
84
84
|
|
|
85
85
|
export default {
|
|
86
86
|
components: {
|
|
@@ -91,63 +91,63 @@ export default {
|
|
|
91
91
|
SearchDateRange,
|
|
92
92
|
SearchCascader
|
|
93
93
|
},
|
|
94
|
-
name:
|
|
94
|
+
name: 'lwSearch',
|
|
95
95
|
props: {
|
|
96
96
|
options: {
|
|
97
97
|
// 配置项
|
|
98
98
|
type: Array,
|
|
99
|
-
default: () => []
|
|
99
|
+
default: () => []
|
|
100
100
|
},
|
|
101
101
|
modelValue: {
|
|
102
102
|
// 绑定的结果对象
|
|
103
103
|
type: Object,
|
|
104
|
-
default: () => ({})
|
|
104
|
+
default: () => ({})
|
|
105
105
|
},
|
|
106
106
|
labelWidth: {
|
|
107
107
|
// label全局宽度
|
|
108
108
|
type: String,
|
|
109
|
-
default:
|
|
109
|
+
default: '70px'
|
|
110
110
|
},
|
|
111
111
|
labelPosition: {
|
|
112
112
|
// label全局位置
|
|
113
113
|
type: String,
|
|
114
|
-
default:
|
|
114
|
+
default: 'left'
|
|
115
115
|
},
|
|
116
116
|
isSave: {
|
|
117
117
|
// 是否保存功能
|
|
118
118
|
type: Boolean,
|
|
119
|
-
default: false
|
|
119
|
+
default: false
|
|
120
120
|
},
|
|
121
121
|
isCloud: {
|
|
122
122
|
// 是否保存功能
|
|
123
123
|
type: Boolean,
|
|
124
|
-
default: false
|
|
124
|
+
default: false
|
|
125
125
|
},
|
|
126
126
|
saveKey: {
|
|
127
127
|
// 保存功能指定localStorage searchSaveData对象中key
|
|
128
128
|
type: String,
|
|
129
|
-
default:
|
|
129
|
+
default: ''
|
|
130
130
|
},
|
|
131
131
|
isExpand: {
|
|
132
132
|
// 默认是否展开
|
|
133
133
|
type: Boolean,
|
|
134
|
-
default: false
|
|
134
|
+
default: false
|
|
135
135
|
},
|
|
136
136
|
hasExpandAll: {
|
|
137
137
|
// 默认收起展示数量
|
|
138
138
|
type: Boolean,
|
|
139
|
-
default: false
|
|
139
|
+
default: false
|
|
140
140
|
},
|
|
141
141
|
hideLabel: {
|
|
142
142
|
// 是否隐藏标签
|
|
143
143
|
type: Boolean,
|
|
144
|
-
default: false
|
|
144
|
+
default: false
|
|
145
145
|
},
|
|
146
146
|
labelAlign: {
|
|
147
147
|
//标签对齐方式
|
|
148
148
|
type: String,
|
|
149
|
-
default:
|
|
150
|
-
}
|
|
149
|
+
default: 'right'
|
|
150
|
+
}
|
|
151
151
|
},
|
|
152
152
|
data() {
|
|
153
153
|
return {
|
|
@@ -156,145 +156,143 @@ export default {
|
|
|
156
156
|
isExpandStatus: false, // 是否展开搜索条件
|
|
157
157
|
isChange: false, // 是否展示变式下拉框
|
|
158
158
|
saveList: [], // 搜索保存数据列表
|
|
159
|
-
saveFormName:
|
|
159
|
+
saveFormName: '', // 当前保存数据名称
|
|
160
160
|
isSaveShow: false, // 是否展示保存操作
|
|
161
161
|
isSelectShow: false, // 是否展示选择操作
|
|
162
|
-
selectForm:
|
|
162
|
+
selectForm: '', // 当前选中数据
|
|
163
163
|
isExpandAll: true,
|
|
164
164
|
span: 6,
|
|
165
165
|
currentTemplate: {},
|
|
166
166
|
variantList: [],
|
|
167
167
|
varianId: [],
|
|
168
|
-
systemName:
|
|
169
|
-
}
|
|
168
|
+
systemName: 'shopManagement'
|
|
169
|
+
}
|
|
170
170
|
},
|
|
171
171
|
watch: {
|
|
172
172
|
modelValue: {
|
|
173
173
|
handler(newVal) {
|
|
174
174
|
if (JSON.stringify(newVal) !== JSON.stringify(this.form)) {
|
|
175
|
-
this.form = JSON.parse(JSON.stringify(newVal))
|
|
175
|
+
this.form = JSON.parse(JSON.stringify(newVal))
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
|
-
deep: true
|
|
178
|
+
deep: true
|
|
179
179
|
},
|
|
180
180
|
form: {
|
|
181
181
|
handler(newVal) {
|
|
182
182
|
if (JSON.stringify(newVal) !== JSON.stringify(this.modelValue)) {
|
|
183
|
-
this.$emit(
|
|
183
|
+
this.$emit('update:modelValue', newVal)
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
|
-
deep: true
|
|
186
|
+
deep: true
|
|
187
187
|
},
|
|
188
188
|
options: {
|
|
189
189
|
handler(newVal) {
|
|
190
190
|
// 变化时计算稿表格高度
|
|
191
|
-
this.$bus.$emit(
|
|
191
|
+
this.$bus.$emit('setTableHeight')
|
|
192
192
|
},
|
|
193
|
-
deep: true
|
|
194
|
-
}
|
|
193
|
+
deep: true
|
|
194
|
+
}
|
|
195
195
|
},
|
|
196
196
|
computed: {
|
|
197
197
|
// 是否显示展开关闭按钮
|
|
198
198
|
isExpandNumber() {
|
|
199
199
|
let spans = this.options.reduce((sum, item) => sum + (item.span || this.span), 0)
|
|
200
|
-
return
|
|
200
|
+
return spans - 24 > 0
|
|
201
201
|
},
|
|
202
202
|
// 是否行内显示按钮
|
|
203
203
|
isExpandRow() {
|
|
204
|
-
const spans = this.options.reduce((sum, item) => sum + (item.span || this.span), 0)
|
|
205
|
-
const remainder = spans % 24
|
|
204
|
+
const spans = this.options.reduce((sum, item) => sum + (item.span || this.span), 0)
|
|
205
|
+
const remainder = spans % 24
|
|
206
206
|
|
|
207
207
|
if (spans > 18) {
|
|
208
|
-
return !this.isExpandStatus || remainder === 0 || (remainder > 18 && remainder < 24)
|
|
208
|
+
return !this.isExpandStatus || remainder === 0 || (remainder > 18 && remainder < 24)
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
return false
|
|
212
|
-
}
|
|
212
|
+
}
|
|
213
213
|
},
|
|
214
214
|
mounted() {
|
|
215
|
-
this.isExpandStatus = this.isExpand
|
|
216
|
-
this.form = JSON.parse(JSON.stringify(this.modelValue))
|
|
215
|
+
this.isExpandStatus = this.isExpand
|
|
216
|
+
this.form = JSON.parse(JSON.stringify(this.modelValue))
|
|
217
217
|
this.defaultForm =
|
|
218
|
-
JSON.stringify(this.defaultForm) ===
|
|
219
|
-
? JSON.parse(JSON.stringify(this.modelValue))
|
|
220
|
-
: this.defaultForm;
|
|
218
|
+
JSON.stringify(this.defaultForm) === '{}' ? JSON.parse(JSON.stringify(this.modelValue)) : this.defaultForm
|
|
221
219
|
},
|
|
222
220
|
methods: {
|
|
223
221
|
// 是否默认展示
|
|
224
222
|
isDefaultShow(index) {
|
|
225
223
|
let span = this.options.slice(0, index + 1).reduce((sum, item) => sum + (item.span || this.span), 0)
|
|
226
|
-
return span <= 24
|
|
224
|
+
return span <= 24
|
|
227
225
|
},
|
|
228
226
|
// 切换展开状态
|
|
229
227
|
handleExpandStatus() {
|
|
230
|
-
this.isExpandStatus = !this.isExpandStatus
|
|
231
|
-
this.$bus.$emit(
|
|
228
|
+
this.isExpandStatus = !this.isExpandStatus
|
|
229
|
+
this.$bus.$emit('setTableHeight')
|
|
232
230
|
},
|
|
233
231
|
// 根据renderType设置对应组件
|
|
234
232
|
setComponent(type) {
|
|
235
233
|
const typeList = {
|
|
236
|
-
input:
|
|
237
|
-
select:
|
|
238
|
-
date:
|
|
239
|
-
dates:
|
|
240
|
-
dateRange:
|
|
241
|
-
cascader:
|
|
242
|
-
}
|
|
243
|
-
return typeList[type] ||
|
|
234
|
+
input: 'SearchInput',
|
|
235
|
+
select: 'SearchSelect',
|
|
236
|
+
date: 'SearchDate',
|
|
237
|
+
dates: 'SearchDates',
|
|
238
|
+
dateRange: 'SearchDateRange',
|
|
239
|
+
cascader: 'SearchCascader'
|
|
240
|
+
}
|
|
241
|
+
return typeList[type] || 'SearchInput'
|
|
244
242
|
},
|
|
245
243
|
// 触发提交
|
|
246
244
|
submitForm(formEl) {
|
|
247
|
-
if (!this.$refs[formEl]) return
|
|
248
|
-
this.$refs[formEl].validate(
|
|
245
|
+
if (!this.$refs[formEl]) return
|
|
246
|
+
this.$refs[formEl].validate(valid => {
|
|
249
247
|
if (valid) {
|
|
250
|
-
this.$emit(
|
|
248
|
+
this.$emit('search')
|
|
251
249
|
}
|
|
252
|
-
})
|
|
250
|
+
})
|
|
253
251
|
},
|
|
254
252
|
// 重置条件
|
|
255
253
|
resetForm(formEl) {
|
|
256
|
-
if (!this.$refs[formEl]) return
|
|
257
|
-
this.$refs[formEl].resetFields()
|
|
258
|
-
this.form = JSON.parse(JSON.stringify(this.defaultForm))
|
|
254
|
+
if (!this.$refs[formEl]) return
|
|
255
|
+
this.$refs[formEl].resetFields()
|
|
256
|
+
this.form = JSON.parse(JSON.stringify(this.defaultForm))
|
|
259
257
|
// 保留页面table分页数据
|
|
260
|
-
this.form.size = this.modelValue.size
|
|
258
|
+
this.form.size = this.modelValue.size
|
|
261
259
|
// this.form.page = this.modelValue.page;
|
|
262
|
-
this.$emit(
|
|
260
|
+
this.$emit('reset')
|
|
263
261
|
},
|
|
264
262
|
|
|
265
263
|
// 关闭变式
|
|
266
264
|
handleChangeHide(vis) {
|
|
267
265
|
if (vis === false) {
|
|
268
|
-
this.isChange = false
|
|
269
|
-
this.isSaveShow = false
|
|
270
|
-
this.isSelectShow = false
|
|
271
|
-
this.saveFormName =
|
|
272
|
-
this.selectForm =
|
|
266
|
+
this.isChange = false
|
|
267
|
+
this.isSaveShow = false
|
|
268
|
+
this.isSelectShow = false
|
|
269
|
+
this.saveFormName = ''
|
|
270
|
+
this.selectForm = ''
|
|
273
271
|
}
|
|
274
272
|
},
|
|
275
273
|
// 保存搜索表单
|
|
276
274
|
handleSaveSearchForm() {
|
|
277
275
|
if (this.saveKey && this.isSave) {
|
|
278
276
|
if (Object.keys(this.form).length === 0) {
|
|
279
|
-
this.$message.error(
|
|
280
|
-
return
|
|
277
|
+
this.$message.error('搜索条件为空!')
|
|
278
|
+
return
|
|
281
279
|
}
|
|
282
280
|
let tempObj = Object.assign({}, this.form, {
|
|
283
281
|
searchSaveName: this.saveFormName,
|
|
284
|
-
id: dayjs().valueOf() + Math.random() +
|
|
285
|
-
})
|
|
282
|
+
id: dayjs().valueOf() + Math.random() + ''
|
|
283
|
+
})
|
|
286
284
|
let obj = {
|
|
287
285
|
route: this.$route.name,
|
|
288
286
|
system: this.systemName,
|
|
289
|
-
variant: [tempObj]
|
|
290
|
-
}
|
|
291
|
-
let resObj = this.variantList.find(
|
|
292
|
-
return it.route === this.$route.name
|
|
293
|
-
})
|
|
287
|
+
variant: [tempObj]
|
|
288
|
+
}
|
|
289
|
+
let resObj = this.variantList.find(it => {
|
|
290
|
+
return it.route === this.$route.name
|
|
291
|
+
})
|
|
294
292
|
if (resObj) {
|
|
295
|
-
resObj.variant.push(tempObj)
|
|
293
|
+
resObj.variant.push(tempObj)
|
|
296
294
|
} else {
|
|
297
|
-
this.variantList.push(obj)
|
|
295
|
+
this.variantList.push(obj)
|
|
298
296
|
}
|
|
299
297
|
if (this.isCloud) {
|
|
300
298
|
let params = {
|
|
@@ -302,50 +300,50 @@ export default {
|
|
|
302
300
|
username: JSON.parse(sessionStorage.userAuthInfo).username,
|
|
303
301
|
system: this.systemName,
|
|
304
302
|
menu: this.saveKey,
|
|
305
|
-
content: JSON.stringify(this.variantList)
|
|
306
|
-
}
|
|
303
|
+
content: JSON.stringify(this.variantList)
|
|
304
|
+
}
|
|
307
305
|
} else {
|
|
308
|
-
localStorage.setItem(
|
|
306
|
+
localStorage.setItem('variantList', JSON.stringify(this.variantList))
|
|
309
307
|
}
|
|
310
308
|
}
|
|
311
309
|
},
|
|
312
310
|
// 选择保存过的搜索历史
|
|
313
311
|
handleSearchSelect(val) {
|
|
314
|
-
let obj = this.saveList.find(
|
|
315
|
-
return it.id === val
|
|
316
|
-
})
|
|
312
|
+
let obj = this.saveList.find(it => {
|
|
313
|
+
return it.id === val
|
|
314
|
+
})
|
|
317
315
|
if (obj) {
|
|
318
|
-
let rObj = JSON.parse(JSON.stringify(obj))
|
|
319
|
-
delete rObj.id
|
|
320
|
-
delete rObj.searchSaveName
|
|
321
|
-
this.$emit(
|
|
316
|
+
let rObj = JSON.parse(JSON.stringify(obj))
|
|
317
|
+
delete rObj.id
|
|
318
|
+
delete rObj.searchSaveName
|
|
319
|
+
this.$emit('update:modelValue', rObj)
|
|
322
320
|
}
|
|
323
321
|
},
|
|
324
322
|
// 删除保存过的搜索历史
|
|
325
323
|
handleDeleteSearchList(index) {
|
|
326
|
-
let tempList = JSON.parse(JSON.stringify(this.saveList))
|
|
327
|
-
tempList.splice(index, 1)
|
|
324
|
+
let tempList = JSON.parse(JSON.stringify(this.saveList))
|
|
325
|
+
tempList.splice(index, 1)
|
|
328
326
|
if (this.saveKey && this.isSave) {
|
|
329
327
|
// 更新逻辑,视具体API而定
|
|
330
328
|
}
|
|
331
329
|
},
|
|
332
330
|
// 禁止选择日期
|
|
333
|
-
disabledDate(date, currentSource, limitDate =
|
|
331
|
+
disabledDate(date, currentSource, limitDate = '') {
|
|
334
332
|
if (limitDate) {
|
|
335
|
-
if (currentSource ===
|
|
336
|
-
return dayjs(date.getTime()).isAfter(dayjs(limitDate),
|
|
333
|
+
if (currentSource === 'prev') {
|
|
334
|
+
return dayjs(date.getTime()).isAfter(dayjs(limitDate), 'day')
|
|
337
335
|
}
|
|
338
|
-
if (currentSource ===
|
|
339
|
-
return dayjs(date.getTime()).isBefore(dayjs(limitDate),
|
|
336
|
+
if (currentSource === 'next') {
|
|
337
|
+
return dayjs(date.getTime()).isBefore(dayjs(limitDate), 'day')
|
|
340
338
|
}
|
|
341
339
|
}
|
|
342
340
|
},
|
|
343
341
|
// 一键收缩展开
|
|
344
342
|
expandAll() {
|
|
345
|
-
this.isExpandAll = !this.isExpandAll
|
|
343
|
+
this.isExpandAll = !this.isExpandAll
|
|
346
344
|
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
349
347
|
</script>
|
|
350
348
|
<style lang="scss" scoped>
|
|
351
349
|
@keyframes slide-animation {
|
|
@@ -431,42 +429,7 @@ export default {
|
|
|
431
429
|
display: flex;
|
|
432
430
|
justify-content: flex-end;
|
|
433
431
|
align-items: flex-end;
|
|
434
|
-
|
|
435
|
-
width: 90px;
|
|
436
|
-
height: 32px;
|
|
437
|
-
margin-right: 0px;
|
|
438
|
-
border: none;
|
|
439
|
-
background-color: #eeeefc;
|
|
440
|
-
color: var(--el-color-primary);
|
|
441
|
-
border-radius: 2px;
|
|
442
|
-
font-size: 12px;
|
|
443
|
-
& > span {
|
|
444
|
-
display: flex;
|
|
445
|
-
align-items: center;
|
|
446
|
-
justify-content: center;
|
|
447
|
-
|
|
448
|
-
.el-icon--left {
|
|
449
|
-
margin-right: 5px;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
.submit {
|
|
455
|
-
width: 90px;
|
|
456
|
-
height: 32px;
|
|
457
|
-
background-color: var(--el-color-primary);
|
|
458
|
-
border: none;
|
|
459
|
-
border-radius: 2px;
|
|
460
|
-
& > span {
|
|
461
|
-
display: flex;
|
|
462
|
-
align-items: center;
|
|
463
|
-
justify-content: center;
|
|
464
|
-
|
|
465
|
-
.el-icon--left {
|
|
466
|
-
margin-right: 5px;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}
|
|
432
|
+
|
|
470
433
|
|
|
471
434
|
.expand-button {
|
|
472
435
|
display: flex;
|
package/dist/lw-cdp-ui.esm.js
CHANGED
|
@@ -2486,7 +2486,9 @@ function xd(e, n, t, r, a, o) {
|
|
|
2486
2486
|
}, 8, ["class"]),
|
|
2487
2487
|
D("div", Id, [
|
|
2488
2488
|
C(c, {
|
|
2489
|
-
|
|
2489
|
+
text: "",
|
|
2490
|
+
bg: "",
|
|
2491
|
+
type: "primary",
|
|
2490
2492
|
onClick: n[0] || (n[0] = (f) => o.resetForm("searchForm"))
|
|
2491
2493
|
}, {
|
|
2492
2494
|
default: b(() => [
|
|
@@ -2495,7 +2497,6 @@ function xd(e, n, t, r, a, o) {
|
|
|
2495
2497
|
_: 1
|
|
2496
2498
|
}),
|
|
2497
2499
|
C(c, {
|
|
2498
|
-
class: "submit",
|
|
2499
2500
|
type: "primary",
|
|
2500
2501
|
onClick: n[1] || (n[1] = (f) => o.submitForm("searchForm"))
|
|
2501
2502
|
}, {
|
|
@@ -2517,7 +2518,7 @@ function xd(e, n, t, r, a, o) {
|
|
|
2517
2518
|
])
|
|
2518
2519
|
]);
|
|
2519
2520
|
}
|
|
2520
|
-
const tu = /* @__PURE__ */ le(wd, [["render", xd], ["__scopeId", "data-v-
|
|
2521
|
+
const tu = /* @__PURE__ */ le(wd, [["render", xd], ["__scopeId", "data-v-09f23c0e"]]), Bd = {
|
|
2521
2522
|
components: {
|
|
2522
2523
|
lwTable: eu,
|
|
2523
2524
|
lwSearch: tu
|
|
@@ -2802,8 +2803,11 @@ const nu = /* @__PURE__ */ le(Td, [["render", Vd]]), Dd = {
|
|
|
2802
2803
|
};
|
|
2803
2804
|
},
|
|
2804
2805
|
watch: {
|
|
2805
|
-
layout
|
|
2806
|
-
|
|
2806
|
+
layout: {
|
|
2807
|
+
handler(e) {
|
|
2808
|
+
this.$store.commit("SET_layout", e), document.body.setAttribute("data-layout", e);
|
|
2809
|
+
},
|
|
2810
|
+
immediate: !0
|
|
2807
2811
|
},
|
|
2808
2812
|
menuIsCollapse(e) {
|
|
2809
2813
|
this.$store.commit("TOGGLE_menuIsCollapse"), e ? this.$tool.data.set("APP_menuIsCollapse", "true") : this.$tool.data.remove("APP_menuIsCollapse");
|
|
@@ -3444,7 +3448,7 @@ function p8(e, n, t, r, a, o) {
|
|
|
3444
3448
|
_: 3
|
|
3445
3449
|
});
|
|
3446
3450
|
}
|
|
3447
|
-
const g8 = /* @__PURE__ */ le(c8, [["render", p8], ["__scopeId", "data-v-
|
|
3451
|
+
const g8 = /* @__PURE__ */ le(c8, [["render", p8], ["__scopeId", "data-v-28e65f0b"]]);
|
|
3448
3452
|
var m2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3449
3453
|
function au(e) {
|
|
3450
3454
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -9182,7 +9186,7 @@ function a7(e, n, t, r, a, o) {
|
|
|
9182
9186
|
_: 3
|
|
9183
9187
|
}, 8, ["list", "disabled", "class"]);
|
|
9184
9188
|
}
|
|
9185
|
-
const r7 = /* @__PURE__ */ le(t7, [["render", a7], ["__scopeId", "data-v-
|
|
9189
|
+
const r7 = /* @__PURE__ */ le(t7, [["render", a7], ["__scopeId", "data-v-b4808c0f"]]), o7 = {
|
|
9186
9190
|
name: "TreeItem",
|
|
9187
9191
|
components: {
|
|
9188
9192
|
draggable: _2
|
|
@@ -10141,7 +10145,7 @@ function x7(e, n, t, r, a, o) {
|
|
|
10141
10145
|
_: 1
|
|
10142
10146
|
}, 8, ["model"]);
|
|
10143
10147
|
}
|
|
10144
|
-
const B7 = /* @__PURE__ */ le(g7, [["render", x7], ["__scopeId", "data-v-
|
|
10148
|
+
const B7 = /* @__PURE__ */ le(g7, [["render", x7], ["__scopeId", "data-v-53321171"]]), k7 = [
|
|
10145
10149
|
{
|
|
10146
10150
|
title: "布局组件",
|
|
10147
10151
|
list: [
|
|
@@ -10756,7 +10760,7 @@ function M7(e, n, t, r, a, o) {
|
|
|
10756
10760
|
_: 3
|
|
10757
10761
|
}, 8, ["style"]);
|
|
10758
10762
|
}
|
|
10759
|
-
const T7 = /* @__PURE__ */ le(L7, [["render", M7], ["__scopeId", "data-v-
|
|
10763
|
+
const T7 = /* @__PURE__ */ le(L7, [["render", M7], ["__scopeId", "data-v-38da41f6"]]), V7 = {
|
|
10760
10764
|
props: {
|
|
10761
10765
|
modelValue: { type: String, default: "" },
|
|
10762
10766
|
// 传入的字符串
|
|
@@ -16774,7 +16778,7 @@ function iA(e, n, t, r, a, o) {
|
|
|
16774
16778
|
}, 8, ["modelValue"])
|
|
16775
16779
|
]);
|
|
16776
16780
|
}
|
|
16777
|
-
const sA = /* @__PURE__ */ le(nA, [["render", iA], ["__scopeId", "data-v-
|
|
16781
|
+
const sA = /* @__PURE__ */ le(nA, [["render", iA], ["__scopeId", "data-v-b0f0cda9"]]);
|
|
16778
16782
|
function uA(e) {
|
|
16779
16783
|
e.register("start", ({ HtmlNode: n, HtmlNodeModel: t, h: r }) => {
|
|
16780
16784
|
class a extends n {
|