style:请求加载
Showing
11 changed files
with
76 additions
and
136 deletions
... | @@ -13,8 +13,7 @@ export function getQlxxDictList (data) { | ... | @@ -13,8 +13,7 @@ export function getQlxxDictList (data) { |
13 | return request({ | 13 | return request({ |
14 | url: SERVER.SERVERAPI + '/rest/sys/dict/getQlxxDictList', | 14 | url: SERVER.SERVERAPI + '/rest/sys/dict/getQlxxDictList', |
15 | method: 'post', | 15 | method: 'post', |
16 | data, | 16 | data |
17 | showLoading: true | ||
18 | }) | 17 | }) |
19 | } | 18 | } |
20 | /* | 19 | /* |
... | @@ -36,8 +35,6 @@ export function editDictNode (data) { | ... | @@ -36,8 +35,6 @@ export function editDictNode (data) { |
36 | return request({ | 35 | return request({ |
37 | url: SERVER.SERVERAPI + '/rest/sys/dict/editDictNode', | 36 | url: SERVER.SERVERAPI + '/rest/sys/dict/editDictNode', |
38 | method: 'post', | 37 | method: 'post', |
39 | data, | 38 | data |
40 | showLoading: true, | ||
41 | loadingTarget: '正在提交中...' | ||
42 | }) | 39 | }) |
43 | } | 40 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from './config' | 2 | import SERVER from './config' |
3 | // 根据条件进行列表查询 | 3 | // 根据条件进行列表查询 |
4 | export function getJtfcPage (data, headers) { | 4 | export function getJtfcPage (data) { |
5 | return request({ | 5 | return request({ |
6 | url: SERVER.SERVERAPI + '/rest/sqcx/jtfc/getJtfcPage', | 6 | url: SERVER.SERVERAPI + '/rest/sqcx/jtfc/getJtfcPage', |
7 | method: 'post', | 7 | method: 'post', |
8 | data, | 8 | data |
9 | headers | ||
10 | }) | 9 | }) |
11 | } | 10 | } |
12 | // 新增申请查询家庭房产信息 | 11 | // 新增申请查询家庭房产信息 |
13 | export function addJtfcCxjgXx (data, headers) { | 12 | export function addJtfcCxjgXx (data) { |
14 | return request({ | 13 | return request({ |
15 | url: SERVER.SERVERAPI + '/rest/sqcx/jtfc/addJtfcCxjgXx', | 14 | url: SERVER.SERVERAPI + '/rest/sqcx/jtfc/addJtfcCxjgXx', |
16 | method: 'post', | 15 | method: 'post', |
17 | data, | 16 | data |
18 | headers | ||
19 | }) | 17 | }) |
20 | } | 18 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -4,12 +4,11 @@ import SERVER from './config' | ... | @@ -4,12 +4,11 @@ import SERVER from './config' |
4 | /* | 4 | /* |
5 | 业务办理-选择单元-查询宗地基本信息 | 5 | 业务办理-选择单元-查询宗地基本信息 |
6 | */ | 6 | */ |
7 | export function selectZdjbxx(data) { | 7 | export function selectZdjbxx (data) { |
8 | return request({ | 8 | return request({ |
9 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectZdjbxx', | 9 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectZdjbxx', |
10 | method: 'post', | 10 | method: 'post', |
11 | data, | 11 | data |
12 | showLoading: true | ||
13 | }) | 12 | }) |
14 | } | 13 | } |
15 | 14 | ||
... | @@ -17,36 +16,33 @@ export function selectZdjbxx(data) { | ... | @@ -17,36 +16,33 @@ export function selectZdjbxx(data) { |
17 | /* | 16 | /* |
18 | 业务办理-选择单元-查询建设用地、宅基地信息 | 17 | 业务办理-选择单元-查询建设用地、宅基地信息 |
19 | */ | 18 | */ |
20 | export function selectJsydQlxx(data) { | 19 | export function selectJsydQlxx (data) { |
21 | return request({ | 20 | return request({ |
22 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectJsydQlxx', | 21 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectJsydQlxx', |
23 | method: 'post', | 22 | method: 'post', |
24 | data, | 23 | data |
25 | showLoading: true | ||
26 | }) | 24 | }) |
27 | } | 25 | } |
28 | 26 | ||
29 | /* | 27 | /* |
30 | 业务办理-选择单元-查询自然幢信息 | 28 | 业务办理-选择单元-查询自然幢信息 |
31 | */ | 29 | */ |
32 | export function selectZrz(data) { | 30 | export function selectZrz (data) { |
33 | return request({ | 31 | return request({ |
34 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectZrz', | 32 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectZrz', |
35 | method: 'post', | 33 | method: 'post', |
36 | data, | 34 | data |
37 | showLoading: true | ||
38 | }) | 35 | }) |
39 | } | 36 | } |
40 | 37 | ||
41 | /* | 38 | /* |
42 | 业务办理-选择单元-查询户信息 | 39 | 业务办理-选择单元-查询户信息 |
43 | */ | 40 | */ |
44 | export function selectH(data) { | 41 | export function selectH (data) { |
45 | return request({ | 42 | return request({ |
46 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectH', | 43 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectH', |
47 | method: 'post', | 44 | method: 'post', |
48 | data, | 45 | data |
49 | showLoading: true | ||
50 | }) | 46 | }) |
51 | } | 47 | } |
52 | 48 | ||
... | @@ -56,8 +52,7 @@ export function selectOtherH (data) { | ... | @@ -56,8 +52,7 @@ export function selectOtherH (data) { |
56 | return request({ | 52 | return request({ |
57 | url: 'ywbl/ywsq/selectOtherH', | 53 | url: 'ywbl/ywsq/selectOtherH', |
58 | method: 'post', | 54 | method: 'post', |
59 | data, | 55 | data |
60 | showLoading: true | ||
61 | }) | 56 | }) |
62 | } | 57 | } |
63 | 58 | ||
... | @@ -76,52 +71,48 @@ export function selectOtherH (data) { | ... | @@ -76,52 +71,48 @@ export function selectOtherH (data) { |
76 | /* | 71 | /* |
77 | 业务办理-选择权利信息-根据条件进行列表查询 | 72 | 业务办理-选择权利信息-根据条件进行列表查询 |
78 | */ | 73 | */ |
79 | export function selectQlxx(data) { | 74 | export function selectQlxx (data) { |
80 | return request({ | 75 | return request({ |
81 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectQlxx', | 76 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectQlxx', |
82 | method: 'post', | 77 | method: 'post', |
83 | data, | 78 | data |
84 | showLoading: true | ||
85 | }) | 79 | }) |
86 | } | 80 | } |
87 | /* | 81 | /* |
88 | 业务办理-选择抵押权信息-根据条件进行列表查询 | 82 | 业务办理-选择抵押权信息-根据条件进行列表查询 |
89 | */ | 83 | */ |
90 | export function selectDiyaq(data) { | 84 | export function selectDiyaq (data) { |
91 | return request({ | 85 | return request({ |
92 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectDiyaq', | 86 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectDiyaq', |
93 | method: 'post', | 87 | method: 'post', |
94 | data, | 88 | data |
95 | showLoading: true | ||
96 | }) | 89 | }) |
97 | } | 90 | } |
98 | /* | 91 | /* |
99 | 业务办理-选择查封信息-根据条件进行列表查询 | 92 | 业务办理-选择查封信息-根据条件进行列表查询 |
100 | */ | 93 | */ |
101 | export function selectCfdj(data) { | 94 | export function selectCfdj (data) { |
102 | return request({ | 95 | return request({ |
103 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectCfdj', | 96 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectCfdj', |
104 | method: 'post', | 97 | method: 'post', |
105 | data, | 98 | data |
106 | showLoading: true | ||
107 | }) | 99 | }) |
108 | } | 100 | } |
109 | 101 | ||
110 | /* | 102 | /* |
111 | 业务办理-业务申请-添加收藏业务 | 103 | 业务办理-业务申请-添加收藏业务 |
112 | */ | 104 | */ |
113 | export function deleteCollectBiz(bsmSqyw) { | 105 | export function deleteCollectBiz (bsmSqyw) { |
114 | return request({ | 106 | return request({ |
115 | url: SERVER.SERVERAPI + '/rest/ywbl/BusinessApply/deleteCollectBiz?bsmSqyw=' + bsmSqyw, | 107 | url: SERVER.SERVERAPI + '/rest/ywbl/BusinessApply/deleteCollectBiz?bsmSqyw=' + bsmSqyw, |
116 | method: 'post' | 108 | method: 'post' |
117 | }) | 109 | }) |
118 | } | 110 | } |
119 | // 国有建设用地使用权/房屋使用权 -选择不动产单元 | 111 | // 国有建设用地使用权/房屋使用权 -选择不动产单元 |
120 | export function choiceBdcdy(data) { | 112 | export function choiceBdcdy (data) { |
121 | return request({ | 113 | return request({ |
122 | url: SERVER.SERVERAPI + '/rest/business/workFlow/choiceBdcdy', | 114 | url: SERVER.SERVERAPI + '/rest/business/workFlow/choiceBdcdy', |
123 | method: 'post', | 115 | method: 'post', |
124 | data, | 116 | data |
125 | showLoading: true | ||
126 | }) | 117 | }) |
127 | } | 118 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -8,8 +8,7 @@ export function getSysSqdjywBysearch (data) { | ... | @@ -8,8 +8,7 @@ export function getSysSqdjywBysearch (data) { |
8 | return request({ | 8 | return request({ |
9 | url: SERVER.SERVERAPI + '/rest/system/sysSqdjyw/getSysSqdjywBysearch', | 9 | url: SERVER.SERVERAPI + '/rest/system/sysSqdjyw/getSysSqdjywBysearch', |
10 | method: 'post', | 10 | method: 'post', |
11 | data, | 11 | data |
12 | showLoading: true | ||
13 | }) | 12 | }) |
14 | } | 13 | } |
15 | /* | 14 | /* |
... | @@ -38,9 +37,7 @@ export function saveSqdjyw (data) { | ... | @@ -38,9 +37,7 @@ export function saveSqdjyw (data) { |
38 | return request({ | 37 | return request({ |
39 | url: SERVER.SERVERAPI + '/rest/system/sysSqdjyw/saveSqdjyw', | 38 | url: SERVER.SERVERAPI + '/rest/system/sysSqdjyw/saveSqdjyw', |
40 | method: 'post', | 39 | method: 'post', |
41 | data, | 40 | data |
42 | showLoading: true, | ||
43 | loadingTarget: '正在保存中...' | ||
44 | }) | 41 | }) |
45 | } | 42 | } |
46 | 43 | ||
... | @@ -51,8 +48,7 @@ export function sysSqywmbszSearch (data) { | ... | @@ -51,8 +48,7 @@ export function sysSqywmbszSearch (data) { |
51 | return request({ | 48 | return request({ |
52 | url: SERVER.SERVERAPI + '/rest/system/sysSqywmbsz/search', | 49 | url: SERVER.SERVERAPI + '/rest/system/sysSqywmbsz/search', |
53 | method: 'post', | 50 | method: 'post', |
54 | data, | 51 | data |
55 | showLoading: true | ||
56 | }) | 52 | }) |
57 | } | 53 | } |
58 | /* | 54 | /* |
... | @@ -71,7 +67,6 @@ export function updateSysSqywmbsz (data) { | ... | @@ -71,7 +67,6 @@ export function updateSysSqywmbsz (data) { |
71 | return request({ | 67 | return request({ |
72 | url: SERVER.SERVERAPI + '/rest/system/sysSqywmbsz/updateSysSqywmbsz', | 68 | url: SERVER.SERVERAPI + '/rest/system/sysSqywmbsz/updateSysSqywmbsz', |
73 | method: 'put', | 69 | method: 'put', |
74 | data, | 70 | data |
75 | showLoading: true | ||
76 | }) | 71 | }) |
77 | } | 72 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -7,8 +7,7 @@ export function getErrorLogList (data) { | ... | @@ -7,8 +7,7 @@ export function getErrorLogList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + '/rest/xtjk/view/getErrorLogList', | 8 | url: SERVER.SERVERAPI + '/rest/xtjk/view/getErrorLogList', |
9 | method: 'post', | 9 | method: 'post', |
10 | data, | 10 | data |
11 | showLoading: true | ||
12 | }) | 11 | }) |
13 | } | 12 | } |
14 | 13 | ||
... | @@ -19,8 +18,7 @@ export function getOperationLogList (data) { | ... | @@ -19,8 +18,7 @@ export function getOperationLogList (data) { |
19 | return request({ | 18 | return request({ |
20 | url: SERVER.SERVERAPI + '/rest/xtjk/view/getOperationLogList', | 19 | url: SERVER.SERVERAPI + '/rest/xtjk/view/getOperationLogList', |
21 | method: 'post', | 20 | method: 'post', |
22 | data, | 21 | data |
23 | showLoading: true | ||
24 | }) | 22 | }) |
25 | } | 23 | } |
26 | 24 | ||
... | @@ -30,7 +28,6 @@ export function getOperationLogList (data) { | ... | @@ -30,7 +28,6 @@ export function getOperationLogList (data) { |
30 | export function getServerInfo () { | 28 | export function getServerInfo () { |
31 | return request({ | 29 | return request({ |
32 | url: SERVER.SERVERAPI + '/rest/xtjk/view/getServerInfo', | 30 | url: SERVER.SERVERAPI + '/rest/xtjk/view/getServerInfo', |
33 | method: 'get', | 31 | method: 'get' |
34 | showLoading: true | ||
35 | }) | 32 | }) |
36 | } | 33 | } | ... | ... |
... | @@ -3,11 +3,10 @@ import SERVER from './config' | ... | @@ -3,11 +3,10 @@ import SERVER from './config' |
3 | /* | 3 | /* |
4 | 业务办理-获取收藏业务集合 | 4 | 业务办理-获取收藏业务集合 |
5 | */ | 5 | */ |
6 | export function getCollectBiz (headers) { | 6 | export function getCollectBiz () { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + '/rest/ywbl/BusinessApply/getCollectBiz', | 8 | url: SERVER.SERVERAPI + '/rest/ywbl/BusinessApply/getCollectBiz', |
9 | method: 'post', | 9 | method: 'post' |
10 | headers | ||
11 | }) | 10 | }) |
12 | } | 11 | } |
13 | 12 | ||
... | @@ -17,32 +16,27 @@ export function getCollectBiz (headers) { | ... | @@ -17,32 +16,27 @@ export function getCollectBiz (headers) { |
17 | export function getleftMenu () { | 16 | export function getleftMenu () { |
18 | return request({ | 17 | return request({ |
19 | url: SERVER.SERVERAPI + '/rest/ywbl/BusinessApply/getleftMenu', | 18 | url: SERVER.SERVERAPI + '/rest/ywbl/BusinessApply/getleftMenu', |
20 | method: 'post', | 19 | method: 'post' |
21 | headers: { | ||
22 | showLoading: false | ||
23 | } | ||
24 | }) | 20 | }) |
25 | } | 21 | } |
26 | /* | 22 | /* |
27 | 业务办理-获取下个节点内容 | 23 | 业务办理-获取下个节点内容 |
28 | */ | 24 | */ |
29 | export function getNextNode (bsmSqyw, headers) { | 25 | export function getNextNode (bsmSqyw) { |
30 | return request({ | 26 | return request({ |
31 | url: SERVER.SERVERAPI + '/rest/ywbl/BusinessApply/getNextNode?parentid=' + bsmSqyw, | 27 | url: SERVER.SERVERAPI + '/rest/ywbl/BusinessApply/getNextNode?parentid=' + bsmSqyw, |
32 | method: 'post', | 28 | method: 'post' |
33 | headers | ||
34 | }) | 29 | }) |
35 | } | 30 | } |
36 | 31 | ||
37 | /* | 32 | /* |
38 | 业务办理-选择单元-根据条件进行列表查询-国有建设用地使用权、房屋所有权(首次登记) | 33 | 业务办理-选择单元-根据条件进行列表查询-国有建设用地使用权、房屋所有权(首次登记) |
39 | */ | 34 | */ |
40 | export function selectScBdcdy (data, headers) { | 35 | export function selectScBdcdy (data) { |
41 | return request({ | 36 | return request({ |
42 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectScBdcdy', | 37 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectScBdcdy', |
43 | method: 'post', | 38 | method: 'post', |
44 | data, | 39 | data |
45 | headers | ||
46 | }) | 40 | }) |
47 | } | 41 | } |
48 | 42 | ||
... | @@ -53,82 +47,75 @@ export function selectScBdcdy (data, headers) { | ... | @@ -53,82 +47,75 @@ export function selectScBdcdy (data, headers) { |
53 | // return request({ | 47 | // return request({ |
54 | // url: 'ywbl/ywsq/selectFwsyq', | 48 | // url: 'ywbl/ywsq/selectFwsyq', |
55 | // method: 'post', | 49 | // method: 'post', |
56 | // data, | 50 | // data |
57 | // showLoading: true | 51 | // showLoading: true |
58 | // }) | 52 | // }) |
59 | // } | 53 | // } |
60 | 54 | ||
61 | // 待办箱列表查询接口 | 55 | // 待办箱列表查询接口 |
62 | export function searchTaskToDo (data, headers = {}) { | 56 | export function searchTaskToDo (data) { |
63 | return request({ | 57 | return request({ |
64 | url: SERVER.SERVERAPI + '/rest/workBox/search/searchTaskToDo', | 58 | url: SERVER.SERVERAPI + '/rest/workBox/search/searchTaskToDo', |
65 | method: 'post', | 59 | method: 'post', |
66 | data, | 60 | data |
67 | headers | ||
68 | }) | 61 | }) |
69 | } | 62 | } |
70 | // 待办箱/不动产单元删除接口 | 63 | // 待办箱/不动产单元删除接口 |
71 | export function deleteFlow (data, headers = {}) { | 64 | export function deleteFlow (data) { |
72 | return request({ | 65 | return request({ |
73 | url: SERVER.SERVERAPI + '/rest/business/workFlow/deleteFlow', | 66 | url: SERVER.SERVERAPI + '/rest/business/workFlow/deleteFlow', |
74 | method: 'post', | 67 | method: 'post', |
75 | data, | 68 | data |
76 | headers | ||
77 | }) | 69 | }) |
78 | } | 70 | } |
79 | /* | 71 | /* |
80 | 业务办理-发起业务申请流程 | 72 | 业务办理-发起业务申请流程 |
81 | */ | 73 | */ |
82 | export function startBusinessFlow (data, headers = {}) { | 74 | export function startBusinessFlow (data) { |
83 | return request({ | 75 | return request({ |
84 | url: SERVER.SERVERAPI + '/rest/business/workFlow/startBusinessFlow', | 76 | url: SERVER.SERVERAPI + '/rest/business/workFlow/startBusinessFlow', |
85 | method: 'post', | 77 | method: 'post', |
86 | data, | 78 | data |
87 | headers | ||
88 | }) | 79 | }) |
89 | } | 80 | } |
90 | /* | 81 | /* |
91 | 已办箱列表查询接口 | 82 | 已办箱列表查询接口 |
92 | */ | 83 | */ |
93 | export function searchTaskDone (data, headers = {}) { | 84 | export function searchTaskDone (data) { |
94 | return request({ | 85 | return request({ |
95 | url: SERVER.SERVERAPI + '/rest/workBox/search/searchTaskDone', | 86 | url: SERVER.SERVERAPI + '/rest/workBox/search/searchTaskDone', |
96 | method: 'post', | 87 | method: 'post', |
97 | data, | 88 | data |
98 | headers | ||
99 | }) | 89 | }) |
100 | } | 90 | } |
101 | /* | 91 | /* |
102 | 业务办理-选择权利信息-根据条件进行列表查询 | 92 | 业务办理-选择权利信息-根据条件进行列表查询 |
103 | */ | 93 | */ |
104 | export function selectQlxx (data, headers = {}) { | 94 | export function selectQlxx (data) { |
105 | return request({ | 95 | return request({ |
106 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectQlxx', | 96 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectQlxx', |
107 | method: 'post', | 97 | method: 'post', |
108 | data, | 98 | data |
109 | headers | ||
110 | }) | 99 | }) |
111 | } | 100 | } |
112 | /* | 101 | /* |
113 | 业务办理-选择抵押权信息-根据条件进行列表查询 | 102 | 业务办理-选择抵押权信息-根据条件进行列表查询 |
114 | */ | 103 | */ |
115 | export function selectDiyaq (data, headers = {}) { | 104 | export function selectDiyaq (data) { |
116 | return request({ | 105 | return request({ |
117 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectDiyaq', | 106 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectDiyaq', |
118 | method: 'post', | 107 | method: 'post', |
119 | data, | 108 | data |
120 | headers | ||
121 | }) | 109 | }) |
122 | } | 110 | } |
123 | /* | 111 | /* |
124 | 业务办理-选择查封信息-根据条件进行列表查询 | 112 | 业务办理-选择查封信息-根据条件进行列表查询 |
125 | */ | 113 | */ |
126 | export function selectCfdj (data, headers = {}) { | 114 | export function selectCfdj (data) { |
127 | return request({ | 115 | return request({ |
128 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectCfdj', | 116 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectCfdj', |
129 | method: 'post', | 117 | method: 'post', |
130 | data, | 118 | data |
131 | headers | ||
132 | }) | 119 | }) |
133 | } | 120 | } |
134 | /* | 121 | /* |
... | @@ -150,31 +137,28 @@ export function deleteCollectBiz (bsmSqyw) { | ... | @@ -150,31 +137,28 @@ export function deleteCollectBiz (bsmSqyw) { |
150 | }) | 137 | }) |
151 | } | 138 | } |
152 | // 国有建设用地使用权/房屋使用权 -选择不动产单元 | 139 | // 国有建设用地使用权/房屋使用权 -选择不动产单元 |
153 | export function choiceBdcdy (data, headers = {}) { | 140 | export function choiceBdcdy (data) { |
154 | return request({ | 141 | return request({ |
155 | url: SERVER.SERVERAPI + '/rest/business/workFlow/choiceBdcdy', | 142 | url: SERVER.SERVERAPI + '/rest/business/workFlow/choiceBdcdy', |
156 | method: 'post', | 143 | method: 'post', |
157 | data, | 144 | data |
158 | headers | ||
159 | }) | 145 | }) |
160 | } | 146 | } |
161 | 147 | ||
162 | // 申请列表删除 | 148 | // 申请列表删除 |
163 | export function deleteBdcdy (data, headers = {}) { | 149 | export function deleteBdcdy (data) { |
164 | return request({ | 150 | return request({ |
165 | url: SERVER.SERVERAPI + '/rest/business/workFlow/deleteBdcdy', | 151 | url: SERVER.SERVERAPI + '/rest/business/workFlow/deleteBdcdy', |
166 | method: 'post', | 152 | method: 'post', |
167 | data, | 153 | data |
168 | headers | ||
169 | }) | 154 | }) |
170 | } | 155 | } |
171 | 156 | ||
172 | // 获取自然幢下其他户 | 157 | // 获取自然幢下其他户 |
173 | export function selectOtherH (data, headers = {}) { | 158 | export function selectOtherH (data) { |
174 | return request({ | 159 | return request({ |
175 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectOtherH', | 160 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectOtherH', |
176 | method: 'post', | 161 | method: 'post', |
177 | data, | 162 | data |
178 | headers | ||
179 | }) | 163 | }) |
180 | } | 164 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -17,8 +17,7 @@ export function getZsglrkList (data) { | ... | @@ -17,8 +17,7 @@ export function getZsglrkList (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglrkList', | 18 | url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglrkList', |
19 | method: 'post', | 19 | method: 'post', |
20 | data, | 20 | data |
21 | showLoading: true | ||
22 | }) | 21 | }) |
23 | } | 22 | } |
24 | /* | 23 | /* |
... | @@ -28,9 +27,7 @@ export function zsrk (data) { | ... | @@ -28,9 +27,7 @@ export function zsrk (data) { |
28 | return request({ | 27 | return request({ |
29 | url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsrk', | 28 | url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsrk', |
30 | method: 'post', | 29 | method: 'post', |
31 | data, | 30 | data |
32 | showLoading: true, | ||
33 | loadingTarget: '正在保存中...' | ||
34 | }) | 31 | }) |
35 | } | 32 | } |
36 | /* | 33 | /* |
... | @@ -60,8 +57,7 @@ export function getZsglffList (data) { | ... | @@ -60,8 +57,7 @@ export function getZsglffList (data) { |
60 | return request({ | 57 | return request({ |
61 | url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglffList', | 58 | url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglffList', |
62 | method: 'post', | 59 | method: 'post', |
63 | data, | 60 | data |
64 | showLoading: true | ||
65 | }) | 61 | }) |
66 | } | 62 | } |
67 | /* | 63 | /* |
... | @@ -90,9 +86,7 @@ export function zsff (data) { | ... | @@ -90,9 +86,7 @@ export function zsff (data) { |
90 | return request({ | 86 | return request({ |
91 | url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsff', | 87 | url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsff', |
92 | method: 'post', | 88 | method: 'post', |
93 | data, | 89 | data |
94 | showLoading: true, | ||
95 | loadingTarget: '正在保存中...' | ||
96 | }) | 90 | }) |
97 | } | 91 | } |
98 | /* | 92 | /* |
... | @@ -112,8 +106,7 @@ export function getZssyqkList (data) { | ... | @@ -112,8 +106,7 @@ export function getZssyqkList (data) { |
112 | return request({ | 106 | return request({ |
113 | url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZssyqkList', | 107 | url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZssyqkList', |
114 | method: 'post', | 108 | method: 'post', |
115 | data, | 109 | data |
116 | showLoading: true | ||
117 | }) | 110 | }) |
118 | } | 111 | } |
119 | /* | 112 | /* | ... | ... |
... | @@ -8,11 +8,15 @@ import './styles/element-variables.scss' | ... | @@ -8,11 +8,15 @@ import './styles/element-variables.scss' |
8 | import '@/styles/index.scss' | 8 | import '@/styles/index.scss' |
9 | import Base from './components/Base/base' // 全局组件引入 | 9 | import Base from './components/Base/base' // 全局组件引入 |
10 | import mixin from '@/utils/mixin/theme.js' | 10 | import mixin from '@/utils/mixin/theme.js' |
11 | import { startLoadingAddCount, endLoadingSubCount } from './utils/requestLoading' | ||
11 | Vue.mixin(mixin); | 12 | Vue.mixin(mixin); |
12 | 13 | ||
13 | import rules from './utils/rule.js' | 14 | import rules from './utils/rule.js' |
14 | // 全局方法挂载 | 15 | // 全局方法挂载 |
15 | Vue.prototype.$rules = rules | 16 | Vue.prototype.$rules = rules |
17 | // 全局加载 | ||
18 | Vue.prototype.$startLoading = startLoadingAddCount | ||
19 | Vue.prototype.$endLoading = endLoadingSubCount | ||
16 | 20 | ||
17 | import Popup from './components/tanchuang/index' | 21 | import Popup from './components/tanchuang/index' |
18 | Vue.prototype.$popup = Popup.install | 22 | Vue.prototype.$popup = Popup.install | ... | ... |
... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
3 | */ | 3 | */ |
4 | import axios from 'axios' | 4 | import axios from 'axios' |
5 | import { Message } from 'element-ui' | 5 | import { Message } from 'element-ui' |
6 | import { startLoadingAddCount, endLoadingSubCount } from './requestLoading' | 6 | import { endLoadingSubCount } from './utils/requestLoading' |
7 | 7 | ||
8 | // create an axios instance | 8 | // create an axios instance |
9 | const service = axios.create({ | 9 | const service = axios.create({ |
... | @@ -19,22 +19,12 @@ const service = axios.create({ | ... | @@ -19,22 +19,12 @@ const service = axios.create({ |
19 | // request interceptor | 19 | // request interceptor |
20 | service.interceptors.request.use( | 20 | service.interceptors.request.use( |
21 | config => { | 21 | config => { |
22 | // config.headers.showLoading !== false | ||
23 | if (config.headers.target) { | ||
24 | startLoadingAddCount(config.headers.loadingTarget ? config.headers.loadingTarget : '正在加载中...', | ||
25 | config.headers.target ? config.headers.target : 'body'); | ||
26 | } | ||
27 | config.headers.Authorization = | 22 | config.headers.Authorization = |
28 | 'bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6' | 23 | 'bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6' |
29 | config.headers.Accept = 'application/json' | 24 | config.headers.Accept = 'application/json' |
30 | return config | 25 | return config |
31 | }, | 26 | }, |
32 | error => { | 27 | error => { |
33 | // error.headers.showLoading !== false | ||
34 | if (error.headers.target) { | ||
35 | endLoadingSubCount(config.headers.loadingTarget ? config.headers.loadingTarget : '正在加载中...', | ||
36 | config.headers.target ? config.headers.target : 'body'); | ||
37 | } | ||
38 | Message.error('请求超时!'); | 28 | Message.error('请求超时!'); |
39 | return Promise.reject(error) | 29 | return Promise.reject(error) |
40 | } | 30 | } |
... | @@ -43,9 +33,6 @@ service.interceptors.request.use( | ... | @@ -43,9 +33,6 @@ service.interceptors.request.use( |
43 | // response interceptor | 33 | // response interceptor |
44 | service.interceptors.response.use( | 34 | service.interceptors.response.use( |
45 | response => { | 35 | response => { |
46 | if (response.config.headers.showLoading !== false) { | ||
47 | endLoadingSubCount(); | ||
48 | } | ||
49 | /** | 36 | /** |
50 | * 对响应数据判断: | 37 | * 对响应数据判断: |
51 | * 如果成功返回数据,就通过return把数据返出去 | 38 | * 如果成功返回数据,就通过return把数据返出去 |
... | @@ -59,15 +46,13 @@ service.interceptors.response.use( | ... | @@ -59,15 +46,13 @@ service.interceptors.response.use( |
59 | return response; | 46 | return response; |
60 | }, | 47 | }, |
61 | error => { | 48 | error => { |
49 | endLoadingSubCount() | ||
62 | // 对响应错误做点什么 | 50 | // 对响应错误做点什么 |
63 | Message({ | 51 | Message({ |
64 | message: '服务器异常,请联系管理员', | 52 | message: '服务器异常,请联系管理员', |
65 | type: 'error', | 53 | type: 'error', |
66 | duration: 5 * 1000 | 54 | duration: 5 * 1000 |
67 | }) | 55 | }) |
68 | if (error.config.headers.showLoading !== false) { | ||
69 | endLoadingSubCount(); | ||
70 | } | ||
71 | return Promise.reject(error); | 56 | return Promise.reject(error); |
72 | } | 57 | } |
73 | ) | 58 | ) |
... | @@ -89,12 +74,6 @@ function handleErrorData (errMes) { | ... | @@ -89,12 +74,6 @@ function handleErrorData (errMes) { |
89 | case 500: | 74 | case 500: |
90 | Message.error("服务器错误!"); | 75 | Message.error("服务器错误!"); |
91 | break; | 76 | break; |
92 | case 504: | ||
93 | Message.error("网络超时!"); | ||
94 | break; | ||
95 | case 2002: | ||
96 | Message.error(errMes.message); | ||
97 | break; | ||
98 | default: | 77 | default: |
99 | Message.error("服务正在联调中,请稍后!"); | 78 | Message.error("服务正在联调中,请稍后!"); |
100 | break; | 79 | break; | ... | ... |
... | @@ -4,12 +4,12 @@ import Loading from '@/components/loading/index.js'; | ... | @@ -4,12 +4,12 @@ import Loading from '@/components/loading/index.js'; |
4 | let loading | 4 | let loading |
5 | 5 | ||
6 | // loading开始 方法 | 6 | // loading开始 方法 |
7 | function startLoading (LoadingText = '正在加载中...', target = "body") { | 7 | function startLoading (target = "body") { |
8 | loading = Loading.service({ | 8 | loading = Loading.service({ |
9 | text: LoadingText, | 9 | text: '正在加载中...', |
10 | spinner: 'el-icon-loading', | 10 | spinner: 'el-icon-loading', |
11 | background: 'rgba(255, 255, 255, 0.5)', | 11 | background: 'rgba(255, 255, 255, 0.5)', |
12 | target: target | 12 | target: '#' + target |
13 | }) | 13 | }) |
14 | } | 14 | } |
15 | 15 | ... | ... |
... | @@ -114,8 +114,10 @@ export default { | ... | @@ -114,8 +114,10 @@ export default { |
114 | }, | 114 | }, |
115 | // 列表渲染接口 | 115 | // 列表渲染接口 |
116 | fetchData () { | 116 | fetchData () { |
117 | searchTaskToDo({ ...this.queryForm, ...this.pageData }, { 'target': '#dbx' }).then(res => { | 117 | this.$startLoading('dbx') |
118 | searchTaskToDo({ ...this.queryForm, ...this.pageData }).then(res => { | ||
118 | if (res.code === 200) { | 119 | if (res.code === 200) { |
120 | this.$endLoading() | ||
119 | let { total, records } = res.result | 121 | let { total, records } = res.result |
120 | records.forEach(item => { | 122 | records.forEach(item => { |
121 | item.qlrmc = item.qlrmc.join(',') | 123 | item.qlrmc = item.qlrmc.join(',') | ... | ... |
-
Please register or sign in to post a comment