system-clients 3.2.71 → 3.2.72-yc-1
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 +105 -105
- package/src/App.vue +24 -24
- package/src/components/Main.vue +923 -847
- package/src/components/equipment/EquipmentManage.vue +65 -65
- package/src/components/equipment/PcAdd.vue +105 -105
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +60 -60
- package/src/components/equipment/PhoneAdd.vue +107 -107
- package/src/components/equipment/PhoneList.vue +112 -112
- package/src/components/equipment/PhoneManage.vue +60 -60
- package/src/components/equipment/PosAdd.vue +323 -323
- package/src/components/equipment/PosList.vue +294 -294
- package/src/components/equipment/PosParamAdd.vue +236 -236
- package/src/components/equipment/PosParamList.vue +121 -121
- package/src/components/parammanage/ParamPage.vue +337 -337
- package/src/components/parammanage/SinglePage.vue +235 -235
- package/src/components/server/LoadData.vue +58 -55
- package/src/components/server/Login.vue +566 -566
- package/src/components/server/ModifyPw.vue +125 -125
- package/src/components/server/PcdBuildingSelect.vue +241 -241
- package/src/components/server/ResSelect.vue +155 -155
- package/src/components/server/ResSelectGroup.vue +198 -198
- package/src/components/server/RightTree.vue +348 -348
- package/src/components/server/RoleSelector.vue +88 -88
- package/src/filiale/baole/Login.vue +568 -568
- package/src/filiale/chengtou/Login.vue +537 -537
- package/src/filiale/dongguan/Login.vue +900 -900
- package/src/filiale/dongguan/Main.vue +715 -715
- package/src/filiale/furuike/Login.vue +583 -583
- package/src/filiale/furuike/Main.vue +827 -827
- package/src/filiale/gehua/Main.vue +807 -807
- package/src/filiale/konggang/Login.vue +470 -470
- package/src/filiale/konggang/system.js +7 -7
- package/src/filiale/qianneng/Login.vue +566 -0
- package/src/filiale/qianneng/Main.vue +816 -816
- package/src/filiale/qianneng/ModifyPw.vue +107 -107
- package/src/filiale/qianneng/system.js +3 -0
- package/src/filiale/rizhao/Login.vue +791 -791
- package/src/filiale/rizhao/Main.vue +611 -611
- package/src/filiale/shiquan/Login.vue +564 -564
- package/src/filiale/tianyi/Login.vue +571 -571
- package/src/filiale/tongchuan/Login.vue +561 -561
- package/src/filiale/tongchuan/system.js +7 -7
- package/src/filiale/wenxi/Login.vue +535 -535
- package/src/filiale/wenxi/Main.vue +785 -785
- package/src/filiale/wuhai/Main.vue +807 -807
- package/src/filiale/yuchuan/Login.vue +889 -889
- package/src/filiale/yuchuan/Main.vue +864 -864
- package/src/filiale/zhoukou/Main.vue +807 -807
- package/src/plugins/GetLoginInfoService.js +533 -533
- package/src/plugins/validation.js +15 -15
- package/src/stores/AppData.js +38 -38
- package/src/styles/less/aofeng/standard.less +2507 -2507
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +686 -686
@@ -1,235 +1,235 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex">
|
3
|
-
<p class="bg-info text-center" style="padding: 8px;">
|
4
|
-
单值管理
|
5
|
-
<button type="button" name="button" class="button_search button_spacing width-60 " @click="add()" style="float:right">新增</button>
|
6
|
-
</p>
|
7
|
-
<div class="auto">
|
8
|
-
<form class="form-horizontal" style="margin-bottom: 5px;">
|
9
|
-
<div class="row">
|
10
|
-
<div class="col-sm-4 form-group">
|
11
|
-
<label class="font_normal_body">使用公司</label>
|
12
|
-
<res-select restype='organization'
|
13
|
-
is-mul="false"
|
14
|
-
:initresid="curorgid"
|
15
|
-
@res-select="getorgCur">
|
16
|
-
</res-select>
|
17
|
-
</div>
|
18
|
-
<div class="col-sm-4 form-group">
|
19
|
-
<label class="font_normal_body">参数名称</label>
|
20
|
-
<input type="text" class="input_search" style="width: 60%" placeholder='请输入查找的参数名' v-model="conditionModel.paramName" @keyup.enter="filter_query(param, f_orgid_current)">
|
21
|
-
</div>
|
22
|
-
<div class="col-sm-4 form-group button-range" style="float:left;">
|
23
|
-
<button type="button" class="button_search" @click="filter_query(conditionModel.paramName,conditionModel.f_cond_orgid)">查询</button>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</form>
|
27
|
-
</div>
|
28
|
-
<div class="span">
|
29
|
-
<partial-view v-ref:single-load>
|
30
|
-
<data-grid :model="model" v-ref:grid >
|
31
|
-
<template partial='head'>
|
32
|
-
<tr>
|
33
|
-
<th>序号</th>
|
34
|
-
<th>名称</th>
|
35
|
-
<th>参数值</th>
|
36
|
-
<th>所属</th>
|
37
|
-
<th>操作</th>
|
38
|
-
</tr>
|
39
|
-
</template>
|
40
|
-
<template partial='body'>
|
41
|
-
<td style="text-align:center">{{$index+1}}</td>
|
42
|
-
<td style="text-align:center">{{row.name}}</td>
|
43
|
-
<td style="text-align:center">{{row.value}}</td>
|
44
|
-
<td style="text-align:center">{{row.orgname ? row.orgname + '专用' : '全局'}}</td>
|
45
|
-
<td class="flex-around">
|
46
|
-
<button type="button" name="button" class="button_search button_spacing width-60"
|
47
|
-
@click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
|
48
|
-
<button type="button" name="button" class="btn btn-danger"
|
49
|
-
@click.stop="$parent.$parent.$parent.deleteItem(row)">删除</button>
|
50
|
-
</td>
|
51
|
-
</template>
|
52
|
-
</data-grid>
|
53
|
-
</partial-view>
|
54
|
-
</div>
|
55
|
-
<modal v-if="show" :show.sync="show" v-ref:modal backdrop="false">
|
56
|
-
<header slot="modal-header" class="modal-header">
|
57
|
-
<button type="button" class="close" @click="close"><span>×</span></button>
|
58
|
-
<h4 class="modal-title">单值配置</h4>
|
59
|
-
</header>
|
60
|
-
<article slot="modal-body" class="modal-body">
|
61
|
-
<form class="form-horizontal">
|
62
|
-
<div class="row">
|
63
|
-
<div class="col-sm-6 form-group">
|
64
|
-
<label class="font_normal_body">单值名称</label>
|
65
|
-
<input type="text" class="input_search" style="width: 60%" v-model="selectItem.name">
|
66
|
-
</div>
|
67
|
-
<div class="col-sm-6 form-group">
|
68
|
-
<label class="font_normal_body">单值内容</label>
|
69
|
-
<input type="text" class="input_search" style="width: 60%" v-model="selectItem.value">
|
70
|
-
</div>
|
71
|
-
</div>
|
72
|
-
<div class="row">
|
73
|
-
<div class="col-sm-6 form-group" v-if="!selectItem.isGlobal">
|
74
|
-
<label class="font_normal_body">所属公司</label>
|
75
|
-
<res-select restype='organization'
|
76
|
-
:initresid="[conditionModel.f_cond_orgid]"
|
77
|
-
:is-mul="false"
|
78
|
-
@res-select="getModifyOrg">
|
79
|
-
</res-select>
|
80
|
-
</div>
|
81
|
-
<div class="checkbox col-sm-6 form-group">
|
82
|
-
<label>
|
83
|
-
<input type="checkbox" v-model="selectItem.isGlobal" :checked="selectItem.isGlobal">是否全局
|
84
|
-
</label>
|
85
|
-
</div>
|
86
|
-
</div>
|
87
|
-
</form>
|
88
|
-
|
89
|
-
</article>
|
90
|
-
|
91
|
-
<footer slot="modal-footer" class="modal-footer">
|
92
|
-
<button v-show="show" type="button" class="button_search button_spacing" @click='confirm'>确认</button>
|
93
|
-
<button v-show="show" type="button" class="button_clear button_spacing" @click='close'>取消</button>
|
94
|
-
</footer>
|
95
|
-
</modal>
|
96
|
-
</div>
|
97
|
-
</template>
|
98
|
-
<script>
|
99
|
-
|
100
|
-
import {HttpResetClass} from 'vue-client'
|
101
|
-
|
102
|
-
export default {
|
103
|
-
title: '用户操作',
|
104
|
-
data () {
|
105
|
-
return {
|
106
|
-
selectItem: {
|
107
|
-
name: '',
|
108
|
-
value: '',
|
109
|
-
isGlobal: true,
|
110
|
-
f_filialeids: null
|
111
|
-
},
|
112
|
-
|
113
|
-
// 查询条件
|
114
|
-
conditionModel: {
|
115
|
-
paramName: null,
|
116
|
-
f_cond_orgid: null
|
117
|
-
},
|
118
|
-
|
119
|
-
params: null,
|
120
|
-
model: {
|
121
|
-
rows: []
|
122
|
-
},
|
123
|
-
// 控制单值模态框
|
124
|
-
show: false,
|
125
|
-
curorgid: [this.$login.f.orgid]
|
126
|
-
}
|
127
|
-
},
|
128
|
-
ready () {
|
129
|
-
// this.model.rows = AppData.singleValues
|
130
|
-
this.loadSingle()
|
131
|
-
},
|
132
|
-
watch: {
|
133
|
-
'selectItem.isGlobal' (val) {
|
134
|
-
if (val) {
|
135
|
-
this.selectItem.f_filialeids = null
|
136
|
-
}
|
137
|
-
}
|
138
|
-
},
|
139
|
-
methods: {
|
140
|
-
|
141
|
-
loadSingle () {
|
142
|
-
let param = {
|
143
|
-
condition: '1=1',
|
144
|
-
f_filialeid: this.$login.f.orgid
|
145
|
-
}
|
146
|
-
this.queryParam(param)
|
147
|
-
},
|
148
|
-
|
149
|
-
async queryParam (condition) {
|
150
|
-
this.model.rows = []
|
151
|
-
let http = new HttpResetClass()
|
152
|
-
let res = await http.load('POST', 'rs/sql/system_getSingle', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
153
|
-
this.model.rows = res.data
|
154
|
-
},
|
155
|
-
|
156
|
-
filter_query (paramName,orgid) {
|
157
|
-
console.log('过滤查询',paramName, orgid)
|
158
|
-
let param = {}
|
159
|
-
if (paramName && orgid) {
|
160
|
-
param = {
|
161
|
-
condition: `s.name like '%${paramName}%'`,
|
162
|
-
f_filialeid: orgid
|
163
|
-
}
|
164
|
-
} else if (orgid) {
|
165
|
-
param = {
|
166
|
-
condition: '1=1',
|
167
|
-
f_filialeid: orgid
|
168
|
-
}
|
169
|
-
} else if (paramName) {
|
170
|
-
param = {
|
171
|
-
condition: `s.name like '%${paramName}%'`,
|
172
|
-
f_filialeid: this.$login.f.orgid
|
173
|
-
}
|
174
|
-
} else {
|
175
|
-
param = {
|
176
|
-
condition: '1=1',
|
177
|
-
f_filialeid: this.$login.f.orgid
|
178
|
-
}
|
179
|
-
}
|
180
|
-
this.queryParam(param)
|
181
|
-
|
182
|
-
},
|
183
|
-
deleteItem (row) {
|
184
|
-
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
185
|
-
if (res === 'confirm') {
|
186
|
-
this.$resetpost('rs/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
|
187
|
-
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
188
|
-
})
|
189
|
-
}
|
190
|
-
})
|
191
|
-
},
|
192
|
-
add () {
|
193
|
-
this.show = true
|
194
|
-
},
|
195
|
-
modifyParam (row) {
|
196
|
-
console.log('修改单值', row)
|
197
|
-
this.selectItem.name = row.name
|
198
|
-
this.selectItem.id = row.id
|
199
|
-
this.selectItem.value = row.value
|
200
|
-
this.selectItem.isGlobal = !row.orgname
|
201
|
-
this.show = true
|
202
|
-
},
|
203
|
-
confirm () {
|
204
|
-
this.$resetpost('rs/logic/system_saveSingle', this.selectItem).then((res) => {
|
205
|
-
// 如果没有id,需要在数组中添加
|
206
|
-
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
207
|
-
this.show = false
|
208
|
-
this.selectItem = {
|
209
|
-
name: '',
|
210
|
-
value: '',
|
211
|
-
isGlobal: true,
|
212
|
-
f_filialeids: null
|
213
|
-
}
|
214
|
-
})
|
215
|
-
},
|
216
|
-
getorgCur (val) {
|
217
|
-
this.conditionModel.f_cond_orgid = val[0]
|
218
|
-
},
|
219
|
-
getModifyOrg (val) {
|
220
|
-
this.selectItem.f_filialeids = val[0]
|
221
|
-
},
|
222
|
-
// 关闭模态框
|
223
|
-
close () {
|
224
|
-
this.show = false
|
225
|
-
this.selectItem = {
|
226
|
-
name: '',
|
227
|
-
value: '',
|
228
|
-
isGlobal: true,
|
229
|
-
f_filialeids: null
|
230
|
-
}
|
231
|
-
}
|
232
|
-
}
|
233
|
-
|
234
|
-
}
|
235
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="flex">
|
3
|
+
<p class="bg-info text-center" style="padding: 8px;">
|
4
|
+
单值管理
|
5
|
+
<button type="button" name="button" class="button_search button_spacing width-60 " @click="add()" style="float:right">新增</button>
|
6
|
+
</p>
|
7
|
+
<div class="auto">
|
8
|
+
<form class="form-horizontal" style="margin-bottom: 5px;">
|
9
|
+
<div class="row">
|
10
|
+
<div class="col-sm-4 form-group">
|
11
|
+
<label class="font_normal_body">使用公司</label>
|
12
|
+
<res-select restype='organization'
|
13
|
+
is-mul="false"
|
14
|
+
:initresid="curorgid"
|
15
|
+
@res-select="getorgCur">
|
16
|
+
</res-select>
|
17
|
+
</div>
|
18
|
+
<div class="col-sm-4 form-group">
|
19
|
+
<label class="font_normal_body">参数名称</label>
|
20
|
+
<input type="text" class="input_search" style="width: 60%" placeholder='请输入查找的参数名' v-model="conditionModel.paramName" @keyup.enter="filter_query(param, f_orgid_current)">
|
21
|
+
</div>
|
22
|
+
<div class="col-sm-4 form-group button-range" style="float:left;">
|
23
|
+
<button type="button" class="button_search" @click="filter_query(conditionModel.paramName,conditionModel.f_cond_orgid)">查询</button>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</form>
|
27
|
+
</div>
|
28
|
+
<div class="span">
|
29
|
+
<partial-view v-ref:single-load>
|
30
|
+
<data-grid :model="model" v-ref:grid >
|
31
|
+
<template partial='head'>
|
32
|
+
<tr>
|
33
|
+
<th>序号</th>
|
34
|
+
<th>名称</th>
|
35
|
+
<th>参数值</th>
|
36
|
+
<th>所属</th>
|
37
|
+
<th>操作</th>
|
38
|
+
</tr>
|
39
|
+
</template>
|
40
|
+
<template partial='body'>
|
41
|
+
<td style="text-align:center">{{$index+1}}</td>
|
42
|
+
<td style="text-align:center">{{row.name}}</td>
|
43
|
+
<td style="text-align:center">{{row.value}}</td>
|
44
|
+
<td style="text-align:center">{{row.orgname ? row.orgname + '专用' : '全局'}}</td>
|
45
|
+
<td class="flex-around">
|
46
|
+
<button type="button" name="button" class="button_search button_spacing width-60"
|
47
|
+
@click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
|
48
|
+
<button type="button" name="button" class="btn btn-danger"
|
49
|
+
@click.stop="$parent.$parent.$parent.deleteItem(row)">删除</button>
|
50
|
+
</td>
|
51
|
+
</template>
|
52
|
+
</data-grid>
|
53
|
+
</partial-view>
|
54
|
+
</div>
|
55
|
+
<modal v-if="show" :show.sync="show" v-ref:modal backdrop="false">
|
56
|
+
<header slot="modal-header" class="modal-header">
|
57
|
+
<button type="button" class="close" @click="close"><span>×</span></button>
|
58
|
+
<h4 class="modal-title">单值配置</h4>
|
59
|
+
</header>
|
60
|
+
<article slot="modal-body" class="modal-body">
|
61
|
+
<form class="form-horizontal">
|
62
|
+
<div class="row">
|
63
|
+
<div class="col-sm-6 form-group">
|
64
|
+
<label class="font_normal_body">单值名称</label>
|
65
|
+
<input type="text" class="input_search" style="width: 60%" v-model="selectItem.name">
|
66
|
+
</div>
|
67
|
+
<div class="col-sm-6 form-group">
|
68
|
+
<label class="font_normal_body">单值内容</label>
|
69
|
+
<input type="text" class="input_search" style="width: 60%" v-model="selectItem.value">
|
70
|
+
</div>
|
71
|
+
</div>
|
72
|
+
<div class="row">
|
73
|
+
<div class="col-sm-6 form-group" v-if="!selectItem.isGlobal">
|
74
|
+
<label class="font_normal_body">所属公司</label>
|
75
|
+
<res-select restype='organization'
|
76
|
+
:initresid="[conditionModel.f_cond_orgid]"
|
77
|
+
:is-mul="false"
|
78
|
+
@res-select="getModifyOrg">
|
79
|
+
</res-select>
|
80
|
+
</div>
|
81
|
+
<div class="checkbox col-sm-6 form-group">
|
82
|
+
<label>
|
83
|
+
<input type="checkbox" v-model="selectItem.isGlobal" :checked="selectItem.isGlobal">是否全局
|
84
|
+
</label>
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
</form>
|
88
|
+
|
89
|
+
</article>
|
90
|
+
|
91
|
+
<footer slot="modal-footer" class="modal-footer">
|
92
|
+
<button v-show="show" type="button" class="button_search button_spacing" @click='confirm'>确认</button>
|
93
|
+
<button v-show="show" type="button" class="button_clear button_spacing" @click='close'>取消</button>
|
94
|
+
</footer>
|
95
|
+
</modal>
|
96
|
+
</div>
|
97
|
+
</template>
|
98
|
+
<script>
|
99
|
+
|
100
|
+
import {HttpResetClass} from 'vue-client'
|
101
|
+
|
102
|
+
export default {
|
103
|
+
title: '用户操作',
|
104
|
+
data () {
|
105
|
+
return {
|
106
|
+
selectItem: {
|
107
|
+
name: '',
|
108
|
+
value: '',
|
109
|
+
isGlobal: true,
|
110
|
+
f_filialeids: null
|
111
|
+
},
|
112
|
+
|
113
|
+
// 查询条件
|
114
|
+
conditionModel: {
|
115
|
+
paramName: null,
|
116
|
+
f_cond_orgid: null
|
117
|
+
},
|
118
|
+
|
119
|
+
params: null,
|
120
|
+
model: {
|
121
|
+
rows: []
|
122
|
+
},
|
123
|
+
// 控制单值模态框
|
124
|
+
show: false,
|
125
|
+
curorgid: [this.$login.f.orgid]
|
126
|
+
}
|
127
|
+
},
|
128
|
+
ready () {
|
129
|
+
// this.model.rows = AppData.singleValues
|
130
|
+
this.loadSingle()
|
131
|
+
},
|
132
|
+
watch: {
|
133
|
+
'selectItem.isGlobal' (val) {
|
134
|
+
if (val) {
|
135
|
+
this.selectItem.f_filialeids = null
|
136
|
+
}
|
137
|
+
}
|
138
|
+
},
|
139
|
+
methods: {
|
140
|
+
|
141
|
+
loadSingle () {
|
142
|
+
let param = {
|
143
|
+
condition: '1=1',
|
144
|
+
f_filialeid: this.$login.f.orgid
|
145
|
+
}
|
146
|
+
this.queryParam(param)
|
147
|
+
},
|
148
|
+
|
149
|
+
async queryParam (condition) {
|
150
|
+
this.model.rows = []
|
151
|
+
let http = new HttpResetClass()
|
152
|
+
let res = await http.load('POST', 'rs/sql/system_getSingle', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
153
|
+
this.model.rows = res.data
|
154
|
+
},
|
155
|
+
|
156
|
+
filter_query (paramName,orgid) {
|
157
|
+
console.log('过滤查询',paramName, orgid)
|
158
|
+
let param = {}
|
159
|
+
if (paramName && orgid) {
|
160
|
+
param = {
|
161
|
+
condition: `s.name like '%${paramName}%'`,
|
162
|
+
f_filialeid: orgid
|
163
|
+
}
|
164
|
+
} else if (orgid) {
|
165
|
+
param = {
|
166
|
+
condition: '1=1',
|
167
|
+
f_filialeid: orgid
|
168
|
+
}
|
169
|
+
} else if (paramName) {
|
170
|
+
param = {
|
171
|
+
condition: `s.name like '%${paramName}%'`,
|
172
|
+
f_filialeid: this.$login.f.orgid
|
173
|
+
}
|
174
|
+
} else {
|
175
|
+
param = {
|
176
|
+
condition: '1=1',
|
177
|
+
f_filialeid: this.$login.f.orgid
|
178
|
+
}
|
179
|
+
}
|
180
|
+
this.queryParam(param)
|
181
|
+
|
182
|
+
},
|
183
|
+
deleteItem (row) {
|
184
|
+
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
185
|
+
if (res === 'confirm') {
|
186
|
+
this.$resetpost('rs/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
|
187
|
+
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
188
|
+
})
|
189
|
+
}
|
190
|
+
})
|
191
|
+
},
|
192
|
+
add () {
|
193
|
+
this.show = true
|
194
|
+
},
|
195
|
+
modifyParam (row) {
|
196
|
+
console.log('修改单值', row)
|
197
|
+
this.selectItem.name = row.name
|
198
|
+
this.selectItem.id = row.id
|
199
|
+
this.selectItem.value = row.value
|
200
|
+
this.selectItem.isGlobal = !row.orgname
|
201
|
+
this.show = true
|
202
|
+
},
|
203
|
+
confirm () {
|
204
|
+
this.$resetpost('rs/logic/system_saveSingle', this.selectItem).then((res) => {
|
205
|
+
// 如果没有id,需要在数组中添加
|
206
|
+
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
207
|
+
this.show = false
|
208
|
+
this.selectItem = {
|
209
|
+
name: '',
|
210
|
+
value: '',
|
211
|
+
isGlobal: true,
|
212
|
+
f_filialeids: null
|
213
|
+
}
|
214
|
+
})
|
215
|
+
},
|
216
|
+
getorgCur (val) {
|
217
|
+
this.conditionModel.f_cond_orgid = val[0]
|
218
|
+
},
|
219
|
+
getModifyOrg (val) {
|
220
|
+
this.selectItem.f_filialeids = val[0]
|
221
|
+
},
|
222
|
+
// 关闭模态框
|
223
|
+
close () {
|
224
|
+
this.show = false
|
225
|
+
this.selectItem = {
|
226
|
+
name: '',
|
227
|
+
value: '',
|
228
|
+
isGlobal: true,
|
229
|
+
f_filialeids: null
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
}
|
235
|
+
</script>
|
@@ -1,55 +1,58 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="loadingdata" :class="{'loaderror': show, 'loadsuccess': !show}">
|
3
|
-
<!-- <h2 style="margin: 0" v-if="show">{{msg}}</h2> -->
|
4
|
-
<h2 style="margin: 0" v-if="show">参数加载失败,请检查网络状态和服务状态...</h2>
|
5
|
-
</div>
|
6
|
-
</template>
|
7
|
-
|
8
|
-
<script>
|
9
|
-
export default {
|
10
|
-
title: '加载参数',
|
11
|
-
data () {
|
12
|
-
return {
|
13
|
-
msg: '',
|
14
|
-
show: false
|
15
|
-
}
|
16
|
-
},
|
17
|
-
props: {
|
18
|
-
componentName: {}
|
19
|
-
},
|
20
|
-
async ready () {
|
21
|
-
this.$nextTick(() => {
|
22
|
-
window.addEventListener('message', messageEvent => {
|
23
|
-
try {
|
24
|
-
const data = messageEvent.data
|
25
|
-
console.log('接收到数据', data)
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
this.$
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
}
|
52
|
-
.
|
53
|
-
|
54
|
-
}
|
55
|
-
|
1
|
+
<template>
|
2
|
+
<div class="loadingdata" :class="{'loaderror': show, 'loadsuccess': !show}">
|
3
|
+
<!-- <h2 style="margin: 0" v-if="show">{{msg}}</h2> -->
|
4
|
+
<h2 style="margin: 0" v-if="show">参数加载失败,请检查网络状态和服务状态...</h2>
|
5
|
+
</div>
|
6
|
+
</template>
|
7
|
+
|
8
|
+
<script>
|
9
|
+
export default {
|
10
|
+
title: '加载参数',
|
11
|
+
data () {
|
12
|
+
return {
|
13
|
+
msg: '',
|
14
|
+
show: false
|
15
|
+
}
|
16
|
+
},
|
17
|
+
props: {
|
18
|
+
componentName: {}
|
19
|
+
},
|
20
|
+
async ready () {
|
21
|
+
this.$nextTick(() => {
|
22
|
+
window.addEventListener('message',async messageEvent => {
|
23
|
+
try {
|
24
|
+
const data = messageEvent.data
|
25
|
+
console.log('接收到数据', data)
|
26
|
+
if(this.$appdata){
|
27
|
+
this.$login = Object.assign(this.$login, data.login)
|
28
|
+
this.$appdata = Object.assign(this.$appdata, data.appdata)
|
29
|
+
await this.$appdata.load()
|
30
|
+
}
|
31
|
+
if (!data.page) {
|
32
|
+
this.$showMessage('没有功能连接, 请配置!')
|
33
|
+
return
|
34
|
+
}
|
35
|
+
this.$goto(data.page)
|
36
|
+
} catch (e) {
|
37
|
+
console.log('登陆异常', e)
|
38
|
+
}
|
39
|
+
})
|
40
|
+
})
|
41
|
+
}
|
42
|
+
}
|
43
|
+
</script>
|
44
|
+
<style media="screen">
|
45
|
+
.loadingdata {
|
46
|
+
position: fixed;
|
47
|
+
background: #fff;
|
48
|
+
opacity: 0.6;
|
49
|
+
top: 0;
|
50
|
+
width: 100%;
|
51
|
+
}
|
52
|
+
.loaderror {
|
53
|
+
opacity: 1;
|
54
|
+
}
|
55
|
+
.loadsuccess {
|
56
|
+
display: none;
|
57
|
+
}
|
58
|
+
</style>
|