system-clients 3.2.5 → 3.2.7
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/.eslintrc.js +16 -16
- package/SystemClient.iml +2 -5
- package/build/webpack.base.conf.js +21 -11
- package/package.json +6 -4
- package/src/App.vue +24 -24
- package/src/components/Main.vue +626 -476
- package/src/components/TabButton.vue +201 -0
- package/src/components/Tabs.vue +67 -0
- package/src/components/addressManage/AddressCascadingMenu.vue +145 -0
- package/src/components/equipment/EquipmentManage.vue +1 -1
- package/src/components/equipment/PcAdd.vue +5 -5
- package/src/components/equipment/PcList.vue +5 -5
- package/src/components/equipment/PhoneAdd.vue +26 -13
- package/src/components/equipment/PhoneList.vue +31 -21
- package/src/components/equipment/PosAdd.vue +231 -45
- package/src/components/equipment/PosList.vue +198 -68
- package/src/components/equipment/PosManage.vue +80 -9
- package/src/components/equipment/PosManageBoth.vue +125 -0
- package/src/components/equipment/PosParamAdd.vue +236 -0
- package/src/components/equipment/PosParamList.vue +121 -0
- package/src/components/equipment/PosParamManage.vue +51 -0
- package/src/components/parammanage/ParamManage.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +30 -8
- package/src/components/parammanage/SinglePage.vue +4 -4
- package/src/components/server/ImageVieweTest.vue +56 -0
- package/src/components/server/ImageViewer.vue +350 -0
- package/src/components/server/LoadData.vue +21 -2
- package/src/components/server/Login.vue +784 -519
- package/src/components/server/ModifyPw.vue +12 -7
- package/src/components/server/PcdBuildingSelect.vue +241 -0
- package/src/components/server/ResSelect.vue +5 -0
- package/src/components/server/ResSelectGroup.vue +159 -103
- package/src/components/server/RightTree.vue +289 -204
- package/src/filiale/dongguan/Login.vue +889 -0
- package/src/filiale/dongguan/Main.vue +715 -0
- package/src/filiale/dongguan/system.js +6 -0
- package/src/filiale/konggang/Login.vue +840 -0
- package/src/filiale/konggang/system.js +7 -0
- package/src/filiale/qianneng/ModifyPw.vue +107 -0
- package/src/filiale/qianneng/system.js +7 -0
- package/src/filiale/rizhao/LeftTree.vue +111 -0
- package/src/filiale/rizhao/Login.vue +791 -0
- package/src/filiale/rizhao/Main.vue +606 -0
- package/src/filiale/rizhao/system.js +14 -0
- package/src/filiale/yuchuan/Login.vue +889 -0
- package/src/filiale/yuchuan/Main.vue +773 -0
- package/src/filiale/yuchuan/system.js +10 -0
- package/src/plugins/EncryptUtil.js +53 -0
- package/src/plugins/GetLoginInfoService.js +76 -70
- package/src/plugins/HeatGetLoginInfoService.js +491 -0
- package/src/plugins/validation.js +9 -1
- package/src/stores/HeatAppData.js +38 -0
- package/src/styles/less/aofeng/standard.less +446 -60
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +13 -13
- package/src/styles/less/aofeng/themeOne/systemStyle.less +12 -12
- package/src/styles/less/aofeng/themeOne.less +4 -1
- package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -0
- package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -0
- package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -0
- package/src/styles/less/tables.less +50 -0
- package/src/styles/less/type.less +16 -3
- package/src/styles/less/variables.less +6 -3
- package/src/system.js +34 -1
- package/src/util/Daiban.json +12 -0
- package/static/images/lefticon//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
- package/static/logo.png +0 -0
- package/static/newStyle/about-us.png +0 -0
- package/static/rizhao.png +0 -0
- package/yarn-error.log +6896 -0
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -0,0 +1,236 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="auto select-overspread" id='posParamManage'>
|
3
|
+
|
4
|
+
<form novalidate class="form-horizontal">
|
5
|
+
<ul class="nav nav-tabs">
|
6
|
+
<li role="presentation" class="active"><a href="#">固定属性</a></li>
|
7
|
+
</ul>
|
8
|
+
<div class="row">
|
9
|
+
<div class="col-sm-6 form-group">
|
10
|
+
<label class="font_normal_body">所属公司</label>
|
11
|
+
<res-select restype='organization'
|
12
|
+
is-mul="false"
|
13
|
+
@res-select="getRes"
|
14
|
+
:initresid="curorgid">
|
15
|
+
</res-select>
|
16
|
+
</div>
|
17
|
+
<div class="col-sm-6 form-group">
|
18
|
+
<label class="font_normal_body">参数名称</label>
|
19
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.name"
|
20
|
+
placeholder="参数名称"/>
|
21
|
+
</div>
|
22
|
+
<div class="col-sm-6 form-group">
|
23
|
+
<label class="font_normal_body">创 建 人</label>
|
24
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_operator"
|
25
|
+
disabled placeholder="创建人"/>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<ul class="nav nav-tabs">
|
29
|
+
<li role="presentation" class="active">
|
30
|
+
<a href="#">银行属性</a>
|
31
|
+
</li>
|
32
|
+
</ul>
|
33
|
+
<div class="row">
|
34
|
+
<div class="col-sm-6 form-group">
|
35
|
+
<label class="font_normal_body" title="参数管理:银行属性">新增属性</label>
|
36
|
+
<v-select id="f_charge_type"
|
37
|
+
v-model="BankTypeItem"
|
38
|
+
placeholder='选择银行属性'
|
39
|
+
:multiple="true"
|
40
|
+
:value.sync="BankTypeItem"
|
41
|
+
:options='BankTypeItems'
|
42
|
+
close-on-select clear-button>
|
43
|
+
</v-select>
|
44
|
+
</div>
|
45
|
+
<template v-for="item in BankTypeItem">
|
46
|
+
<div class="form-group col-sm-6">
|
47
|
+
<label class="font_normal_body" v-if="item.length !== 2">{{ item }}</label>
|
48
|
+
<label class="font_normal_body" v-if="item.length === 2">{{ item[0] }}  {{ item[1] }}</label>
|
49
|
+
<input type="text" class="input_search" @change="forceUpdate()" style="width: 60%" v-model="bankmodel[item]"
|
50
|
+
:placeholder="item"/>
|
51
|
+
</div>
|
52
|
+
</template>
|
53
|
+
</div>
|
54
|
+
<ul class="nav nav-tabs">
|
55
|
+
<li role="presentation" class="active">
|
56
|
+
<a href="#">系统属性</a>
|
57
|
+
</li>
|
58
|
+
</ul>
|
59
|
+
<div class="row">
|
60
|
+
<div class="col-sm-6 form-group">
|
61
|
+
<label class="font_normal_body" title="参数管理:系统属性">新增属性</label>
|
62
|
+
<v-select id="f_charge_type"
|
63
|
+
v-model="SystemTypeItem"
|
64
|
+
placeholder='选择系统属性'
|
65
|
+
:multiple="true"
|
66
|
+
:value.sync="SystemTypeItem"
|
67
|
+
:options='SystemTypeItems'
|
68
|
+
close-on-select clear-button>
|
69
|
+
</v-select>
|
70
|
+
</div>
|
71
|
+
<template v-for="item in SystemTypeItem">
|
72
|
+
<div class="form-group col-sm-6">
|
73
|
+
<label class="font_normal_body" v-if="item.length !== 2">{{ item }}</label>
|
74
|
+
<label class="font_normal_body" v-if="item.length === 2">{{ item[0] }}  {{ item[1] }}</label>
|
75
|
+
<input type="text" class="input_search" @change="forceUpdate()" style="width: 60%"
|
76
|
+
v-model="systemmodel[item]"
|
77
|
+
:placeholder="item"/>
|
78
|
+
</div>
|
79
|
+
</template>
|
80
|
+
</div>
|
81
|
+
</form>
|
82
|
+
<div class="row" style="text-align:right;height:auto;margin-top: 20px">
|
83
|
+
<button class="btn button_search" @click="confirm()" :disabled="!$v.valid">确认</button>
|
84
|
+
<button class="btn button_clear " @click="cancel()">取消</button>
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
</template>
|
88
|
+
<script>
|
89
|
+
|
90
|
+
import {HttpResetClass} from "vue-client";
|
91
|
+
|
92
|
+
export default {
|
93
|
+
data() {
|
94
|
+
return {
|
95
|
+
checkparam: false,
|
96
|
+
BankTypeItem: [],
|
97
|
+
BankTypeItems: this.$appdata.getParam('银行属性'),
|
98
|
+
SystemTypeItem: [],
|
99
|
+
SystemTypeItems: this.$appdata.getParam('系统属性'),
|
100
|
+
param_id: '',
|
101
|
+
curorgid: [],
|
102
|
+
bankmodel: {},
|
103
|
+
model: {
|
104
|
+
name: '',
|
105
|
+
f_orgid: '',
|
106
|
+
f_orgname: '',
|
107
|
+
f_operator: ''
|
108
|
+
},
|
109
|
+
systemmodel: {}
|
110
|
+
}
|
111
|
+
},
|
112
|
+
watch: {},
|
113
|
+
ready() {
|
114
|
+
},
|
115
|
+
methods: {
|
116
|
+
getRes(val, val1) {
|
117
|
+
this.model.f_orgid = val[0]
|
118
|
+
this.model.f_orgname = val1[0]
|
119
|
+
},
|
120
|
+
forceUpdate() {
|
121
|
+
// 仅因为生成的字段不会双向绑定渲染页面
|
122
|
+
this.model = JSON.parse(JSON.stringify(this.model))
|
123
|
+
this.systemmodel = JSON.parse(JSON.stringify(this.systemmodel))
|
124
|
+
this.bankmodel = JSON.parse(JSON.stringify(this.bankmodel))
|
125
|
+
},
|
126
|
+
async confirm() {
|
127
|
+
await this.$resetpost('rs/logic/Pos_saveParam',
|
128
|
+
{
|
129
|
+
data: {
|
130
|
+
model: this.model,
|
131
|
+
bankmodel: this.bankmodel,
|
132
|
+
systemmodel: this.systemmodel,
|
133
|
+
param_id: this.param_id
|
134
|
+
}
|
135
|
+
},
|
136
|
+
{rejectMsg: '保存失败', resolveMsg: '保存成功'})
|
137
|
+
this.$dispatch('researchParam')
|
138
|
+
},
|
139
|
+
async edit(param_id) {
|
140
|
+
this.param_id = param_id
|
141
|
+
let load = new HttpResetClass()
|
142
|
+
load.load("POST", 'rs/sql/singleTable',
|
143
|
+
{
|
144
|
+
data: {
|
145
|
+
tablename: ' t_equipment_param ',
|
146
|
+
condition: ` f_param_id = ${param_id} `
|
147
|
+
}
|
148
|
+
},
|
149
|
+
{resolveMsg: null, rejectMsg: null})
|
150
|
+
.then((res) => {
|
151
|
+
this.initModel()
|
152
|
+
res.data.forEach(item => {
|
153
|
+
if (item.f_type === 'system') {
|
154
|
+
this.SystemTypeItem.push(item.f_key)
|
155
|
+
this.systemmodel[item.f_key] = item.f_value
|
156
|
+
} else if (item.f_type === 'bank') {
|
157
|
+
this.BankTypeItem.push(item.f_key)
|
158
|
+
this.bankmodel[item.f_key] = item.f_value
|
159
|
+
} else {
|
160
|
+
this.model[item.f_key] = item.f_value
|
161
|
+
}
|
162
|
+
if (item.f_key === 'f_orgid') {
|
163
|
+
this.curorgid = [item.f_value]
|
164
|
+
}
|
165
|
+
})
|
166
|
+
})
|
167
|
+
},
|
168
|
+
initModel() {
|
169
|
+
this.SystemTypeItem = []
|
170
|
+
this.BankTypeItem = []
|
171
|
+
this.model = {
|
172
|
+
name: '',
|
173
|
+
f_orgid: '',
|
174
|
+
f_orgname: '',
|
175
|
+
f_operator: this.$login.f.name
|
176
|
+
}
|
177
|
+
this.curorgid = [this.$login.f.orgid]
|
178
|
+
this.systemmodel = {}
|
179
|
+
this.bankmodel = {}
|
180
|
+
},
|
181
|
+
cancel() {
|
182
|
+
this.$dispatch('close')
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
</script>
|
187
|
+
<style lang="less">
|
188
|
+
#posParamManage {
|
189
|
+
#addboxmap {
|
190
|
+
height: 300px;
|
191
|
+
}
|
192
|
+
|
193
|
+
.glyphicon-map-marker:hover {
|
194
|
+
color: red;
|
195
|
+
}
|
196
|
+
|
197
|
+
.glyphicon-map-marker {
|
198
|
+
color: blue;
|
199
|
+
cursor: pointer;
|
200
|
+
}
|
201
|
+
|
202
|
+
.col-sm-6 {
|
203
|
+
.font_normal_body {
|
204
|
+
width: 73px;
|
205
|
+
overflow: auto;
|
206
|
+
white-space: nowrap;
|
207
|
+
// 指滚动条两边的按钮
|
208
|
+
&::-webkit-scrollbar-button {
|
209
|
+
display: none;
|
210
|
+
}
|
211
|
+
|
212
|
+
// 滚动条的宽度
|
213
|
+
&::-webkit-scrollbar {
|
214
|
+
width: 5px !important;
|
215
|
+
height: 5px !important;
|
216
|
+
}
|
217
|
+
|
218
|
+
// 滚动条的设置
|
219
|
+
&::-webkit-scrollbar-thumb {
|
220
|
+
background-color: #ddd;
|
221
|
+
background-clip: padding-box;
|
222
|
+
}
|
223
|
+
|
224
|
+
&::-webkit-scrollbar-thumb:hover {
|
225
|
+
background-color: #bbb;
|
226
|
+
}
|
227
|
+
|
228
|
+
&::-webkit-scrollbar-track {
|
229
|
+
/*滚动条里面轨道*/
|
230
|
+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
231
|
+
background: #ededed;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
}
|
236
|
+
</style>
|
@@ -0,0 +1,121 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="flex">
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' style="background-color: white" @condition-changed='$parent.selfSearch' v-ref:cri>
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-sm-3 form-group">
|
8
|
+
<label class="font_normal_body">公 司</label>
|
9
|
+
<res-select restype='organization'
|
10
|
+
:is-mul="false"
|
11
|
+
@res-select="$parent.$parent.getorg"
|
12
|
+
:initresid="$parent.$parent.curorgid">
|
13
|
+
</res-select>
|
14
|
+
</div>
|
15
|
+
<div class="col-sm-3 form-group">
|
16
|
+
<label class="font_normal_body">参数名称</label>
|
17
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_param_name"
|
18
|
+
condition="name like '%{}%'" placeholder="参数名称">
|
19
|
+
</div>
|
20
|
+
<div class="span" style="float:right;margin-top: 6px">
|
21
|
+
<button type="button" class="button_search" @click="search()" v-el:cx>查询</button>
|
22
|
+
<button type="button" class="button_search" @click="$parent.$parent.add() " v-el:cx>新增</button>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</criteria>
|
27
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
28
|
+
<template partial='head'>
|
29
|
+
<tr>
|
30
|
+
<th style="text-align:center;white-space:nowrap;">参数id</th>
|
31
|
+
<th style="text-align:center;white-space:nowrap;">参数名称</th>
|
32
|
+
<th style="text-align:center;white-space:nowrap;">所属分公司</th>
|
33
|
+
<th style="text-align:center;white-space:nowrap;">所属银行</th>
|
34
|
+
<th style="text-align:center;white-space:nowrap;">创建人</th>
|
35
|
+
<th style="text-align:center;white-space:nowrap;">操作</th>
|
36
|
+
</tr>
|
37
|
+
</template>
|
38
|
+
<template partial='body' :model="model">
|
39
|
+
<tr>
|
40
|
+
<td style="text-align:center;white-space:nowrap;">{{ row.f_param_id }}</td>
|
41
|
+
<td style="text-align:center;white-space:nowrap;">{{ row.name }}</td>
|
42
|
+
<td style="text-align:center;white-space:nowrap;">{{ row.f_orgname }}</td>
|
43
|
+
<td style="text-align:center;white-space:nowrap;">{{ row.f_bank_name }}</td>
|
44
|
+
<td style="text-align:center;white-space:nowrap;">{{ row.f_operator }}</td>
|
45
|
+
<td style="text-align:center;white-space:nowrap;">
|
46
|
+
<div class="col-sm-1"></div>
|
47
|
+
<div class="col-sm-4">
|
48
|
+
<button type="button" class="btn button_new" v-if="!row.sum||row.sum ===0 "
|
49
|
+
@click.stop="$parent.$parent.$parent.delete(row)">删除
|
50
|
+
</button>
|
51
|
+
</div>
|
52
|
+
<div class="col-sm-1"></div>
|
53
|
+
<div class="col-sm-4">
|
54
|
+
<button type="button" class="btn button_new"
|
55
|
+
@click.stop="$parent.$parent.$parent.modify(row)">修改
|
56
|
+
</button>
|
57
|
+
</div>
|
58
|
+
<div class="col-sm-1"></div>
|
59
|
+
</td>
|
60
|
+
</tr>
|
61
|
+
</template>
|
62
|
+
</data-grid>
|
63
|
+
</criteria-paged>
|
64
|
+
</div>
|
65
|
+
</template>
|
66
|
+
|
67
|
+
<script>
|
68
|
+
|
69
|
+
import {PagedList} from 'vue-client'
|
70
|
+
|
71
|
+
export default {
|
72
|
+
title: '终端控制',
|
73
|
+
components: {},
|
74
|
+
data() {
|
75
|
+
return {
|
76
|
+
model: new PagedList('rs/sql/get_posParam', 20),
|
77
|
+
curorgid: [this.f_filialeid],
|
78
|
+
}
|
79
|
+
},
|
80
|
+
props: [],
|
81
|
+
ready() {
|
82
|
+
this.search()
|
83
|
+
},
|
84
|
+
watch: {},
|
85
|
+
methods: {
|
86
|
+
getRes(val) {
|
87
|
+
if (val.orgobj.length === 1 && val.orgobj[0].resourcetype === 'user') {
|
88
|
+
this.$refs.paged.$refs.cri.model.f_user_operatorid = val.orgobj[0].userid
|
89
|
+
this.$refs.paged.$refs.cri.model.f_user_operator = val.orgobj[0].name
|
90
|
+
} else {
|
91
|
+
this.$refs.paged.$refs.cri.model.f_user_operatorid = ''
|
92
|
+
this.$refs.paged.$refs.cri.model.f_user_operator = ''
|
93
|
+
}
|
94
|
+
},
|
95
|
+
async delete(row) {
|
96
|
+
await this.$resetpost('rs/logic/deletePosParam', {data: row}, {rejectMsg: null, resolveMsg: null})
|
97
|
+
await this.search()
|
98
|
+
},
|
99
|
+
modify(row) {
|
100
|
+
this.$dispatch('modify', row)
|
101
|
+
},
|
102
|
+
search() {
|
103
|
+
this.$refs.paged.$refs.cri.search()
|
104
|
+
},
|
105
|
+
selfSearch(args) {
|
106
|
+
if (this.f_orgid) {
|
107
|
+
args.condition += ` and f_orgid = ${this.f_orgid} `
|
108
|
+
}
|
109
|
+
this.model.search(args.condition, this.model)
|
110
|
+
},
|
111
|
+
add() {
|
112
|
+
this.$dispatch('add', this.f_filialeid)
|
113
|
+
},
|
114
|
+
getorg(val) {
|
115
|
+
this.f_orgid = val[0]
|
116
|
+
this.f_filialeid = val[0]
|
117
|
+
}
|
118
|
+
},
|
119
|
+
computed: {}
|
120
|
+
}
|
121
|
+
</script>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="flex-row">
|
3
|
+
<div :class="{'basic-main':!isChange,'binary-left':isChange}">
|
4
|
+
<pos-param-list v-ref:list></pos-param-list>
|
5
|
+
</div>
|
6
|
+
<div class="binary-right" style="margin-left: 10px; width: 40%;" v-if="isChange">
|
7
|
+
<pos-param-add :param_id="param_id" v-ref:add></pos-param-add>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
</template>
|
11
|
+
<script>
|
12
|
+
|
13
|
+
import PosParamList from './PosParamList'
|
14
|
+
import PosParamAdd from './PosParamAdd'
|
15
|
+
|
16
|
+
export default {
|
17
|
+
title: 'POS终端管理',
|
18
|
+
components: {
|
19
|
+
PosParamList, PosParamAdd
|
20
|
+
},
|
21
|
+
data() {
|
22
|
+
return {
|
23
|
+
isChange: false,
|
24
|
+
param_id: ''
|
25
|
+
}
|
26
|
+
},
|
27
|
+
methods: {},
|
28
|
+
events: {
|
29
|
+
'add'() {
|
30
|
+
this.isChange = true
|
31
|
+
setTimeout(() => {
|
32
|
+
this.$refs.add.initModel()
|
33
|
+
}, 100)
|
34
|
+
},
|
35
|
+
'close'() {
|
36
|
+
this.isChange = false
|
37
|
+
},
|
38
|
+
'research'() {
|
39
|
+
this.$refs.list.search()
|
40
|
+
this.isChange = false
|
41
|
+
},
|
42
|
+
'modify'(row) {
|
43
|
+
this.isChange = true
|
44
|
+
setTimeout(() => {
|
45
|
+
this.$refs.add.curorgid = []
|
46
|
+
this.$refs.add.edit(row.f_param_id)
|
47
|
+
}, 100)
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
</script>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<template>
|
2
|
-
<div id="unit" class="flex-row">
|
2
|
+
<div id="unit" class="flex-row" :style="{width: messlist==='mess' ? '50%' : '100%'}">
|
3
3
|
<div class="binary-left">
|
4
4
|
<param-page></param-page>
|
5
5
|
</div>
|
6
|
-
<div class="binary-right">
|
6
|
+
<div class="binary-right" :style="{width: messlist==='mess' ? '50%' : '60%'}">
|
7
7
|
<single-page></single-page>
|
8
8
|
</div>
|
9
9
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="flex">
|
3
3
|
<p class="bg-info text-center" style="padding: 8px;">参数管理
|
4
|
-
<
|
4
|
+
<button type="button" name="button" class="button_search button_spacing width-60" @click="add('t_parameter')" style="float:right">新增</button>
|
5
5
|
</p>
|
6
6
|
<div class="auto">
|
7
7
|
<form class="form-horizontal" style="margin-bottom: 5px;">
|
@@ -25,7 +25,7 @@
|
|
25
25
|
</form>
|
26
26
|
</div>
|
27
27
|
<div class="span">
|
28
|
-
<data-grid :model="model" v-ref:params @select-changed="selected"
|
28
|
+
<data-grid :model="model" v-ref:params @select-changed="selected">
|
29
29
|
<template partial='head'>
|
30
30
|
<tr>
|
31
31
|
<th>序号</th>
|
@@ -39,9 +39,9 @@
|
|
39
39
|
<td style="text-align:center">{{row.name}}</td>
|
40
40
|
<td style="text-align:center">{{row.orgname ? row.orgname + '专用' : '全局'}}</td>
|
41
41
|
<td class="flex-around">
|
42
|
-
<button type="button" name="button" class="
|
42
|
+
<button type="button" name="button" class="button_search button_spacing width-60"
|
43
43
|
@click.stop="$parent.$parent.modifyParam(row, 't_parameter')">修改</button>
|
44
|
-
<button type="button" name="button" class="btn btn-
|
44
|
+
<button type="button" name="button" class="btn btn-danger"
|
45
45
|
@click.stop="$parent.$parent.deleteParam(row, 't_parameter')">删除</button>
|
46
46
|
</td>
|
47
47
|
</template>
|
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
<p v-if="selectItem" class="bg-info text-center" style="padding: 8px;margin: 8px 0px;">
|
52
52
|
{{selectItem.name}}
|
53
|
-
<
|
53
|
+
<button type="button" name="button" class="button_search button_spacing width-60" @click="add('t_paramvalue')" style="float:right">新增</button>
|
54
54
|
</p>
|
55
55
|
<div v-if="selectItem" class="span">
|
56
56
|
<data-grid :model="params" v-ref:selects >
|
@@ -64,9 +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-around">
|
68
|
-
<button type="button" name="button" class="
|
69
|
-
<button type="button" name="button" class="
|
67
|
+
<td class="flex-around col-sm-3">
|
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>
|
70
71
|
</td>
|
71
72
|
</template>
|
72
73
|
</data-grid>
|
@@ -164,6 +165,27 @@
|
|
164
165
|
}
|
165
166
|
},
|
166
167
|
methods: {
|
168
|
+
async move(row,index){
|
169
|
+
var temp=Object.assign({}, row)
|
170
|
+
row.name=this.params.rows[index-1].name
|
171
|
+
row.code=this.params.rows[index-1].code
|
172
|
+
row.processid=this.params.rows[index-1].processid
|
173
|
+
var param1=row
|
174
|
+
|
175
|
+
this.params.rows[index-1].name=temp.name
|
176
|
+
this.params.rows[index-1].code=temp.code
|
177
|
+
this.params.rows[index-1].processid=temp.processid
|
178
|
+
var param2=this.params.rows[index-1]
|
179
|
+
let http = new HttpResetClass()
|
180
|
+
try {
|
181
|
+
await http.load('POST', 'rs/entity/t_paramvalue', param1, {resolveMsg: null, rejectMsg: null})
|
182
|
+
await http.load('POST', 'rs/entity/t_paramvalue', param2, {resolveMsg: null, rejectMsg: null})
|
183
|
+
this.$showAlert('上移成功', 'success', 2000)
|
184
|
+
}catch (e) {
|
185
|
+
console.log(e)
|
186
|
+
this.$showAlert('上移失败', 'warning', 2000)
|
187
|
+
}
|
188
|
+
},
|
167
189
|
// 加载全部参数
|
168
190
|
loadParams () {
|
169
191
|
let param = {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="flex">
|
3
3
|
<p class="bg-info text-center" style="padding: 8px;">
|
4
4
|
单值管理
|
5
|
-
<
|
5
|
+
<button type="button" name="button" class="button_search button_spacing width-60 " @click="add()" style="float:right">新增</button>
|
6
6
|
</p>
|
7
7
|
<div class="auto">
|
8
8
|
<form class="form-horizontal" style="margin-bottom: 5px;">
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</div>
|
28
28
|
<div class="span">
|
29
29
|
<partial-view v-ref:single-load>
|
30
|
-
<data-grid :model="model" v-ref:grid
|
30
|
+
<data-grid :model="model" v-ref:grid >
|
31
31
|
<template partial='head'>
|
32
32
|
<tr>
|
33
33
|
<th>序号</th>
|
@@ -43,9 +43,9 @@
|
|
43
43
|
<td style="text-align:center">{{row.value}}</td>
|
44
44
|
<td style="text-align:center">{{row.orgname ? row.orgname + '专用' : '全局'}}</td>
|
45
45
|
<td class="flex-around">
|
46
|
-
<button type="button" name="button" class="
|
46
|
+
<button type="button" name="button" class="button_search button_spacing width-60"
|
47
47
|
@click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
|
48
|
-
<button type="button" name="button" class="btn btn-
|
48
|
+
<button type="button" name="button" class="btn btn-danger"
|
49
49
|
@click.stop="$parent.$parent.$parent.deleteItem(row)">删除</button>
|
50
50
|
</td>
|
51
51
|
</template>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<template>
|
2
|
+
<div id="app">
|
3
|
+
<!-- 图片放大镜,需要自定义图片的宽高在这里传入,组件有设置默认的宽高,不传也可以 -->
|
4
|
+
<h4>这是父组件</h4>
|
5
|
+
<h4>安检总体照片</h4>
|
6
|
+
<!-- <button @click="show">显示</button>-->
|
7
|
+
<!--<img :src="src" @click="show" style="width: 80px;height: 80px" >-->
|
8
|
+
<div style="width: 500px; height: 500px;">
|
9
|
+
<button class="btn-default btn" @click="show_p">查看图片</button>
|
10
|
+
<image-viewer :src="src" :show="show_msg" @clone_f="clone_p" alt="总体安检照片"></image-viewer>
|
11
|
+
<h4>用户签名</h4>
|
12
|
+
<h4>用户签名</h4>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
</template>
|
17
|
+
<script>
|
18
|
+
export default {
|
19
|
+
name: 'app',
|
20
|
+
title: '图片测试',
|
21
|
+
data () {
|
22
|
+
return {
|
23
|
+
show_msg: false,
|
24
|
+
src: [],
|
25
|
+
src1: [
|
26
|
+
{url: 'http://139.9.137.3:8400/rs/image/file/cfdf411d77df828301a56731df655f28-f_overall_path.jpg'},
|
27
|
+
{url: 'http://mp.ofweek.com/Upload/News/Img/member645/201711/17170046839337.jpg'}
|
28
|
+
],
|
29
|
+
src2: [
|
30
|
+
{url: 'http://image.buy.ccb.com/merchant/201703/904919627/1522929521661_4.jpg'}
|
31
|
+
],
|
32
|
+
src3: [
|
33
|
+
{url: 'http://d.ifengimg.com/w600/p0.ifengimg.com/pmop/2017/1213/A4037864F6728F006B67AAEC51EC8A485F320FD2_size93_w1024_h734.jpeg'}
|
34
|
+
]
|
35
|
+
}
|
36
|
+
},
|
37
|
+
methods: {
|
38
|
+
show_p () {
|
39
|
+
console.log('调用图片查看器')
|
40
|
+
// 传要查看的图片
|
41
|
+
this.src = this.src1
|
42
|
+
console.log(this.src)
|
43
|
+
// 显示组件
|
44
|
+
this.show_msg = true
|
45
|
+
},
|
46
|
+
clone_p () {
|
47
|
+
// 关闭组件
|
48
|
+
this.show_msg = false
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
</script>
|
53
|
+
|
54
|
+
<style scoped>
|
55
|
+
|
56
|
+
</style>
|