system-clients 3.2.2 → 3.2.3-aodeToV4
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/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.1/fileChanges/last-build.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/checksums/checksums.lock +0 -0
- package/build/webpack.base.conf.js +4 -1
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +185 -0
- package/gradlew.bat +89 -0
- package/package.json +102 -102
- package/src/App.vue +1 -1
- package/src/components/Main.vue +515 -621
- package/src/components/equipment/EquipmentManage.vue +3 -3
- package/src/components/equipment/PcAdd.vue +1 -1
- package/src/components/equipment/PcList.vue +4 -3
- package/src/components/equipment/PhoneAdd.vue +1 -1
- package/src/components/equipment/PhoneList.vue +2 -2
- package/src/components/equipment/PosAdd.vue +24 -5
- package/src/components/equipment/PosList.vue +15 -15
- package/src/components/equipment/PosManage.vue +3 -2
- package/src/components/materialManage/materialList.vue +1 -1
- package/src/components/parammanage/ParamPage.vue +6 -6
- package/src/components/parammanage/ParamPages.vue +5 -5
- package/src/components/parammanage/SinglePage.vue +3 -3
- package/src/components/parammanage/SinglePages.vue +3 -3
- package/src/components/server/AddChangeMsg.vue +1 -1
- package/src/components/server/ChangeDeclare.vue +1 -1
- package/src/components/server/Login.vue +630 -528
- package/src/components/server/ModifyPw.vue +11 -5
- package/src/components/server/NewResSelectGroup.vue +211 -0
- package/src/components/server/ResSelect.vue +3 -0
- package/src/components/server/ResSelectGroup.vue +23 -6
- package/src/components/server/RightTree.vue +86 -6
- package/src/components/server/RoleSelector.vue +4 -3
- package/src/components/server/TestResSelectGroup.vue +2 -2
- package/src/plugins/EncryptUtil.js +53 -0
- package/src/plugins/GetLoginInfoService.js +499 -515
- package/src/plugins/HeatGetLoginInfoService.js +491 -0
- package/src/plugins/validation.js +1 -1
- package/src/project/State.js +1 -1
- package/src/stores/AppData.js +1 -1
- package/src/stores/HeatAppData.js +38 -0
- package/src/styles/less/aofeng/themeOne/systemStyle.less +6 -6
- package/src/styles/less/aofeng/themeOne.less +4 -1
- package/src/styles/less/fonts-list.less +4 -4
- package/src/styles/less/stand.less +1 -1
- package/src/system.js +9 -0
- package/static/aodelogo.png +0 -0
- package/static/aodenewlogo.png +0 -0
- package/static/ewmlogo.png +0 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
- package/static/logo.png +0 -0
- /package/.gradle/{5.2.1 → 7.1/dependencies-accessors}/gc.properties +0 -0
- /package/.gradle/{buildOutputCleanup/built.bin → 7.1/gc.properties} +0 -0
@@ -19,8 +19,8 @@
|
|
19
19
|
<div v-if="model.f_equipment_type[0] === 'PC'">
|
20
20
|
<pc-manage></pc-manage>
|
21
21
|
</div>
|
22
|
-
<div v-if="model.f_equipment_type[0] === 'POS'">
|
23
|
-
<pos-manage></pos-manage>
|
22
|
+
<div v-if="model.f_equipment_type[0] === 'POS'||model.f_equipment_type[0] === '自助写卡机'||model.f_equipment_type[0] === '手持POS'">
|
23
|
+
<pos-manage :type="model.f_equipment_type[0]"></pos-manage>
|
24
24
|
</div>
|
25
25
|
<div v-if="model.f_equipment_type[0] === 'PHONE'">
|
26
26
|
<phone-manage></phone-manage>
|
@@ -46,7 +46,7 @@
|
|
46
46
|
},
|
47
47
|
ready () {
|
48
48
|
console.log('看看终端类型', this.equipmentType)
|
49
|
-
this.model.f_equipment_type = [
|
49
|
+
this.model.f_equipment_type = ['POS']
|
50
50
|
},
|
51
51
|
methods: {
|
52
52
|
del (row) {
|
@@ -74,7 +74,7 @@
|
|
74
74
|
this.model.f_operatorid = this.$login.f.id
|
75
75
|
this.model.f_orgid = this.f_orgid
|
76
76
|
console.log('保存', this.model)
|
77
|
-
this.$resetpost('
|
77
|
+
this.$resetpost('api/af-system/entity/save/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
78
78
|
this.$dispatch('refresh')
|
79
79
|
}).catch((error) => {
|
80
80
|
this.$dispatch('refresh')
|
@@ -76,9 +76,10 @@
|
|
76
76
|
data () {
|
77
77
|
return {
|
78
78
|
criteriaShow: false,
|
79
|
-
model: new PagedList('
|
79
|
+
model: new PagedList('api/af-system/sql/equipmentQuery', 20),
|
80
80
|
curorgid: [this.$login.f.orgid],
|
81
|
-
|
81
|
+
f_filialeid: this.$login.f.orgid,
|
82
|
+
f_orgid: this.$login.f.orgid
|
82
83
|
}
|
83
84
|
},
|
84
85
|
ready () {
|
@@ -102,7 +103,7 @@
|
|
102
103
|
del (row) {
|
103
104
|
console.log('要删除了', row)
|
104
105
|
row.f_state = '已删除'
|
105
|
-
this.$resetpost('
|
106
|
+
this.$resetpost('api/af-system/entity/save/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
106
107
|
this.$dispatch('refresh')
|
107
108
|
}).catch((error) => {
|
108
109
|
this.$dispatch('refresh')
|
@@ -65,7 +65,7 @@
|
|
65
65
|
this.model.f_operator = this.$login.f.name
|
66
66
|
this.model.f_filialeids = this.filialeCodeStr
|
67
67
|
console.log('保存', this.model)
|
68
|
-
this.$resetpost('
|
68
|
+
this.$resetpost('api/af-system/entity/save/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
69
69
|
this.$dispatch('refresh')
|
70
70
|
}).catch(() => {
|
71
71
|
this.$dispatch('refresh')
|
@@ -58,7 +58,7 @@
|
|
58
58
|
components: {},
|
59
59
|
data () {
|
60
60
|
return {
|
61
|
-
model: new PagedList('
|
61
|
+
model: new PagedList('api/af-system/sql/equipmentQuery', 20),
|
62
62
|
filialeNameStr: this.$login.f.f_fengongsi,
|
63
63
|
filialeCodeStr: this.$login.f.f_orgids,
|
64
64
|
userid:this.$login.f.id,
|
@@ -84,7 +84,7 @@
|
|
84
84
|
del (row) {
|
85
85
|
console.log('要删除了', row)
|
86
86
|
row.f_state = '已删除'
|
87
|
-
this.$resetpost('
|
87
|
+
this.$resetpost('api/af-system/entity/save/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
88
88
|
this.$dispatch('refresh')
|
89
89
|
}).catch((error) => {
|
90
90
|
this.$dispatch('refresh')
|
@@ -2,9 +2,19 @@
|
|
2
2
|
<div class="auto select-overspread">
|
3
3
|
<validator name='v'>
|
4
4
|
<ul class="nav nav-tabs" >
|
5
|
-
<li role="presentation" class="active"><a href="#">
|
5
|
+
<li role="presentation" class="active"><a href="#">{{ type }}</a></li>
|
6
6
|
</ul>
|
7
7
|
<form class="form-horizontal">
|
8
|
+
<div class="row">
|
9
|
+
<div class="col-sm-6">
|
10
|
+
<label class="font_normal_body">使用公司</label>
|
11
|
+
<res-select restype='organization'
|
12
|
+
is-mul="false"
|
13
|
+
@res-select="getorg"
|
14
|
+
:initresid="curorgid">
|
15
|
+
</res-select>
|
16
|
+
</div>
|
17
|
+
</div>
|
8
18
|
<div class="row">
|
9
19
|
<div class="col-sm-6">
|
10
20
|
<label class="font_normal_body" >设备编号</label>
|
@@ -35,6 +45,7 @@
|
|
35
45
|
<input type="text" class="input_search" style="width: 60%" v-model="model.f_bank_name" placeholder="所属银行" >
|
36
46
|
</div>
|
37
47
|
</div>
|
48
|
+
|
38
49
|
<div class="col-sm-12">
|
39
50
|
<label class="font_normal_body " style="margin-top:-20px"> 备注 </label>
|
40
51
|
<textarea class="input_textarea" rows="3" style="width:80%;margin-top:5px" v-model="model.f_comments"></textarea>
|
@@ -53,11 +64,14 @@
|
|
53
64
|
export default {
|
54
65
|
data () {
|
55
66
|
return {
|
67
|
+
f_orgid:'',
|
68
|
+
f_filialeid:'',
|
69
|
+
curorgid: [this.f_filialeids],
|
56
70
|
model: {
|
57
71
|
f_terminal_number: '',
|
58
72
|
f_terminal_name: '',
|
59
73
|
f_bank_name: '',
|
60
|
-
f_equipment_type: '
|
74
|
+
f_equipment_type: '',
|
61
75
|
f_state: '正常',
|
62
76
|
f_machine_number:'',
|
63
77
|
f_phone:'',
|
@@ -68,7 +82,7 @@
|
|
68
82
|
}
|
69
83
|
}
|
70
84
|
},
|
71
|
-
props: ['data', 'f_filialeids'],
|
85
|
+
props: ['data', 'f_filialeids','type'],
|
72
86
|
watch: {
|
73
87
|
'data' (val) {
|
74
88
|
if (val) {
|
@@ -85,16 +99,21 @@
|
|
85
99
|
}
|
86
100
|
},
|
87
101
|
methods: {
|
102
|
+
getorg (val) {
|
103
|
+
this.f_orgid = val[0]
|
104
|
+
this.f_filialeids = val[0]
|
105
|
+
},
|
88
106
|
confirm () {
|
89
107
|
// if(this.f_filialeids!=''&&this.f_filialeids!=null){
|
90
108
|
this.model.f_operator = this.$login.f.name
|
109
|
+
this.model.f_equipment_type = this.type
|
91
110
|
this.model.f_operatorid = this.$login.f.id
|
92
111
|
this.model.f_filialeids = this.f_filialeids
|
93
|
-
this.model.f_orgid = this
|
112
|
+
this.model.f_orgid = this.f_filialeids
|
94
113
|
this.model.f_orgname = this.$login.f.orgs
|
95
114
|
this.model.f_depid = this.$login.f.depids
|
96
115
|
this.model.f_depname = this.$login.f.deps
|
97
|
-
this.$resetpost('
|
116
|
+
this.$resetpost('api/af-system/entity/save/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
98
117
|
this.$dispatch('refresh')
|
99
118
|
}).catch((error) => {
|
100
119
|
this.$dispatch('refresh')
|
@@ -65,10 +65,10 @@
|
|
65
65
|
<th>联系电话</th>
|
66
66
|
<th>所在地</th>
|
67
67
|
<th>所属银行</th>
|
68
|
-
<th>电池电量</th
|
69
|
-
<th>是否登录</th
|
70
|
-
<th>更新时间</th
|
71
|
-
<th>软件版本</th
|
68
|
+
<!-- <th>电池电量</th>-->
|
69
|
+
<!-- <th>是否登录</th>-->
|
70
|
+
<!-- <th>更新时间</th>-->
|
71
|
+
<!-- <th>软件版本</th>-->
|
72
72
|
<th>操作</th>
|
73
73
|
</tr>
|
74
74
|
</template>
|
@@ -81,10 +81,10 @@
|
|
81
81
|
<td style="text-align:center">{{row.f_phone}}</td>
|
82
82
|
<td style="text-align:center">{{row.f_address}}</td>
|
83
83
|
<td style="text-align:center">{{row.f_bank_name}}</td>
|
84
|
-
<td style="text-align:center">{{row.f_battery_level}}</td
|
85
|
-
<td style="text-align:center">{{row.f_is_login}}</td
|
86
|
-
<td style="text-align:center">{{row.f_hybrid_version}}</td
|
87
|
-
<td style="text-align:center">{{row.f_appVer}}</td
|
84
|
+
<!-- <td style="text-align:center">{{row.f_battery_level}}</td>-->
|
85
|
+
<!-- <td style="text-align:center">{{row.f_is_login}}</td>-->
|
86
|
+
<!-- <td style="text-align:center">{{row.f_hybrid_version}}</td>-->
|
87
|
+
<!-- <td style="text-align:center">{{row.f_appVer}}</td>-->
|
88
88
|
<td style="text-align:center">
|
89
89
|
<button class="btn btn-link" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|
90
90
|
</td>
|
@@ -104,14 +104,14 @@
|
|
104
104
|
components: {},
|
105
105
|
data () {
|
106
106
|
return {
|
107
|
-
model: new PagedList('
|
108
|
-
curorgid: [this.
|
109
|
-
|
110
|
-
|
107
|
+
model: new PagedList('api/af-system/sql/equipmentQuery', 20),
|
108
|
+
curorgid: [this.$login.f.orgid],
|
109
|
+
f_filialeid: this.$login.f.orgid,
|
110
|
+
f_orgid: this.$login.f.orgid,
|
111
111
|
criteriaShow: false
|
112
112
|
}
|
113
113
|
},
|
114
|
-
props: ['f_filialeid'],
|
114
|
+
props: ['f_filialeid','type'],
|
115
115
|
ready () {
|
116
116
|
this.search()
|
117
117
|
},
|
@@ -123,7 +123,7 @@
|
|
123
123
|
},
|
124
124
|
|
125
125
|
selfSearch (args) {
|
126
|
-
args.condition = `${args.condition} and f_equipment_type = '
|
126
|
+
args.condition = `${args.condition} and f_equipment_type = '${this.type}' and f_state = '正常' and f_orgid = '${this.f_filialeid ? this.f_orgid: this.$login.f.orgid}'`
|
127
127
|
this.model.search(args.condition, this.model)
|
128
128
|
this.$dispatch('research')
|
129
129
|
},
|
@@ -141,7 +141,7 @@
|
|
141
141
|
del (row) {
|
142
142
|
console.log('要删除了', row)
|
143
143
|
row.f_state = '已删除'
|
144
|
-
this.$resetpost('
|
144
|
+
this.$resetpost('api/af-system/entity/save/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
145
145
|
this.$dispatch('refresh')
|
146
146
|
}).catch((error) => {
|
147
147
|
this.$dispatch('refresh')
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="flex-row">
|
3
3
|
<div :class="{'basic-main':!isChange,'binary-left':isChange}">
|
4
|
-
<pos-list :row="row" @select-changed="selected" style="width:auto;" :f_filialeid.sync="f_filialeids" v-ref:list ></pos-list>
|
4
|
+
<pos-list :type="type" :row="row" @select-changed="selected" style="width:auto;" :f_filialeid.sync="f_filialeids" v-ref:list ></pos-list>
|
5
5
|
</div>
|
6
6
|
<div class="binary-right" style="margin-left: 10px; width: 50%;" v-if="isChange">
|
7
|
-
<pos-add :data="row" :f_filialeids.sync="f_filialeids" v-ref:addbox></pos-add>
|
7
|
+
<pos-add :type="type" :data="row" :f_filialeids.sync="f_filialeids" v-ref:addbox></pos-add>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
</template>
|
@@ -15,6 +15,7 @@
|
|
15
15
|
|
16
16
|
export default {
|
17
17
|
title: 'POS终端管理',
|
18
|
+
props:['type'],
|
18
19
|
components: {
|
19
20
|
PosList, PosAdd
|
20
21
|
},
|
@@ -175,7 +175,7 @@
|
|
175
175
|
async queryParam (condition) {
|
176
176
|
this.model.rows = []
|
177
177
|
let http = new HttpResetClass()
|
178
|
-
let res = await http.load('POST', '
|
178
|
+
let res = await http.load('POST', 'api/af-system/sql/system_getParam', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
179
179
|
this.model.rows = res.data
|
180
180
|
},
|
181
181
|
selected (val) {
|
@@ -184,7 +184,7 @@
|
|
184
184
|
},
|
185
185
|
async getParamValue(obj) {
|
186
186
|
let http = new HttpResetClass()
|
187
|
-
let res = await http.load('POST', '
|
187
|
+
let res = await http.load('POST', 'api/af-system/sql/system_getParamValue', {data: {param_id: obj.id}}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
188
188
|
this.params.rows = res.data
|
189
189
|
},
|
190
190
|
filter_query (paramName,orgid) {
|
@@ -235,7 +235,7 @@
|
|
235
235
|
if (type === 't_parameter') {
|
236
236
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
237
237
|
if (res === 'confirm') {
|
238
|
-
this.$resetpost('
|
238
|
+
this.$resetpost('api/af-system/logic/deleteParam', row).then((res) => {
|
239
239
|
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
240
240
|
this.selectItem = null
|
241
241
|
})
|
@@ -244,7 +244,7 @@
|
|
244
244
|
} else if (type === 't_paramvalue') {
|
245
245
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
246
246
|
if (res === 'confirm') {
|
247
|
-
this.$resetpost('
|
247
|
+
this.$resetpost('api/af-system/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
|
248
248
|
this.getParamValue(this.selectItem)
|
249
249
|
})
|
250
250
|
}
|
@@ -268,7 +268,7 @@
|
|
268
268
|
//添加当前分公司
|
269
269
|
}
|
270
270
|
data.f_filialeids = this.modifyItem.f_filialeids
|
271
|
-
this.$resetpost('
|
271
|
+
this.$resetpost('api/af-system/logic/system_saveParam', data).then((res) => {
|
272
272
|
//无id
|
273
273
|
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
274
274
|
this.show = false
|
@@ -287,7 +287,7 @@
|
|
287
287
|
processid: this.selectItem.id
|
288
288
|
}
|
289
289
|
}
|
290
|
-
this.$resetpost('
|
290
|
+
this.$resetpost('api/af-system/entity/save/t_paramvalue', data).then((res) => {
|
291
291
|
this.show = false
|
292
292
|
// 如果没有id,需要在数组中添加
|
293
293
|
this.getParamValue(this.selectItem)
|
@@ -113,7 +113,7 @@
|
|
113
113
|
methods: {
|
114
114
|
// 加载全部参数
|
115
115
|
loadParams () {
|
116
|
-
this.$refs.paramsLoad.load('
|
116
|
+
this.$refs.paramsLoad.load('api/af-system/sql/hql/simpleHql', {data: {tablename: 't_parameter'}}).then((res) => {
|
117
117
|
this.model.rows = this.allParams = res.data
|
118
118
|
})
|
119
119
|
},
|
@@ -150,7 +150,7 @@
|
|
150
150
|
if (row.EntityType === 't_parameter') {
|
151
151
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
152
152
|
if (res === 'confirm') {
|
153
|
-
this.$refs.paramsLoad.load('
|
153
|
+
this.$refs.paramsLoad.load('api/af-revenue/logic/deleteParam', row).then((res) => {
|
154
154
|
this.loadParams()
|
155
155
|
this.selectItem = null
|
156
156
|
})
|
@@ -159,7 +159,7 @@
|
|
159
159
|
} else if (row.EntityType === 't_paramvalue') {
|
160
160
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
161
161
|
if (res === 'confirm') {
|
162
|
-
this.$refs.selectsLoad.load('
|
162
|
+
this.$refs.selectsLoad.load('api/af-revenue/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
|
163
163
|
this.params.rows.splice(index, 1)
|
164
164
|
})
|
165
165
|
}
|
@@ -181,7 +181,7 @@
|
|
181
181
|
name: this.modifyItem.name
|
182
182
|
}
|
183
183
|
}
|
184
|
-
this.$refs.paramsLoad.load('
|
184
|
+
this.$refs.paramsLoad.load('api/af-system/entity/save/t_parameter', data).then((res) => {
|
185
185
|
this.loadParams()
|
186
186
|
this.show = false
|
187
187
|
this.modifyItem = {name: ''}
|
@@ -199,7 +199,7 @@
|
|
199
199
|
processid: this.selectItem.id
|
200
200
|
}
|
201
201
|
}
|
202
|
-
this.$refs.selectsLoad.load('
|
202
|
+
this.$refs.selectsLoad.load('api/af-system/entity/save/t_paramvalue', data).then((res) => {
|
203
203
|
this.show = false
|
204
204
|
// 如果没有id,需要在数组中添加
|
205
205
|
if (!data.id) {
|
@@ -149,7 +149,7 @@
|
|
149
149
|
async queryParam (condition) {
|
150
150
|
this.model.rows = []
|
151
151
|
let http = new HttpResetClass()
|
152
|
-
let res = await http.load('POST', '
|
152
|
+
let res = await http.load('POST', 'api/af-system/sql/system_getSingle', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
153
153
|
this.model.rows = res.data
|
154
154
|
},
|
155
155
|
|
@@ -183,7 +183,7 @@
|
|
183
183
|
deleteItem (row) {
|
184
184
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
185
185
|
if (res === 'confirm') {
|
186
|
-
this.$resetpost('
|
186
|
+
this.$resetpost('api/af-system/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
|
187
187
|
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
188
188
|
})
|
189
189
|
}
|
@@ -201,7 +201,7 @@
|
|
201
201
|
this.show = true
|
202
202
|
},
|
203
203
|
confirm () {
|
204
|
-
this.$resetpost('
|
204
|
+
this.$resetpost('api/af-system/logic/system_saveSingle', this.selectItem).then((res) => {
|
205
205
|
// 如果没有id,需要在数组中添加
|
206
206
|
this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
|
207
207
|
this.show = false
|
@@ -95,14 +95,14 @@
|
|
95
95
|
},
|
96
96
|
methods: {
|
97
97
|
loadSingle () {
|
98
|
-
this.$refs.singleLoad.load('
|
98
|
+
this.$refs.singleLoad.load('api/af-system/sql/singleTable', {data: {tablename: 't_singlevalue', condition: '1=1'}}).then((res) => {
|
99
99
|
this.model.rows = this.params = res.data
|
100
100
|
})
|
101
101
|
},
|
102
102
|
deleteItem (row) {
|
103
103
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
104
104
|
if (res === 'confirm') {
|
105
|
-
this.$refs.singleLoad.load('
|
105
|
+
this.$refs.singleLoad.load('api/af-revenue/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
|
106
106
|
this.loadSingle()
|
107
107
|
})
|
108
108
|
}
|
@@ -132,7 +132,7 @@
|
|
132
132
|
this.selectItem.value = row.value
|
133
133
|
},
|
134
134
|
confirm () {
|
135
|
-
this.$refs.singleLoad.load('
|
135
|
+
this.$refs.singleLoad.load('api/af-system/entity/save/t_singlevalue', this.selectItem).then((res) => {
|
136
136
|
this.show = false
|
137
137
|
// 如果没有id,需要在数组中添加
|
138
138
|
this.loadSingle()
|
@@ -30,7 +30,7 @@ export default {
|
|
30
30
|
orderitem: 'f_change_date DESC'
|
31
31
|
}
|
32
32
|
this.$info(`加载数据中..., sql:${sql}`)
|
33
|
-
this.$refs.pv.load('
|
33
|
+
this.$refs.pv.load('api/af-revenue//sql/singleTable_OrderBy', {data: condition}).then((a) => {
|
34
34
|
this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
|
35
35
|
this.model = a.data
|
36
36
|
}).catch((error) => {
|