system-clients 3.0.42 → 3.0.43-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 +92 -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,222 +1,214 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex">
|
3
|
-
<p class="bg-info text-center" style="padding: 8px;">参数管理
|
4
|
-
<span class="btn btn-link add-postition" @click="add('t_parameter')">新增</span>
|
5
|
-
</p>
|
6
|
-
<div class="form-inline auto" style="margin-bottom: 5px;">
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<template partial='
|
22
|
-
<
|
23
|
-
|
24
|
-
|
25
|
-
<
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
<template partial='
|
48
|
-
<
|
49
|
-
|
50
|
-
|
51
|
-
<
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
</
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</
|
71
|
-
|
72
|
-
|
73
|
-
<
|
74
|
-
|
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
|
-
this.
|
137
|
-
this.modifyItem.EntityType =
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
this.
|
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
|
-
data
|
198
|
-
name: this.modifyItem.name,
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
close () {
|
216
|
-
this.show = false
|
217
|
-
this.modifyItem = {name: ''}
|
218
|
-
}
|
219
|
-
}
|
220
|
-
|
221
|
-
}
|
222
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="flex">
|
3
|
+
<p class="bg-info text-center" style="padding: 8px;">参数管理
|
4
|
+
<span class="btn btn-link add-postition" @click="add('t_parameter')">新增</span>
|
5
|
+
</p>
|
6
|
+
<div class="form-inline auto" style="margin-bottom: 5px;">
|
7
|
+
<label for="">参数名称:</label>
|
8
|
+
<input type="text" class="form-control" placeholder='请输入查找的参数名' v-model="param" @keyup.enter="filterParams(param)">
|
9
|
+
<button class="btn btn-primary" @click="filterParams(param)">查询</button>
|
10
|
+
</div>
|
11
|
+
<div class="span">
|
12
|
+
<partial-view v-ref:params-load>
|
13
|
+
<data-grid :model="model" v-ref:params @select-changed="selected" >
|
14
|
+
<template partial='head'>
|
15
|
+
<tr>
|
16
|
+
<th>序号</th>
|
17
|
+
<th>名称</th>
|
18
|
+
<th>操作</th>
|
19
|
+
</tr>
|
20
|
+
</template>
|
21
|
+
<template partial='body'>
|
22
|
+
<td>{{$index+1}}</td>
|
23
|
+
<td>{{row.name}}</td>
|
24
|
+
<td class="flex-around">
|
25
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
|
26
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.deleteParam(row)">删除</button>
|
27
|
+
</td>
|
28
|
+
</template>
|
29
|
+
</data-grid>
|
30
|
+
</partial-view>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<p v-if="selectItem" class="bg-info text-center" style="padding: 8px;margin: 8px 0px;">
|
34
|
+
{{selectItem.name}}
|
35
|
+
<span class="btn btn-link add-postition" @click="add('t_paramvalue')">新增</span>
|
36
|
+
</p>
|
37
|
+
<div v-if="selectItem" class="span">
|
38
|
+
<partial-view v-ref:selects-load>
|
39
|
+
<data-grid :model="params" v-ref:selects >
|
40
|
+
<template partial='head'>
|
41
|
+
<tr>
|
42
|
+
<th>序号</th>
|
43
|
+
<th>名称</th>
|
44
|
+
<th>操作</th>
|
45
|
+
</tr>
|
46
|
+
</template>
|
47
|
+
<template partial='body'>
|
48
|
+
<td>{{$index+1}}</td>
|
49
|
+
<td>{{row.name}}</td>
|
50
|
+
<td class="flex-around">
|
51
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
|
52
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.deleteParam(row, $index)">删除</button>
|
53
|
+
</td>
|
54
|
+
</template>
|
55
|
+
</data-grid>
|
56
|
+
</partial-view>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<modal :show.sync="show" v-ref:modal backdrop="false">
|
60
|
+
<header slot="modal-header" class="modal-header">
|
61
|
+
<button type="button" class="close" @click="close"><span>×</span></button>
|
62
|
+
<h4 class="modal-title">参数配置</h4>
|
63
|
+
</header>
|
64
|
+
<article slot="modal-body" class="modal-body">
|
65
|
+
<div class="from-group">
|
66
|
+
<label for="">参数名称</label>
|
67
|
+
<input type="text" class="form-control" v-model="modifyItem.name" @keyup.enter="confirm">
|
68
|
+
</div>
|
69
|
+
|
70
|
+
</article>
|
71
|
+
|
72
|
+
<footer slot="modal-footer" class="modal-footer">
|
73
|
+
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
74
|
+
<button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
|
75
|
+
</footer>
|
76
|
+
</modal>
|
77
|
+
</div>
|
78
|
+
</template>
|
79
|
+
<script>
|
80
|
+
|
81
|
+
|
82
|
+
export default {
|
83
|
+
title: '用户操作',
|
84
|
+
data () {
|
85
|
+
return {
|
86
|
+
allParams: null, // 获取到所有的参数
|
87
|
+
model: { // 参数列表显示的数据
|
88
|
+
rows: []
|
89
|
+
},
|
90
|
+
selectItem: null, // 选择的参数
|
91
|
+
params: { // 选择的参数的具体内容
|
92
|
+
rows: []
|
93
|
+
},
|
94
|
+
selectContent: null, // 选中的一条数据(包含参数或参数的具体内容)
|
95
|
+
modifyItem: {
|
96
|
+
name: ''
|
97
|
+
}, // 要修改的参数
|
98
|
+
show: false, // 是否显示添加修改模态框
|
99
|
+
}
|
100
|
+
},
|
101
|
+
ready () {
|
102
|
+
this.model.rows = Object.keys(this.$appdata.params)
|
103
|
+
this.loadParams()
|
104
|
+
},
|
105
|
+
methods: {
|
106
|
+
// 加载全部参数
|
107
|
+
loadParams () {
|
108
|
+
this.$refs.paramsLoad.load('rs/sql/hql/simpleHql', {data: {tablename: 't_parameter'}}).then((res) => {
|
109
|
+
this.model.rows = this.allParams = res.data
|
110
|
+
})
|
111
|
+
},
|
112
|
+
selected (val) {
|
113
|
+
this.selectItem = val.val
|
114
|
+
this.params.rows = val.val.f_paramvalues
|
115
|
+
},
|
116
|
+
filterParams (param) {
|
117
|
+
this.selectItem = null
|
118
|
+
if (param && param !== "") {
|
119
|
+
this.model.rows = this.allParams.filter((item) => {
|
120
|
+
return item.name.includes(param)
|
121
|
+
})
|
122
|
+
}else {
|
123
|
+
this.model.rows = this.allParams
|
124
|
+
}
|
125
|
+
},
|
126
|
+
// 添加参数或添加参数内容
|
127
|
+
add (type) {
|
128
|
+
this.show = true
|
129
|
+
this.modifyItem.EntityType = type
|
130
|
+
},
|
131
|
+
// 修改参数或添加参数内容
|
132
|
+
modifyParam (row) {
|
133
|
+
this.show = true
|
134
|
+
this.selectContent = row
|
135
|
+
this.modifyItem.name = row.name
|
136
|
+
this.modifyItem.id = row.id
|
137
|
+
this.modifyItem.EntityType = row.EntityType
|
138
|
+
// this.tempName = row.name
|
139
|
+
},
|
140
|
+
// 删除
|
141
|
+
deleteParam (row, index) {
|
142
|
+
if (row.EntityType === 't_parameter') {
|
143
|
+
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
144
|
+
if (res === 'confirm') {
|
145
|
+
this.$refs.paramsLoad.load('rs/logic/deleteParam', row).then((res) => {
|
146
|
+
this.loadParams()
|
147
|
+
this.selectItem = null
|
148
|
+
})
|
149
|
+
}
|
150
|
+
})
|
151
|
+
} else if (row.EntityType === 't_paramvalue') {
|
152
|
+
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
153
|
+
if (res === 'confirm') {
|
154
|
+
this.$refs.selectsLoad.load('rs/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
|
155
|
+
this.params.rows.splice(index, 1)
|
156
|
+
})
|
157
|
+
}
|
158
|
+
})
|
159
|
+
}
|
160
|
+
},
|
161
|
+
// 修该内容的提交
|
162
|
+
confirm () {
|
163
|
+
let data = {}
|
164
|
+
if (this.modifyItem.EntityType === 't_parameter') {
|
165
|
+
// 有id为修改
|
166
|
+
if (this.modifyItem.id) {
|
167
|
+
data = {
|
168
|
+
id: this.modifyItem.id,
|
169
|
+
name: this.modifyItem.name
|
170
|
+
}
|
171
|
+
} else { // 否则为新增
|
172
|
+
data = {
|
173
|
+
name: this.modifyItem.name
|
174
|
+
}
|
175
|
+
}
|
176
|
+
this.$refs.paramsLoad.load('rs/entity/t_parameter', data).then((res) => {
|
177
|
+
this.loadParams()
|
178
|
+
this.show = false
|
179
|
+
this.modifyItem = {name: ''}
|
180
|
+
})
|
181
|
+
} else if (this.modifyItem.EntityType === 't_paramvalue') {
|
182
|
+
if (this.modifyItem.id) {
|
183
|
+
data = {
|
184
|
+
id: this.modifyItem.id,
|
185
|
+
name: this.modifyItem.name,
|
186
|
+
processid: this.modifyItem.processid
|
187
|
+
}
|
188
|
+
} else {
|
189
|
+
data = {
|
190
|
+
name: this.modifyItem.name,
|
191
|
+
processid: this.selectItem.id
|
192
|
+
}
|
193
|
+
}
|
194
|
+
this.$refs.selectsLoad.load('rs/entity/t_paramvalue', data).then((res) => {
|
195
|
+
this.show = false
|
196
|
+
// 如果没有id,需要在数组中添加
|
197
|
+
if (!data.id) {
|
198
|
+
this.params.rows.push({id: res.data.id, name: this.modifyItem.name, processid: this.selectItem.id, EntityType: 't_paramvalue'})
|
199
|
+
}else {
|
200
|
+
this.selectContent.name = data.name
|
201
|
+
}
|
202
|
+
this.modifyItem = {name: ''}
|
203
|
+
})
|
204
|
+
}
|
205
|
+
},
|
206
|
+
// 关闭模态框, 数据还原
|
207
|
+
close () {
|
208
|
+
this.show = false
|
209
|
+
this.modifyItem = {name: ''}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
}
|
214
|
+
</script>
|