system-clients 3.1.109-aode → 3.1.109-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.
@@ -1,38 +1,38 @@
1
- import Vue from 'vue'
2
-
3
- let GetAppDataService = {
4
- install(Vue, options) {
5
- // 给vue增添对话框显示方法
6
-
7
- Vue.$appdata = Vue.prototype.$appdata = GetAppDataService
8
- },
9
-
10
- // 开启卡监听
11
- load () {
12
- return Vue.resetpost('rs/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
13
- res.data.singleValues.forEach((item) => {
14
- this.singleValues[item.name] = item.value
15
- })
16
- res.data.params.forEach((item) => {
17
- let value = []
18
- item.f_paramvalues.forEach((item, index) => {
19
- value[index] = {}
20
- value[index].label = item.name
21
- value[index].value = item.name
22
- })
23
- this.params[item.name] = value
24
- })
25
- })
26
- },
27
-
28
- params: {},
29
- singleValues: {},
30
-
31
- getParam(key) {
32
- return this.params[key]
33
- },
34
- getSingleValue(key) {
35
- return this.singleValues[key]
36
- }
37
- }
38
- export default GetAppDataService
1
+ import Vue from 'vue'
2
+
3
+ let GetAppDataService = {
4
+ install(Vue, options) {
5
+ // 给vue增添对话框显示方法
6
+
7
+ Vue.$appdata = Vue.prototype.$appdata = GetAppDataService
8
+ },
9
+
10
+ // 开启卡监听
11
+ load () {
12
+ return Vue.resetpost('api/af-system/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
13
+ res.data.singleValues.forEach((item) => {
14
+ this.singleValues[item.name] = item.value
15
+ })
16
+ res.data.params.forEach((item) => {
17
+ let value = []
18
+ item.f_paramvalues.forEach((item, index) => {
19
+ value[index] = {}
20
+ value[index].label = item.name
21
+ value[index].value = item.name
22
+ })
23
+ this.params[item.name] = value
24
+ })
25
+ })
26
+ },
27
+
28
+ params: {},
29
+ singleValues: {},
30
+
31
+ getParam(key) {
32
+ return this.params[key]
33
+ },
34
+ getSingleValue(key) {
35
+ return this.singleValues[key]
36
+ }
37
+ }
38
+ export default GetAppDataService