system-clients 3.2.87-yly → 3.2.88-temp
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/.gradle/8.5/checksums/checksums.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.5/fileChanges/last-build.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.5/gc.properties +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/gradlew +249 -0
- package/gradlew.bat +92 -0
- package/package.json +105 -105
- package/src/components/Main.vue +923 -935
- package/src/components/equipment/EquipmentManage.vue +83 -83
- package/src/components/equipment/PcAdd.vue +115 -115
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +61 -61
- package/src/components/equipment/PhoneAdd.vue +118 -118
- package/src/components/equipment/PhoneList.vue +113 -113
- package/src/components/equipment/PhoneManage.vue +61 -61
- 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 +55 -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 +169 -166
- package/src/components/server/ResSelectGroup.vue +211 -211
- 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/bayan/PosAdd.vue +368 -0
- package/src/filiale/bayan/PosList.vue +343 -0
- package/src/filiale/bayan/PosManage.vue +138 -0
- package/src/filiale/bayan/system.js +6 -0
- 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 +582 -582
- package/src/filiale/qianneng/Main.vue +816 -816
- package/src/filiale/qianneng/ModifyPw.vue +107 -107
- 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/Main.vue +1019 -1019
- package/src/filiale/tongchuan/system.js +7 -7
- package/src/filiale/weinan/Main.vue +923 -923
- package/src/filiale/weinan/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 +536 -536
- 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 +690 -690
- package/src/assets/logo_header.4b1d0be.png +0 -0
@@ -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,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', messageEvent => {
|
23
|
-
try {
|
24
|
-
const data = messageEvent.data
|
25
|
-
console.log('接收到数据', data)
|
26
|
-
this.$login = Object.assign(this.$login, data.login)
|
27
|
-
this.$appdata = Object.assign(this.$appdata, data.appdata)
|
28
|
-
if (!data.page) {
|
29
|
-
this.$showMessage('没有功能连接, 请配置!')
|
30
|
-
return
|
31
|
-
}
|
32
|
-
this.$goto(data.page)
|
33
|
-
} catch (e) {
|
34
|
-
console.log('登陆异常', e)
|
35
|
-
}
|
36
|
-
})
|
37
|
-
})
|
38
|
-
}
|
39
|
-
}
|
40
|
-
</script>
|
41
|
-
<style media="screen">
|
42
|
-
.loadingdata {
|
43
|
-
position: fixed;
|
44
|
-
background: #fff;
|
45
|
-
opacity: 0.6;
|
46
|
-
top: 0;
|
47
|
-
width: 100%;
|
48
|
-
}
|
49
|
-
.loaderror {
|
50
|
-
opacity: 1;
|
51
|
-
}
|
52
|
-
.loadsuccess {
|
53
|
-
display: none;
|
54
|
-
}
|
55
|
-
</style>
|
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
|
+
this.$login = Object.assign(this.$login, data.login)
|
27
|
+
this.$appdata = Object.assign(this.$appdata, data.appdata)
|
28
|
+
if (!data.page) {
|
29
|
+
this.$showMessage('没有功能连接, 请配置!')
|
30
|
+
return
|
31
|
+
}
|
32
|
+
this.$goto(data.page)
|
33
|
+
} catch (e) {
|
34
|
+
console.log('登陆异常', e)
|
35
|
+
}
|
36
|
+
})
|
37
|
+
})
|
38
|
+
}
|
39
|
+
}
|
40
|
+
</script>
|
41
|
+
<style media="screen">
|
42
|
+
.loadingdata {
|
43
|
+
position: fixed;
|
44
|
+
background: #fff;
|
45
|
+
opacity: 0.6;
|
46
|
+
top: 0;
|
47
|
+
width: 100%;
|
48
|
+
}
|
49
|
+
.loaderror {
|
50
|
+
opacity: 1;
|
51
|
+
}
|
52
|
+
.loadsuccess {
|
53
|
+
display: none;
|
54
|
+
}
|
55
|
+
</style>
|