system-clients 3.0.43 → 3.0.44-fanxian
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/buildOutputCleanup/cache.properties +2 -2
- package/package.json +1 -1
- package/src/components/Main.vue +94 -3
- package/src/components/parammanage/AlarmInformation.vue +122 -0
- package/src/components/parammanage/ParamManages.vue +43 -43
- package/src/components/parammanage/ParamPage.vue +314 -314
- package/src/components/parammanage/ParamPages.vue +214 -222
- package/src/components/parammanage/SinglePage.vue +237 -235
- package/src/components/parammanage/SinglePages.vue +161 -167
- package/src/components/server/Login.vue +623 -624
- package/src/components/server/ResSelectGroup.vue +140 -140
- package/src/system.js +78 -76
- package/static/newStyle/alarm.mp3 +0 -0
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/src/images/newStyle/login-check.png +0 -0
- package/src/images/newStyle/login-con.png +0 -0
- package/src/images/newStyle/login-do.gif +0 -0
- package/src/images/newStyle/login-info.png +0 -0
- package/src/images/newStyle/login-left.png +0 -0
- package/src/images/newStyle/login-pwd.png +0 -0
- package/src/images/newStyle/login-user.png +0 -0
- package/src/images/newStyle/loginbg.gif +0 -0
- package/src/images/newStyle/loginbg1280.gif +0 -0
- package/src/images/newStyle/loginbg1366.gif +0 -0
@@ -1,235 +1,237 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex">
|
3
|
-
<p class="bg-info text-center" style="padding: 8px;">
|
4
|
-
单值管理
|
5
|
-
<span class="btn btn-link add-postition" @click="add()">新增</span>
|
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
|
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
|
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="
|
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 class="list_area table_sy">
|
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="btn btn-link"
|
47
|
-
@click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
|
48
|
-
<button type="button" name="button" class="btn btn-link"
|
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="
|
63
|
-
<div class="col-sm-6
|
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
|
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="
|
73
|
-
<div class="
|
74
|
-
<label
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
<
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
</
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
})
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
this.selectItem.
|
200
|
-
this.selectItem.
|
201
|
-
this.
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
this.
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
1
|
+
<template>
|
2
|
+
<div class="flex">
|
3
|
+
<p class="bg-info text-center" style="padding: 8px;">
|
4
|
+
单值管理
|
5
|
+
<span class="btn btn-link add-postition" @click="add()">新增</span>
|
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">
|
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">
|
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="text-right">
|
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 class="list_area table_sy">
|
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="btn btn-link"
|
47
|
+
@click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
|
48
|
+
<button type="button" name="button" class="btn btn-link"
|
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="form-group">
|
63
|
+
<div class="col-sm-6">
|
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">
|
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="col-sm-6">
|
73
|
+
<div class="checkbox">
|
74
|
+
<label>
|
75
|
+
<input type="checkbox" v-model="selectItem.isGlobal" :checked="selectItem.isGlobal">是否全局
|
76
|
+
</label>
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
<div class="form-group" v-if="!selectItem.isGlobal">
|
80
|
+
<div class="col-sm-6">
|
81
|
+
<label class="font_normal_body">所属公司</label>
|
82
|
+
<res-select restype='organization'
|
83
|
+
:initresid="[conditionModel.f_cond_orgid]"
|
84
|
+
:is-mul="false"
|
85
|
+
@res-select="getModifyOrg">
|
86
|
+
</res-select>
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
</form>
|
90
|
+
|
91
|
+
</article>
|
92
|
+
|
93
|
+
<footer slot="modal-footer" class="modal-footer">
|
94
|
+
<button v-show="show" type="button" class="button_search button_spacing" @click='confirm'>确认</button>
|
95
|
+
<button v-show="show" type="button" class="button_clear button_spacing" @click='close'>取消</button>
|
96
|
+
</footer>
|
97
|
+
</modal>
|
98
|
+
</div>
|
99
|
+
</template>
|
100
|
+
<script>
|
101
|
+
|
102
|
+
import {HttpResetClass} from 'vue-client'
|
103
|
+
|
104
|
+
export default {
|
105
|
+
title: '用户操作',
|
106
|
+
data () {
|
107
|
+
return {
|
108
|
+
selectItem: {
|
109
|
+
name: '',
|
110
|
+
value: '',
|
111
|
+
isGlobal: true,
|
112
|
+
f_filialeids: null
|
113
|
+
},
|
114
|
+
|
115
|
+
// 查询条件
|
116
|
+
conditionModel: {
|
117
|
+
paramName: null,
|
118
|
+
f_cond_orgid: null
|
119
|
+
},
|
120
|
+
|
121
|
+
params: null,
|
122
|
+
model: {
|
123
|
+
rows: []
|
124
|
+
},
|
125
|
+
// 控制单值模态框
|
126
|
+
show: false,
|
127
|
+
curorgid: [this.$login.f.orgid]
|
128
|
+
}
|
129
|
+
},
|
130
|
+
ready () {
|
131
|
+
// this.model.rows = AppData.singleValues
|
132
|
+
this.loadSingle()
|
133
|
+
},
|
134
|
+
watch: {
|
135
|
+
'selectItem.isGlobal' (val) {
|
136
|
+
if (val) {
|
137
|
+
this.selectItem.f_filialeids = null
|
138
|
+
}
|
139
|
+
}
|
140
|
+
},
|
141
|
+
methods: {
|
142
|
+
|
143
|
+
loadSingle () {
|
144
|
+
let param = {
|
145
|
+
condition: '1=1',
|
146
|
+
f_filialeid: this.$login.f.orgid
|
147
|
+
}
|
148
|
+
this.queryParam(param)
|
149
|
+
},
|
150
|
+
|
151
|
+
async queryParam (condition) {
|
152
|
+
this.model.rows = []
|
153
|
+
let http = new HttpResetClass()
|
154
|
+
let res = await http.load('POST', 'rs/sql/system_getSingle', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
155
|
+
this.model.rows = res.data
|
156
|
+
},
|
157
|
+
|
158
|
+
filter_query (paramName,orgid) {
|
159
|
+
console.log('过滤查询',paramName, orgid)
|
160
|
+
let param = {}
|
161
|
+
if (paramName && orgid) {
|
162
|
+
param = {
|
163
|
+
condition: `s.name like '%${paramName}%'`,
|
164
|
+
f_filialeid: orgid
|
165
|
+
}
|
166
|
+
} else if (orgid) {
|
167
|
+
param = {
|
168
|
+
condition: '1=1',
|
169
|
+
f_filialeid: orgid
|
170
|
+
}
|
171
|
+
} else if (paramName) {
|
172
|
+
param = {
|
173
|
+
condition: `s.name like '%${paramName}%'`,
|
174
|
+
f_filialeid: this.$login.f.orgid
|
175
|
+
}
|
176
|
+
} else {
|
177
|
+
param = {
|
178
|
+
condition: '1=1',
|
179
|
+
f_filialeid: this.$login.f.orgid
|
180
|
+
}
|
181
|
+
}
|
182
|
+
this.queryParam(param)
|
183
|
+
|
184
|
+
},
|
185
|
+
deleteItem (row) {
|
186
|
+
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
187
|
+
if (res === 'confirm') {
|
188
|
+
this.$resetpost('rs/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
|
189
|
+
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
190
|
+
})
|
191
|
+
}
|
192
|
+
})
|
193
|
+
},
|
194
|
+
add () {
|
195
|
+
this.show = true
|
196
|
+
},
|
197
|
+
modifyParam (row) {
|
198
|
+
console.log('修改单值', row)
|
199
|
+
this.selectItem.name = row.name
|
200
|
+
this.selectItem.id = row.id
|
201
|
+
this.selectItem.value = row.value
|
202
|
+
this.selectItem.isGlobal = !row.orgname
|
203
|
+
this.show = true
|
204
|
+
},
|
205
|
+
confirm () {
|
206
|
+
this.$resetpost('rs/logic/system_saveSingle', this.selectItem).then((res) => {
|
207
|
+
// 如果没有id,需要在数组中添加
|
208
|
+
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
209
|
+
this.show = false
|
210
|
+
this.selectItem = {
|
211
|
+
name: '',
|
212
|
+
value: '',
|
213
|
+
isGlobal: true,
|
214
|
+
f_filialeids: null
|
215
|
+
}
|
216
|
+
})
|
217
|
+
},
|
218
|
+
getorgCur (val) {
|
219
|
+
this.conditionModel.f_cond_orgid = val[0]
|
220
|
+
},
|
221
|
+
getModifyOrg (val) {
|
222
|
+
this.selectItem.f_filialeids = val[0]
|
223
|
+
},
|
224
|
+
// 关闭模态框
|
225
|
+
close () {
|
226
|
+
this.show = false
|
227
|
+
this.selectItem = {
|
228
|
+
name: '',
|
229
|
+
value: '',
|
230
|
+
isGlobal: true,
|
231
|
+
f_filialeids: null
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
}
|
237
|
+
</script>
|