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.
Files changed (29) hide show
  1. package/package.json +1 -1
  2. package/src/base-client/components/common/XDatePicker/index.vue +3 -0
  3. package/src/base-client/components/common/XReport/index.js +3 -3
  4. package/src/base-client/components/common/XTimeline/XTimeline.vue +19 -18
  5. package/src/base-client/components/his/XRadio/XRadio.vue +1 -0
  6. package/src/base-client/components/his/XSidebar/XSidebar.vue +0 -1
  7. package/src/expression/ExpressionRunner.js +26 -26
  8. package/src/expression/TestExpression.js +509 -509
  9. package/src/expression/core/Delegate.js +115 -115
  10. package/src/expression/core/Expression.js +1358 -1358
  11. package/src/expression/core/Program.js +932 -932
  12. package/src/expression/core/Token.js +27 -27
  13. package/src/expression/enums/ExpressionType.js +81 -81
  14. package/src/expression/enums/TokenType.js +11 -11
  15. package/src/expression/exception/BreakWayException.js +2 -2
  16. package/src/expression/exception/ContinueWayException.js +2 -2
  17. package/src/expression/exception/ExpressionException.js +28 -28
  18. package/src/expression/exception/ReturnWayException.js +14 -14
  19. package/src/expression/exception/ServiceException.js +22 -22
  20. package/src/expression/instances/LogicConsole.js +44 -44
  21. package/src/logic/LogicRunner.js +62 -62
  22. package/src/logic/TestLogic.js +13 -13
  23. package/src/logic/plugins/common/VueTools.js +30 -30
  24. package/src/logic/ts/LogicRunner.ts +67 -67
  25. package/src/logic/ts/TestLogic.ts +13 -13
  26. package/src/pages/DynamicStatistics/FavoriteList.vue +50 -50
  27. package/src/pages/userInfoDetailManage/uploadFilesHistory/index.vue +130 -130
  28. package/src/services/api/entity.js +18 -18
  29. package/src/utils/waterMark.js +31 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.12.99",
3
+ "version": "1.12.100",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -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='x-timeline'>
3
+ <div class="x-timeline">
4
4
  <!-- 时间轴导航栏 -->
5
- <div class='x-timeline-nav'>
5
+ <div class="x-timeline-nav">
6
6
  <!-- 导航按钮:前一周、前一天 -->
7
- <a-button type="link" @click='goToPrevWeek'>
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='goToPrevDay'>
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='timeline-dates'>
17
- <div v-for='(date, index) in displayDates'
18
- :key='index'
19
- class='date-item'
20
- :class='{
21
- "ant-btn-primary": isCurrentDate(date),
22
- "date-weekend": isWeekend(date),
23
- "ant-btn-disabled": isDisabled(date)
24
- }'
25
- @click='selectDate(date)'
16
+ <div class="timeline-dates">
17
+ <div
18
+ v-for="(date, index) in displayDates"
19
+ :key="index"
20
+ class="date-item"
21
+ :class="{
22
+ &quot;ant-btn-primary&quot;: isCurrentDate(date),
23
+ &quot;date-weekend&quot;: isWeekend(date),
24
+ &quot;ant-btn-disabled&quot;: isDisabled(date)
25
+ }"
26
+ @click="selectDate(date)"
26
27
  >
27
- <div class='weekday'>{{ getWeekDay(date) }}</div>
28
- <div class='date'>{{ formatDate(date) }}</div>
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='goToNextDay'>
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='goToNextWeek'>
37
+ <a-button type="link" @click="goToNextWeek">
37
38
  {{ config?.nextWeekText || '后一周' }}
38
39
  <a-icon type="double-right" />
39
40
  </a-button>
@@ -30,6 +30,7 @@ export default {
30
30
  type: Object,
31
31
  default: null
32
32
  },
33
+ // eslint-disable-next-line vue/require-default-prop
33
34
  value: [String, Number]
34
35
  },
35
36
  data () {
@@ -138,7 +138,6 @@ export default {
138
138
  configData: {
139
139
  handler (newValue) {
140
140
  console.log('configData changed:', newValue)
141
- this.renderingComponent(newValue)
142
141
  },
143
142
  immediate: true
144
143
  }
@@ -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
+ }