system-clients 3.2.88 → 3.2.89
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 +2 -2
- package/src/components/Main.vue +0 -1
- package/src/components/equipment/PcAdd.vue +1 -2
- package/src/components/equipment/PcList.vue +3 -4
- package/src/components/equipment/PhoneAdd.vue +1 -2
- package/src/components/equipment/PhoneList.vue +2 -3
- package/src/components/equipment/PosAdd.vue +4 -12
- package/src/components/equipment/PosList.vue +3 -6
- package/src/components/equipment/PosParamAdd.vue +1 -2
- package/src/components/equipment/PosParamList.vue +2 -3
- package/src/components/parammanage/ParamPage.vue +12 -16
- package/src/components/parammanage/SinglePage.vue +8 -10
- package/src/components/server/Login.vue +16 -36
- package/src/filiale/tongchuan/Main.vue +0 -1
- package/src/filiale/weinan/Main.vue +0 -1
- package/src/plugins/GetLoginInfoService.js +3 -3
- package/src/stores/AppData.js +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "system-clients",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.89",
|
4
4
|
"description": "系统基础框架",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"directories": {
|
@@ -79,7 +79,7 @@
|
|
79
79
|
"style": "0.0.3",
|
80
80
|
"style-loader": "^0.20.3",
|
81
81
|
"url-loader": "^0.5.7",
|
82
|
-
"vue-client": "1.24.
|
82
|
+
"vue-client": "1.24.145-1",
|
83
83
|
"vue-hot-reload-api": "^1.2.0",
|
84
84
|
"vue-html-loader": "^1.0.0",
|
85
85
|
"vue-loader": "^8.2.1",
|
package/src/components/Main.vue
CHANGED
@@ -471,7 +471,6 @@ let createWaterMark = function (userName) {
|
|
471
471
|
res.data.forEach(itre => {
|
472
472
|
let band = null
|
473
473
|
if ('f_dynamic_expire' in itre) {
|
474
|
-
console.log(itre.f_dynamic_expire)
|
475
474
|
if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
|
476
475
|
let todayold = new Date(itre.f_dynamic_expire)
|
477
476
|
todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
|
@@ -84,8 +84,7 @@
|
|
84
84
|
this.model.f_operatorid = this.$login.f.id
|
85
85
|
this.model.f_orgid = this.f_orgid
|
86
86
|
console.log('保存', this.model)
|
87
|
-
|
88
|
-
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
87
|
+
this.$resetpost('api/af-system/logic/save_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
89
88
|
this.$dispatch('refresh')
|
90
89
|
}).catch((error) => {
|
91
90
|
this.$dispatch('refresh')
|
@@ -76,7 +76,7 @@
|
|
76
76
|
data () {
|
77
77
|
return {
|
78
78
|
criteriaShow: false,
|
79
|
-
model: new PagedList('
|
79
|
+
model: new PagedList('api/af-system/sql/equipmentQuery', 20),
|
80
80
|
curorgid: [this.$login.f.orgid],
|
81
81
|
f_orgid: ''
|
82
82
|
}
|
@@ -93,7 +93,7 @@
|
|
93
93
|
},
|
94
94
|
|
95
95
|
selfSearch (args) {
|
96
|
-
args.condition = `${args.condition} and f_equipment_type = 'PC' and f_state = '正常' and f_orgid
|
96
|
+
args.condition = `${args.condition} and f_equipment_type = 'PC' and f_state = '正常' and f_orgid = '${this.f_orgid ? this.f_orgid: this.$login.f.orgid}'`
|
97
97
|
this.model.search(args.condition, this.model)
|
98
98
|
},
|
99
99
|
add () {
|
@@ -102,8 +102,7 @@
|
|
102
102
|
del (row) {
|
103
103
|
console.log('要删除了', row)
|
104
104
|
row.f_state = '已删除'
|
105
|
-
|
106
|
-
this.$resetpost('rs/entity/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
105
|
+
this.$resetpost('api/af-system/logic/save_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
107
106
|
this.$dispatch('refresh')
|
108
107
|
}).catch((error) => {
|
109
108
|
this.$dispatch('refresh')
|
@@ -84,8 +84,7 @@ import { HttpResetClass } from 'vue-client'
|
|
84
84
|
this.model.f_filialeids = this.$login.f.f_orgids
|
85
85
|
this.model.f_orgid = this.f_orgid
|
86
86
|
console.log('保存', this.model)
|
87
|
-
|
88
|
-
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
87
|
+
this.$resetpost('api/af-system/logic/save_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
89
88
|
this.$dispatch('refresh')
|
90
89
|
}).catch(() => {
|
91
90
|
this.$dispatch('refresh')
|
@@ -64,7 +64,7 @@
|
|
64
64
|
|
65
65
|
data () {
|
66
66
|
return {
|
67
|
-
model: new PagedList('
|
67
|
+
model: new PagedList('api/af-system/sql/equipmentQuery', 20),
|
68
68
|
filialeNameStr: this.$login.f.f_fengongsi,
|
69
69
|
filialeCodeStr: this.$login.f.f_orgids,
|
70
70
|
userid:this.$login.f.id,
|
@@ -92,8 +92,7 @@
|
|
92
92
|
del (row) {
|
93
93
|
console.log('要删除了', row)
|
94
94
|
row.f_state = '已删除'
|
95
|
-
|
96
|
-
this.$resetpost('rs/entity/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
95
|
+
this.$resetpost('api/af-system/logic/save_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
97
96
|
this.$dispatch('refresh')
|
98
97
|
}).catch((error) => {
|
99
98
|
this.$dispatch('refresh')
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<label class="font_normal_body" >机器编号</label>
|
34
34
|
<input type="text" class="input_search" style="width: 60%" v-model="model.f_machine_number" placeholder="机器编号" >
|
35
35
|
</div>
|
36
|
-
<div class="col-sm-6 form-group" :class="{'has-error': $v.f_phone.required}">
|
36
|
+
<div class="col-sm-6 form-group" :class="{'has-error': $v.f_phone.required || $v.f_phone.minlength || $v.f_phone.maxlength}">
|
37
37
|
<label class="font_normal_body">联系电话</label>
|
38
38
|
<input type="text" class="input_search" style="width: 60%" v-model="model.f_phone" placeholder="联系电话"
|
39
39
|
v-validate:f_phone="{required: true, minlength:7, maxlength: 11}" title="手机号必须7-11位">
|
@@ -223,11 +223,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
223
223
|
this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送停用指令,请稍后查看执行结果!`, 'success', 2500)
|
224
224
|
this.model.f_state = '停用'
|
225
225
|
try {
|
226
|
-
|
227
|
-
// this.$resetpost('rs/logic/updatePosState', {data: {number: this.model.f_terminal_number, state: '停用'}}, {resolveMsg: null, rejectMsg: null}, 0)
|
228
|
-
// .then((res) => {})
|
229
|
-
// todo v4
|
230
|
-
this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 0}}, {rejectMsg: null, resolveMsg: null})
|
226
|
+
this.$resetpost('api/af-system/logic/batchPos',{data: {tasks: [this.data], taskState: 0}}, {rejectMsg: null, resolveMsg: null})
|
231
227
|
} catch (error) {
|
232
228
|
this.search()
|
233
229
|
}
|
@@ -239,11 +235,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
239
235
|
this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送启用指令,请稍后查看执行结果!`, 'success', 2500)
|
240
236
|
this.model.f_state = '正常'
|
241
237
|
try {
|
242
|
-
|
243
|
-
// this.$resetpost('rs/logic/getEditPosState', {data: {number: this.model.f_terminal_number, state: '正常'}}, {resolveMsg: null, rejectMsg: null}, 0)
|
244
|
-
// .then((res) => {})
|
245
|
-
// todo v4
|
246
|
-
this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 1}}, {rejectMsg: null, resolveMsg: null})
|
238
|
+
this.$resetpost('api/af-system/logic/batchPos',{data: {tasks: [this.data], taskState: 1}}, {rejectMsg: null, resolveMsg: null})
|
247
239
|
} catch (error) {
|
248
240
|
this.search()
|
249
241
|
}
|
@@ -282,7 +274,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
282
274
|
this.model.f_orgstr = this.$login.f.fullids
|
283
275
|
}
|
284
276
|
// todo v4
|
285
|
-
this.$resetpost('
|
277
|
+
this.$resetpost('api/af-system/logic/save_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
286
278
|
this.$dispatch('refresh')
|
287
279
|
}).catch((error) => {
|
288
280
|
this.$dispatch('refresh')
|
@@ -165,8 +165,8 @@
|
|
165
165
|
data () {
|
166
166
|
return {
|
167
167
|
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
168
|
-
model: new PagedList('
|
169
|
-
model2: new PagedList('
|
168
|
+
model: new PagedList('api/af-system/sql/equipmentQuery', 20),
|
169
|
+
model2: new PagedList('api/af-system/sql/singleTable', 30, {tablename: '`t_poshistory`'}),
|
170
170
|
curorgid: [this.f_filialeid],
|
171
171
|
f_orgid: '',
|
172
172
|
f_filialeids: '',
|
@@ -238,8 +238,7 @@
|
|
238
238
|
this.showAlert('出现异常,请重新进操作')
|
239
239
|
return
|
240
240
|
}
|
241
|
-
|
242
|
-
await this.$resetpost('rs/logic/batchPos', {data: {tasks: arrs, taskState: val}}, {
|
241
|
+
await this.$resetpost('api/af-system/logic/batchPos', {data: {tasks: arrs, taskState: val}}, {
|
243
242
|
rejectMsg: null,
|
244
243
|
resolveMsg: null
|
245
244
|
})
|
@@ -254,7 +253,6 @@
|
|
254
253
|
this.infoshow = true
|
255
254
|
},
|
256
255
|
search () {
|
257
|
-
console.log("111111111111111111111111111111111111")
|
258
256
|
this.$refs.paged.$refs.cri.search()
|
259
257
|
},
|
260
258
|
|
@@ -279,7 +277,6 @@
|
|
279
277
|
},
|
280
278
|
|
281
279
|
getorg (val) {
|
282
|
-
console.log("====================", val)
|
283
280
|
this.f_orgid = val[0]
|
284
281
|
this.f_filialeid = val[0]
|
285
282
|
// this.search()
|
@@ -124,8 +124,7 @@ export default {
|
|
124
124
|
this.bankmodel = JSON.parse(JSON.stringify(this.bankmodel))
|
125
125
|
},
|
126
126
|
async confirm() {
|
127
|
-
|
128
|
-
await this.$resetpost('rs/logic/Pos_saveParam',
|
127
|
+
await this.$resetpost('api/af-system/logic/Pos_saveParam',
|
129
128
|
{
|
130
129
|
data: {
|
131
130
|
model: this.model,
|
@@ -73,7 +73,7 @@ export default {
|
|
73
73
|
components: {},
|
74
74
|
data() {
|
75
75
|
return {
|
76
|
-
model: new PagedList('
|
76
|
+
model: new PagedList('api/af-system/sql/get_posParam', 20),
|
77
77
|
curorgid: [this.f_filialeid],
|
78
78
|
}
|
79
79
|
},
|
@@ -93,8 +93,7 @@ export default {
|
|
93
93
|
}
|
94
94
|
},
|
95
95
|
async delete(row) {
|
96
|
-
|
97
|
-
await this.$resetpost('rs/logic/deletePosParam', {data: row}, {rejectMsg: null, resolveMsg: null})
|
96
|
+
await this.$resetpost('api/af-system/logic/deletePosParam', {data: row}, {rejectMsg: null, resolveMsg: null})
|
98
97
|
await this.search()
|
99
98
|
},
|
100
99
|
modify(row) {
|
@@ -64,10 +64,10 @@
|
|
64
64
|
<template partial='body'>
|
65
65
|
<td style="text-align:center">{{$index+1}}</td>
|
66
66
|
<td style="text-align:center">{{row.name}}</td>
|
67
|
-
<td class="flex-
|
68
|
-
<button type="button" name="button" class="button_search" @click.stop="$parent.$parent.modifyParam(row, 't_paramvalue')">修改</button>
|
69
|
-
<button type="button" name="button" class="button_search" v-if="$index!=0" @click.stop="$parent.$parent.move(row,$index)">上移</button>
|
70
|
-
<button type="button" name="button" class="btn btn-danger" @click.stop="$parent.$parent.deleteParam(row, 't_paramvalue')">删除</button>
|
67
|
+
<td class="flex-row col-sm-5">
|
68
|
+
<button type="button" name="button" class="button_search button_spacing width-60" @click.stop="$parent.$parent.modifyParam(row, 't_paramvalue')">修改</button>
|
69
|
+
<button type="button" name="button" class="button_search button_spacing width-60" v-if="$index!=0" @click.stop="$parent.$parent.move(row,$index)">上移</button>
|
70
|
+
<button type="button" name="button" class="btn btn-danger button_spacing width-60" @click.stop="$parent.$parent.deleteParam(row, 't_paramvalue')">删除</button>
|
71
71
|
</td>
|
72
72
|
</template>
|
73
73
|
</data-grid>
|
@@ -179,8 +179,8 @@
|
|
179
179
|
var param2=this.params.rows[index-1]
|
180
180
|
let http = new HttpResetClass()
|
181
181
|
try {
|
182
|
-
await http.load('POST', '
|
183
|
-
await http.load('POST', '
|
182
|
+
await http.load('POST', 'api/af-system/logic/system_saveParamValue', param1, {resolveMsg: null, rejectMsg: null})
|
183
|
+
await http.load('POST', 'api/af-system/logic/system_saveParamValue', param2, {resolveMsg: null, rejectMsg: null})
|
184
184
|
this.$showAlert('上移成功', 'success', 2000)
|
185
185
|
}catch (e) {
|
186
186
|
console.log(e)
|
@@ -198,7 +198,7 @@
|
|
198
198
|
async queryParam (condition) {
|
199
199
|
this.model.rows = []
|
200
200
|
let http = new HttpResetClass()
|
201
|
-
let res = await http.load('POST', '
|
201
|
+
let res = await http.load('POST', 'api/af-system/sql/system_getParam', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
202
202
|
this.model.rows = res.data
|
203
203
|
},
|
204
204
|
selected (val) {
|
@@ -207,7 +207,7 @@
|
|
207
207
|
},
|
208
208
|
async getParamValue(obj) {
|
209
209
|
let http = new HttpResetClass()
|
210
|
-
let res = await http.load('POST', '
|
210
|
+
let res = await http.load('POST', 'api/af-system/sql/system_getParamValue', {data: {param_id: obj.id}}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
211
211
|
this.params.rows = res.data
|
212
212
|
},
|
213
213
|
filter_query (paramName,orgid) {
|
@@ -258,8 +258,7 @@
|
|
258
258
|
if (type === 't_parameter') {
|
259
259
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
260
260
|
if (res === 'confirm') {
|
261
|
-
|
262
|
-
this.$resetpost('rs/logic/deleteParam', row).then((res) => {
|
261
|
+
this.$resetpost('api/af-system/logic/deleteParam', row).then((res) => {
|
263
262
|
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
264
263
|
this.selectItem = null
|
265
264
|
})
|
@@ -268,8 +267,7 @@
|
|
268
267
|
} else if (type === 't_paramvalue') {
|
269
268
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
270
269
|
if (res === 'confirm') {
|
271
|
-
|
272
|
-
this.$resetpost('rs/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
|
270
|
+
this.$resetpost('api/af-system/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
|
273
271
|
this.getParamValue(this.selectItem)
|
274
272
|
})
|
275
273
|
}
|
@@ -293,8 +291,7 @@
|
|
293
291
|
//添加当前分公司
|
294
292
|
}
|
295
293
|
data.f_filialeids = this.modifyItem.f_filialeids
|
296
|
-
|
297
|
-
this.$resetpost('rs/logic/system_saveParam', data).then((res) => {
|
294
|
+
this.$resetpost('api/af-system/logic/system_saveParam', data).then((res) => {
|
298
295
|
//无id
|
299
296
|
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
300
297
|
this.show = false
|
@@ -313,8 +310,7 @@
|
|
313
310
|
processid: this.selectItem.id
|
314
311
|
}
|
315
312
|
}
|
316
|
-
|
317
|
-
this.$resetpost('rs/entity/t_paramvalue', data).then((res) => {
|
313
|
+
this.$resetpost('api/af-system/logic/system_saveParamValue', data).then((res) => {
|
318
314
|
this.show = false
|
319
315
|
// 如果没有id,需要在数组中添加
|
320
316
|
this.getParamValue(this.selectItem)
|
@@ -30,11 +30,11 @@
|
|
30
30
|
<data-grid :model="model" v-ref:grid >
|
31
31
|
<template partial='head'>
|
32
32
|
<tr>
|
33
|
-
<th>序号</th>
|
34
|
-
<th>名称</th>
|
35
|
-
<th>参数值</th>
|
36
|
-
<th>所属</th>
|
37
|
-
<th>操作</th>
|
33
|
+
<th><nobr>序号</nobr></th>
|
34
|
+
<th><nobr>名称</nobr></th>
|
35
|
+
<th><nobr>参数值</nobr></th>
|
36
|
+
<th><nobr>所属</nobr></th>
|
37
|
+
<th><nobr>操作</nobr></th>
|
38
38
|
</tr>
|
39
39
|
</template>
|
40
40
|
<template partial='body'>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
async queryParam (condition) {
|
150
150
|
this.model.rows = []
|
151
151
|
let http = new HttpResetClass()
|
152
|
-
let res = await http.load('POST', '
|
152
|
+
let res = await http.load('POST', 'api/af-system/sql/system_getSingle', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
153
153
|
this.model.rows = res.data
|
154
154
|
},
|
155
155
|
|
@@ -183,8 +183,7 @@
|
|
183
183
|
deleteItem (row) {
|
184
184
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
185
185
|
if (res === 'confirm') {
|
186
|
-
|
187
|
-
this.$resetpost('rs/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
|
186
|
+
this.$resetpost('api/af-system/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
|
188
187
|
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
189
188
|
})
|
190
189
|
}
|
@@ -202,8 +201,7 @@
|
|
202
201
|
this.show = true
|
203
202
|
},
|
204
203
|
confirm () {
|
205
|
-
|
206
|
-
this.$resetpost('rs/logic/system_saveSingle', this.selectItem).then((res) => {
|
204
|
+
this.$resetpost('api/af-system/logic/system_saveSingle', this.selectItem).then((res) => {
|
207
205
|
// 如果没有id,需要在数组中添加
|
208
206
|
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
209
207
|
this.show = false
|
@@ -174,8 +174,7 @@ let saveGen = function *(self) {
|
|
174
174
|
console.log('登录配置', self.config)
|
175
175
|
if (self.config.isMac) {
|
176
176
|
// 获取该登录人分公司下的mac配置
|
177
|
-
|
178
|
-
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
177
|
+
let getMacs = yield self.$resetpost('api/af-system/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
179
178
|
resolveMsg: null,
|
180
179
|
rejectMsg: null
|
181
180
|
}).catch(() => {
|
@@ -258,21 +257,6 @@ export default {
|
|
258
257
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
259
258
|
window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
|
260
259
|
this.vTime = this.format(new Date(window.versionTime));
|
261
|
-
try{
|
262
|
-
let http = new HttpResetClass()
|
263
|
-
let res = await http.load('POST', 'rs/sql/singleTable',
|
264
|
-
{data:{
|
265
|
-
tablename: 't_changedeclare',
|
266
|
-
condition: ` f_type ='变更通知' `
|
267
|
-
}
|
268
|
-
}, {resolveMsg: null, rejectMsg: null})
|
269
|
-
if(res.data.length>0){
|
270
|
-
console.log("---------------获取通知",res.data[0].f_change_message)
|
271
|
-
this.notice=res.data[0].f_change_message
|
272
|
-
}
|
273
|
-
}catch(e){}
|
274
|
-
|
275
|
-
this.loginother();
|
276
260
|
$('#login-button').click(function (event) {
|
277
261
|
event.preventDefault()
|
278
262
|
$('form').fadeOut(500)
|
@@ -428,28 +412,24 @@ export default {
|
|
428
412
|
}else {
|
429
413
|
console.log("待办提醒全局关闭。")
|
430
414
|
}
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
415
|
},
|
436
416
|
|
437
417
|
async loginother(){
|
438
|
-
if (this.config.distanceLogin) {
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
}
|
418
|
+
// if (this.config.distanceLogin) {
|
419
|
+
// if (this.$login && this.$login.getUrlParames('name') ) {
|
420
|
+
// let ename = this.$login.getUrlParames('name');
|
421
|
+
// // todo v4
|
422
|
+
// let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
423
|
+
// if(logininfo.data){
|
424
|
+
// if(logininfo.data.ename && logininfo.data.password){
|
425
|
+
// this.model.ename = logininfo.data.ename
|
426
|
+
// this.model.password =logininfo.data.password
|
427
|
+
// let gen = saveGen(this)
|
428
|
+
// return co(gen)
|
429
|
+
// }
|
430
|
+
// }
|
431
|
+
// }
|
432
|
+
// }
|
453
433
|
},
|
454
434
|
theme(){
|
455
435
|
// var elementList = document.querySelectorAll('body');
|
@@ -568,7 +568,6 @@ let createWaterMark = function (userName) {
|
|
568
568
|
res.data.forEach(itre => {
|
569
569
|
let band = null
|
570
570
|
if ('f_dynamic_expire' in itre) {
|
571
|
-
console.log(itre.f_dynamic_expire)
|
572
571
|
if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
|
573
572
|
let todayold = new Date(itre.f_dynamic_expire)
|
574
573
|
todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
|
@@ -471,7 +471,6 @@ export default {
|
|
471
471
|
res.data.forEach(itre => {
|
472
472
|
let band = null
|
473
473
|
if ('f_dynamic_expire' in itre) {
|
474
|
-
console.log(itre.f_dynamic_expire)
|
475
474
|
if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
|
476
475
|
let todayold = new Date(itre.f_dynamic_expire)
|
477
476
|
todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
|
@@ -7,12 +7,12 @@ let loginGen = async function (username, password, cue) {
|
|
7
7
|
const getLogin = await Vue.resetpost('/api/af-auth/login', data,
|
8
8
|
{resolveMsg: null, rejectMsg: null,headerConfig:{'Content-type': "application/json"}
|
9
9
|
})
|
10
|
-
if (getLogin.data
|
10
|
+
if (getLogin.data) {
|
11
11
|
//获取jwt
|
12
|
-
Vue.$login.jwt = getLogin.data.
|
12
|
+
Vue.$login.jwt = getLogin.data.resources.data.id
|
13
13
|
Vue.$login.jwtNew = getLogin.data.access_token
|
14
14
|
// 调用远程登录服务,获取所有有权访问的功能
|
15
|
-
Vue.$login.f = getLogin.data.
|
15
|
+
Vue.$login.f = getLogin.data.resources.data
|
16
16
|
// 把登录用户添加到cookie里
|
17
17
|
Vue.cookie.set('loginId', Vue.$login.f.id)
|
18
18
|
try {
|
package/src/stores/AppData.js
CHANGED
@@ -9,7 +9,7 @@ let GetAppDataService = {
|
|
9
9
|
|
10
10
|
// 开启卡监听
|
11
11
|
load () {
|
12
|
-
return Vue.resetpost('
|
12
|
+
return Vue.resetpost('api/af-system/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
13
13
|
res.data.singleValues.forEach((item) => {
|
14
14
|
this.singleValues[item.name] = item.value
|
15
15
|
})
|