vue2-client 1.11.2 → 1.11.4

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.
@@ -1,16 +1,16 @@
1
1
  const reportData = [
2
- { '气费': { 'span': 8 } },
2
+ { 气费: { span: 8 } },
3
3
  ['付款方式', '用户类型', '用气性质', '笔数', '气量', '应收金额', '实收金额', '滞纳金'],
4
4
  {
5
- '刷卡': {
6
- '非民用': {
7
- '公服用气': [3, 2777, 6998.04, 7000, 0],
8
- '商业用气': [17, 28720, 83811.50, 83806.70, 0]
5
+ 刷卡: {
6
+ 非民用: {
7
+ 公服用气: [3, 2777, 6998.04, 7000, 0],
8
+ 商业用气: [17, 28720, 83811.50, 83806.70, 0]
9
9
  },
10
- '民用': {
11
- '居民用气': [255, 19310, 44219.70, 44345.50, 0]
10
+ 民用: {
11
+ 居民用气: [255, 19310, 44219.70, 44345.50, 0]
12
12
  },
13
- '合计': { 'span': 2, 'value': [275, 50807, 135029.24, 135152.20, 0] }
13
+ 合计: { span: 2, value: [275, 50807, 135029.24, 135152.20, 0] }
14
14
  }
15
15
  }
16
16
  ]
@@ -22,7 +22,7 @@ export default {
22
22
  searchReport (source) {
23
23
  return post('/rs/report/saleMonthReport', {
24
24
  // data: this.data.data
25
- data: this.data['data']
25
+ data: this.data.data
26
26
  }).then(res => {
27
27
  this.model = res
28
28
  }).catch(err => {
@@ -6,7 +6,7 @@
6
6
 
7
7
  <script>
8
8
  export default {
9
- name: 'depListManage',
9
+ name: 'DepListManage',
10
10
  data () {
11
11
  return {}
12
12
  },
@@ -6,7 +6,7 @@
6
6
 
7
7
  <script>
8
8
  export default {
9
- name: 'funListManage',
9
+ name: 'FunListManage',
10
10
  data () {
11
11
  return {}
12
12
  },
@@ -55,7 +55,7 @@
55
55
  import { getConfigByName } from '@vue2-client/services/api/common'
56
56
  export default {
57
57
  // 组织管理
58
- name: 'orgListManage',
58
+ name: 'OrgListManage',
59
59
  data () {
60
60
  return {
61
61
  columnsJson: [],
@@ -6,7 +6,7 @@
6
6
 
7
7
  <script>
8
8
  export default {
9
- name: 'roleListManage',
9
+ name: 'RoleListManage',
10
10
  data () {
11
11
  return {}
12
12
  },
@@ -6,7 +6,7 @@
6
6
 
7
7
  <script>
8
8
  export default {
9
- name: 'staffListManage',
9
+ name: 'StaffListManage',
10
10
  data () {
11
11
  return {}
12
12
  },
@@ -1,188 +1,114 @@
1
1
  const { homePage } = require('../../config')
2
- // 视图组件
2
+ // 视图组件
3
3
  const view = {
4
- tabs: () =>
5
- import('@vue2-client/layouts/tabs'),
6
- blank: () =>
7
- import('@vue2-client/layouts/BlankView'),
8
- page: () =>
9
- import('@vue2-client/layouts/PageView'),
10
- // his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
11
- gridView: () =>
12
- import('@vue2-client/layouts/GridView'),
13
- login: () =>
14
- import('@vue2-client/pages/login/Login'),
15
- loginv3: () =>
16
- import('@vue2-client/pages/login/LoginV3')
17
- }
18
- // 动态路由对象定义
4
+ tabs: () => import('@vue2-client/layouts/tabs'),
5
+ blank: () => import('@vue2-client/layouts/BlankView'),
6
+ page: () => import('@vue2-client/layouts/PageView'),
7
+ // his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
8
+ gridView: () => import('@vue2-client/layouts/GridView'),
9
+ login: () => import('@vue2-client/pages/login/Login'),
10
+ loginv3: () => import('@vue2-client/pages/login/LoginV3')
11
+ }
12
+ // 动态路由对象定义
19
13
  const routerResource = {}
20
- // --------------------------------------基本视图组件--------------------------------------
21
- // 空白视图
14
+ // --------------------------------------基本视图组件--------------------------------------
15
+ // 空白视图
22
16
  routerResource.blank = view.blank
23
- // 单页面视图
17
+ // 单页面视图
24
18
  routerResource.singlePage = view.blank
25
- // 栅格配置视图
19
+ // 栅格配置视图
26
20
  routerResource.gridView = view.gridView
27
21
 
28
22
  // --------------------------------------仪表盘--------------------------------------
29
23
  routerResource.dashboard = view.blank
30
- // 工作台
24
+ // 工作台
31
25
  routerResource.workplace = () =>
32
- import('@vue2-client/pages/dashboard/workplace')
33
- // --------------------------------------系统配置--------------------------------------
26
+ import('@vue2-client/pages/dashboard/workplace')
27
+ // --------------------------------------系统配置--------------------------------------
34
28
  routerResource.system = view.blank
35
- // 字典管理
36
- routerResource.dictionaryManage = () =>
37
- import('@vue2-client/pages/system/dictionary')
38
- // 文件管理
39
- routerResource.fileManager = () =>
40
- import('@vue2-client/pages/system/file')
41
- // 登录日志
42
- routerResource.loginInfor = () =>
43
- import('@vue2-client/pages/system/monitor/loginInfor')
44
- // 操作日志
45
- routerResource.operLog = () =>
46
- import('@vue2-client/pages/system/monitor/operLog')
47
- // 系统问题反馈工单
48
- routerResource.submitTicket = () =>
49
- import('@vue2-client/pages/system/ticket')
50
- // 通用服务评价
51
- routerResource.ServiceReview = () =>
52
- import('@vue2-client/pages/ServiceReview')
53
- // 系统设置
54
- routerResource.settings = () =>
55
- import('@vue2-client/pages/system/settings')
56
- // AMIS示例页面
57
- routerResource.amisDemo = () =>
58
- import('@vue2-client/pages/AMisDemo/AMisDemo')
59
- // 页面编辑器
60
- routerResource.editablePage = () =>
61
- import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
62
- // 数据检索
63
- routerResource.dynamicStatistics = () =>
64
- import('@vue2-client/pages/DynamicStatistics')
65
- // 数据检索(新)
66
- routerResource.newDynamicStatistics = () =>
67
- import('@vue2-client/pages/NewDynamicStatistics')
68
- // 示例页面
29
+ // 字典管理
30
+ routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
31
+ // 文件管理
32
+ routerResource.fileManager = () => import('@vue2-client/pages/system/file')
33
+ // 登录日志
34
+ routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
35
+ // 操作日志
36
+ routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
37
+ // 系统问题反馈工单
38
+ routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
39
+ // 通用服务评价
40
+ routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
41
+ // 系统设置
42
+ routerResource.settings = () => import('@vue2-client/pages/system/settings')
43
+ // AMIS示例页面
44
+ routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
45
+ // 页面编辑器
46
+ routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
47
+ // 数据检索
48
+ routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
49
+ // 数据检索()
50
+ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
51
+ // 示例页面
69
52
  routerResource.example = {
70
- path: 'example',
71
- name: '示例主页面',
72
- component: () => import('@vue2-client/pages/Example'),
73
- children: [
74
- {
75
- path: '',
76
- name: '示例页面2',
77
- redirect: 'default',
78
- meta: {
79
- // 菜单中不显示
80
- invisible: true,
81
- }
82
- },
83
- {
84
- path: 'default',
85
- name: '示例页面',
86
- // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
87
- // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
88
- // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
89
- component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
90
- // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
91
- // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
92
- // component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
93
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
94
- // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
95
- // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
96
- // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
97
- // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
98
- // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
99
- // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
100
- // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
101
- meta: {
102
- // 菜单中不显示
103
- invisible: true,
104
- }
105
- },
106
- {
107
- path: 'sub-example',
108
- name: '示例页面1',
109
- component: () => import('@vue2-client/pages/SubExample'),
110
- meta: {
111
- // 菜单中不显示
112
- invisible: true,
113
- // 跳转不打开新页签
114
- noPusTabs: true
115
- }
116
- },
117
- {
118
- path: 'x-tree-one-pro-example',
119
- name: 'TreeView布局示例',
120
- component: () => import('@vue2-client/pages/XTreeOneProExample'),
121
- meta: {
122
- // 菜单中不显示
123
- invisible: true,
124
- // 跳转不打开新页签
125
- noPusTabs: true
126
- }
127
- },
128
- {
129
- path: 'page-view-example',
130
- name: 'PageView示例',
131
- component: () => import('@vue2-client/pages/XPageViewExample'),
132
- meta: {
133
- // 菜单中不显示
134
- invisible: true,
135
- // 跳转不打开新页签
136
- noPusTabs: true
137
- }
138
- },
139
- ]
53
+ path: 'example',
54
+ name: '示例主页面',
55
+ // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
56
+ // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
57
+ // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
58
+ component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
59
+ // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
60
+ // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
61
+ // component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
62
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
63
+ // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
64
+ // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
65
+ // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
66
+ // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
67
+ // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
68
+ // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
69
+ // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
140
70
  }
141
71
  // routerResource.example = () =>
142
72
  // import('@vue2-client/pages/Example')
143
- routerResource.XReportView = () =>
144
- import('@vue2-client/pages/XReportView')
73
+ routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
145
74
 
146
- routerResource.XReportGrid = () =>
147
- import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
75
+ routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
148
76
 
149
- routerResource.XTab = () =>
150
- import('@vue2-client/base-client/components/common/XTab/XTabDemo')
77
+ routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
151
78
 
152
- console.log(process.env)
153
- // 基础路由组件注册
79
+ // 基础路由组件注册
154
80
  const routerMap = {
155
- login: {
156
- authority: '*',
157
- path: '/login',
158
- component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
159
- ? view.loginv3 : view.login
160
- },
161
- root: {
162
- path: '/',
163
- name: '首页',
164
- redirect: homePage,
165
- component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
166
- },
167
- exp403: {
168
- authority: '*',
169
- name: 'exp403',
170
- path: '403',
171
- component: () =>
172
- import('@vue2-client/pages/exception/403')
173
- },
174
- exp404: {
175
- name: 'exp404',
176
- path: '404',
177
- component: () =>
178
- import('@vue2-client/pages/exception/404')
179
- },
180
- exp500: {
181
- name: 'exp500',
182
- path: '500',
183
- component: () =>
184
- import('@vue2-client/pages/exception/500')
185
- }
81
+ login: {
82
+ authority: '*',
83
+ path: '/login',
84
+ component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
85
+ ? view.loginv3 : view.login
86
+ },
87
+ root: {
88
+ path: '/',
89
+ name: '首页',
90
+ redirect: homePage,
91
+ component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
92
+ },
93
+ exp403: {
94
+ authority: '*',
95
+ name: 'exp403',
96
+ path: '403',
97
+ component: () =>
98
+ import('@vue2-client/pages/exception/403')
99
+ },
100
+ exp404: {
101
+ name: 'exp404',
102
+ path: '404',
103
+ component: () =>
104
+ import('@vue2-client/pages/exception/404')
105
+ },
106
+ exp500: {
107
+ name: 'exp500',
108
+ path: '500',
109
+ component: () =>
110
+ import('@vue2-client/pages/exception/500')
111
+ }
186
112
  }
187
113
  Object.assign(routerMap, routerResource)
188
114
  export default routerMap
@@ -1,91 +1,92 @@
1
- const { cssResolve } = require('../config/replacer')
2
- // 修正 webpack-theme-color-replacer 插件提取的 css 结果
3
- function resolveCss (output, srcArr) {
4
- const regExps = []
5
- // 提取 resolve 配置中所有的正则配置
6
- Object.keys(cssResolve).forEach(key => {
7
- let isRegExp
8
- let reg = {}
9
- try {
10
- reg = eval(key)
11
- isRegExp = reg instanceof RegExp
12
- } catch (e) {
13
- isRegExp = false
14
- }
15
- if (isRegExp) {
16
- regExps.push([reg, cssResolve[key]])
17
- }
18
- })
19
-
20
- // 去重
21
- srcArr = dropDuplicate(srcArr)
22
-
23
- // 处理 css
24
- const outArr = []
25
- srcArr.forEach(text => {
26
- // 转换为 css 对象
27
- const cssObj = parseCssObj(text)
28
- // 根据selector匹配配置,匹配成功,则按配置处理 css
29
- if (cssResolve[cssObj.selector] !== undefined) {
30
- const cfg = cssResolve[cssObj.selector]
31
- if (cfg) {
32
- outArr.push(cfg.resolve(text, cssObj))
33
- }
34
- } else {
35
- let cssText = ''
36
- // 匹配不成功,则测试是否有匹配的正则配置,有则按正则对应的配置处理
37
- for (const regExp of regExps) {
38
- if (regExp[0].test(cssObj.selector)) {
39
- const cssCfg = regExp[1]
40
- cssText = cssCfg ? cssCfg.resolve(text, cssObj) : ''
41
- break
42
- }
43
- // 未匹配到正则,则设置 cssText 为默认的 css(即不处理)
44
- cssText = text
45
- }
46
- if (cssText !== '') {
47
- outArr.push(cssText)
48
- }
49
- }
50
- })
51
- output = outArr.join('\n')
52
- return output
53
- }
54
-
55
- // 数组去重
56
- function dropDuplicate (arr) {
57
- const map = {}
58
- const r = []
59
- for (const s of arr) {
60
- if (!map[s]) {
61
- r.push(s)
62
- map[s] = 1
63
- }
64
- }
65
- return r
66
- }
67
-
68
- /**
69
- * 从字符串解析 css 对象
70
- * @param cssText
71
- * @returns {{
72
- * name: String,
73
- * rules: Array[String],
74
- * toText: function
75
- * }}
76
- */
77
- function parseCssObj (cssText) {
78
- const css = {}
79
- const ruleIndex = cssText.indexOf('{')
80
- css.selector = cssText.substring(0, ruleIndex)
81
- const ruleBody = cssText.substring(ruleIndex + 1, cssText.length - 1)
82
- css.rules = ruleBody.split(';')
83
- css.toText = function () {
84
- let body = ''
85
- this.rules.forEach(item => { body += item + ';' })
86
- return `${this.selector}{${body}}`
87
- }
88
- return css
89
- }
90
-
91
- module.exports = { resolveCss }
1
+ const { cssResolve } = require('../config/replacer')
2
+ // 修正 webpack-theme-color-replacer 插件提取的 css 结果
3
+ function resolveCss (output, srcArr) {
4
+ const regExps = []
5
+ // 提取 resolve 配置中所有的正则配置
6
+ Object.keys(cssResolve).forEach(key => {
7
+ let isRegExp
8
+ let reg = {}
9
+ try {
10
+ // eslint-disable-next-line no-eval
11
+ reg = eval(key)
12
+ isRegExp = reg instanceof RegExp
13
+ } catch (e) {
14
+ isRegExp = false
15
+ }
16
+ if (isRegExp) {
17
+ regExps.push([reg, cssResolve[key]])
18
+ }
19
+ })
20
+
21
+ // 去重
22
+ srcArr = dropDuplicate(srcArr)
23
+
24
+ // 处理 css
25
+ const outArr = []
26
+ srcArr.forEach(text => {
27
+ // 转换为 css 对象
28
+ const cssObj = parseCssObj(text)
29
+ // 根据selector匹配配置,匹配成功,则按配置处理 css
30
+ if (cssResolve[cssObj.selector] !== undefined) {
31
+ const cfg = cssResolve[cssObj.selector]
32
+ if (cfg) {
33
+ outArr.push(cfg.resolve(text, cssObj))
34
+ }
35
+ } else {
36
+ let cssText = ''
37
+ // 匹配不成功,则测试是否有匹配的正则配置,有则按正则对应的配置处理
38
+ for (const regExp of regExps) {
39
+ if (regExp[0].test(cssObj.selector)) {
40
+ const cssCfg = regExp[1]
41
+ cssText = cssCfg ? cssCfg.resolve(text, cssObj) : ''
42
+ break
43
+ }
44
+ // 未匹配到正则,则设置 cssText 为默认的 css(即不处理)
45
+ cssText = text
46
+ }
47
+ if (cssText !== '') {
48
+ outArr.push(cssText)
49
+ }
50
+ }
51
+ })
52
+ output = outArr.join('\n')
53
+ return output
54
+ }
55
+
56
+ // 数组去重
57
+ function dropDuplicate (arr) {
58
+ const map = {}
59
+ const r = []
60
+ for (const s of arr) {
61
+ if (!map[s]) {
62
+ r.push(s)
63
+ map[s] = 1
64
+ }
65
+ }
66
+ return r
67
+ }
68
+
69
+ /**
70
+ * 从字符串解析 css 对象
71
+ * @param cssText
72
+ * @returns {{
73
+ * name: String,
74
+ * rules: Array[String],
75
+ * toText: function
76
+ * }}
77
+ */
78
+ function parseCssObj (cssText) {
79
+ const css = {}
80
+ const ruleIndex = cssText.indexOf('{')
81
+ css.selector = cssText.substring(0, ruleIndex)
82
+ const ruleBody = cssText.substring(ruleIndex + 1, cssText.length - 1)
83
+ css.rules = ruleBody.split(';')
84
+ css.toText = function () {
85
+ let body = ''
86
+ this.rules.forEach(item => { body += item + ';' })
87
+ return `${this.selector}{${body}}`
88
+ }
89
+ return css
90
+ }
91
+
92
+ module.exports = { resolveCss }