vue2-client 1.2.7 → 1.2.8

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/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
+ **##1.2.8 -2022-03-24 @江超**
5
+ - 问题修复:
6
+ - [登录页面]:修复登录后欢迎提示出现undefined的问题
7
+ - [查询配置生成]:修复修改表单查询方式下拉框报错的问题
8
+
4
9
  **##1.2.7 -2022-03-24 @江超**
5
10
  - 功能新增:
6
11
  - [系统设置]:新增 [工单提交] 功能(submitTicket),用户在操作业务时如发现系统异常,可使用该功能反馈问题
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -0,0 +1,40 @@
1
+ module.exports = {
2
+ queryType: [
3
+ {
4
+ label: '相等(=)', key: '=', match: 'input;select;radio;monthPicker;datePicker;cascader;selects'
5
+ },
6
+ {
7
+ label: '不相等(!=)', key: '!=', match: 'input;select;radio;monthPicker;datePicker;cascader;selects'
8
+ },
9
+ {
10
+ label: '全模糊(like)', key: 'LIKE', match: 'input;select;radio;cascader;selects'
11
+ },
12
+ {
13
+ label: '左模糊(left like)', key: 'LEFT_LIKE', match: 'input;select;radio;cascader;selects'
14
+ },
15
+ {
16
+ label: '右模糊(right like)', key: 'RIGHT_LIKE', match: 'input;select;radio;cascader;selects'
17
+ },
18
+ {
19
+ label: '大于(>)', key: '>', match: 'input;select;radio;monthPicker;datePicker;cascader;selects'
20
+ },
21
+ {
22
+ label: '大于等于(>=)', key: '>=', match: 'input;select;radio;monthPicker;datePicker;cascader;selects'
23
+ },
24
+ {
25
+ label: '小于(<)', key: '<', match: 'input;select;radio;monthPicker;datePicker;cascader;selects'
26
+ },
27
+ {
28
+ label: '小于等于(<=)', key: '<=', match: 'input;select;radio;monthPicker;datePicker;cascader;selects'
29
+ },
30
+ {
31
+ label: '包含(in)', key: 'IN', match: 'checkbox;select;cascader;selects'
32
+ },
33
+ {
34
+ label: '不包含(not in)', key: 'NOT_IN', match: 'checkbox;select;cascader;selects'
35
+ },
36
+ {
37
+ label: '之间(between)', key: 'BETWEEN', match: 'rangePicker'
38
+ }
39
+ ]
40
+ }
@@ -61,8 +61,8 @@ import { mapMutations } from 'vuex'
61
61
  import JSEncrypt from 'jsencrypt'
62
62
  import { ACCESS_TOKEN } from '@vue2-client/store/mutation-types'
63
63
  import Vue from 'vue'
64
- import Mock from 'mockjs'
65
64
  import { positions } from '@vue2-client/mock/common'
65
+ import { timeFix } from '@/utils/util'
66
66
  const { homePage, ticketPage } = require('@vue2-client/config')
67
67
  // import { router } from '@vue2-client/mock/user/routes'
68
68
 
@@ -128,7 +128,7 @@ export default {
128
128
  } else {
129
129
  this.$router.push(homePage).catch(() => {})
130
130
  }
131
- this.$message.success(Mock.mock('@TIMEFIX').CN + ',欢迎回来', 3)
131
+ this.$message.success(timeFix().CN + ',欢迎回来', 3)
132
132
  })
133
133
  })
134
134
  } else {
package/src/utils/util.js CHANGED
@@ -1,5 +1,29 @@
1
1
  import enquireJs from 'enquire.js'
2
2
 
3
+ const timeList = [
4
+ {
5
+ CN: '早上好',
6
+ HK: '早晨啊',
7
+ US: 'Good morning'
8
+ }, {
9
+ CN: '上午好',
10
+ HK: '上午好',
11
+ US: 'Good morning'
12
+ }, {
13
+ CN: '中午好',
14
+ HK: '中午好',
15
+ US: 'Good afternoon'
16
+ }, {
17
+ CN: '下午好',
18
+ HK: '下午好',
19
+ US: 'Good afternoon'
20
+ }, {
21
+ CN: '晚上好',
22
+ HK: '晚上好',
23
+ US: 'Good evening'
24
+ }
25
+ ]
26
+
3
27
  export function isDef (v) {
4
28
  return v !== undefined && v !== null
5
29
  }
@@ -43,6 +67,13 @@ export function timeCompare (date1, date2) {
43
67
  return date11.time > date22.time ? 1 : -1
44
68
  }
45
69
 
70
+ export function timeFix () {
71
+ const time = new Date()
72
+ const hour = time.getHours()
73
+ return hour < 9
74
+ ? timeList[0] : (hour <= 11 ? timeList[1] : (hour <= 13 ? timeList[2] : (hour <= 20 ? timeList[3] : timeList[4])))
75
+ }
76
+
46
77
  /**
47
78
  * Remove an item from an array.
48
79
  */
@@ -81,16 +112,15 @@ export function showXml (str) {
81
112
 
82
113
  // 把注释编码
83
114
  text = text.replace(/\n/g, '\r').replace(/<!--(.+?)-->/g, function ($0, text) {
84
- var ret = '<!--' + escape(text) + '-->'
85
- return ret
115
+ return '<!--' + escape(text) + '-->'
86
116
  }).replace(/\r/g, '\n')
87
117
 
88
118
  // 调整格式
89
- const rgx = /\n(<(([^?]).+?)(?:\s|\s*?>|\s*?(\/)>)(?:.*?(?:(?:(\/)>)|(?:<(\/)\2>)))?)/mg
119
+ const rgx = /\n(<(([^?]).+?)(?:\s|\s*?>|\s*?(\/)>)(?:.*?(?:(\/)>|<(\/)\2>))?)/mg
90
120
  const nodeStack = []
91
121
  const output = text.replace(rgx, function ($0, all, name, isBegin, isCloseFull1, isCloseFull2, isFull1, isFull2) {
92
122
  const isClosed = (isCloseFull1 === '/') || (isCloseFull2 === '/') || (isFull1 === '/') || (isFull2 === '/')
93
- let prefix = ''
123
+ let prefix
94
124
  if (isBegin === '!') {
95
125
  prefix = getPrefix(nodeStack.length)
96
126
  } else {