vue2-client 1.12.99 → 1.12.100
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/base-client/components/common/XDatePicker/index.vue +3 -0
- package/src/base-client/components/common/XReport/index.js +3 -3
- package/src/base-client/components/common/XTimeline/XTimeline.vue +19 -18
- package/src/base-client/components/his/XRadio/XRadio.vue +1 -0
- package/src/base-client/components/his/XSidebar/XSidebar.vue +0 -1
- package/src/expression/ExpressionRunner.js +26 -26
- package/src/expression/TestExpression.js +509 -509
- package/src/expression/core/Delegate.js +115 -115
- package/src/expression/core/Expression.js +1358 -1358
- package/src/expression/core/Program.js +932 -932
- package/src/expression/core/Token.js +27 -27
- package/src/expression/enums/ExpressionType.js +81 -81
- package/src/expression/enums/TokenType.js +11 -11
- package/src/expression/exception/BreakWayException.js +2 -2
- package/src/expression/exception/ContinueWayException.js +2 -2
- package/src/expression/exception/ExpressionException.js +28 -28
- package/src/expression/exception/ReturnWayException.js +14 -14
- package/src/expression/exception/ServiceException.js +22 -22
- package/src/expression/instances/LogicConsole.js +44 -44
- package/src/logic/LogicRunner.js +62 -62
- package/src/logic/TestLogic.js +13 -13
- package/src/logic/plugins/common/VueTools.js +30 -30
- package/src/logic/ts/LogicRunner.ts +67 -67
- package/src/logic/ts/TestLogic.ts +13 -13
- package/src/pages/DynamicStatistics/FavoriteList.vue +50 -50
- package/src/pages/userInfoDetailManage/uploadFilesHistory/index.vue +130 -130
- package/src/services/api/entity.js +18 -18
- package/src/utils/waterMark.js +31 -31
package/package.json
CHANGED
|
@@ -175,6 +175,9 @@ export default {
|
|
|
175
175
|
this.yearShowOne = status
|
|
176
176
|
},
|
|
177
177
|
RangePanelChange (value, mode) {
|
|
178
|
+
if (value.length === 0) {
|
|
179
|
+
return
|
|
180
|
+
}
|
|
178
181
|
this.localValue = [
|
|
179
182
|
moment(value[0]).format(this.formatType),
|
|
180
183
|
moment(value[1]).format(this.formatType),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import XReport from './XReport'
|
|
2
|
-
|
|
3
|
-
export default XReport
|
|
1
|
+
import XReport from './XReport'
|
|
2
|
+
|
|
3
|
+
export default XReport
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- 时间轴主容器 -->
|
|
3
|
-
<div class=
|
|
3
|
+
<div class="x-timeline">
|
|
4
4
|
<!-- 时间轴导航栏 -->
|
|
5
|
-
<div class=
|
|
5
|
+
<div class="x-timeline-nav">
|
|
6
6
|
<!-- 导航按钮:前一周、前一天 -->
|
|
7
|
-
<a-button type="link" @click=
|
|
7
|
+
<a-button type="link" @click="goToPrevWeek">
|
|
8
8
|
<a-icon type="double-left" />
|
|
9
9
|
{{ config?.prevWeekText || '前一周' }}
|
|
10
10
|
</a-button>
|
|
11
|
-
<a-button type="link" @click=
|
|
11
|
+
<a-button type="link" @click="goToPrevDay">
|
|
12
12
|
<a-icon type="left" />
|
|
13
13
|
{{ config?.prevDayText || '前一天' }}
|
|
14
14
|
</a-button>
|
|
15
15
|
<!-- 日期显示区域 -->
|
|
16
|
-
<div class=
|
|
17
|
-
<div
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
<div class="timeline-dates">
|
|
17
|
+
<div
|
|
18
|
+
v-for="(date, index) in displayDates"
|
|
19
|
+
:key="index"
|
|
20
|
+
class="date-item"
|
|
21
|
+
:class="{
|
|
22
|
+
"ant-btn-primary": isCurrentDate(date),
|
|
23
|
+
"date-weekend": isWeekend(date),
|
|
24
|
+
"ant-btn-disabled": isDisabled(date)
|
|
25
|
+
}"
|
|
26
|
+
@click="selectDate(date)"
|
|
26
27
|
>
|
|
27
|
-
<div class=
|
|
28
|
-
<div class=
|
|
28
|
+
<div class="weekday">{{ getWeekDay(date) }}</div>
|
|
29
|
+
<div class="date">{{ formatDate(date) }}</div>
|
|
29
30
|
</div>
|
|
30
31
|
</div>
|
|
31
32
|
<!-- 导航按钮:后一天、后一周 -->
|
|
32
|
-
<a-button type="link" @click=
|
|
33
|
+
<a-button type="link" @click="goToNextDay">
|
|
33
34
|
{{ config?.nextDayText || '后一天' }}
|
|
34
35
|
<a-icon type="right" />
|
|
35
36
|
</a-button>
|
|
36
|
-
<a-button type="link" @click=
|
|
37
|
+
<a-button type="link" @click="goToNextWeek">
|
|
37
38
|
{{ config?.nextWeekText || '后一周' }}
|
|
38
39
|
<a-icon type="double-right" />
|
|
39
40
|
</a-button>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import Program from './core/Program'
|
|
2
|
-
|
|
3
|
-
export default class ExpressionRunner {
|
|
4
|
-
/**
|
|
5
|
-
* Runs an expression with parameters
|
|
6
|
-
*
|
|
7
|
-
* @param source Expression source
|
|
8
|
-
* @param params Expression parameters
|
|
9
|
-
* @returns The result of the expression
|
|
10
|
-
*/
|
|
11
|
-
static async run (source, params) {
|
|
12
|
-
const delegate = this.getDelegate(source)
|
|
13
|
-
return await delegate.invoke(params)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Gets the delegate for the expression
|
|
18
|
-
*
|
|
19
|
-
* @param source Expression source
|
|
20
|
-
* @returns A delegate to invoke
|
|
21
|
-
*/
|
|
22
|
-
static getDelegate (source) {
|
|
23
|
-
// Parse the source and return a delegate
|
|
24
|
-
return new Program(source).parse()
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
import Program from './core/Program'
|
|
2
|
+
|
|
3
|
+
export default class ExpressionRunner {
|
|
4
|
+
/**
|
|
5
|
+
* Runs an expression with parameters
|
|
6
|
+
*
|
|
7
|
+
* @param source Expression source
|
|
8
|
+
* @param params Expression parameters
|
|
9
|
+
* @returns The result of the expression
|
|
10
|
+
*/
|
|
11
|
+
static async run (source, params) {
|
|
12
|
+
const delegate = this.getDelegate(source)
|
|
13
|
+
return await delegate.invoke(params)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Gets the delegate for the expression
|
|
18
|
+
*
|
|
19
|
+
* @param source Expression source
|
|
20
|
+
* @returns A delegate to invoke
|
|
21
|
+
*/
|
|
22
|
+
static getDelegate (source) {
|
|
23
|
+
// Parse the source and return a delegate
|
|
24
|
+
return new Program(source).parse()
|
|
25
|
+
}
|
|
26
|
+
}
|