system-clients 3.0.46-fanxian → 3.0.47-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/.babelrc +5 -5
- package/.editorconfig +9 -9
- package/.eslintrc.js +16 -16
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/CHANGELOG.md +51 -51
- package/README.md +36 -36
- package/SystemClient.iml +11 -11
- package/build/css-loaders.js +34 -34
- package/build/dev-client.js +8 -8
- package/build/example-server.js +80 -80
- package/build/release.sh +28 -28
- package/build/utils.js +71 -71
- package/build/webpack.dev.conf.js +31 -31
- package/build/webpack.example.conf.js +49 -49
- package/build/webpack.prod.conf.js +60 -60
- package/build/webpack.test.conf.js +31 -31
- package/build.gradle +6 -6
- package/config/dev.env.js +6 -6
- package/config/index.js +38 -38
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/doc/Login.md +7 -7
- package/examples/ReadCard/App.vue +23 -23
- package/examples/ReadCard/index.html +11 -11
- package/examples/ReadCard/main.js +12 -12
- package/index.html +21 -21
- package/package.json +1 -1
- package/release.bat +5 -5
- package/src/App.vue +24 -24
- package/src/LodopFuncs.js +123 -123
- package/src/assets/binding.svg +1 -1
- package/src/assets/unbind.svg +1 -1
- package/src/assets//345/205/254/345/221/212.svg +1 -1
- package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
- package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
- package/src/components/List.vue +51 -51
- package/src/components/Table.js +74 -74
- package/src/components/Util.js +343 -343
- 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 +94 -94
- package/src/components/equipment/PhoneList.vue +102 -102
- package/src/components/equipment/PhoneManage.vue +60 -60
- package/src/components/equipment/PosAdd.vue +137 -137
- package/src/components/equipment/PosList.vue +156 -156
- package/src/components/equipment/PosManage.vue +67 -67
- package/src/components/materialManage/materialData.vue +44 -44
- package/src/components/materialManage/materialList.vue +255 -255
- package/src/components/parammanage/ParamManage.vue +42 -42
- package/src/components/parammanage/ParamManages.vue +43 -43
- package/src/components/parammanage/ParamPage.vue +314 -314
- package/src/components/parammanage/ParamPages.vue +214 -214
- package/src/components/parammanage/SinglePage.vue +237 -237
- package/src/components/parammanage/SinglePages.vue +161 -161
- package/src/components/server/AddChangeMsg.vue +66 -66
- package/src/components/server/ChangeDeclare.vue +45 -45
- package/src/components/server/IconTree.vue +26 -26
- package/src/components/server/LeftTree.vue +111 -111
- package/src/components/server/LoadData.vue +36 -36
- package/src/components/server/Login.vue +625 -623
- package/src/components/server/Menu.vue +188 -188
- package/src/components/server/ModifyPw.vue +125 -106
- package/src/components/server/ResSelect.vue +150 -150
- package/src/components/server/ResSelectGroup.vue +140 -140
- package/src/components/server/RightTree.vue +263 -263
- package/src/components/server/RoleSelector.vue +88 -88
- package/src/components/server/TestResSelect.vue +58 -58
- package/src/components/server/TestResSelectGroup.vue +388 -388
- package/src/components/server/TestRightTree.vue +42 -42
- package/src/index.js +7 -7
- package/src/plugins/GetLoginInfoService.js +509 -498
- package/src/plugins/validation.js +7 -7
- package/src/project/ProjectPage.vue +24 -24
- package/src/project/State.js +17 -17
- package/src/stores/AppData.js +38 -38
- package/src/systemphone.js +11 -11
- package/src/util/LdapHelper.js +75 -75
- package/test/e2e/custom-assertions/elementCount.js +26 -26
- package/test/e2e/nightwatch.conf.js +40 -40
- package/test/e2e/runner.js +30 -30
- package/test/e2e/specs/test.js +14 -14
- package/test/unit/.eslintrc +5 -5
- package/test/unit/index.js +13 -13
- package/test/unit/init.js +10 -10
- package/test/unit/karma.conf.js +49 -49
- package/test/unit/specs/base64.spec.js +5 -5
- package/test/unit/specs/components/parammanage/ParamPage.spec.js +20 -20
- package/test/unit/specs/components/parammanage/SinglePage.spec.js +20 -20
- package/test/unit/specs/components/server/LeftTree/App.vue +18 -18
- package/test/unit/specs/components/server/LeftTree/LeftTree.spec.js +22 -22
- package/test/unit/specs/components/server/LoadData.spec.js +24 -24
- package/test/unit/specs/components/server/Login.spec.js +61 -61
- package/test/unit/specs/components/server/RightTree.spec.js +50 -50
- package/test/unit/specs/plugins/GetLoginInfoService.spec.js +55 -55
- package/test/unit/test.html +76 -76
@@ -1,237 +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="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>
|
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>
|