vue2-client 1.3.10 → 1.3.13

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,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.3.3 - 1.3.10 -2022-09-09 @江超**
4
+ **1.3.3 - 1.3.13 -2022-09-09 @江超**
5
5
  - 功能修改:
6
6
  - 移除非基础业务组件
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.3.10",
3
+ "version": "1.3.13",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -250,7 +250,7 @@ import XBadge from '@vue2-client/base-client/components/common/XBadge'
250
250
  import CitySelect from '@vue2-client/base-client/components/common/CitySelect'
251
251
  import PersonSetting from '@vue2-client/base-client/components/common/PersonSetting'
252
252
  import AddressSearchCombobox from '@vue2-client/base-client/components/common/AddressSearchCombobox'
253
- import Upload from '@/base-client/components/common/Upload'
253
+ import Upload from '@vue2-client/base-client/components/common/Upload'
254
254
 
255
255
  export default {
256
256
  name: 'XFormItem',
@@ -27,6 +27,7 @@ async function getAllArea () {
27
27
  * 获取抄表员
28
28
  * @returns {Promise<void>}
29
29
  */
30
+ // eslint-disable-next-line
30
31
  async function getGasman () {
31
32
  try {
32
33
  const getGasman = await post(SEARCH, {
@@ -47,6 +48,7 @@ async function getGasman () {
47
48
  * 获取资源服务权限
48
49
  * @returns {Promise<void>}
49
50
  */
51
+ // eslint-disable-next-line
50
52
  async function getLic () {
51
53
  try {
52
54
  const getLic = await post(SEARCH, { data: {
@@ -63,10 +65,12 @@ async function getLic () {
63
65
  console.log('获取资源服务权限异常', error)
64
66
  }
65
67
  }
68
+
66
69
  /**
67
70
  * 获取界面细节 (界面权限)
68
71
  * @returns {Promise<void>}
69
72
  */
73
+ // eslint-disable-next-line
70
74
  async function getViewDetails () {
71
75
  try {
72
76
  const viewDetails = await post(SEARCH, {
@@ -129,7 +133,7 @@ function searchFun (fun, name) {
129
133
 
130
134
  const loginGen = async function (response) {
131
135
  Vue.$login.f = response
132
- await Promise.all([Vue.$appdata.load(), getGasman(), getLic(), getViewDetails()])
136
+ await Promise.all([Vue.$appdata.load()])
133
137
  const login = {
134
138
  f: Vue.$login.f,
135
139
  jwt: Vue.$login.f.id,
@@ -150,43 +154,6 @@ const GetLoginInfoService = {
150
154
  login (response) {
151
155
  return loginGen(response)
152
156
  },
153
-
154
- convertToIn (val) {
155
- let temp = ''
156
- if (val instanceof Array) {
157
- if (val.length >= 1) {
158
- temp = '('
159
- val.forEach((res) => {
160
- temp += `'${res}',`
161
- })
162
- temp = temp.substr(0, temp.length - 1) + ')'
163
- }
164
- }
165
- return temp
166
- },
167
- toStandardTimeString () {
168
- const dt = new Date()
169
- const month = dt.getMonth() + 1
170
- const date = dt.getDate()
171
- const hour = dt.getHours()
172
- const min = dt.getMinutes()
173
- const sec = dt.getSeconds()
174
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) +
175
- ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
176
- },
177
-
178
- guid () {
179
- const buf = new Uint16Array(8)
180
- window.crypto.getRandomValues(buf)
181
- const S4 = function (num) {
182
- let ret = num.toString()
183
- while (ret.length < 4) {
184
- ret = '0' + ret
185
- }
186
- return ret
187
- }
188
- return (S4(buf[0]) + S4(buf[1]) + S4(buf[2]) + S4(buf[3]) + S4(buf[4]) + S4(buf[5]) + S4(buf[6]) + S4(buf[7]))
189
- },
190
157
  required (param) {
191
158
  if (typeof param === 'number' && param === 0) {
192
159
  return false
@@ -198,49 +165,9 @@ const GetLoginInfoService = {
198
165
  param = param.trim()
199
166
  return !param
200
167
  },
201
-
202
- isInt (n) {
203
- return !window.isNaN(n) && n % 1 === 0
204
- },
205
-
206
168
  // 不能选择器中截取掉多余的字符
207
169
  orgName (name) {
208
170
  return name.substring(10)
209
- },
210
-
211
- addDate (date, days) {
212
- // 求取当前时间的工具
213
- let endDate = new Date(date)
214
- endDate = endDate.valueOf()
215
- endDate = endDate + days * 24 * 60 * 60 * 1000
216
- endDate = new Date(endDate)
217
- const month = endDate.getMonth() + 1
218
- const day = endDate.getDate()
219
- const hour = endDate.getHours()
220
- const min = endDate.getMinutes()
221
- const sec = endDate.getSeconds()
222
- return endDate.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day) +
223
- ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
224
- // return a
225
- },
226
-
227
- // 对字符串进行加密
228
- compileStr (code) {
229
- let c = String.fromCharCode(code.charCodeAt(0) + code.length)
230
- for (let i = 1; i < code.length; i++) {
231
- c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1))
232
- }
233
- return escape(c)
234
- },
235
-
236
- // 字符串进行解密
237
- uncompileStr (code) {
238
- code = unescape(code)
239
- let c = String.fromCharCode(code.charCodeAt(0) - code.length)
240
- for (let i = 1; i < code.length; i++) {
241
- c += String.fromCharCode(code.charCodeAt(i) - c.charCodeAt(i - 1))
242
- }
243
- return c
244
171
  }
245
172
  }
246
173
 
@@ -81,7 +81,7 @@ export default {
81
81
  return
82
82
  }
83
83
  const otherFiles = []
84
- post('/api/af-system/getInstitutionDetail', {
84
+ post('/api/af-system/logic/getInstitutionDetail', {
85
85
  id: this.institutionId
86
86
  }).then(res => {
87
87
  res.files.forEach(item => {
@@ -116,7 +116,7 @@ export default {
116
116
  a.click()
117
117
  },
118
118
  confirm_institution () {
119
- post('/api/af-system/affirmInstitution', {
119
+ post('/api/af-system/logic/affirmInstitution', {
120
120
  data: {
121
121
  tobe: [
122
122
  {
@@ -252,7 +252,7 @@
252
252
  import { TicketDetailsViewApi, post } from '@vue2-client/services/api'
253
253
  import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
254
254
  import submitTicketSuccess from './submitTicketSuccess'
255
- import Upload from '@/base-client/components/common/Upload'
255
+ import Upload from '@vue2-client/base-client/components/common/Upload'
256
256
 
257
257
  export default {
258
258
  name: 'submitTicket',