style:增加注释
Showing
223 changed files
with
3729 additions
and
725 deletions
... | @@ -17,7 +17,10 @@ import { | ... | @@ -17,7 +17,10 @@ import { |
17 | putAction | 17 | putAction |
18 | } from './manageApi' | 18 | } from './manageApi' |
19 | /** 角色管理开始 */ | 19 | /** 角色管理开始 */ |
20 | // 获取角色列表 by categoryId | 20 | /** |
21 | * @description: 获取角色列表 by categoryId | ||
22 | * @author: renchao | ||
23 | */ | ||
21 | export const getRolesById = categoryIdList => { | 24 | export const getRolesById = categoryIdList => { |
22 | const conditionGroup = { | 25 | const conditionGroup = { |
23 | conditions: [ | 26 | conditions: [ |
... | @@ -34,7 +37,12 @@ export const getRolesById = categoryIdList => { | ... | @@ -34,7 +37,12 @@ export const getRolesById = categoryIdList => { |
34 | } | 37 | } |
35 | /** 角色管理结束 */ | 38 | /** 角色管理结束 */ |
36 | /** 授权管理开始 */ | 39 | /** 授权管理开始 */ |
37 | // 获取权限列表 | 40 | /** |
41 | * @description: 获取权限列表 | ||
42 | * @param {*} productId | ||
43 | * @param {*} subsystemCode | ||
44 | * @author: renchao | ||
45 | */ | ||
38 | export const getAuthorityListAction = (productId, subsystemCode) => { | 46 | export const getAuthorityListAction = (productId, subsystemCode) => { |
39 | const conditionGroup = { | 47 | const conditionGroup = { |
40 | conditions: [ | 48 | conditions: [ |
... | @@ -56,10 +64,11 @@ export const getAuthorityListAction = (productId, subsystemCode) => { | ... | @@ -56,10 +64,11 @@ export const getAuthorityListAction = (productId, subsystemCode) => { |
56 | } | 64 | } |
57 | 65 | ||
58 | /** | 66 | /** |
59 | * 获取角色的权限 id operationCodes resourceCategoryCode | 67 | * @description: 获取角色的权限 id operationCodes resourceCategoryCode |
60 | * id 授权id | 68 | * @param {*} id 授权id |
61 | * operationCodes 操作符集合 | 69 | * @param {*} operationCodes 操作符集合 |
62 | * resourceCategoryCode 菜单默认MENU | 70 | * @param {*} resourceCategoryCode 菜单默认MENU |
71 | * @author: renchao | ||
63 | */ | 72 | */ |
64 | export const getRoleAuthorityList = ( | 73 | export const getRoleAuthorityList = ( |
65 | id, | 74 | id, |
... | @@ -71,15 +80,21 @@ export const getRoleAuthorityList = ( | ... | @@ -71,15 +80,21 @@ export const getRoleAuthorityList = ( |
71 | resourceCategoryCode: resourceCategoryCode | 80 | resourceCategoryCode: resourceCategoryCode |
72 | }) | 81 | }) |
73 | } | 82 | } |
74 | // 角色授权 | 83 | /** |
84 | * @description: 角色授权 | ||
85 | * @param {*} id | ||
86 | * @param {*} permissionDtos | ||
87 | * @author: renchao | ||
88 | */ | ||
75 | export const roleAuthority = (id, permissionDtos) => { | 89 | export const roleAuthority = (id, permissionDtos) => { |
76 | return putAction(`${api.rolePermissions}/${id}`, permissionDtos) | 90 | return putAction(`${api.rolePermissions}/${id}`, permissionDtos) |
77 | } | 91 | } |
78 | 92 | ||
79 | 93 | /** | |
80 | 94 | * @description: 获取父级菜单 | |
81 | // 获取父级菜单 | 95 | * @param {*} id 系统id |
82 | // id是系统id | 96 | * @author: renchao |
97 | */ | ||
83 | export const getParentMenuListAction = (id) => { | 98 | export const getParentMenuListAction = (id) => { |
84 | let conditionGroup = {} | 99 | let conditionGroup = {} |
85 | if (id && id !== '') { | 100 | if (id && id !== '') { | ... | ... |
... | @@ -39,6 +39,7 @@ export function getAreaReportPage (data) { | ... | @@ -39,6 +39,7 @@ export function getAreaReportPage (data) { |
39 | 39 | ||
40 | /** | 40 | /** |
41 | * @description: 接入数据上报分页 | 41 | * @description: 接入数据上报分页 |
42 | * @param {*} data | ||
42 | * @author: renchao | 43 | * @author: renchao |
43 | */ | 44 | */ |
44 | export function getReceiveDataReportPage (data) { | 45 | export function getReceiveDataReportPage (data) { |
... | @@ -51,6 +52,7 @@ export function getReceiveDataReportPage (data) { | ... | @@ -51,6 +52,7 @@ export function getReceiveDataReportPage (data) { |
51 | 52 | ||
52 | /** | 53 | /** |
53 | * @description: 数据上报分页 | 54 | * @description: 数据上报分页 |
55 | * @param {*} data | ||
54 | * @author: renchao | 56 | * @author: renchao |
55 | */ | 57 | */ |
56 | export function getDataReportPage (data) { | 58 | export function getDataReportPage (data) { |
... | @@ -61,6 +63,11 @@ export function getDataReportPage (data) { | ... | @@ -61,6 +63,11 @@ export function getDataReportPage (data) { |
61 | }) | 63 | }) |
62 | } | 64 | } |
63 | 65 | ||
66 | /** | ||
67 | * @description: 获取数据上报数据 | ||
68 | * @param {*} data | ||
69 | * @author: renchao | ||
70 | */ | ||
64 | export function getSjsbReportPage (data) { | 71 | export function getSjsbReportPage (data) { |
65 | return request({ | 72 | return request({ |
66 | url: urlHeader + 'getSjsbReportPage', | 73 | url: urlHeader + 'getSjsbReportPage', |
... | @@ -70,6 +77,7 @@ export function getSjsbReportPage (data) { | ... | @@ -70,6 +77,7 @@ export function getSjsbReportPage (data) { |
70 | } | 77 | } |
71 | /** | 78 | /** |
72 | * @description: 查询数据上报详情tabs选项卡 | 79 | * @description: 查询数据上报详情tabs选项卡 |
80 | * @param {*} params | ||
73 | * @author: renchao | 81 | * @author: renchao |
74 | */ | 82 | */ |
75 | export function getTabsDetail (params) { | 83 | export function getTabsDetail (params) { |
... | @@ -81,6 +89,7 @@ export function getTabsDetail (params) { | ... | @@ -81,6 +89,7 @@ export function getTabsDetail (params) { |
81 | } | 89 | } |
82 | /** | 90 | /** |
83 | * @description: 查询数据上报详情 | 91 | * @description: 查询数据上报详情 |
92 | * @param {*} params | ||
84 | * @author: renchao | 93 | * @author: renchao |
85 | */ | 94 | */ |
86 | export function getReportDetail (params) { | 95 | export function getReportDetail (params) { | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :字典api文件 | 2 | * @Description :字典模块api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:02:25 | 4 | * @LastEditTime : 2023-05-17 10:25:38 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | /* | 8 | /** |
9 | 获取全部字典数据 | 9 | * @description: 获取全部字典数据 |
10 | */ | 10 | * @author: renchao |
11 | */ | ||
11 | export function getAllDict () { | 12 | export function getAllDict () { |
12 | return request({ | 13 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/sys/dict/getAllDict', | 14 | url: SERVER.SERVERAPI + '/rest/sys/dict/getAllDict', |
14 | method: 'post' | 15 | method: 'post' |
15 | }) | 16 | }) |
16 | } | 17 | } |
18 | /** | ||
19 | * @description: 获取字典类型列表 | ||
20 | * @param {*} data | ||
21 | * @author: renchao | ||
22 | */ | ||
17 | export function getQlxxDictList (data) { | 23 | export function getQlxxDictList (data) { |
18 | return request({ | 24 | return request({ |
19 | url: SERVER.SERVERAPI + '/rest/sys/dict/getDictList', | 25 | url: SERVER.SERVERAPI + '/rest/sys/dict/getDictList', |
... | @@ -21,9 +27,11 @@ export function getQlxxDictList (data) { | ... | @@ -21,9 +27,11 @@ export function getQlxxDictList (data) { |
21 | data | 27 | data |
22 | }) | 28 | }) |
23 | } | 29 | } |
24 | /* | 30 | /** |
25 | 获取字典子级列表 | 31 | * @description: 获取字典子级列表 |
26 | */ | 32 | * @param {*} bsmDict |
33 | * @author: renchao | ||
34 | */ | ||
27 | export function getChildDictList (bsmDict) { | 35 | export function getChildDictList (bsmDict) { |
28 | return request({ | 36 | return request({ |
29 | url: SERVER.SERVERAPI + '/rest/sys/dict/getChildDictList', | 37 | url: SERVER.SERVERAPI + '/rest/sys/dict/getChildDictList', |
... | @@ -33,9 +41,11 @@ export function getChildDictList (bsmDict) { | ... | @@ -33,9 +41,11 @@ export function getChildDictList (bsmDict) { |
33 | } | 41 | } |
34 | }) | 42 | }) |
35 | } | 43 | } |
36 | /* | 44 | /** |
37 | 编辑字典数据 | 45 | * @description: 编辑字典数据 |
38 | */ | 46 | * @param {*} data |
47 | * @author: renchao | ||
48 | */ | ||
39 | export function editDictNode (data) { | 49 | export function editDictNode (data) { |
40 | return request({ | 50 | return request({ |
41 | url: SERVER.SERVERAPI + '/rest/sys/dict/editDictNode', | 51 | url: SERVER.SERVERAPI + '/rest/sys/dict/editDictNode', |
... | @@ -44,9 +54,10 @@ export function editDictNode (data) { | ... | @@ -44,9 +54,10 @@ export function editDictNode (data) { |
44 | }) | 54 | }) |
45 | } | 55 | } |
46 | 56 | ||
47 | /* | 57 | /** |
48 | 刷新字典缓存 | 58 | * @description: 刷新字典缓存 |
49 | */ | 59 | * @author: renchao |
60 | */ | ||
50 | export function refreshDictCache () { | 61 | export function refreshDictCache () { |
51 | return request({ | 62 | return request({ |
52 | url: SERVER.SERVERAPI + '/rest/sys/dict/refreshDictCache', | 63 | url: SERVER.SERVERAPI + '/rest/sys/dict/refreshDictCache', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :登记登簿信息api文件 | 2 | * @Description : 登记簿模块api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:03:11 | 4 | * @LastEditTime : 2023-05-17 10:21:54 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class djfDjDb { | 9 | class djfDjDb { |
10 | /* | 10 | /** |
11 | 登记登簿信息 | 11 | * @description: 登记登簿信息 |
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
12 | */ | 14 | */ |
13 | async getDjfDjDbById (bsmSjsb) { | 15 | async getDjfDjDbById (bsmSjsb) { |
14 | return request({ | 16 | return request({ |
... | @@ -19,8 +21,10 @@ class djfDjDb { | ... | @@ -19,8 +21,10 @@ class djfDjDb { |
19 | }, | 21 | }, |
20 | }); | 22 | }); |
21 | } | 23 | } |
22 | /* | 24 | /** |
23 | 修改登记登簿信息 | 25 | * @description: 修改登记登簿信息 |
26 | * @param {*} data | ||
27 | * @author: renchao | ||
24 | */ | 28 | */ |
25 | async updateDjfDjDb (data) { | 29 | async updateDjfDjDb (data) { |
26 | return request({ | 30 | return request({ | ... | ... |
1 | /* | 1 | /* |
2 | * @Description : 登记收件信息api文件 | 2 | * @Description :登记收件相关api |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:05:47 | 4 | * @LastEditTime : 2023-05-17 10:28:23 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class djfDjSj { | 9 | class djfDjSj { |
10 | //登记收件信息 | 10 | /** |
11 | * @description: 登记收件信息 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getDjfDjSjById (bsmSjsb) { | 15 | async getDjfDjSjById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/detail", | 17 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/detail", |
... | @@ -17,7 +21,11 @@ class djfDjSj { | ... | @@ -17,7 +21,11 @@ class djfDjSj { |
17 | }, | 21 | }, |
18 | }); | 22 | }); |
19 | } | 23 | } |
20 | //修改登记收件信息 | 24 | /** |
25 | * @description: 修改登记收件信息 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateDjfDjSj (data) { | 29 | async updateDjfDjSj (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/edit", | 31 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :申请人属性信息api文件 | 2 | * @Description :申请人属性信息相关api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:07:59 | 4 | * @LastEditTime : 2023-05-17 10:28:49 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class djfDjSqr { | 9 | class djfDjSqr { |
10 | // 申请人属性信息-业务表单 | 10 | /** |
11 | * @description: 申请人属性信息-业务表单 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getDjfDjSqrById (bsmSjsb) { | 15 | async getDjfDjSqrById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/detail", | 17 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/detail", |
... | @@ -18,11 +22,10 @@ class djfDjSqr { | ... | @@ -18,11 +22,10 @@ class djfDjSqr { |
18 | }); | 22 | }); |
19 | } | 23 | } |
20 | /** | 24 | /** |
21 | * @description: 业务-修改数据 | 25 | * @description: 申请人属性信息-业务-修改 |
22 | * @param {}data | 26 | * @param {*} data |
23 | * @author: miaofang | 27 | * @author: renchao |
24 | */ | 28 | */ |
25 | // 申请人属性信息-业务-修改 | ||
26 | async updateDjfDjSqr (data) { | 29 | async updateDjfDjSqr (data) { |
27 | return request({ | 30 | return request({ |
28 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/edit", | 31 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :登记缮证信息api文件 | 2 | * @Description :登记缮证信息api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:08:21 | 4 | * @LastEditTime : 2023-05-17 10:30:48 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class djfDjSz { | 9 | class djfDjSz { |
10 | //登记缮证信息 | 10 | /** |
11 | * @description: 登记缮证信息 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getDjfDjSzById (bsmSjsb) { | 15 | async getDjfDjSzById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/detail", | 17 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/detail", |
... | @@ -17,7 +21,11 @@ class djfDjSz { | ... | @@ -17,7 +21,11 @@ class djfDjSz { |
17 | }, | 21 | }, |
18 | }); | 22 | }); |
19 | } | 23 | } |
20 | //修改登记缮证信息 | 24 | /** |
25 | * @description: 修改登记缮证信息 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateDjfDjSz (data) { | 29 | async updateDjfDjSz (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/edit", | 31 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :登记受理申请信息 | 2 | * @Description :登记受理申请信息相关api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:09:14 | 4 | * @LastEditTime : 2023-05-17 10:31:20 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class djtDjSlsq { | 9 | class djtDjSlsq { |
10 | // 登记受理申请信息 -- 业务表单 | 10 | /** |
11 | * @description: 登记受理申请信息 -- 业务表单 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getDjtDjSlsqById (bsmSjsb) { | 15 | async getDjtDjSlsqById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/detail", | 17 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/detail", |
... | @@ -17,7 +21,11 @@ class djtDjSlsq { | ... | @@ -17,7 +21,11 @@ class djtDjSlsq { |
17 | }, | 21 | }, |
18 | }); | 22 | }); |
19 | } | 23 | } |
20 | // 登记受理申请信息 -- 业务修改 | 24 | /** |
25 | * @description: 登记受理申请信息 -- 业务修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateDjtDjSlsq (data) { | 29 | async updateDjtDjSlsq (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/edit", | 31 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/edit", |
... | @@ -25,7 +33,11 @@ class djtDjSlsq { | ... | @@ -25,7 +33,11 @@ class djtDjSlsq { |
25 | data, | 33 | data, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | //修改登记受理申请信息 | 36 | /** |
37 | * @description: 修改登记受理申请信息 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateDjtDjSlsq (data) { | 41 | async updateDjtDjSlsq (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/updateDjtDjSlsq", | 43 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/updateDjtDjSlsq", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :获取各区县业务api文件 | 2 | * @Description :对应的业务的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:09:19 | 4 | * @LastEditTime : 2023-05-17 10:32:39 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class efficient { | 9 | class efficient { |
10 | /* | 10 | /** |
11 | 获取对应的业务量总数 | 11 | * @description: 获取对应的业务量总数 |
12 | startDate:开始日期 | 12 | * @param {*} startDate:开始日期 |
13 | endDate:结束日期 | 13 | * @param {*} endDate:结束日期 |
14 | * @param {*} qxdm | ||
15 | * @author: renchao | ||
14 | */ | 16 | */ |
15 | async getProcessCounts (startDate, endDate, qxdm) { | 17 | async getProcessCounts (startDate, endDate, qxdm) { |
16 | return request({ | 18 | return request({ |
... | @@ -23,11 +25,12 @@ class efficient { | ... | @@ -23,11 +25,12 @@ class efficient { |
23 | }, | 25 | }, |
24 | }); | 26 | }); |
25 | } | 27 | } |
26 | /* | 28 | /** |
27 | 获取各区县业务对应的天数 | 29 | * @description: 获取各区县业务对应的天数 |
28 | recType:业务代码 | 30 | * @param {*} recType:业务代码 |
29 | startDate:开始日期 | 31 | * @param {*} startDate:开始日期 |
30 | endDate:结束日期 | 32 | * @param {*} endDate:结束日期 |
33 | * @author: renchao | ||
31 | */ | 34 | */ |
32 | async getProcessDays (recType, startDate, endDate) { | 35 | async getProcessDays (recType, startDate, endDate) { |
33 | return request({ | 36 | return request({ | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :非结构化文档 | 2 | * @Description :非结构化文档的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:13:12 | 4 | * @LastEditTime : 2023-05-17 10:33:26 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class fjF100 { | 9 | class fjF100 { |
10 | // 非结构化文档 | 10 | /** |
11 | * @description: 非结构化文档 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getFjF100ById (bsmSjsb) { | 15 | async getFjF100ById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/FjF100/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/FjF100/detail', |
... | @@ -18,7 +22,11 @@ class fjF100 { | ... | @@ -18,7 +22,11 @@ class fjF100 { |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | 24 | ||
21 | //非结构化文档-修改 | 25 | /** |
26 | * @description: 非结构化文档-修改 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
22 | async updateFjF100 (data) { | 30 | async updateFjF100 (data) { |
23 | return request({ | 31 | return request({ |
24 | url: SERVER.SERVERAPI + '/rest/reg/FjF100/edit', | 32 | url: SERVER.SERVERAPI + '/rest/reg/FjF100/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :点状定着物信息api文件 | 2 | * @Description :点状定着物信息api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:13:23 | 4 | * @LastEditTime : 2023-05-17 10:33:43 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class ktfQtDzdzw { | 9 | class ktfQtDzdzw { |
10 | // 点状定着物信息 | 10 | /** |
11 | * @description: 点状定着物信息 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKtfQtDzdzwById (bsmSjsb) { | 15 | async getKtfQtDzdzwById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/detail', |
... | @@ -17,7 +21,11 @@ class ktfQtDzdzw { | ... | @@ -17,7 +21,11 @@ class ktfQtDzdzw { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | // 点状定着物信息-修改 | 24 | /** |
25 | * @description: 点状定着物信息-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKtfQtDzdzw (data) { | 29 | async updateKtfQtDzdzw (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :面状定着物api文件 | 2 | * @Description :面状定着物api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:16:57 | 4 | * @LastEditTime : 2023-05-17 10:34:06 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class ktfQtMzdzw { | 9 | class ktfQtMzdzw { |
10 | // 面状定着物 | 10 | /** |
11 | * @description: 面状定着物 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKtfQtMzdzwById (bsmSjsb) { | 15 | async getKtfQtMzdzwById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/detail', |
... | @@ -17,7 +21,11 @@ class ktfQtMzdzw { | ... | @@ -17,7 +21,11 @@ class ktfQtMzdzw { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | // 面状定着物-修改 | 24 | /** |
25 | * @description: 面状定着物-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKtfQtMzdzw (data) { | 29 | async updateKtfQtMzdzw (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :线状定着物api文件 | 2 | * @Description :线状定着物api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:17:29 | 4 | * @LastEditTime : 2023-05-17 10:34:38 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class ktfQtXzdzw { | 9 | class ktfQtXzdzw { |
10 | // 线状定着物 | 10 | /** |
11 | * @description: 线状定着物 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKtfQtXzdzwById (bsmSjsb) { | 15 | async getKtfQtXzdzwById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtXzdzw/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtXzdzw/detail', |
... | @@ -17,7 +21,11 @@ class ktfQtXzdzw { | ... | @@ -17,7 +21,11 @@ class ktfQtXzdzw { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | // 线状定着物-修改 | 24 | /** |
25 | * @description: 线状定着物-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKtfQtXzdzw (data) { | 29 | async updateKtfQtXzdzw (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtXzdzw/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KtfQtXzdzw/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :宗地变化情况api文件 | 2 | * @Description :宗地变化情况api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:17:38 | 4 | * @LastEditTime : 2023-05-17 10:34:59 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class ktfZdbhqk { | 9 | class ktfZdbhqk { |
10 | //宗地变化情况 | 10 | /** |
11 | * @description: 宗地变化情况 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKtfZdbhqkById (bsmSjsb) { | 15 | async getKtfZdbhqkById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/detail', |
... | @@ -17,7 +21,11 @@ class ktfZdbhqk { | ... | @@ -17,7 +21,11 @@ class ktfZdbhqk { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | //修改宗地变化情况 | 24 | /** |
25 | * @description: 修改宗地变化情况 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKtfZdbhqk (data) { | 29 | async updateKtfZdbhqk (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :用海,用岛坐标api文件 | 2 | * @Description :用海,用岛坐标相关api |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:18:28 | 4 | * @LastEditTime : 2023-05-17 10:35:22 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class ktfZhYhydzb { | 9 | class ktfZhYhydzb { |
10 | // 用海,用岛坐标 | 10 | /** |
11 | * @description: 用海,用岛坐标 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKtfZhYhydzbById (bsmSjsb) { | 15 | async getKtfZhYhydzbById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhydzb/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhydzb/detail', |
... | @@ -17,7 +21,11 @@ class ktfZhYhydzb { | ... | @@ -17,7 +21,11 @@ class ktfZhYhydzb { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | // 用海,用岛坐标-修改 | 24 | /** |
25 | * @description: 用海,用岛坐标-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKtfZhYhydzb (data) { | 29 | async updateKtfZhYhydzb (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhydzb/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhydzb/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description : 用海状况api文件 | 2 | * @Description :用海状况相关api |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:19:11 | 4 | * @LastEditTime : 2023-05-17 10:35:41 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class ktfZhYhzk { | 9 | class ktfZhYhzk { |
10 | //用海状况 | 10 | /** |
11 | * @description: 用海状况 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKtfZhYhzkById (bsmSjsb) { | 15 | async getKtfZhYhzkById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/detail', |
... | @@ -17,7 +21,11 @@ class ktfZhYhzk { | ... | @@ -17,7 +21,11 @@ class ktfZhYhzk { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | //修改用海状况 | 24 | /** |
25 | * @description: 修改用海状况 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKtfZhYhzk (data) { | 29 | async updateKtfZhYhzk (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/edit', |
... | @@ -27,4 +35,3 @@ class ktfZhYhzk { | ... | @@ -27,4 +35,3 @@ class ktfZhYhzk { |
27 | } | 35 | } |
28 | } | 36 | } |
29 | export default new ktfZhYhzk() | 37 | export default new ktfZhYhzk() |
30 | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :层信息- 业务api文件 | 2 | * @Description :层信息- 业务相关api |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:19:27 | 4 | * @LastEditTime : 2023-05-17 10:36:46 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class kttFwC { | 9 | class kttFwC { |
10 | // 层信息- 业务表单 | 10 | /** |
11 | * @description: 层信息- 业务表单 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKttFwCById (bsmSjsb) { | 15 | async getKttFwCById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/KttFwC/detail", | 17 | url: SERVER.SERVERAPI + "/rest/reg/KttFwC/detail", |
... | @@ -17,7 +21,11 @@ class kttFwC { | ... | @@ -17,7 +21,11 @@ class kttFwC { |
17 | }, | 21 | }, |
18 | }); | 22 | }); |
19 | } | 23 | } |
20 | // 层信息-业务-修改 | 24 | /** |
25 | * @description: 层信息-业务-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKttFwC (data) { | 29 | async updateKttFwC (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + "/rest/reg/KttFwC/edit", | 31 | url: SERVER.SERVERAPI + "/rest/reg/KttFwC/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :户信息- 业务 | 2 | * @Description :户信息- 业务api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:20:10 | 4 | * @LastEditTime : 2023-05-17 10:37:11 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class kttFwH { | 9 | class kttFwH { |
10 | // 户信息- 业务表单 | 10 | /** |
11 | * @description: 户信息- 业务表单 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKttFwHById (bsmSjsb) { | 15 | async getKttFwHById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/KttFwH/detail", | 17 | url: SERVER.SERVERAPI + "/rest/reg/KttFwH/detail", |
... | @@ -17,7 +21,11 @@ class kttFwH { | ... | @@ -17,7 +21,11 @@ class kttFwH { |
17 | }, | 21 | }, |
18 | }); | 22 | }); |
19 | } | 23 | } |
20 | // 户信息-业务-修改 | 24 | /** |
25 | * @description: 户信息-业务-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKttFwH (data) { | 29 | async updateKttFwH (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + "/rest/reg/KttFwH/edit", | 31 | url: SERVER.SERVERAPI + "/rest/reg/KttFwH/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :逻辑幢信息 -- 业务api文件 | 2 | * @Description :逻辑幢信息api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:20:15 | 4 | * @LastEditTime : 2023-05-17 10:37:24 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class kttFwLjz { | 9 | class kttFwLjz { |
10 | // 逻辑幢信息 -- 业务表单 | 10 | /** |
11 | * @description: 逻辑幢信息 -- 业务表单 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKttFwLjzById (bsmSjsb) { | 15 | async getKttFwLjzById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/detail", | 17 | url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/detail", |
... | @@ -17,7 +21,11 @@ class kttFwLjz { | ... | @@ -17,7 +21,11 @@ class kttFwLjz { |
17 | }, | 21 | }, |
18 | }); | 22 | }); |
19 | } | 23 | } |
20 | // 逻辑幢信息 -- 业务修改 | 24 | /** |
25 | * @description: 逻辑幢信息 -- 业务修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKttFwLjz (data) { | 29 | async updateKttFwLjz (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/edit", | 31 | url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :自然幢信息api文件 | 2 | * @Description :自然幢信息api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:20:39 | 4 | * @LastEditTime : 2023-05-17 10:37:44 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class kttFwZrz { | 9 | class kttFwZrz { |
10 | // 自然幢信息 | 10 | /** |
11 | * @description: 自然幢信息 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKttFwZrzById (bsmSjsb) { | 15 | async getKttFwZrzById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/detail', |
... | @@ -17,7 +21,11 @@ class kttFwZrz { | ... | @@ -17,7 +21,11 @@ class kttFwZrz { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | // 自然幢信息-修改 | 24 | /** |
25 | * @description: 自然幢信息-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKttFwZrz (data) { | 29 | async updateKttFwZrz (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :界址点api文件 | 2 | * @Description :界址点api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:21:40 | 4 | * @LastEditTime : 2023-05-17 10:37:58 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class kttGyJzd { | 9 | class kttGyJzd { |
10 | //界址点 | 10 | /** |
11 | * @description: 界址点 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKttGyJzdById (bsmSjsb) { | 15 | async getKttGyJzdById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KttGyJzd/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KttGyJzd/detail', |
... | @@ -17,7 +21,11 @@ class kttGyJzd { | ... | @@ -17,7 +21,11 @@ class kttGyJzd { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | //修改界址点 | 24 | /** |
25 | * @description: 修改界址点 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKttGyJzd (data) { | 29 | async updateKttGyJzd (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KttGyJzd/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KttGyJzd/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :界址线信息api文件 | 2 | * @Description :界址线信息api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:21:57 | 4 | * @LastEditTime : 2023-05-17 10:38:10 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class kttGyJzx { | 9 | class kttGyJzx { |
10 | //界址线信息 | 10 | /** |
11 | * @description: 界址线信息 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKttGyJzxById (bsmSjsb) { | 15 | async getKttGyJzxById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/detail', |
... | @@ -17,7 +21,11 @@ class kttGyJzx { | ... | @@ -17,7 +21,11 @@ class kttGyJzx { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | //修改界址线信息 | 24 | /** |
25 | * @description: 修改界址线信息 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKttGyJzx (data) { | 29 | async updateKttGyJzx (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :构筑物api文件 | 2 | * @Description :构筑物api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:22:14 | 4 | * @LastEditTime : 2023-05-17 10:38:29 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class kttGzw { | 9 | class kttGzw { |
10 | //构筑物 | 10 | /** |
11 | * @description: 构筑物 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKttGzwById (bsmSjsb) { | 15 | async getKttGzwById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KttGzw/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KttGzw/detail', |
... | @@ -17,7 +21,11 @@ class kttGzw { | ... | @@ -17,7 +21,11 @@ class kttGzw { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | //修改构筑物 | 24 | /** |
25 | * @description: 修改构筑物 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKttGzw (data) { | 29 | async updateKttGzw (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KttGzw/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KttGzw/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description : 宗地基本信息api文件 | 2 | * @Description :宗地基本信息api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:22:47 | 4 | * @LastEditTime : 2023-05-17 10:38:51 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class kttZdjbxx { | 9 | class kttZdjbxx { |
10 | // 宗地基本信息 | 10 | /** |
11 | * @description: 宗地基本信息 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async kttZdjbxxDetail (bsmSjsb) { | 15 | async kttZdjbxxDetail (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/detail', |
... | @@ -17,7 +21,11 @@ class kttZdjbxx { | ... | @@ -17,7 +21,11 @@ class kttZdjbxx { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | // 宗地基本信息-修改 | 24 | /** |
25 | * @description: 宗地基本信息-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKttZdjbxx (data) { | 29 | async updateKttZdjbxx (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :宗海基本信息api文件 | 2 | * @Description :宗海基本信息api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:23:09 | 4 | * @LastEditTime : 2023-05-17 10:39:09 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class kttZhjbxx { | 9 | class kttZhjbxx { |
10 | //宗海基本信息 | 10 | /** |
11 | * @description: 宗海基本信息 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getKttZhjbxxById (bsmSjsb) { | 15 | async getKttZhjbxxById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/detail', |
... | @@ -17,7 +21,11 @@ class kttZhjbxx { | ... | @@ -17,7 +21,11 @@ class kttZhjbxx { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | //修改宗海基本信息 | 24 | /** |
25 | * @description: 修改宗海基本信息 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateKttZhjbxx (data) { | 29 | async updateKttZhjbxx (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/edit', | ... | ... |
... | @@ -5,12 +5,22 @@ | ... | @@ -5,12 +5,22 @@ |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | /** | ||
9 | * @description: loginIn | ||
10 | * @param {*} username | ||
11 | * @param {*} password | ||
12 | * @author: renchao | ||
13 | */ | ||
8 | export function loginIn (username, password) { | 14 | export function loginIn (username, password) { |
9 | return request({ | 15 | return request({ |
10 | url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`, | 16 | url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`, |
11 | method: "post", | 17 | method: "post", |
12 | }); | 18 | }); |
13 | } | 19 | } |
20 | /** | ||
21 | * @description: logout | ||
22 | * @author: renchao | ||
23 | */ | ||
14 | export function logout () { | 24 | export function logout () { |
15 | return request({ | 25 | return request({ |
16 | url: `${SERVER.MANAGEMENTAPI}/logout`, | 26 | url: `${SERVER.MANAGEMENTAPI}/logout`, | ... | ... |
... | @@ -88,7 +88,12 @@ export const api = { | ... | @@ -88,7 +88,12 @@ export const api = { |
88 | crudDatasources: crud + '/rest/datasources', // crudDatasources | 88 | crudDatasources: crud + '/rest/datasources', // crudDatasources |
89 | } | 89 | } |
90 | 90 | ||
91 | // 根据code获取字典 params={isTree:true}) | 91 | /** |
92 | * @description: 根据code获取字典 | ||
93 | * @param {*} code | ||
94 | * @param {*} params params={isTree:true} | ||
95 | * @author: renchao | ||
96 | */ | ||
92 | export function getDictItems (code, params = {}) { | 97 | export function getDictItems (code, params = {}) { |
93 | return request({ | 98 | return request({ |
94 | url: `${api.baseDataCategory}/${code}/base-datas`, | 99 | url: `${api.baseDataCategory}/${code}/base-datas`, |
... | @@ -96,21 +101,34 @@ export function getDictItems (code, params = {}) { | ... | @@ -96,21 +101,34 @@ export function getDictItems (code, params = {}) { |
96 | params | 101 | params |
97 | }) | 102 | }) |
98 | } | 103 | } |
99 | // 获取一级字典值下级接口 | 104 | /** |
105 | * @description: 获取一级字典值下级接口 | ||
106 | * @param {*} id | ||
107 | * @author: renchao | ||
108 | */ | ||
100 | export function getDictItemsChild (id) { | 109 | export function getDictItemsChild (id) { |
101 | return request({ | 110 | return request({ |
102 | url: `${api.baseData}/dict/${id}`, | 111 | url: `${api.baseData}/dict/${id}`, |
103 | method: 'get' | 112 | method: 'get' |
104 | }) | 113 | }) |
105 | } | 114 | } |
106 | // 获取传入字段的所有级别字典值 | 115 | /** |
116 | * @description: 获取传入字段的所有级别字典值 | ||
117 | * @param {*} name | ||
118 | * @author: renchao | ||
119 | */ | ||
107 | export function getAllDictItems (name) { | 120 | export function getAllDictItems (name) { |
108 | return request({ | 121 | return request({ |
109 | url: `${api.baseDataCategory}/${name}/base-datas`, | 122 | url: `${api.baseDataCategory}/${name}/base-datas`, |
110 | method: 'get' | 123 | method: 'get' |
111 | }) | 124 | }) |
112 | } | 125 | } |
113 | // get公共方法 | 126 | /** |
127 | * @description: get公共方法 | ||
128 | * @param {*} url | ||
129 | * @param {*} data | ||
130 | * @author: renchao | ||
131 | */ | ||
114 | export function getAction (url, params = {}) { | 132 | export function getAction (url, params = {}) { |
115 | return request({ | 133 | return request({ |
116 | url, | 134 | url, |
... | @@ -118,7 +136,12 @@ export function getAction (url, params = {}) { | ... | @@ -118,7 +136,12 @@ export function getAction (url, params = {}) { |
118 | params | 136 | params |
119 | }) | 137 | }) |
120 | } | 138 | } |
121 | // post公共方法 | 139 | /** |
140 | * @description: post公共方法 | ||
141 | * @param {*} url | ||
142 | * @param {*} data | ||
143 | * @author: renchao | ||
144 | */ | ||
122 | export function postAction (url, data = null) { | 145 | export function postAction (url, data = null) { |
123 | return request({ | 146 | return request({ |
124 | url, | 147 | url, |
... | @@ -126,7 +149,13 @@ export function postAction (url, data = null) { | ... | @@ -126,7 +149,13 @@ export function postAction (url, data = null) { |
126 | data | 149 | data |
127 | }) | 150 | }) |
128 | } | 151 | } |
129 | // method= {post | put} | 152 | /** |
153 | * @description: method= {post | put} | ||
154 | * @param {*} url | ||
155 | * @param {*} data | ||
156 | * @param {*} method | ||
157 | * @author: renchao | ||
158 | */ | ||
130 | export function httpAction (url, data, method) { | 159 | export function httpAction (url, data, method) { |
131 | return request({ | 160 | return request({ |
132 | url, | 161 | url, |
... | @@ -134,7 +163,12 @@ export function httpAction (url, data, method) { | ... | @@ -134,7 +163,12 @@ export function httpAction (url, data, method) { |
134 | data | 163 | data |
135 | }) | 164 | }) |
136 | } | 165 | } |
137 | // put公共方法 | 166 | /** |
167 | * @description: put公共方法 | ||
168 | * @param {*} url | ||
169 | * @param {*} data | ||
170 | * @author: renchao | ||
171 | */ | ||
138 | export function putAction (url, data = null) { | 172 | export function putAction (url, data = null) { |
139 | return request({ | 173 | return request({ |
140 | url, | 174 | url, |
... | @@ -142,7 +176,12 @@ export function putAction (url, data = null) { | ... | @@ -142,7 +176,12 @@ export function putAction (url, data = null) { |
142 | data | 176 | data |
143 | }) | 177 | }) |
144 | } | 178 | } |
145 | // delete | 179 | /** |
180 | * @description: delete | ||
181 | * @param {*} url | ||
182 | * @param {*} data | ||
183 | * @author: renchao | ||
184 | */ | ||
146 | export function deleteAction (url, data = null) { | 185 | export function deleteAction (url, data = null) { |
147 | return request({ | 186 | return request({ |
148 | url, | 187 | url, |
... | @@ -151,7 +190,12 @@ export function deleteAction (url, data = null) { | ... | @@ -151,7 +190,12 @@ export function deleteAction (url, data = null) { |
151 | }) | 190 | }) |
152 | } | 191 | } |
153 | 192 | ||
154 | // 批量删除 | 193 | /** |
194 | * @description: 批量删除 | ||
195 | * @param {*} url | ||
196 | * @param {*} data | ||
197 | * @author: renchao | ||
198 | */ | ||
155 | export function deleteBranch (url, data) { | 199 | export function deleteBranch (url, data) { |
156 | return request({ | 200 | return request({ |
157 | url, | 201 | url, | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | /* | 4 | /** |
5 | 更新排序 | 5 | * @description: 更新排序 |
6 | record-排序整条数据 | 6 | * @param {*} url |
7 | operate-BOTTOM(置底), DOWN(向下), TOP(置顶), UP(向上) | 7 | * @param {*} record 排序整条数据 |
8 | * @param {*} operate BOTTOM(置底), DOWN(向下), TOP(置顶), UP(向上) | ||
9 | * @param {*} swapId | ||
10 | * @author: renchao | ||
8 | */ | 11 | */ |
9 | export function updateOrder (url, record, operate, swapId) { | 12 | export function updateOrder (url, record, operate, swapId) { |
10 | return request({ | 13 | return request({ | ... | ... |
... | @@ -15,14 +15,28 @@ import { | ... | @@ -15,14 +15,28 @@ import { |
15 | } from './manageApi' | 15 | } from './manageApi' |
16 | import { getParams } from './util' | 16 | import { getParams } from './util' |
17 | 17 | ||
18 | /** | ||
19 | * @description: updateUserPassword | ||
20 | * @param {*} data | ||
21 | * @author: renchao | ||
22 | */ | ||
18 | export const updateUserPassword = (data) => { | 23 | export const updateUserPassword = (data) => { |
19 | return putAction(`${api.users}/update-password`, data) | 24 | return putAction(`${api.users}/update-password`, data) |
20 | } | 25 | } |
21 | 26 | ||
22 | // 根据条件获取用户 | 27 | /** |
28 | * @description: 根据条件获取用户 | ||
29 | * @param {*} params | ||
30 | * @author: renchao | ||
31 | */ | ||
23 | export const getUserList = (params) => { | 32 | export const getUserList = (params) => { |
24 | return getAction(api.users, params) | 33 | return getAction(api.users, params) |
25 | } | 34 | } |
35 | /** | ||
36 | * @description: getUserLists | ||
37 | * @param {*} queryParam | ||
38 | * @author: renchao | ||
39 | */ | ||
26 | export const getUserLists = (queryParam) => { | 40 | export const getUserLists = (queryParam) => { |
27 | const conditionGroup = { | 41 | const conditionGroup = { |
28 | conditions: [], | 42 | conditions: [], |
... | @@ -41,21 +55,38 @@ export const getUserLists = (queryParam) => { | ... | @@ -41,21 +55,38 @@ export const getUserLists = (queryParam) => { |
41 | const params = getParams(conditionGroup) | 55 | const params = getParams(conditionGroup) |
42 | return getAction(api.users, params) | 56 | return getAction(api.users, params) |
43 | } | 57 | } |
44 | // 重置用户密码 | 58 | /** |
59 | * @description: 重置用户密码 | ||
60 | * @param {*} id | ||
61 | * @author: renchao | ||
62 | */ | ||
45 | // export const resetPassword = id => { | 63 | // export const resetPassword = id => { |
46 | // return putAction(`${api.users}/${id}/reset-password`) | 64 | // return putAction(`${api.users}/${id}/reset-password`) |
47 | // } | 65 | // } |
48 | 66 | ||
49 | // 重置用户密码 | 67 | /** |
68 | * @description: 重置用户密码 | ||
69 | * @param {*} ids | ||
70 | * @author: renchao | ||
71 | */ | ||
50 | export const resetPassword = (ids) => { | 72 | export const resetPassword = (ids) => { |
51 | return putAction(`${api.users}/reset-passwords?ids=${ids}`) | 73 | return putAction(`${api.users}/reset-passwords?ids=${ids}`) |
52 | } | 74 | } |
53 | 75 | ||
54 | // 人员列表 | 76 | /** |
77 | * @description: 人员列表 | ||
78 | * @param {*} id | ||
79 | * @author: renchao | ||
80 | */ | ||
55 | export const getUserRoles = (id) => { | 81 | export const getUserRoles = (id) => { |
56 | return getAction(`${api.userRoles}/${id}/users`) | 82 | return getAction(`${api.userRoles}/${id}/users`) |
57 | } | 83 | } |
58 | // 更新人员 | 84 | /** |
85 | * @description: 更新人员 | ||
86 | * @param {*} id | ||
87 | * @param {*} data | ||
88 | * @author: renchao | ||
89 | */ | ||
59 | export const updateUser = (id, data) => { | 90 | export const updateUser = (id, data) => { |
60 | return putAction(`${api.userRoles}/${id}/users`, data) | 91 | return putAction(`${api.userRoles}/${id}/users`, data) |
61 | } | 92 | } | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :房地产权_项目内多幢房屋项目属性api文件 | 2 | * @Description :房地产权_项目内多幢房屋项目属性api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:25:14 | 4 | * @LastEditTime : 2023-05-17 10:41:13 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfFwFdcqDzXm { | 9 | class qlfFwFdcqDzXm { |
10 | // 房地产权_项目内多幢房屋项目属性 | 10 | /** |
11 | * @description: 房地产权_项目内多幢房屋项目属性 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfFwFdcqDzXmById (bsmSjsb) { | 15 | async getQlfFwFdcqDzXmById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/QlfFwFdcqDzXm/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/QlfFwFdcqDzXm/detail', |
... | @@ -17,7 +21,11 @@ class qlfFwFdcqDzXm { | ... | @@ -17,7 +21,11 @@ class qlfFwFdcqDzXm { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | // 房地产权_项目内多幢房屋项目属性-修改 | 24 | /** |
25 | * @description: 房地产权_项目内多幢房屋项目属性-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateQlfFwFdcqDzXm (data) { | 29 | async updateQlfFwFdcqDzXm (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/QlfFwFdcqDzXm/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/QlfFwFdcqDzXm/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :建筑物区分所有权业主共有部分信息api文件 | 2 | * @Description :建筑物区分所有权业主共有部分信息相关api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:26:59 | 4 | * @LastEditTime : 2023-05-17 10:43:26 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfFwFdcqQfsyq { | 9 | class qlfFwFdcqQfsyq { |
10 | // 建筑物区分所有权业主共有部分信息 | 10 | /** |
11 | * @description: 建筑物区分所有权业主共有部分信息 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfFwFdcqQfsyqList (data) { | 15 | async getQlfFwFdcqQfsyqList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/getDataPage", |
... | @@ -15,7 +19,11 @@ class qlfFwFdcqQfsyq { | ... | @@ -15,7 +19,11 @@ class qlfFwFdcqQfsyq { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | //建筑物区分所有权业主共有部分信息 | 22 | /** |
23 | * @description: 建筑物区分所有权业主共有部分信息 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQlfFwFdcqQfsyqById (bsmSjsb) { | 27 | async getQlfFwFdcqQfsyqById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/detail", |
... | @@ -25,7 +33,11 @@ class qlfFwFdcqQfsyq { | ... | @@ -25,7 +33,11 @@ class qlfFwFdcqQfsyq { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | //修改建筑物区分所有权业主共有部分信息 | 36 | /** |
37 | * @description: 修改建筑物区分所有权业主共有部分信息 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQlfFwFdcqQfsyq (data) { | 41 | async updateQlfFwFdcqQfsyq (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :查封登记信息api文件 | 2 | * @Description : 查封登记信息api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:27:25 | 4 | * @LastEditTime : 2023-05-17 10:43:49 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlCfdj { | 9 | class qlfQlCfdj { |
10 | // 查封登记信息 | 10 | /** |
11 | * @description: 查封登记信息 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlCfdjList (data) { | 15 | async getQlfQlCfdjList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/getDataPage", |
... | @@ -15,7 +19,11 @@ class qlfQlCfdj { | ... | @@ -15,7 +19,11 @@ class qlfQlCfdj { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | // 查封登记信息 | 22 | /** |
23 | * @description: | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQlfQlCfdjById (bsmSjsb) { | 27 | async getQlfQlCfdjById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/detail", |
... | @@ -25,7 +33,11 @@ class qlfQlCfdj { | ... | @@ -25,7 +33,11 @@ class qlfQlCfdj { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | // 查封登记信息-修改 | 36 | /** |
37 | * @description: 查封登记信息-修改 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQlfQlCfdj (data) { | 41 | async updateQlfQlCfdj (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :抵押权api文件 | 2 | * @Description :抵押权api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:27:37 | 4 | * @LastEditTime : 2023-05-17 10:44:04 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlDyaq { | 9 | class qlfQlDyaq { |
10 | // 抵押权登记 | 10 | /** |
11 | * @description: 抵押权登记 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlDyaqList (data) { | 15 | async getQlfQlDyaqList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/getDataPage", |
... | @@ -15,7 +19,11 @@ class qlfQlDyaq { | ... | @@ -15,7 +19,11 @@ class qlfQlDyaq { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | // 抵押权 | 22 | /** |
23 | * @description: 抵押权 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQlfQlDyaqById (bsmSjsb) { | 27 | async getQlfQlDyaqById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/detail", |
... | @@ -25,7 +33,11 @@ class qlfQlDyaq { | ... | @@ -25,7 +33,11 @@ class qlfQlDyaq { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | // 抵押权-修改 | 36 | /** |
37 | * @description: 抵押权-修改 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQlfQlDyaq (data) { | 41 | async updateQlfQlDyaq (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :地役权api文件 | 2 | * @Description :地役权api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:27:56 | 4 | * @LastEditTime : 2023-05-17 10:45:02 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlDyiq { | 9 | class qlfQlDyiq { |
10 | // 地役权 | 10 | /** |
11 | * @description: 地役权 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlDyiqList (data) { | 15 | async getQlfQlDyiqList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/getDataPage", |
... | @@ -15,7 +19,11 @@ class qlfQlDyiq { | ... | @@ -15,7 +19,11 @@ class qlfQlDyiq { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | // 地役权信息 | 22 | /** |
23 | * @description: 地役权信息 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQlfQlDyiqById (bsmSjsb) { | 27 | async getQlfQlDyiqById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/detail", |
... | @@ -25,7 +33,11 @@ class qlfQlDyiq { | ... | @@ -25,7 +33,11 @@ class qlfQlDyiq { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | // 地役权信息-修改 | 36 | /** |
37 | * @description: 地役权信息-修改 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQlfQlDyiq (data) { | 41 | async updateQlfQlDyiq (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :更正登记信息api文件 | 2 | * @Description :更正登记信息相关api |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:28:53 | 4 | * @LastEditTime : 2023-05-17 10:45:14 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlGzdj { | 9 | class qlfQlGzdj { |
10 | // 更正登记信息 | 10 | /** |
11 | * @description: 更正登记信息 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlGzdjById (bsmSjsb) { | 15 | async getQlfQlGzdjById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/detail', |
... | @@ -17,7 +21,11 @@ class qlfQlGzdj { | ... | @@ -17,7 +21,11 @@ class qlfQlGzdj { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | // 更正登记信息-修改 | 24 | /** |
25 | * @description: 更正登记信息-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateQlfQlGzdj (data) { | 29 | async updateQlfQlGzdj (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :海域(含无居民海岛)使用权api文件 | 2 | * @Description :海域(含无居民海岛)使用权api |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:29:12 | 4 | * @LastEditTime : 2023-05-17 10:45:34 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlHysyq { | 9 | class qlfQlHysyq { |
10 | // 海域(含无居民海岛)使用权 | 10 | /** |
11 | * @description: 海域(含无居民海岛)使用权 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlHysyqByConditon (data) { | 15 | async getQlfQlHysyqByConditon (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/getDataPage", |
... | @@ -15,7 +19,11 @@ class qlfQlHysyq { | ... | @@ -15,7 +19,11 @@ class qlfQlHysyq { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | //海域(含无居民海岛)使用权 | 22 | /** |
23 | * @description: 海域(含无居民海岛)使用权 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQlfQlHysyqById (bsmSjsb) { | 27 | async getQlfQlHysyqById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/detail", |
... | @@ -25,7 +33,11 @@ class qlfQlHysyq { | ... | @@ -25,7 +33,11 @@ class qlfQlHysyq { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | //修改海域(含无居民海岛)使用权 | 36 | /** |
37 | * @description: 修改海域(含无居民海岛)使用权 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQlfQlHysyq (data) { | 41 | async updateQlfQlHysyq (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :建设用地、宅基地使用权api文件 | 2 | * @Description :建设用地、宅基地使用权的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:30:15 | 4 | * @LastEditTime : 2023-05-17 10:45:43 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlJsydsyq { | 9 | class qlfQlJsydsyq { |
10 | // 建设用地、宅基地使用权 | 10 | /** |
11 | * @description: 建设用地、宅基地使用权 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlJsydsyqList (data) { | 15 | async getQlfQlJsydsyqList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlJsydsyq/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlJsydsyq/getDataPage", |
... | @@ -15,7 +19,11 @@ class qlfQlJsydsyq { | ... | @@ -15,7 +19,11 @@ class qlfQlJsydsyq { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | //建设用地、宅基地使用权 | 22 | /** |
23 | * @description: 建设用地、宅基地使用权 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQlfQlJsydsyqById (bsmSjsb) { | 27 | async getQlfQlJsydsyqById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/detail', | 29 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/detail', |
... | @@ -25,7 +33,11 @@ class qlfQlJsydsyq { | ... | @@ -25,7 +33,11 @@ class qlfQlJsydsyq { |
25 | } | 33 | } |
26 | }) | 34 | }) |
27 | } | 35 | } |
28 | //修改建设用地、宅基地使用权 | 36 | /** |
37 | * @description: 修改建设用地、宅基地使用权 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQlfQlJsydsyq (data) { | 41 | async updateQlfQlJsydsyq (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/edit', | 43 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :农用地使用权(非林地)api文件 | 2 | * @Description :农用地使用权(非林地)的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:30:45 | 4 | * @LastEditTime : 2023-05-17 10:46:08 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlNydsyq { | 9 | class qlfQlNydsyq { |
10 | // 农用地使用权(非林地) | 10 | /** |
11 | * @description: 农用地使用权(非林地) | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlNydsyqByConditon (data) { | 15 | async getQlfQlNydsyqByConditon (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/getDataPage", |
... | @@ -15,7 +19,11 @@ class qlfQlNydsyq { | ... | @@ -15,7 +19,11 @@ class qlfQlNydsyq { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | //农用地使用权(非林地) | 22 | /** |
23 | * @description: 农用地使用权(非林地) | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQlfQlNydsyqByID (bsmSjsb) { | 27 | async getQlfQlNydsyqByID (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/detail", |
... | @@ -25,7 +33,11 @@ class qlfQlNydsyq { | ... | @@ -25,7 +33,11 @@ class qlfQlNydsyq { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | //修改农用地使用权(非林地) | 36 | /** |
37 | * @description: 修改农用地使用权(非林地) | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQlfQlNydsyq (data) { | 41 | async updateQlfQlNydsyq (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :其他相关权利api文件 | 2 | * @Description :其他相关权利的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:30:58 | 4 | * @LastEditTime : 2023-05-17 10:46:25 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlQtxgql { | 9 | class qlfQlQtxgql { |
10 | // 其他相关权利 | 10 | /** |
11 | * @description: 其他相关权利 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlQtxgqlById (bsmSjsb) { | 15 | async getQlfQlQtxgqlById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/detail', |
... | @@ -17,7 +21,11 @@ class qlfQlQtxgql { | ... | @@ -17,7 +21,11 @@ class qlfQlQtxgql { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | // 其他相关权利-修改 | 24 | /** |
25 | * @description: 其他相关权利-修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateQlfQlQtxgql (data) { | 29 | async updateQlfQlQtxgql (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description : 土地所有权api文件 | 2 | * @Description :土地所有权的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:31:42 | 4 | * @LastEditTime : 2023-05-17 10:46:41 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlTdsyq { | 9 | class qlfQlTdsyq { |
10 | // 土地所有权 | 10 | /** |
11 | * @description: 土地所有权 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlTdsyqList (data) { | 15 | async getQlfQlTdsyqList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlTdsyq/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlTdsyq/getDataPage", |
... | @@ -16,6 +20,11 @@ class qlfQlTdsyq { | ... | @@ -16,6 +20,11 @@ class qlfQlTdsyq { |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | //土地所有权 | 22 | //土地所有权 |
23 | /** | ||
24 | * @description: 土地所有权 | ||
25 | * @param {*} bsmSjsb | ||
26 | * @author: renchao | ||
27 | */ | ||
19 | async getQlfQlTdsyqById (bsmSjsb) { | 28 | async getQlfQlTdsyqById (bsmSjsb) { |
20 | return request({ | 29 | return request({ |
21 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/detail', | 30 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/detail', |
... | @@ -25,7 +34,11 @@ class qlfQlTdsyq { | ... | @@ -25,7 +34,11 @@ class qlfQlTdsyq { |
25 | } | 34 | } |
26 | }) | 35 | }) |
27 | } | 36 | } |
28 | //修改土地所有权 | 37 | /** |
38 | * @description: 修改土地所有权 | ||
39 | * @param {*} data | ||
40 | * @author: renchao | ||
41 | */ | ||
29 | async updateQlfQlTdsyq (data) { | 42 | async updateQlfQlTdsyq (data) { |
30 | return request({ | 43 | return request({ |
31 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/edit', | 44 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description : 预告登记信息api文件 | 2 | * @Description :预告登记信息的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:31:47 | 4 | * @LastEditTime : 2023-05-17 10:47:47 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlYgdj { | 9 | class qlfQlYgdj { |
10 | // 预告登记信息 | 10 | /** |
11 | * @description: 预告登记信息 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlYgdjList (data) { | 15 | async getQlfQlYgdjList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/getDataPage", |
... | @@ -15,7 +19,11 @@ class qlfQlYgdj { | ... | @@ -15,7 +19,11 @@ class qlfQlYgdj { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | // 预告登记信息 | 22 | /** |
23 | * @description: 预告登记信息 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQlfQlYgdjById (bsmSjsb) { | 27 | async getQlfQlYgdjById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/detail", |
... | @@ -25,7 +33,11 @@ class qlfQlYgdj { | ... | @@ -25,7 +33,11 @@ class qlfQlYgdj { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | // 预告登记信息-修改 | 36 | /** |
37 | * @description: 预告登记信息-修改 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQlfQlYgdj (data) { | 41 | async updateQlfQlYgdj (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :异议登记信息api文件 | 2 | * @Description :异议登记信息的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:32:25 | 4 | * @LastEditTime : 2023-05-17 10:48:01 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlYydj { | 9 | class qlfQlYydj { |
10 | // 异议登记信息 | 10 | /** |
11 | * @description: 异议登记信息 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlYydjList (data) { | 15 | async getQlfQlYydjList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/getDataPage", |
... | @@ -15,7 +19,11 @@ class qlfQlYydj { | ... | @@ -15,7 +19,11 @@ class qlfQlYydj { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | // 异议登记信息 | 22 | /** |
23 | * @description: 异议登记信息 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQlfQlYydjById (bsmSjsb) { | 27 | async getQlfQlYydjById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/detail", |
... | @@ -25,7 +33,11 @@ class qlfQlYydj { | ... | @@ -25,7 +33,11 @@ class qlfQlYydj { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | // 异议登记信息-修改 | 36 | /** |
37 | * @description: 异议登记信息-修改 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQlfQlYydj (data) { | 41 | async updateQlfQlYydj (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :注销登记api文件 | 2 | * @Description : 注销登记的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:32:43 | 4 | * @LastEditTime : 2023-05-17 10:48:11 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qlfQlZxdj { | 9 | class qlfQlZxdj { |
10 | // 注销登记 | 10 | /** |
11 | * @description: 注销登记 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQlfQlZxdjList (data) { | 15 | async getQlfQlZxdjList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/getDataPage", |
... | @@ -15,7 +19,11 @@ class qlfQlZxdj { | ... | @@ -15,7 +19,11 @@ class qlfQlZxdj { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | // 注销登记信息 | 22 | /** |
23 | * @description: 注销登记信息 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQlfQlZxdjById (bsmSjsb) { | 27 | async getQlfQlZxdjById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/detail", |
... | @@ -25,7 +33,11 @@ class qlfQlZxdj { | ... | @@ -25,7 +33,11 @@ class qlfQlZxdj { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | //注销登记信息 - 修改 | 36 | /** |
37 | * @description: 注销登记信息-修改 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQlfQlZxdj (data) { | 41 | async updateQlfQlZxdj (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :房地产权_项目内多幢房屋信息api文件 | 2 | * @Description : 房地产权_项目内多幢房屋信息的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:32:55 | 4 | * @LastEditTime : 2023-05-17 10:50:59 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qltFwFdcqDz { | 9 | class qltFwFdcqDz { |
10 | // 房地产权_项目内多幢房屋信息 | 10 | /** |
11 | * @description: 房地产权_项目内多幢房屋信息 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQltFwFdcqDzList (data) { | 15 | async getQltFwFdcqDzList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqDz/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqDz/getDataPage", |
... | @@ -15,7 +19,11 @@ class qltFwFdcqDz { | ... | @@ -15,7 +19,11 @@ class qltFwFdcqDz { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | //房地产权_项目内多幢房屋信息 | 22 | /** |
23 | * @description: 房地产权_项目内多幢房屋信息 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQltFwFdcqDzById (bsmSjsb) { | 27 | async getQltFwFdcqDzById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/detail', | 29 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/detail', |
... | @@ -25,7 +33,11 @@ class qltFwFdcqDz { | ... | @@ -25,7 +33,11 @@ class qltFwFdcqDz { |
25 | } | 33 | } |
26 | }) | 34 | }) |
27 | } | 35 | } |
28 | //修改房地产权_项目内多幢房屋信息 | 36 | /** |
37 | * @description: 修改房地产权_项目内多幢房屋信息 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQltFwFdcqDz (data) { | 41 | async updateQltFwFdcqDz (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/edit', | 43 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :房地产权(独幢、层、套、间、房屋)api文件 | 2 | * @Description :房地产权(独幢、层、套、间、房屋)的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:33:07 | 4 | * @LastEditTime : 2023-05-17 10:51:21 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qltFwFdcqYz { | 9 | class qltFwFdcqYz { |
10 | // 房地产权(独幢、层、套、间、房屋) | 10 | /** |
11 | * @description: 房地产权(独幢、层、套、间、房屋) | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQltFwFdcqYzList (data) { | 15 | async getQltFwFdcqYzList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqYz/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqYz/getDataPage", |
... | @@ -15,7 +19,11 @@ class qltFwFdcqYz { | ... | @@ -15,7 +19,11 @@ class qltFwFdcqYz { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | //房地产权(独幢、层、套、间、房屋) | 22 | /** |
23 | * @description: 房地产权(独幢、层、套、间、房屋) | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQltFwFdcqYzById (bsmSjsb) { | 27 | async getQltFwFdcqYzById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqYz/detail', | 29 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqYz/detail', |
... | @@ -25,7 +33,11 @@ class qltFwFdcqYz { | ... | @@ -25,7 +33,11 @@ class qltFwFdcqYz { |
25 | } | 33 | } |
26 | }) | 34 | }) |
27 | } | 35 | } |
28 | //修改房地产权(独幢、层、套、间、房屋) | 36 | /** |
37 | * @description: 修改房地产权(独幢、层、套、间、房屋) | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQltFwFdcqYz (data) { | 41 | async updateQltFwFdcqYz (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqYz/edit', | 43 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqYz/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :构(建)筑物所有权api文件 | 2 | * @Description : 房地产权(独幢、层、套、间、房屋)的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:34:05 | 4 | * @LastEditTime : 2023-05-17 10:51:33 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qltQlGjzwsyq { | 9 | class qltQlGjzwsyq { |
10 | // 构(建)筑物所有权 | 10 | /** |
11 | * @description: 构(建)筑物所有权 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQltQlGjzwsyqList (data) { | 15 | async getQltQlGjzwsyqList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/getDataPage", |
... | @@ -15,7 +19,11 @@ class qltQlGjzwsyq { | ... | @@ -15,7 +19,11 @@ class qltQlGjzwsyq { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | // 构(建)筑物所有权 | 22 | /** |
23 | * @description: 构(建)筑物所有权 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQltQlGjzwsyqById (bsmSjsb) { | 27 | async getQltQlGjzwsyqById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/detail", |
... | @@ -25,7 +33,11 @@ class qltQlGjzwsyq { | ... | @@ -25,7 +33,11 @@ class qltQlGjzwsyq { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | //构(建)筑物所有权 - 修改 | 36 | /** |
37 | * @description: 构(建)筑物所有权 - 修改 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQltQlGjzwsyq (data) { | 41 | async updateQltQlGjzwsyq (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/edit", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description : 林权api文件 | 2 | * @Description :林权的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:34:17 | 4 | * @LastEditTime : 2023-05-17 10:51:57 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class qltQlLq { | 9 | class qltQlLq { |
10 | // 林权 | 10 | /** |
11 | * @description: 林权 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQltQlLqList (data) { | 15 | async getQltQlLqList (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/getDataPage", | 17 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/getDataPage", |
... | @@ -15,7 +19,11 @@ class qltQlLq { | ... | @@ -15,7 +19,11 @@ class qltQlLq { |
15 | data, | 19 | data, |
16 | }); | 20 | }); |
17 | } | 21 | } |
18 | //林权 | 22 | /** |
23 | * @description: 林权 | ||
24 | * @param {*} bsmSjsb | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getQltQlLqById (bsmSjsb) { | 27 | async getQltQlLqById (bsmSjsb) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/detail", | 29 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/detail", |
... | @@ -25,7 +33,11 @@ class qltQlLq { | ... | @@ -25,7 +33,11 @@ class qltQlLq { |
25 | }, | 33 | }, |
26 | }); | 34 | }); |
27 | } | 35 | } |
28 | //修改林权 | 36 | /** |
37 | * @description: 修改林权 | ||
38 | * @param {*} data | ||
39 | * @author: renchao | ||
40 | */ | ||
29 | async updateQltQlLq (data) { | 41 | async updateQltQlLq (data) { |
30 | return request({ | 42 | return request({ |
31 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/edit", | 43 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/edit", | ... | ... |
... | @@ -10,6 +10,7 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap | ... | @@ -10,6 +10,7 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap |
10 | const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/RecordLog/' | 10 | const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/RecordLog/' |
11 | /** | 11 | /** |
12 | * @description: 登簿日志分页 | 12 | * @description: 登簿日志分页 |
13 | * @param {*} data | ||
13 | * @author: renchao | 14 | * @author: renchao |
14 | */ | 15 | */ |
15 | export function getRecordLogPage (data) { | 16 | export function getRecordLogPage (data) { | ... | ... |
1 | /* | ||
2 | * @Description :编辑界面列表查询的api文件 | ||
3 | * @Autor : miaofang | ||
4 | * @LastEditTime : 2023-05-17 10:52:19 | ||
5 | */ | ||
1 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | class ruleConfig { | 8 | class ruleConfig { |
4 | // 列表查询 | 9 | /** |
10 | * @description: 列表查询 | ||
11 | * @param {*} data | ||
12 | * @author: renchao | ||
13 | */ | ||
5 | async getSysYwsjbList (data) { | 14 | async getSysYwsjbList (data) { |
6 | return request({ | 15 | return request({ |
7 | url: SERVER.SERVERAPI + '/rest/SysYwsjb/getSysYwsjbList', | 16 | url: SERVER.SERVERAPI + '/rest/SysYwsjb/getSysYwsjbList', |
... | @@ -9,7 +18,11 @@ class ruleConfig { | ... | @@ -9,7 +18,11 @@ class ruleConfig { |
9 | data | 18 | data |
10 | }) | 19 | }) |
11 | } | 20 | } |
12 | // 编辑界面列表查询 | 21 | /** |
22 | * @description: 编辑界面列表查询 | ||
23 | * @param {*} id | ||
24 | * @author: renchao | ||
25 | */ | ||
13 | async eidtConfigRule (id) { | 26 | async eidtConfigRule (id) { |
14 | return request({ | 27 | return request({ |
15 | url: SERVER.SERVERAPI + '/rest/SysYwsjb/getSysYwsjbWithSysYwsjbFieldByBsmYwsjb', | 28 | url: SERVER.SERVERAPI + '/rest/SysYwsjb/getSysYwsjbWithSysYwsjbFieldByBsmYwsjb', |
... | @@ -19,7 +32,11 @@ class ruleConfig { | ... | @@ -19,7 +32,11 @@ class ruleConfig { |
19 | } | 32 | } |
20 | }) | 33 | }) |
21 | } | 34 | } |
22 | // 编辑 | 35 | /** |
36 | * @description: 编辑 | ||
37 | * @param {*} data | ||
38 | * @author: renchao | ||
39 | */ | ||
23 | async editSysYwsjbWithSysYwsjbField (data) { | 40 | async editSysYwsjbWithSysYwsjbField (data) { |
24 | return request({ | 41 | return request({ |
25 | url: SERVER.SERVERAPI + '/rest/SysYwsjb/editSysYwsjbWithSysYwsjbField', | 42 | url: SERVER.SERVERAPI + '/rest/SysYwsjb/editSysYwsjbWithSysYwsjbField', |
... | @@ -27,7 +44,11 @@ class ruleConfig { | ... | @@ -27,7 +44,11 @@ class ruleConfig { |
27 | data | 44 | data |
28 | }) | 45 | }) |
29 | } | 46 | } |
30 | // 编辑 | 47 | /** |
48 | * @description: 编辑 | ||
49 | * @param {*} id | ||
50 | * @author: renchao | ||
51 | */ | ||
31 | async deleteSysYwsjbWithSysYwsjbFieldByBsmYwsjb (id) { | 52 | async deleteSysYwsjbWithSysYwsjbFieldByBsmYwsjb (id) { |
32 | return request({ | 53 | return request({ |
33 | url: SERVER.SERVERAPI + '/rest/SysYwsjb/deleteSysYwsjbWithSysYwsjbFieldByBsmYwsjb', | 54 | url: SERVER.SERVERAPI + '/rest/SysYwsjb/deleteSysYwsjbWithSysYwsjbFieldByBsmYwsjb', |
... | @@ -37,7 +58,11 @@ class ruleConfig { | ... | @@ -37,7 +58,11 @@ class ruleConfig { |
37 | } | 58 | } |
38 | }) | 59 | }) |
39 | } | 60 | } |
40 | // 编辑界面列表查询----根据数据表名查询 | 61 | /** |
62 | * @description: 编辑界面列表查询----根据数据表名查询 | ||
63 | * @param {*} bsmYwsjb | ||
64 | * @author: renchao | ||
65 | */ | ||
41 | async getRuleList (bsmYwsjb) { | 66 | async getRuleList (bsmYwsjb) { |
42 | return request({ | 67 | return request({ |
43 | url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getTableColumn', | 68 | url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getTableColumn', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: 干部查询 | 2 | * @Description: 干部查询 |
3 | * @Autor: | 3 | * @Autor: |
4 | * @LastEditTime: 2023-05-12 16:20:40 | 4 | * @LastEditTime: 2023-11-03 15:00:17 |
5 | */ | 5 | */ |
6 | /* 引入axios请求文件 */ | 6 | /* 引入axios请求文件 */ |
7 | import request from '@/utils/request' | 7 | import request from '@/utils/request' |
... | @@ -11,7 +11,7 @@ const urlHeader = SERVER.SERVERAPI + '/rest/searchRecord' | ... | @@ -11,7 +11,7 @@ const urlHeader = SERVER.SERVERAPI + '/rest/searchRecord' |
11 | 11 | ||
12 | /** | 12 | /** |
13 | * @description: 获取列表 | 13 | * @description: 获取列表 |
14 | * @param {*} | 14 | * @param {*} data |
15 | * @author: | 15 | * @author: |
16 | */ | 16 | */ |
17 | export function getSearchRecordList (data) { | 17 | export function getSearchRecordList (data) { |
... | @@ -47,3 +47,16 @@ export function editSearchRecord (id) { | ... | @@ -47,3 +47,16 @@ export function editSearchRecord (id) { |
47 | method: 'get' | 47 | method: 'get' |
48 | }) | 48 | }) |
49 | } | 49 | } |
50 | |||
51 | /** | ||
52 | * @description: 财产登记情况 | ||
53 | * @author: renchao | ||
54 | */ | ||
55 | |||
56 | export function djqk (data) { | ||
57 | return request({ | ||
58 | url: urlHeader + '/djqk', | ||
59 | method: 'post', | ||
60 | data | ||
61 | }) | ||
62 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :数据上报表头api文件 | 2 | * @Description :数据上报表头的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:40:30 | 4 | * @LastEditTime : 2023-05-17 10:52:42 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class sjsbFunctionOper { | 9 | class sjsbFunctionOper { |
10 | // 数据上报表头相关接口 | 10 | /** |
11 | * @description: 数据上报表头相关接口 | ||
12 | * @param {*} id | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getQltFwFdcqYzByCondition (id) { | 15 | async getQltFwFdcqYzByCondition (id) { |
12 | return request({ | 16 | return request({ |
13 | url: '/sjsbFunctionOper/getSjsbTableInfo', | 17 | url: '/sjsbFunctionOper/getSjsbTableInfo', |
... | @@ -17,7 +21,11 @@ class sjsbFunctionOper { | ... | @@ -17,7 +21,11 @@ class sjsbFunctionOper { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | // xml | 24 | /** |
25 | * @description: xml | ||
26 | * @param {*} id | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async queryXML (id) { | 29 | async queryXML (id) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/sjsbFunctionOper/queryXML', | 31 | url: SERVER.SERVERAPI + '/rest/reg/sjsbFunctionOper/queryXML', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :定时任务api文件 | 2 | * @Description :定时任务的相关api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:40:57 | 4 | * @LastEditTime : 2023-05-17 10:53:00 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class sjsbTask { | 9 | class sjsbTask { |
10 | // 定时任务 | 10 | // 定时任务 |
11 | // 定时任务查询接口 | 11 | /** |
12 | * @description: 定时任务查询接口 | ||
13 | * @param {*} data | ||
14 | * @author: renchao | ||
15 | */ | ||
12 | async getTaskListByName (data) { | 16 | async getTaskListByName (data) { |
13 | return request({ | 17 | return request({ |
14 | url: SERVER.SERVERAPI + '/rest/schedule/getScheduleList', | 18 | url: SERVER.SERVERAPI + '/rest/schedule/getScheduleList', |
... | @@ -20,7 +24,11 @@ class sjsbTask { | ... | @@ -20,7 +24,11 @@ class sjsbTask { |
20 | } | 24 | } |
21 | }) | 25 | }) |
22 | } | 26 | } |
23 | // 定时任务新增接口 | 27 | /** |
28 | * @description: 定时任务新增接口 | ||
29 | * @param {*} data | ||
30 | * @author: renchao | ||
31 | */ | ||
24 | async sjsbTaskSave (data) { | 32 | async sjsbTaskSave (data) { |
25 | return request({ | 33 | return request({ |
26 | url: SERVER.SERVERAPI + '/rest/schedule/add', | 34 | url: SERVER.SERVERAPI + '/rest/schedule/add', |
... | @@ -28,7 +36,11 @@ class sjsbTask { | ... | @@ -28,7 +36,11 @@ class sjsbTask { |
28 | data | 36 | data |
29 | }) | 37 | }) |
30 | } | 38 | } |
31 | // 修改定时任务执行时间接口 | 39 | /** |
40 | * @description: 修改定时任务执行时间接口 | ||
41 | * @param {*} data | ||
42 | * @author: data | ||
43 | */ | ||
32 | async updateCron (data) { | 44 | async updateCron (data) { |
33 | return request({ | 45 | return request({ |
34 | url: SERVER.SERVERAPI + '/rest/schedule/update', | 46 | url: SERVER.SERVERAPI + '/rest/schedule/update', |
... | @@ -36,7 +48,11 @@ class sjsbTask { | ... | @@ -36,7 +48,11 @@ class sjsbTask { |
36 | data | 48 | data |
37 | }) | 49 | }) |
38 | } | 50 | } |
39 | // 定时任务删除接口 | 51 | /** |
52 | * @description: 定时任务删除接口 | ||
53 | * @param {*} id | ||
54 | * @author: renchao | ||
55 | */ | ||
40 | async sjsbTaskRemove (id) { | 56 | async sjsbTaskRemove (id) { |
41 | return request({ | 57 | return request({ |
42 | url: SERVER.SERVERAPI + '/rest/schedule/delete', | 58 | url: SERVER.SERVERAPI + '/rest/schedule/delete', |
... | @@ -46,7 +62,11 @@ class sjsbTask { | ... | @@ -46,7 +62,11 @@ class sjsbTask { |
46 | } | 62 | } |
47 | }) | 63 | }) |
48 | } | 64 | } |
49 | // 恢复任务接口 | 65 | /** |
66 | * @description: 恢复任务接口 | ||
67 | * @param {*} id | ||
68 | * @author: renchao | ||
69 | */ | ||
50 | async recover (id) { | 70 | async recover (id) { |
51 | return request({ | 71 | return request({ |
52 | url: SERVER.SERVERAPI + '/rest/schedule/recover', | 72 | url: SERVER.SERVERAPI + '/rest/schedule/recover', |
... | @@ -56,7 +76,11 @@ class sjsbTask { | ... | @@ -56,7 +76,11 @@ class sjsbTask { |
56 | } | 76 | } |
57 | }) | 77 | }) |
58 | } | 78 | } |
59 | // 激活任务接口 | 79 | /** |
80 | * @description: 激活任务接口 | ||
81 | * @param {*} id | ||
82 | * @author: renchao | ||
83 | */ | ||
60 | async active (id) { | 84 | async active (id) { |
61 | return request({ | 85 | return request({ |
62 | url: SERVER.SERVERAPI + '/rest/schedule/active', | 86 | url: SERVER.SERVERAPI + '/rest/schedule/active', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: 菜单用户api文件 | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-03-24 09:28:25 | 4 | * @LastEditTime: 2023-03-24 09:28:25 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | // let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | // let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 8 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
9 | // 获取用户信息 | 9 | /** |
10 | * @description: 获取用户信息 | ||
11 | * @author: renchao | ||
12 | */ | ||
10 | export function getUserInfo () { | 13 | export function getUserInfo () { |
11 | return request({ | 14 | return request({ |
12 | url: SERVER.SERVERAPI + '/rest/user/getUserInfo', | 15 | url: SERVER.SERVERAPI + '/rest/user/getUserInfo', |
... | @@ -14,7 +17,11 @@ export function getUserInfo () { | ... | @@ -14,7 +17,11 @@ export function getUserInfo () { |
14 | }) | 17 | }) |
15 | } | 18 | } |
16 | 19 | ||
17 | // 获取菜单信息 | 20 | /** |
21 | * @description: 获取菜单信息 | ||
22 | * @param {*} data | ||
23 | * @author: renchao | ||
24 | */ | ||
18 | export function getMenuInfo (data) { | 25 | export function getMenuInfo (data) { |
19 | return request({ | 26 | return request({ |
20 | url: SERVER.SERVERAPI + '/rest/user/getUserAuthorizationMenus', | 27 | url: SERVER.SERVERAPI + '/rest/user/getUserAuthorizationMenus', | ... | ... |
... | @@ -7,7 +7,11 @@ import request from '@/utils/request' | ... | @@ -7,7 +7,11 @@ import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class work { | 9 | class work { |
10 | // 登记类型总量 | 10 | /** |
11 | * @description: 登记类型总量 | ||
12 | * @param {*} data | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getDjlxtotal (data) { | 15 | async getDjlxtotal (data) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/work/getDjlxtotal', | 17 | url: SERVER.SERVERAPI + '/rest/reg/work/getDjlxtotal', |
... | @@ -15,7 +19,11 @@ class work { | ... | @@ -15,7 +19,11 @@ class work { |
15 | data | 19 | data |
16 | }) | 20 | }) |
17 | } | 21 | } |
18 | // 登记业务量 | 22 | /** |
23 | * @description: 登记业务量 | ||
24 | * @param {*} data | ||
25 | * @author: renchao | ||
26 | */ | ||
19 | async getdjywltotal (data) { | 27 | async getdjywltotal (data) { |
20 | return request({ | 28 | return request({ |
21 | url: SERVER.SERVERAPI + '/rest/reg/work/getdjywltotal', | 29 | url: SERVER.SERVERAPI + '/rest/reg/work/getdjywltotal', |
... | @@ -23,7 +31,11 @@ class work { | ... | @@ -23,7 +31,11 @@ class work { |
23 | data | 31 | data |
24 | }) | 32 | }) |
25 | } | 33 | } |
26 | // 省厅汇交-区县接入 | 34 | /** |
35 | * @description: 省厅汇交-区县接入 | ||
36 | * @param {*} data | ||
37 | * @author: renchao | ||
38 | */ | ||
27 | async getsthjqxjrtotal (data) { | 39 | async getsthjqxjrtotal (data) { |
28 | return request({ | 40 | return request({ |
29 | url: SERVER.SERVERAPI + '/rest/reg/work/getsthjqxjrtotal', | 41 | url: SERVER.SERVERAPI + '/rest/reg/work/getsthjqxjrtotal', |
... | @@ -31,7 +43,11 @@ class work { | ... | @@ -31,7 +43,11 @@ class work { |
31 | data | 43 | data |
32 | }) | 44 | }) |
33 | } | 45 | } |
34 | // 地图区县总量统计,code区县编码,汉中为:A20 | 46 | /** |
47 | * @description: 地图区县总量统计,code区县编码,汉中为:A20 | ||
48 | * @param {*} code | ||
49 | * @author: renchao | ||
50 | */ | ||
35 | async mapViews (code) { | 51 | async mapViews (code) { |
36 | return request({ | 52 | return request({ |
37 | url: SERVER.SERVERAPI + '/rest/reg/work/mapViews', | 53 | url: SERVER.SERVERAPI + '/rest/reg/work/mapViews', |
... | @@ -41,7 +57,11 @@ class work { | ... | @@ -41,7 +57,11 @@ class work { |
41 | } | 57 | } |
42 | }) | 58 | }) |
43 | } | 59 | } |
44 | // 数据趋势 | 60 | /** |
61 | * @description: 数据趋势 | ||
62 | * @param {*} code | ||
63 | * @author: renchao | ||
64 | */ | ||
45 | async dataTrend (code) { | 65 | async dataTrend (code) { |
46 | return request({ | 66 | return request({ |
47 | url: SERVER.SERVERAPI + '/rest/reg/work/dataTrend', | 67 | url: SERVER.SERVERAPI + '/rest/reg/work/dataTrend', |
... | @@ -51,7 +71,11 @@ class work { | ... | @@ -51,7 +71,11 @@ class work { |
51 | } | 71 | } |
52 | }) | 72 | }) |
53 | } | 73 | } |
54 | // 新建国有房屋信息 | 74 | /** |
75 | * @description: 新建国有房屋信息 | ||
76 | * @param {*} code | ||
77 | * @author: renchao | ||
78 | */ | ||
55 | async addhousetotal (code) { | 79 | async addhousetotal (code) { |
56 | return request({ | 80 | return request({ |
57 | url: SERVER.SERVERAPI + '/rest/reg/work/addhousetotal', | 81 | url: SERVER.SERVERAPI + '/rest/reg/work/addhousetotal', |
... | @@ -61,8 +85,12 @@ class work { | ... | @@ -61,8 +85,12 @@ class work { |
61 | } | 85 | } |
62 | }) | 86 | }) |
63 | } | 87 | } |
64 | // 新建国有房屋信息 | ||
65 | // /bdcsjsb/rest/reg/work/qxmrjrsb | 88 | // /bdcsjsb/rest/reg/work/qxmrjrsb |
89 | /** | ||
90 | * @description: 新建国有房屋信息 | ||
91 | * @param {*} code | ||
92 | * @author: renchao | ||
93 | */ | ||
66 | async qxmrjrsb (code) { | 94 | async qxmrjrsb (code) { |
67 | return request({ | 95 | return request({ |
68 | url: SERVER.SERVERAPI + '/rest/reg/work/qxmrjrsb', | 96 | url: SERVER.SERVERAPI + '/rest/reg/work/qxmrjrsb', |
... | @@ -73,7 +101,11 @@ class work { | ... | @@ -73,7 +101,11 @@ class work { |
73 | }) | 101 | }) |
74 | } | 102 | } |
75 | 103 | ||
76 | // 地图区县成功失败统计,code区县编码,汉中为:A20 | 104 | /** |
105 | * @description: 地图区县成功失败统计,code区县编码,汉中为:A20 | ||
106 | * @param {*} code | ||
107 | * @author: renchao | ||
108 | */ | ||
77 | async submitViews (code) { | 109 | async submitViews (code) { |
78 | return request({ | 110 | return request({ |
79 | url: SERVER.SERVERAPI + '/rest/reg/work/submitViews', | 111 | url: SERVER.SERVERAPI + '/rest/reg/work/submitViews', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :宗地空间属性api文件 | 2 | * @Description :宗地空间属性的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:42:32 | 4 | * @LastEditTime : 2023-05-17 10:57:25 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class zdK103 { | 9 | class zdK103 { |
10 | //宗地空间属性 | 10 | /** |
11 | * @description: 宗地空间属性 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getZdK103ById (bsmSjsb) { | 15 | async getZdK103ById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/ZdK103/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/ZdK103/detail', |
... | @@ -17,7 +21,11 @@ class zdK103 { | ... | @@ -17,7 +21,11 @@ class zdK103 { |
17 | } | 21 | } |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | //修改宗地空间属性 | 24 | /** |
25 | * @description: 修改宗地空间属性 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateZdK103 (data) { | 29 | async updateZdK103 (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + '/rest/reg/ZdK103/edit', | 31 | url: SERVER.SERVERAPI + '/rest/reg/ZdK103/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :宗海空间属性api文件 | 2 | * @Description :宗海空间属性的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:42:45 | 4 | * @LastEditTime : 2023-05-17 10:57:40 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class zhK105 { | 9 | class zhK105 { |
10 | // 宗海空间属性 | 10 | /** |
11 | * @description: 宗海空间属性 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getZhK105ById (bsmSjsb) { | 15 | async getZhK105ById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + '/rest/reg/ZhK105/detail', | 17 | url: SERVER.SERVERAPI + '/rest/reg/ZhK105/detail', |
... | @@ -18,7 +22,11 @@ class zhK105 { | ... | @@ -18,7 +22,11 @@ class zhK105 { |
18 | }) | 22 | }) |
19 | } | 23 | } |
20 | 24 | ||
21 | // 宗海空间属性-修改 | 25 | /** |
26 | * @description: 宗海空间属性-修改 | ||
27 | * @param {*} data | ||
28 | * @author: renchao | ||
29 | */ | ||
22 | async updateZhK105 (data) { | 30 | async updateZhK105 (data) { |
23 | return request({ | 31 | return request({ |
24 | url: SERVER.SERVERAPI + '/rest/reg/ZhK105/edit', | 32 | url: SERVER.SERVERAPI + '/rest/reg/ZhK105/edit', | ... | ... |
1 | /* | 1 | /* |
2 | * @Description :权利人api文件 | 2 | * @Description :权利人 -- 业务表单的api文件 |
3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
4 | * @LastEditTime : 2023-05-17 16:42:56 | 4 | * @LastEditTime : 2023-05-17 10:57:52 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | 8 | ||
9 | class zttGyQlr { | 9 | class zttGyQlr { |
10 | // 权利人 -- 业务表单 | 10 | /** |
11 | * @description: 权利人 -- 业务表单 | ||
12 | * @param {*} bsmSjsb | ||
13 | * @author: renchao | ||
14 | */ | ||
11 | async getZttGyQlrById (bsmSjsb) { | 15 | async getZttGyQlrById (bsmSjsb) { |
12 | return request({ | 16 | return request({ |
13 | url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/detail", | 17 | url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/detail", |
... | @@ -17,7 +21,11 @@ class zttGyQlr { | ... | @@ -17,7 +21,11 @@ class zttGyQlr { |
17 | }, | 21 | }, |
18 | }); | 22 | }); |
19 | } | 23 | } |
20 | // 权利人 -- 业务表单修改 | 24 | /** |
25 | * @description: 权利人 -- 业务表单修改 | ||
26 | * @param {*} data | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | async updateZttGyQlr (data) { | 29 | async updateZttGyQlr (data) { |
22 | return request({ | 30 | return request({ |
23 | url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/edit", | 31 | url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/edit", | ... | ... |
... | @@ -73,6 +73,10 @@ export default { | ... | @@ -73,6 +73,10 @@ export default { |
73 | this.chart = null; | 73 | this.chart = null; |
74 | }, | 74 | }, |
75 | methods: { | 75 | methods: { |
76 | /** | ||
77 | * @description: initChart | ||
78 | * @author: renchao | ||
79 | */ | ||
76 | initChart () { | 80 | initChart () { |
77 | // 初始化echart | 81 | // 初始化echart |
78 | this.chart = this.$echarts.init(this.$el, "tdTheme"); | 82 | this.chart = this.$echarts.init(this.$el, "tdTheme"); | ... | ... |
... | @@ -32,6 +32,10 @@ export default { | ... | @@ -32,6 +32,10 @@ export default { |
32 | this.getBreadcrumb(); | 32 | this.getBreadcrumb(); |
33 | }, | 33 | }, |
34 | methods: { | 34 | methods: { |
35 | /** | ||
36 | * @description: getBreadcrumb | ||
37 | * @author: renchao | ||
38 | */ | ||
35 | getBreadcrumb () { | 39 | getBreadcrumb () { |
36 | // only show routes with meta.title | 40 | // only show routes with meta.title |
37 | this.levelList = this.$route.matched.filter( | 41 | this.levelList = this.$route.matched.filter( |
... | @@ -41,6 +45,11 @@ export default { | ... | @@ -41,6 +45,11 @@ export default { |
41 | this.levelList = this.levelList.slice(-1) | 45 | this.levelList = this.levelList.slice(-1) |
42 | } | 46 | } |
43 | }, | 47 | }, |
48 | /** | ||
49 | * @description: isDashboard | ||
50 | * @param {*} route | ||
51 | * @author: renchao | ||
52 | */ | ||
44 | isDashboard (route) { | 53 | isDashboard (route) { |
45 | const name = route && route.name; | 54 | const name = route && route.name; |
46 | if (!name) { | 55 | if (!name) { |
... | @@ -50,6 +59,11 @@ export default { | ... | @@ -50,6 +59,11 @@ export default { |
50 | name.trim().toLocaleLowerCase() === "Dashboard".toLocaleLowerCase() | 59 | name.trim().toLocaleLowerCase() === "Dashboard".toLocaleLowerCase() |
51 | ); | 60 | ); |
52 | }, | 61 | }, |
62 | /** | ||
63 | * @description: pathCompile | ||
64 | * @param {*} path | ||
65 | * @author: renchao | ||
66 | */ | ||
53 | pathCompile (path) { | 67 | pathCompile (path) { |
54 | const { params } = this.$route; | 68 | const { params } = this.$route; |
55 | var toPath = pathToRegexp.compile(path); | 69 | var toPath = pathToRegexp.compile(path); | ... | ... |
... | @@ -144,6 +144,10 @@ export default { | ... | @@ -144,6 +144,10 @@ export default { |
144 | }; | 144 | }; |
145 | }, | 145 | }, |
146 | methods: { | 146 | methods: { |
147 | /** | ||
148 | * @description: featchData | ||
149 | * @author: renchao | ||
150 | */ | ||
147 | async featchData() { | 151 | async featchData() { |
148 | try { | 152 | try { |
149 | let { result: res } = await djfDjDb.getDjfDjDbById(this.bsmSjsb); | 153 | let { result: res } = await djfDjDb.getDjfDjDbById(this.bsmSjsb); |
... | @@ -153,6 +157,10 @@ export default { | ... | @@ -153,6 +157,10 @@ export default { |
153 | this.$refs.msg.messageShow(); | 157 | this.$refs.msg.messageShow(); |
154 | } | 158 | } |
155 | }, | 159 | }, |
160 | /** | ||
161 | * @description: handleUpdateForm | ||
162 | * @author: renchao | ||
163 | */ | ||
156 | handleUpdateForm() { | 164 | handleUpdateForm() { |
157 | return new Promise(async (resolve, reject) => { | 165 | return new Promise(async (resolve, reject) => { |
158 | try { | 166 | try { | ... | ... |
... | @@ -229,6 +229,10 @@ export default { | ... | @@ -229,6 +229,10 @@ export default { |
229 | }; | 229 | }; |
230 | }, | 230 | }, |
231 | methods: { | 231 | methods: { |
232 | /** | ||
233 | * @description: featchData | ||
234 | * @author: renchao | ||
235 | */ | ||
232 | async featchData() { | 236 | async featchData() { |
233 | try { | 237 | try { |
234 | let { result: res } = await djfDjFz.getDjfDjFzDetailById(this.bsmSjsb); | 238 | let { result: res } = await djfDjFz.getDjfDjFzDetailById(this.bsmSjsb); |
... | @@ -238,6 +242,10 @@ export default { | ... | @@ -238,6 +242,10 @@ export default { |
238 | this.$refs.msg.messageShow(); | 242 | this.$refs.msg.messageShow(); |
239 | } | 243 | } |
240 | }, | 244 | }, |
245 | /** | ||
246 | * @description: handleUpdateForm | ||
247 | * @author: renchao | ||
248 | */ | ||
241 | handleUpdateForm() { | 249 | handleUpdateForm() { |
242 | return new Promise(async (resolve, reject) => { | 250 | return new Promise(async (resolve, reject) => { |
243 | try { | 251 | try { | ... | ... |
... | @@ -183,6 +183,10 @@ export default { | ... | @@ -183,6 +183,10 @@ export default { |
183 | } | 183 | } |
184 | }, | 184 | }, |
185 | methods: { | 185 | methods: { |
186 | /** | ||
187 | * @description: featchData | ||
188 | * @author: renchao | ||
189 | */ | ||
186 | async featchData () { | 190 | async featchData () { |
187 | try { | 191 | try { |
188 | let { result: res } = await djfDjGd.getDjfDjGdById(this.bsmSjsb) | 192 | let { result: res } = await djfDjGd.getDjfDjGdById(this.bsmSjsb) |
... | @@ -192,6 +196,10 @@ export default { | ... | @@ -192,6 +196,10 @@ export default { |
192 | this.$refs.msg.messageShow() | 196 | this.$refs.msg.messageShow() |
193 | } | 197 | } |
194 | }, | 198 | }, |
199 | /** | ||
200 | * @description: handleUpdateForm | ||
201 | * @author: renchao | ||
202 | */ | ||
195 | handleUpdateForm () { | 203 | handleUpdateForm () { |
196 | return new Promise(async (resolve) => { | 204 | return new Promise(async (resolve) => { |
197 | try { | 205 | try { | ... | ... |
... | @@ -251,6 +251,10 @@ export default { | ... | @@ -251,6 +251,10 @@ export default { |
251 | }; | 251 | }; |
252 | }, | 252 | }, |
253 | methods: { | 253 | methods: { |
254 | /** | ||
255 | * @description: featchData | ||
256 | * @author: renchao | ||
257 | */ | ||
254 | async featchData() { | 258 | async featchData() { |
255 | try { | 259 | try { |
256 | let { result: res } = await djfDjSf.getDjfDjSfById(this.bsmSjsb); | 260 | let { result: res } = await djfDjSf.getDjfDjSfById(this.bsmSjsb); |
... | @@ -260,6 +264,10 @@ export default { | ... | @@ -260,6 +264,10 @@ export default { |
260 | this.$refs.msg.messageShow(); | 264 | this.$refs.msg.messageShow(); |
261 | } | 265 | } |
262 | }, | 266 | }, |
267 | /** | ||
268 | * @description: handleUpdateForm | ||
269 | * @author: renchao | ||
270 | */ | ||
263 | handleUpdateForm() { | 271 | handleUpdateForm() { |
264 | return new Promise(async (resolve) => { | 272 | return new Promise(async (resolve) => { |
265 | try { | 273 | try { | ... | ... |
... | @@ -183,6 +183,11 @@ | ... | @@ -183,6 +183,11 @@ |
183 | }; | 183 | }; |
184 | }, | 184 | }, |
185 | methods: { | 185 | methods: { |
186 | /** | ||
187 | * @description: changeTraceEnd | ||
188 | * @param {*} item | ||
189 | * @author: renchao | ||
190 | */ | ||
186 | changeTraceEnd (item) { | 191 | changeTraceEnd (item) { |
187 | if (item.SHJSSJ !== null) { | 192 | if (item.SHJSSJ !== null) { |
188 | //当前值为空 也会进行判断 所以条件最好不要非空验证 | 193 | //当前值为空 也会进行判断 所以条件最好不要非空验证 |
... | @@ -196,6 +201,11 @@ | ... | @@ -196,6 +201,11 @@ |
196 | } | 201 | } |
197 | }, | 202 | }, |
198 | //跟踪API结束时间限制开始时间 | 203 | //跟踪API结束时间限制开始时间 |
204 | /** | ||
205 | * @description: 跟踪API结束时间限制开始时间 | ||
206 | * @param {*} item | ||
207 | * @author: renchao | ||
208 | */ | ||
199 | changeTraceStart (item) { | 209 | changeTraceStart (item) { |
200 | if (item.SHKSSJ !== null) { | 210 | if (item.SHKSSJ !== null) { |
201 | //当前值为空 也会进行判断 所以条件最好不要非空验证 | 211 | //当前值为空 也会进行判断 所以条件最好不要非空验证 |
... | @@ -208,6 +218,10 @@ | ... | @@ -208,6 +218,10 @@ |
208 | item.traceEnd = {}; | 218 | item.traceEnd = {}; |
209 | } | 219 | } |
210 | }, | 220 | }, |
221 | /** | ||
222 | * @description: featchData | ||
223 | * @author: renchao | ||
224 | */ | ||
211 | async featchData () { | 225 | async featchData () { |
212 | try { | 226 | try { |
213 | let { result: res } = await djfDjSh.getDjfDjShById(this.bsmSjsb); | 227 | let { result: res } = await djfDjSh.getDjfDjShById(this.bsmSjsb); |
... | @@ -217,6 +231,10 @@ | ... | @@ -217,6 +231,10 @@ |
217 | this.$refs.msg.messageShow(); | 231 | this.$refs.msg.messageShow(); |
218 | } | 232 | } |
219 | }, | 233 | }, |
234 | /** | ||
235 | * @description: handleUpdateForm | ||
236 | * @author: renchao | ||
237 | */ | ||
220 | handleUpdateForm () { | 238 | handleUpdateForm () { |
221 | return new Promise(async (resolve) => { | 239 | return new Promise(async (resolve) => { |
222 | try { | 240 | try { | ... | ... |
... | @@ -202,6 +202,10 @@ export default { | ... | @@ -202,6 +202,10 @@ export default { |
202 | }; | 202 | }; |
203 | }, | 203 | }, |
204 | methods: { | 204 | methods: { |
205 | /** | ||
206 | * @description: featchData | ||
207 | * @author: renchao | ||
208 | */ | ||
205 | async featchData() { | 209 | async featchData() { |
206 | try { | 210 | try { |
207 | let { result: res } = await djfDjSj.getDjfDjSjById(this.bsmSjsb); | 211 | let { result: res } = await djfDjSj.getDjfDjSjById(this.bsmSjsb); |
... | @@ -211,6 +215,10 @@ export default { | ... | @@ -211,6 +215,10 @@ export default { |
211 | this.$refs.msg.messageShow(); | 215 | this.$refs.msg.messageShow(); |
212 | } | 216 | } |
213 | }, | 217 | }, |
218 | /** | ||
219 | * @description: handleUpdateForm | ||
220 | * @author: renchao | ||
221 | */ | ||
214 | handleUpdateForm() { | 222 | handleUpdateForm() { |
215 | return new Promise(async (resolve) => { | 223 | return new Promise(async (resolve) => { |
216 | try { | 224 | try { | ... | ... |
... | @@ -365,6 +365,10 @@ export default { | ... | @@ -365,6 +365,10 @@ export default { |
365 | }; | 365 | }; |
366 | }, | 366 | }, |
367 | methods: { | 367 | methods: { |
368 | /** | ||
369 | * @description: featchData | ||
370 | * @author: renchao | ||
371 | */ | ||
368 | async featchData() { | 372 | async featchData() { |
369 | try { | 373 | try { |
370 | let { result: res } = await djfDjSqr.getDjfDjSqrById(this.bsmSjsb); | 374 | let { result: res } = await djfDjSqr.getDjfDjSqrById(this.bsmSjsb); |
... | @@ -374,6 +378,10 @@ export default { | ... | @@ -374,6 +378,10 @@ export default { |
374 | this.$refs.msg.messageShow(); | 378 | this.$refs.msg.messageShow(); |
375 | } | 379 | } |
376 | }, | 380 | }, |
381 | /** | ||
382 | * @description: handleUpdateForm | ||
383 | * @author: renchao | ||
384 | */ | ||
377 | handleUpdateForm() { | 385 | handleUpdateForm() { |
378 | return new Promise(async (resolve, reject) => { | 386 | return new Promise(async (resolve, reject) => { |
379 | try { | 387 | try { | ... | ... |
... | @@ -156,6 +156,10 @@ | ... | @@ -156,6 +156,10 @@ |
156 | } | 156 | } |
157 | }, | 157 | }, |
158 | methods: { | 158 | methods: { |
159 | /** | ||
160 | * @description: featchData | ||
161 | * @author: renchao | ||
162 | */ | ||
159 | async featchData () { | 163 | async featchData () { |
160 | try { | 164 | try { |
161 | let { result: res } = await djfDjSz.getDjfDjSzById(this.bsmSjsb); | 165 | let { result: res } = await djfDjSz.getDjfDjSzById(this.bsmSjsb); |
... | @@ -165,6 +169,10 @@ | ... | @@ -165,6 +169,10 @@ |
165 | this.$refs.msg.messageShow(); | 169 | this.$refs.msg.messageShow(); |
166 | } | 170 | } |
167 | }, | 171 | }, |
172 | /** | ||
173 | * @description: handleUpdateForm | ||
174 | * @author: renchao | ||
175 | */ | ||
168 | handleUpdateForm () { | 176 | handleUpdateForm () { |
169 | return new Promise(async (resolve) => { | 177 | return new Promise(async (resolve) => { |
170 | try { | 178 | try { | ... | ... |
... | @@ -268,6 +268,10 @@ export default { | ... | @@ -268,6 +268,10 @@ export default { |
268 | }; | 268 | }; |
269 | }, | 269 | }, |
270 | methods: { | 270 | methods: { |
271 | /** | ||
272 | * @description: featchData | ||
273 | * @author: renchao | ||
274 | */ | ||
271 | async featchData() { | 275 | async featchData() { |
272 | try { | 276 | try { |
273 | let { result: res } = await djtDjSlsq.getDjtDjSlsqById(this.bsmSjsb); | 277 | let { result: res } = await djtDjSlsq.getDjtDjSlsqById(this.bsmSjsb); |
... | @@ -277,6 +281,10 @@ export default { | ... | @@ -277,6 +281,10 @@ export default { |
277 | this.$refs.msg.messageShow(); | 281 | this.$refs.msg.messageShow(); |
278 | } | 282 | } |
279 | }, | 283 | }, |
284 | /** | ||
285 | * @description: handleUpdateForm | ||
286 | * @author: renchao | ||
287 | */ | ||
280 | handleUpdateForm() { | 288 | handleUpdateForm() { |
281 | return new Promise(async (resolve) => { | 289 | return new Promise(async (resolve) => { |
282 | try { | 290 | try { | ... | ... |
... | @@ -67,6 +67,10 @@ export default { | ... | @@ -67,6 +67,10 @@ export default { |
67 | } | 67 | } |
68 | }, | 68 | }, |
69 | methods: { | 69 | methods: { |
70 | /** | ||
71 | * @description: featchData | ||
72 | * @author: renchao | ||
73 | */ | ||
70 | async featchData () { | 74 | async featchData () { |
71 | try { | 75 | try { |
72 | let { result: res } = await fjF100.getFjF100ById(this.bsmSjsb) | 76 | let { result: res } = await fjF100.getFjF100ById(this.bsmSjsb) |
... | @@ -76,6 +80,10 @@ export default { | ... | @@ -76,6 +80,10 @@ export default { |
76 | this.$refs.msg.messageShow() | 80 | this.$refs.msg.messageShow() |
77 | } | 81 | } |
78 | }, | 82 | }, |
83 | /** | ||
84 | * @description: handleUpdateForm | ||
85 | * @author: renchao | ||
86 | */ | ||
79 | handleUpdateForm () { | 87 | handleUpdateForm () { |
80 | return new Promise(async (resolve) => { | 88 | return new Promise(async (resolve) => { |
81 | try { | 89 | try { | ... | ... |
... | @@ -169,6 +169,10 @@ export default { | ... | @@ -169,6 +169,10 @@ export default { |
169 | }; | 169 | }; |
170 | }, | 170 | }, |
171 | methods: { | 171 | methods: { |
172 | /** | ||
173 | * @description: featchData | ||
174 | * @author: renchao | ||
175 | */ | ||
172 | async featchData() { | 176 | async featchData() { |
173 | try { | 177 | try { |
174 | let { result: res } = await ktfQtDzdzw.getKtfQtDzdzwById(this.bsmSjsb); | 178 | let { result: res } = await ktfQtDzdzw.getKtfQtDzdzwById(this.bsmSjsb); |
... | @@ -177,6 +181,10 @@ export default { | ... | @@ -177,6 +181,10 @@ export default { |
177 | this.$refs.msg.messageShow(); | 181 | this.$refs.msg.messageShow(); |
178 | } | 182 | } |
179 | }, | 183 | }, |
184 | /** | ||
185 | * @description: handleUpdateForm | ||
186 | * @author: renchao | ||
187 | */ | ||
180 | handleUpdateForm() { | 188 | handleUpdateForm() { |
181 | return new Promise(async (resolve) => { | 189 | return new Promise(async (resolve) => { |
182 | try { | 190 | try { | ... | ... |
... | @@ -168,6 +168,10 @@ export default { | ... | @@ -168,6 +168,10 @@ export default { |
168 | }; | 168 | }; |
169 | }, | 169 | }, |
170 | methods: { | 170 | methods: { |
171 | /** | ||
172 | * @description: featchData | ||
173 | * @author: renchao | ||
174 | */ | ||
171 | async featchData() { | 175 | async featchData() { |
172 | try { | 176 | try { |
173 | let { result: res } = await ktfQtMzdzw.getKtfQtMzdzwById(this.bsmSjsb); | 177 | let { result: res } = await ktfQtMzdzw.getKtfQtMzdzwById(this.bsmSjsb); |
... | @@ -177,6 +181,10 @@ export default { | ... | @@ -177,6 +181,10 @@ export default { |
177 | this.$refs.msg.messageShow(); | 181 | this.$refs.msg.messageShow(); |
178 | } | 182 | } |
179 | }, | 183 | }, |
184 | /** | ||
185 | * @description: handleUpdateForm | ||
186 | * @author: renchao | ||
187 | */ | ||
180 | handleUpdateForm() { | 188 | handleUpdateForm() { |
181 | return new Promise(async (resolve) => { | 189 | return new Promise(async (resolve) => { |
182 | try { | 190 | try { | ... | ... |
... | @@ -169,6 +169,10 @@ export default { | ... | @@ -169,6 +169,10 @@ export default { |
169 | }; | 169 | }; |
170 | }, | 170 | }, |
171 | methods: { | 171 | methods: { |
172 | /** | ||
173 | * @description: featchData | ||
174 | * @author: renchao | ||
175 | */ | ||
172 | async featchData() { | 176 | async featchData() { |
173 | try { | 177 | try { |
174 | let { result: res } = await ktfQtXzdzw.getKtfQtXzdzwById(this.bsmSjsb); | 178 | let { result: res } = await ktfQtXzdzw.getKtfQtXzdzwById(this.bsmSjsb); |
... | @@ -178,6 +182,10 @@ export default { | ... | @@ -178,6 +182,10 @@ export default { |
178 | this.$refs.msg.messageShow(); | 182 | this.$refs.msg.messageShow(); |
179 | } | 183 | } |
180 | }, | 184 | }, |
185 | /** | ||
186 | * @description: handleUpdateForm | ||
187 | * @author: renchao | ||
188 | */ | ||
181 | handleUpdateForm() { | 189 | handleUpdateForm() { |
182 | return new Promise(async (resolve, reject) => { | 190 | return new Promise(async (resolve, reject) => { |
183 | try { | 191 | try { | ... | ... |
... | @@ -115,6 +115,10 @@ export default { | ... | @@ -115,6 +115,10 @@ export default { |
115 | }; | 115 | }; |
116 | }, | 116 | }, |
117 | methods: { | 117 | methods: { |
118 | /** | ||
119 | * @description: featchData | ||
120 | * @author: renchao | ||
121 | */ | ||
118 | async featchData() { | 122 | async featchData() { |
119 | try { | 123 | try { |
120 | let { result: res } = await ktfZdbhqk.getKtfZdbhqkById(this.bsmSjsb); | 124 | let { result: res } = await ktfZdbhqk.getKtfZdbhqkById(this.bsmSjsb); |
... | @@ -124,6 +128,10 @@ export default { | ... | @@ -124,6 +128,10 @@ export default { |
124 | this.$refs.msg.messageShow(); | 128 | this.$refs.msg.messageShow(); |
125 | } | 129 | } |
126 | }, | 130 | }, |
131 | /** | ||
132 | * @description: handleUpdateForm | ||
133 | * @author: renchao | ||
134 | */ | ||
127 | handleUpdateForm() { | 135 | handleUpdateForm() { |
128 | return new Promise(async (resolve) => { | 136 | return new Promise(async (resolve) => { |
129 | try { | 137 | try { | ... | ... |
... | @@ -97,6 +97,10 @@ export default { | ... | @@ -97,6 +97,10 @@ export default { |
97 | }; | 97 | }; |
98 | }, | 98 | }, |
99 | methods: { | 99 | methods: { |
100 | /** | ||
101 | * @description: featchData | ||
102 | * @author: renchao | ||
103 | */ | ||
100 | async featchData() { | 104 | async featchData() { |
101 | try { | 105 | try { |
102 | let { result: res } = await ktfZhYhydzb.getKtfZhYhydzbById( | 106 | let { result: res } = await ktfZhYhydzb.getKtfZhYhydzbById( |
... | @@ -108,6 +112,10 @@ export default { | ... | @@ -108,6 +112,10 @@ export default { |
108 | this.$refs.msg.messageShow(); | 112 | this.$refs.msg.messageShow(); |
109 | } | 113 | } |
110 | }, | 114 | }, |
115 | /** | ||
116 | * @description: handleUpdateForm | ||
117 | * @author: renchao | ||
118 | */ | ||
111 | handleUpdateForm() { | 119 | handleUpdateForm() { |
112 | return new Promise(async (resolve, reject) => { | 120 | return new Promise(async (resolve, reject) => { |
113 | try { | 121 | try { | ... | ... |
... | @@ -109,6 +109,10 @@ export default { | ... | @@ -109,6 +109,10 @@ export default { |
109 | }; | 109 | }; |
110 | }, | 110 | }, |
111 | methods: { | 111 | methods: { |
112 | /** | ||
113 | * @description: featchData | ||
114 | * @author: renchao | ||
115 | */ | ||
112 | async featchData() { | 116 | async featchData() { |
113 | try { | 117 | try { |
114 | let { result: res } = await ktfZhYhzk.getKtfZhYhzkById(this.bsmSjsb); | 118 | let { result: res } = await ktfZhYhzk.getKtfZhYhzkById(this.bsmSjsb); |
... | @@ -118,6 +122,10 @@ export default { | ... | @@ -118,6 +122,10 @@ export default { |
118 | this.$refs.msg.messageShow(); | 122 | this.$refs.msg.messageShow(); |
119 | } | 123 | } |
120 | }, | 124 | }, |
125 | /** | ||
126 | * @description: handleUpdateForm | ||
127 | * @author: renchao | ||
128 | */ | ||
121 | handleUpdateForm() { | 129 | handleUpdateForm() { |
122 | return new Promise(async (resolve) => { | 130 | return new Promise(async (resolve) => { |
123 | try { | 131 | try { | ... | ... |
... | @@ -103,6 +103,10 @@ export default { | ... | @@ -103,6 +103,10 @@ export default { |
103 | }; | 103 | }; |
104 | }, | 104 | }, |
105 | methods: { | 105 | methods: { |
106 | /** | ||
107 | * @description: featchData | ||
108 | * @author: renchao | ||
109 | */ | ||
106 | async featchData() { | 110 | async featchData() { |
107 | try { | 111 | try { |
108 | let { result: res } = await zhK105.getZhK105ById(this.bsmSjsb); | 112 | let { result: res } = await zhK105.getZhK105ById(this.bsmSjsb); |
... | @@ -112,6 +116,10 @@ export default { | ... | @@ -112,6 +116,10 @@ export default { |
112 | this.$refs.msg.messageShow(); | 116 | this.$refs.msg.messageShow(); |
113 | } | 117 | } |
114 | }, | 118 | }, |
119 | /** | ||
120 | * @description: handleUpdateForm | ||
121 | * @author: renchao | ||
122 | */ | ||
115 | handleUpdateForm() { | 123 | handleUpdateForm() { |
116 | return new Promise(async (resolve) => { | 124 | return new Promise(async (resolve) => { |
117 | try { | 125 | try { | ... | ... |
... | @@ -218,6 +218,10 @@ | ... | @@ -218,6 +218,10 @@ |
218 | } | 218 | } |
219 | }, | 219 | }, |
220 | methods: { | 220 | methods: { |
221 | /** | ||
222 | * @description: featchData | ||
223 | * @author: renchao | ||
224 | */ | ||
221 | async featchData () { | 225 | async featchData () { |
222 | try { | 226 | try { |
223 | let { result: res } = await kttFwC.getKttFwCById(this.bsmSjsb); | 227 | let { result: res } = await kttFwC.getKttFwCById(this.bsmSjsb); |
... | @@ -227,6 +231,10 @@ | ... | @@ -227,6 +231,10 @@ |
227 | this.$refs.msg.messageShow() | 231 | this.$refs.msg.messageShow() |
228 | } | 232 | } |
229 | }, | 233 | }, |
234 | /** | ||
235 | * @description: handleUpdateForm | ||
236 | * @author: renchao | ||
237 | */ | ||
230 | handleUpdateForm () { | 238 | handleUpdateForm () { |
231 | return new Promise(async (resolve, reject) => { | 239 | return new Promise(async (resolve, reject) => { |
232 | try { | 240 | try { | ... | ... |
... | @@ -518,6 +518,10 @@ | ... | @@ -518,6 +518,10 @@ |
518 | } | 518 | } |
519 | }, | 519 | }, |
520 | methods: { | 520 | methods: { |
521 | /** | ||
522 | * @description: featchData | ||
523 | * @author: renchao | ||
524 | */ | ||
521 | async featchData () { | 525 | async featchData () { |
522 | try { | 526 | try { |
523 | let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb); | 527 | let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb); |
... | @@ -527,6 +531,10 @@ | ... | @@ -527,6 +531,10 @@ |
527 | this.$refs.msg.messageShow(); | 531 | this.$refs.msg.messageShow(); |
528 | } | 532 | } |
529 | }, | 533 | }, |
534 | /** | ||
535 | * @description: handleUpdateForm | ||
536 | * @author: renchao | ||
537 | */ | ||
530 | handleUpdateForm () { | 538 | handleUpdateForm () { |
531 | return new Promise(async (resolve, reject) => { | 539 | return new Promise(async (resolve, reject) => { |
532 | try { | 540 | try { | ... | ... |
... | @@ -321,6 +321,10 @@ | ... | @@ -321,6 +321,10 @@ |
321 | } | 321 | } |
322 | }, | 322 | }, |
323 | methods: { | 323 | methods: { |
324 | /** | ||
325 | * @description: featchData | ||
326 | * @author: renchao | ||
327 | */ | ||
324 | async featchData () { | 328 | async featchData () { |
325 | try { | 329 | try { |
326 | let { result: res } = await kttFwLjz.getKttFwLjzById(this.bsmSjsb); | 330 | let { result: res } = await kttFwLjz.getKttFwLjzById(this.bsmSjsb); |
... | @@ -330,6 +334,10 @@ | ... | @@ -330,6 +334,10 @@ |
330 | this.$refs.msg.messageShow(); | 334 | this.$refs.msg.messageShow(); |
331 | } | 335 | } |
332 | }, | 336 | }, |
337 | /** | ||
338 | * @description: handleUpdateForm | ||
339 | * @author: renchao | ||
340 | */ | ||
333 | handleUpdateForm () { | 341 | handleUpdateForm () { |
334 | return new Promise(async (resolve, reject) => { | 342 | return new Promise(async (resolve, reject) => { |
335 | try { | 343 | try { | ... | ... |
... | @@ -371,6 +371,10 @@ | ... | @@ -371,6 +371,10 @@ |
371 | }; | 371 | }; |
372 | }, | 372 | }, |
373 | methods: { | 373 | methods: { |
374 | /** | ||
375 | * @description: featchData | ||
376 | * @author: renchao | ||
377 | */ | ||
374 | async featchData () { | 378 | async featchData () { |
375 | try { | 379 | try { |
376 | let { result: res } = await kttFwZrz.getKttFwZrzById(this.bsmSjsb); | 380 | let { result: res } = await kttFwZrz.getKttFwZrzById(this.bsmSjsb); |
... | @@ -380,6 +384,10 @@ | ... | @@ -380,6 +384,10 @@ |
380 | this.$refs.msg.messageShow(); | 384 | this.$refs.msg.messageShow(); |
381 | } | 385 | } |
382 | }, | 386 | }, |
387 | /** | ||
388 | * @description: handleUpdateForm | ||
389 | * @author: renchao | ||
390 | */ | ||
383 | handleUpdateForm () { | 391 | handleUpdateForm () { |
384 | return new Promise(async (resolve) => { | 392 | return new Promise(async (resolve) => { |
385 | try { | 393 | try { | ... | ... |
... | @@ -160,6 +160,10 @@ export default { | ... | @@ -160,6 +160,10 @@ export default { |
160 | }; | 160 | }; |
161 | }, | 161 | }, |
162 | methods: { | 162 | methods: { |
163 | /** | ||
164 | * @description: featchData | ||
165 | * @author: renchao | ||
166 | */ | ||
163 | async featchData() { | 167 | async featchData() { |
164 | try { | 168 | try { |
165 | let { result: res } = await kttGyJzd.getKttGyJzdById(this.bsmSjsb); | 169 | let { result: res } = await kttGyJzd.getKttGyJzdById(this.bsmSjsb); |
... | @@ -169,6 +173,10 @@ export default { | ... | @@ -169,6 +173,10 @@ export default { |
169 | this.$refs.msg.messageShow(); | 173 | this.$refs.msg.messageShow(); |
170 | } | 174 | } |
171 | }, | 175 | }, |
176 | /** | ||
177 | * @description: handleUpdateForm | ||
178 | * @author: renchao | ||
179 | */ | ||
172 | handleUpdateForm() { | 180 | handleUpdateForm() { |
173 | return new Promise(async (resolve) => { | 181 | return new Promise(async (resolve) => { |
174 | try { | 182 | try { | ... | ... |
... | @@ -189,6 +189,10 @@ export default { | ... | @@ -189,6 +189,10 @@ export default { |
189 | }; | 189 | }; |
190 | }, | 190 | }, |
191 | methods: { | 191 | methods: { |
192 | /** | ||
193 | * @description: featchData | ||
194 | * @author: renchao | ||
195 | */ | ||
192 | async featchData() { | 196 | async featchData() { |
193 | try { | 197 | try { |
194 | let { result: res } = await kttGyJzx.getKttGyJzxById(this.bsmSjsb); | 198 | let { result: res } = await kttGyJzx.getKttGyJzxById(this.bsmSjsb); |
... | @@ -198,6 +202,10 @@ export default { | ... | @@ -198,6 +202,10 @@ export default { |
198 | this.$refs.msg.messageShow(); | 202 | this.$refs.msg.messageShow(); |
199 | } | 203 | } |
200 | }, | 204 | }, |
205 | /** | ||
206 | * @description: handleUpdateForm | ||
207 | * @author: renchao | ||
208 | */ | ||
201 | handleUpdateForm() { | 209 | handleUpdateForm() { |
202 | return new Promise(async (resolve) => { | 210 | return new Promise(async (resolve) => { |
203 | try { | 211 | try { | ... | ... |
... | @@ -160,6 +160,10 @@ export default { | ... | @@ -160,6 +160,10 @@ export default { |
160 | }; | 160 | }; |
161 | }, | 161 | }, |
162 | methods: { | 162 | methods: { |
163 | /** | ||
164 | * @description: featchData | ||
165 | * @author: renchao | ||
166 | */ | ||
163 | async featchData() { | 167 | async featchData() { |
164 | try { | 168 | try { |
165 | let { result: res } = await kttGzw.getKttGzwById(this.bsmSjsb); | 169 | let { result: res } = await kttGzw.getKttGzwById(this.bsmSjsb); |
... | @@ -169,6 +173,10 @@ export default { | ... | @@ -169,6 +173,10 @@ export default { |
169 | this.$refs.msg.messageShow(); | 173 | this.$refs.msg.messageShow(); |
170 | } | 174 | } |
171 | }, | 175 | }, |
176 | /** | ||
177 | * @description: handleUpdateForm | ||
178 | * @author: renchao | ||
179 | */ | ||
172 | handleUpdateForm() { | 180 | handleUpdateForm() { |
173 | return new Promise(async (resolve) => { | 181 | return new Promise(async (resolve) => { |
174 | try { | 182 | try { | ... | ... |
... | @@ -445,6 +445,10 @@ export default { | ... | @@ -445,6 +445,10 @@ export default { |
445 | }; | 445 | }; |
446 | }, | 446 | }, |
447 | methods: { | 447 | methods: { |
448 | /** | ||
449 | * @description: featchData | ||
450 | * @author: renchao | ||
451 | */ | ||
448 | async featchData() { | 452 | async featchData() { |
449 | try { | 453 | try { |
450 | let { result: res } = await kttZdjbxx.kttZdjbxxDetail(this.bsmSjsb); | 454 | let { result: res } = await kttZdjbxx.kttZdjbxxDetail(this.bsmSjsb); |
... | @@ -454,6 +458,10 @@ export default { | ... | @@ -454,6 +458,10 @@ export default { |
454 | this.$refs.msg.messageShow(); | 458 | this.$refs.msg.messageShow(); |
455 | } | 459 | } |
456 | }, | 460 | }, |
461 | /** | ||
462 | * @description: handleUpdateForm | ||
463 | * @author: renchao | ||
464 | */ | ||
457 | handleUpdateForm() { | 465 | handleUpdateForm() { |
458 | return new Promise(async (resolve) => { | 466 | return new Promise(async (resolve) => { |
459 | try { | 467 | try { | ... | ... |
... | @@ -437,6 +437,10 @@ export default { | ... | @@ -437,6 +437,10 @@ export default { |
437 | }; | 437 | }; |
438 | }, | 438 | }, |
439 | methods: { | 439 | methods: { |
440 | /** | ||
441 | * @description: featchData | ||
442 | * @author: renchao | ||
443 | */ | ||
440 | async featchData() { | 444 | async featchData() { |
441 | try { | 445 | try { |
442 | let { result: res } = await kttZhjbxx.getKttZhjbxxById(this.bsmSjsb); | 446 | let { result: res } = await kttZhjbxx.getKttZhjbxxById(this.bsmSjsb); |
... | @@ -446,6 +450,10 @@ export default { | ... | @@ -446,6 +450,10 @@ export default { |
446 | this.$refs.msg.messageShow(); | 450 | this.$refs.msg.messageShow(); |
447 | } | 451 | } |
448 | }, | 452 | }, |
453 | /** | ||
454 | * @description: handleUpdateForm | ||
455 | * @author: renchao | ||
456 | */ | ||
449 | handleUpdateForm() { | 457 | handleUpdateForm() { |
450 | return new Promise(async (resolve) => { | 458 | return new Promise(async (resolve) => { |
451 | try { | 459 | try { | ... | ... |
... | @@ -164,6 +164,10 @@ export default { | ... | @@ -164,6 +164,10 @@ export default { |
164 | }; | 164 | }; |
165 | }, | 165 | }, |
166 | methods: { | 166 | methods: { |
167 | /** | ||
168 | * @description: featchData | ||
169 | * @author: renchao | ||
170 | */ | ||
167 | async featchData() { | 171 | async featchData() { |
168 | try { | 172 | try { |
169 | let { result: res } = await qlfFwFdcqDzXm.getQlfFwFdcqDzXmById( | 173 | let { result: res } = await qlfFwFdcqDzXm.getQlfFwFdcqDzXmById( |
... | @@ -175,6 +179,10 @@ export default { | ... | @@ -175,6 +179,10 @@ export default { |
175 | this.$refs.msg.messageShow(); | 179 | this.$refs.msg.messageShow(); |
176 | } | 180 | } |
177 | }, | 181 | }, |
182 | /** | ||
183 | * @description: handleUpdateForm | ||
184 | * @author: renchao | ||
185 | */ | ||
178 | handleUpdateForm() { | 186 | handleUpdateForm() { |
179 | return new Promise(async (resolve, reject) => { | 187 | return new Promise(async (resolve, reject) => { |
180 | try { | 188 | try { | ... | ... |
... | @@ -222,6 +222,10 @@ export default { | ... | @@ -222,6 +222,10 @@ export default { |
222 | }; | 222 | }; |
223 | }, | 223 | }, |
224 | methods: { | 224 | methods: { |
225 | /** | ||
226 | * @description: featchData | ||
227 | * @author: renchao | ||
228 | */ | ||
225 | async featchData() { | 229 | async featchData() { |
226 | try { | 230 | try { |
227 | let { result: res } = await qlfFwFdcqQfsyq.getQlfFwFdcqQfsyqById( | 231 | let { result: res } = await qlfFwFdcqQfsyq.getQlfFwFdcqQfsyqById( |
... | @@ -233,6 +237,10 @@ export default { | ... | @@ -233,6 +237,10 @@ export default { |
233 | this.$refs.msg.messageShow(); | 237 | this.$refs.msg.messageShow(); |
234 | } | 238 | } |
235 | }, | 239 | }, |
240 | /** | ||
241 | * @description: handleUpdateForm | ||
242 | * @author: renchao | ||
243 | */ | ||
236 | handleUpdateForm() { | 244 | handleUpdateForm() { |
237 | return new Promise(async (resolve, reject) => { | 245 | return new Promise(async (resolve, reject) => { |
238 | try { | 246 | try { | ... | ... |
... | @@ -311,6 +311,10 @@ export default { | ... | @@ -311,6 +311,10 @@ export default { |
311 | }; | 311 | }; |
312 | }, | 312 | }, |
313 | methods: { | 313 | methods: { |
314 | /** | ||
315 | * @description: featchData | ||
316 | * @author: renchao | ||
317 | */ | ||
314 | async featchData() { | 318 | async featchData() { |
315 | try { | 319 | try { |
316 | let { result: res } = await qlfQlCfdj.getQlfQlCfdjById(this.bsmSjsb); | 320 | let { result: res } = await qlfQlCfdj.getQlfQlCfdjById(this.bsmSjsb); |
... | @@ -320,6 +324,10 @@ export default { | ... | @@ -320,6 +324,10 @@ export default { |
320 | this.$refs.msg.messageShow(); | 324 | this.$refs.msg.messageShow(); |
321 | } | 325 | } |
322 | }, | 326 | }, |
327 | /** | ||
328 | * @description: handleUpdateForm | ||
329 | * @author: renchao | ||
330 | */ | ||
323 | handleUpdateForm() { | 331 | handleUpdateForm() { |
324 | return new Promise(async (resolve) => { | 332 | return new Promise(async (resolve) => { |
325 | try { | 333 | try { | ... | ... |
... | @@ -319,6 +319,10 @@ export default { | ... | @@ -319,6 +319,10 @@ export default { |
319 | }; | 319 | }; |
320 | }, | 320 | }, |
321 | methods: { | 321 | methods: { |
322 | /** | ||
323 | * @description: featchData | ||
324 | * @author: renchao | ||
325 | */ | ||
322 | async featchData() { | 326 | async featchData() { |
323 | try { | 327 | try { |
324 | let { result: res } = await qlfQlDyaq.getQlfQlDyaqById(this.bsmSjsb); | 328 | let { result: res } = await qlfQlDyaq.getQlfQlDyaqById(this.bsmSjsb); |
... | @@ -328,6 +332,10 @@ export default { | ... | @@ -328,6 +332,10 @@ export default { |
328 | this.$refs.msg.messageShow(); | 332 | this.$refs.msg.messageShow(); |
329 | } | 333 | } |
330 | }, | 334 | }, |
335 | /** | ||
336 | * @description: handleUpdateForm | ||
337 | * @author: renchao | ||
338 | */ | ||
331 | handleUpdateForm() { | 339 | handleUpdateForm() { |
332 | return new Promise(async (resolve, reject) => { | 340 | return new Promise(async (resolve, reject) => { |
333 | try { | 341 | try { | ... | ... |
... | @@ -340,6 +340,10 @@ export default { | ... | @@ -340,6 +340,10 @@ export default { |
340 | }; | 340 | }; |
341 | }, | 341 | }, |
342 | methods: { | 342 | methods: { |
343 | /** | ||
344 | * @description: featchData | ||
345 | * @author: renchao | ||
346 | */ | ||
343 | async featchData() { | 347 | async featchData() { |
344 | try { | 348 | try { |
345 | let { result: res } = await qlfQlDyiq.getQlfQlDyiqById(this.bsmSjsb); | 349 | let { result: res } = await qlfQlDyiq.getQlfQlDyiqById(this.bsmSjsb); |
... | @@ -349,6 +353,10 @@ export default { | ... | @@ -349,6 +353,10 @@ export default { |
349 | this.$refs.msg.messageShow(); | 353 | this.$refs.msg.messageShow(); |
350 | } | 354 | } |
351 | }, | 355 | }, |
356 | /** | ||
357 | * @description: handleUpdateForm | ||
358 | * @author: renchao | ||
359 | */ | ||
352 | handleUpdateForm() { | 360 | handleUpdateForm() { |
353 | return new Promise(async (resolve) => { | 361 | return new Promise(async (resolve) => { |
354 | try { | 362 | try { | ... | ... |
... | @@ -210,6 +210,10 @@ export default { | ... | @@ -210,6 +210,10 @@ export default { |
210 | }; | 210 | }; |
211 | }, | 211 | }, |
212 | methods: { | 212 | methods: { |
213 | /** | ||
214 | * @description: featchData | ||
215 | * @author: renchao | ||
216 | */ | ||
213 | async featchData() { | 217 | async featchData() { |
214 | try { | 218 | try { |
215 | let { result: res } = await qlfQlGzdj.getQlfQlGzdjById(this.bsmSjsb); | 219 | let { result: res } = await qlfQlGzdj.getQlfQlGzdjById(this.bsmSjsb); |
... | @@ -219,6 +223,10 @@ export default { | ... | @@ -219,6 +223,10 @@ export default { |
219 | this.$refs.msg.messageShow(); | 223 | this.$refs.msg.messageShow(); |
220 | } | 224 | } |
221 | }, | 225 | }, |
226 | /** | ||
227 | * @description: handleUpdateForm | ||
228 | * @author: renchao | ||
229 | */ | ||
222 | handleUpdateForm() { | 230 | handleUpdateForm() { |
223 | return new Promise(async (resolve) => { | 231 | return new Promise(async (resolve) => { |
224 | try { | 232 | try { | ... | ... |
... | @@ -297,6 +297,10 @@ export default { | ... | @@ -297,6 +297,10 @@ export default { |
297 | }; | 297 | }; |
298 | }, | 298 | }, |
299 | methods: { | 299 | methods: { |
300 | /** | ||
301 | * @description: featchData | ||
302 | * @author: renchao | ||
303 | */ | ||
300 | async featchData() { | 304 | async featchData() { |
301 | try { | 305 | try { |
302 | let { result: res } = await qlfQlHysyq.getQlfQlHysyqById(this.bsmSjsb); | 306 | let { result: res } = await qlfQlHysyq.getQlfQlHysyqById(this.bsmSjsb); |
... | @@ -306,6 +310,10 @@ export default { | ... | @@ -306,6 +310,10 @@ export default { |
306 | this.$refs.msg.messageShow(); | 310 | this.$refs.msg.messageShow(); |
307 | } | 311 | } |
308 | }, | 312 | }, |
313 | /** | ||
314 | * @description: handleUpdateForm | ||
315 | * @author: renchao | ||
316 | */ | ||
309 | handleUpdateForm() { | 317 | handleUpdateForm() { |
310 | return new Promise(async (resolve) => { | 318 | return new Promise(async (resolve) => { |
311 | try { | 319 | try { | ... | ... |
... | @@ -273,6 +273,10 @@ export default { | ... | @@ -273,6 +273,10 @@ export default { |
273 | }; | 273 | }; |
274 | }, | 274 | }, |
275 | methods: { | 275 | methods: { |
276 | /** | ||
277 | * @description: featchData | ||
278 | * @author: renchao | ||
279 | */ | ||
276 | async featchData() { | 280 | async featchData() { |
277 | try { | 281 | try { |
278 | let { result: res } = await qlfQlJsydsyq.getQlfQlJsydsyqById( | 282 | let { result: res } = await qlfQlJsydsyq.getQlfQlJsydsyqById( |
... | @@ -284,6 +288,10 @@ export default { | ... | @@ -284,6 +288,10 @@ export default { |
284 | this.$refs.msg.messageShow(); | 288 | this.$refs.msg.messageShow(); |
285 | } | 289 | } |
286 | }, | 290 | }, |
291 | /** | ||
292 | * @description: handleUpdateForm | ||
293 | * @author: renchao | ||
294 | */ | ||
287 | handleUpdateForm() { | 295 | handleUpdateForm() { |
288 | return new Promise(async (resolve, reject) => { | 296 | return new Promise(async (resolve, reject) => { |
289 | try { | 297 | try { | ... | ... |
... | @@ -353,6 +353,10 @@ export default { | ... | @@ -353,6 +353,10 @@ export default { |
353 | }; | 353 | }; |
354 | }, | 354 | }, |
355 | methods: { | 355 | methods: { |
356 | /** | ||
357 | * @description: featchData | ||
358 | * @author: renchao | ||
359 | */ | ||
356 | async featchData() { | 360 | async featchData() { |
357 | try { | 361 | try { |
358 | let { result: res } = await qlfQlNydsyq.getQlfQlNydsyqByID( | 362 | let { result: res } = await qlfQlNydsyq.getQlfQlNydsyqByID( |
... | @@ -364,6 +368,10 @@ export default { | ... | @@ -364,6 +368,10 @@ export default { |
364 | this.$refs.msg.messageShow(); | 368 | this.$refs.msg.messageShow(); |
365 | } | 369 | } |
366 | }, | 370 | }, |
371 | /** | ||
372 | * @description: handleUpdateForm | ||
373 | * @author: renchao | ||
374 | */ | ||
367 | handleUpdateForm() { | 375 | handleUpdateForm() { |
368 | return new Promise(async (resolve) => { | 376 | return new Promise(async (resolve) => { |
369 | try { | 377 | try { | ... | ... |
... | @@ -344,6 +344,10 @@ export default { | ... | @@ -344,6 +344,10 @@ export default { |
344 | }; | 344 | }; |
345 | }, | 345 | }, |
346 | methods: { | 346 | methods: { |
347 | /** | ||
348 | * @description: featchData | ||
349 | * @author: renchao | ||
350 | */ | ||
347 | async featchData() { | 351 | async featchData() { |
348 | try { | 352 | try { |
349 | let { result: res } = await qlfQlQtxgql.getQlfQlQtxgqlById( | 353 | let { result: res } = await qlfQlQtxgql.getQlfQlQtxgqlById( |
... | @@ -355,6 +359,10 @@ export default { | ... | @@ -355,6 +359,10 @@ export default { |
355 | this.$refs.msg.messageShow(); | 359 | this.$refs.msg.messageShow(); |
356 | } | 360 | } |
357 | }, | 361 | }, |
362 | /** | ||
363 | * @description: handleUpdateForm | ||
364 | * @author: renchao | ||
365 | */ | ||
358 | handleUpdateForm() { | 366 | handleUpdateForm() { |
359 | return new Promise(async (resolve) => { | 367 | return new Promise(async (resolve) => { |
360 | try { | 368 | try { | ... | ... |
... | @@ -316,6 +316,10 @@ export default { | ... | @@ -316,6 +316,10 @@ export default { |
316 | } | 316 | } |
317 | }, | 317 | }, |
318 | methods: { | 318 | methods: { |
319 | /** | ||
320 | * @description: featchData | ||
321 | * @author: renchao | ||
322 | */ | ||
319 | async featchData () { | 323 | async featchData () { |
320 | try { | 324 | try { |
321 | let { result: res } = await qlfQlTdsyq.getQlfQlTdsyqById(this.bsmSjsb) | 325 | let { result: res } = await qlfQlTdsyq.getQlfQlTdsyqById(this.bsmSjsb) |
... | @@ -325,6 +329,10 @@ export default { | ... | @@ -325,6 +329,10 @@ export default { |
325 | this.$refs.msg.messageShow() | 329 | this.$refs.msg.messageShow() |
326 | } | 330 | } |
327 | }, | 331 | }, |
332 | /** | ||
333 | * @description: handleUpdateForm | ||
334 | * @author: renchao | ||
335 | */ | ||
328 | handleUpdateForm () { | 336 | handleUpdateForm () { |
329 | return new Promise(async (resolve, reject) => { | 337 | return new Promise(async (resolve, reject) => { |
330 | try { | 338 | try { | ... | ... |
... | @@ -430,6 +430,10 @@ export default { | ... | @@ -430,6 +430,10 @@ export default { |
430 | }; | 430 | }; |
431 | }, | 431 | }, |
432 | methods: { | 432 | methods: { |
433 | /** | ||
434 | * @description: featchData | ||
435 | * @author: renchao | ||
436 | */ | ||
433 | async featchData() { | 437 | async featchData() { |
434 | try { | 438 | try { |
435 | let { result: res } = await qlfQlYgdj.getQlfQlYgdjById(this.bsmSjsb); | 439 | let { result: res } = await qlfQlYgdj.getQlfQlYgdjById(this.bsmSjsb); |
... | @@ -439,6 +443,10 @@ export default { | ... | @@ -439,6 +443,10 @@ export default { |
439 | this.$refs.msg.messageShow(); | 443 | this.$refs.msg.messageShow(); |
440 | } | 444 | } |
441 | }, | 445 | }, |
446 | /** | ||
447 | * @description: handleUpdateForm | ||
448 | * @author: renchao | ||
449 | */ | ||
442 | handleUpdateForm() { | 450 | handleUpdateForm() { |
443 | return new Promise(async (resolve) => { | 451 | return new Promise(async (resolve) => { |
444 | try { | 452 | try { | ... | ... |
... | @@ -212,6 +212,10 @@ export default { | ... | @@ -212,6 +212,10 @@ export default { |
212 | }; | 212 | }; |
213 | }, | 213 | }, |
214 | methods: { | 214 | methods: { |
215 | /** | ||
216 | * @description: featchData | ||
217 | * @author: renchao | ||
218 | */ | ||
215 | async featchData() { | 219 | async featchData() { |
216 | try { | 220 | try { |
217 | let { result: res } = await qlfQlYydj.getQlfQlYydjById(this.bsmSjsb); | 221 | let { result: res } = await qlfQlYydj.getQlfQlYydjById(this.bsmSjsb); |
... | @@ -221,6 +225,10 @@ export default { | ... | @@ -221,6 +225,10 @@ export default { |
221 | this.$refs.msg.messageShow(); | 225 | this.$refs.msg.messageShow(); |
222 | } | 226 | } |
223 | }, | 227 | }, |
228 | /** | ||
229 | * @description: handleUpdateForm | ||
230 | * @author: renchao | ||
231 | */ | ||
224 | handleUpdateForm() { | 232 | handleUpdateForm() { |
225 | return new Promise(async (resolve) => { | 233 | return new Promise(async (resolve) => { |
226 | try { | 234 | try { | ... | ... |
... | @@ -182,6 +182,10 @@ export default { | ... | @@ -182,6 +182,10 @@ export default { |
182 | }; | 182 | }; |
183 | }, | 183 | }, |
184 | methods: { | 184 | methods: { |
185 | /** | ||
186 | * @description: featchData | ||
187 | * @author: renchao | ||
188 | */ | ||
185 | async featchData() { | 189 | async featchData() { |
186 | try { | 190 | try { |
187 | let { result: res } = await qlfQlZxdj.getQlfQlZxdjById(this.bsmSjsb); | 191 | let { result: res } = await qlfQlZxdj.getQlfQlZxdjById(this.bsmSjsb); |
... | @@ -191,6 +195,10 @@ export default { | ... | @@ -191,6 +195,10 @@ export default { |
191 | this.$refs.msg.messageShow(); | 195 | this.$refs.msg.messageShow(); |
192 | } | 196 | } |
193 | }, | 197 | }, |
198 | /** | ||
199 | * @description: handleUpdateForm | ||
200 | * @author: renchao | ||
201 | */ | ||
194 | handleUpdateForm() { | 202 | handleUpdateForm() { |
195 | return new Promise(async (resolve) => { | 203 | return new Promise(async (resolve) => { |
196 | try { | 204 | try { | ... | ... |
... | @@ -315,6 +315,10 @@ export default { | ... | @@ -315,6 +315,10 @@ export default { |
315 | } | 315 | } |
316 | }, | 316 | }, |
317 | methods: { | 317 | methods: { |
318 | /** | ||
319 | * @description: featchData | ||
320 | * @author: renchao | ||
321 | */ | ||
318 | async featchData () { | 322 | async featchData () { |
319 | try { | 323 | try { |
320 | let { result: res } = await qltFwFdcqDz.getQltFwFdcqDzById(this.bsmSjsb) | 324 | let { result: res } = await qltFwFdcqDz.getQltFwFdcqDzById(this.bsmSjsb) |
... | @@ -324,6 +328,10 @@ export default { | ... | @@ -324,6 +328,10 @@ export default { |
324 | this.$refs.msg.messageShow() | 328 | this.$refs.msg.messageShow() |
325 | } | 329 | } |
326 | }, | 330 | }, |
331 | /** | ||
332 | * @description: handleUpdateForm | ||
333 | * @author: renchao | ||
334 | */ | ||
327 | handleUpdateForm () { | 335 | handleUpdateForm () { |
328 | return new Promise(async (resolve, reject) => { | 336 | return new Promise(async (resolve, reject) => { |
329 | try { | 337 | try { | ... | ... |
... | @@ -410,6 +410,10 @@ export default { | ... | @@ -410,6 +410,10 @@ export default { |
410 | }; | 410 | }; |
411 | }, | 411 | }, |
412 | methods: { | 412 | methods: { |
413 | /** | ||
414 | * @description: featchData | ||
415 | * @author: renchao | ||
416 | */ | ||
413 | async featchData () { | 417 | async featchData () { |
414 | try { | 418 | try { |
415 | let { result: res } = await qltFwFdcqYz.getQltFwFdcqYzById( | 419 | let { result: res } = await qltFwFdcqYz.getQltFwFdcqYzById( |
... | @@ -421,6 +425,10 @@ export default { | ... | @@ -421,6 +425,10 @@ export default { |
421 | this.$refs.msg.messageShow(); | 425 | this.$refs.msg.messageShow(); |
422 | } | 426 | } |
423 | }, | 427 | }, |
428 | /** | ||
429 | * @description: handleUpdateForm | ||
430 | * @author: renchao | ||
431 | */ | ||
424 | handleUpdateForm () { | 432 | handleUpdateForm () { |
425 | return new Promise(async (resolve) => { | 433 | return new Promise(async (resolve) => { |
426 | try { | 434 | try { | ... | ... |
... | @@ -339,6 +339,10 @@ export default { | ... | @@ -339,6 +339,10 @@ export default { |
339 | }; | 339 | }; |
340 | }, | 340 | }, |
341 | methods: { | 341 | methods: { |
342 | /** | ||
343 | * @description: featchData | ||
344 | * @author: renchao | ||
345 | */ | ||
342 | async featchData() { | 346 | async featchData() { |
343 | try { | 347 | try { |
344 | let { result: res } = await qltQlGjzwsyq.getQltQlGjzwsyqById( | 348 | let { result: res } = await qltQlGjzwsyq.getQltQlGjzwsyqById( |
... | @@ -350,6 +354,10 @@ export default { | ... | @@ -350,6 +354,10 @@ export default { |
350 | this.$refs.msg.messageShow(); | 354 | this.$refs.msg.messageShow(); |
351 | } | 355 | } |
352 | }, | 356 | }, |
357 | /** | ||
358 | * @description: handleUpdateForm | ||
359 | * @author: renchao | ||
360 | */ | ||
353 | handleUpdateForm() { | 361 | handleUpdateForm() { |
354 | return new Promise(async (resolve) => { | 362 | return new Promise(async (resolve) => { |
355 | try { | 363 | try { | ... | ... |
... | @@ -388,6 +388,10 @@ export default { | ... | @@ -388,6 +388,10 @@ export default { |
388 | }; | 388 | }; |
389 | }, | 389 | }, |
390 | methods: { | 390 | methods: { |
391 | /** | ||
392 | * @description: featchData | ||
393 | * @author: renchao | ||
394 | */ | ||
391 | async featchData() { | 395 | async featchData() { |
392 | try { | 396 | try { |
393 | let { result: res } = await qltQlLq.getQltQlLqById(this.bsmSjsb); | 397 | let { result: res } = await qltQlLq.getQltQlLqById(this.bsmSjsb); |
... | @@ -397,6 +401,10 @@ export default { | ... | @@ -397,6 +401,10 @@ export default { |
397 | this.$refs.msg.messageShow(); | 401 | this.$refs.msg.messageShow(); |
398 | } | 402 | } |
399 | }, | 403 | }, |
404 | /** | ||
405 | * @description: handleUpdateForm | ||
406 | * @author: renchao | ||
407 | */ | ||
400 | handleUpdateForm() { | 408 | handleUpdateForm() { |
401 | return new Promise(async (resolve, reject) => { | 409 | return new Promise(async (resolve, reject) => { |
402 | try { | 410 | try { | ... | ... |
... | @@ -119,6 +119,10 @@ export default { | ... | @@ -119,6 +119,10 @@ export default { |
119 | }; | 119 | }; |
120 | }, | 120 | }, |
121 | methods: { | 121 | methods: { |
122 | /** | ||
123 | * @description: featchData | ||
124 | * @author: renchao | ||
125 | */ | ||
122 | async featchData () { | 126 | async featchData () { |
123 | try { | 127 | try { |
124 | let { result: res } = await zdK103.getZdK103ById(this.bsmSjsb); | 128 | let { result: res } = await zdK103.getZdK103ById(this.bsmSjsb); |
... | @@ -128,6 +132,10 @@ export default { | ... | @@ -128,6 +132,10 @@ export default { |
128 | this.$refs.msg.messageShow(); | 132 | this.$refs.msg.messageShow(); |
129 | } | 133 | } |
130 | }, | 134 | }, |
135 | /** | ||
136 | * @description: handleUpdateForm | ||
137 | * @author: renchao | ||
138 | */ | ||
131 | handleUpdateForm () { | 139 | handleUpdateForm () { |
132 | return new Promise(async (resolve) => { | 140 | return new Promise(async (resolve) => { |
133 | try { | 141 | try { | ... | ... |
... | @@ -92,6 +92,10 @@ export default { | ... | @@ -92,6 +92,10 @@ export default { |
92 | }; | 92 | }; |
93 | }, | 93 | }, |
94 | methods: { | 94 | methods: { |
95 | /** | ||
96 | * @description: featchData | ||
97 | * @author: renchao | ||
98 | */ | ||
95 | async featchData() { | 99 | async featchData() { |
96 | try { | 100 | try { |
97 | let { result: res } = await zhK105.getZhK105ById(this.bsmSjsb); | 101 | let { result: res } = await zhK105.getZhK105ById(this.bsmSjsb); |
... | @@ -101,6 +105,10 @@ export default { | ... | @@ -101,6 +105,10 @@ export default { |
101 | this.$refs.msg.messageShow(); | 105 | this.$refs.msg.messageShow(); |
102 | } | 106 | } |
103 | }, | 107 | }, |
108 | /** | ||
109 | * @description: handleUpdateForm | ||
110 | * @author: renchao | ||
111 | */ | ||
104 | handleUpdateForm() { | 112 | handleUpdateForm() { |
105 | return new Promise(async (resolve) => { | 113 | return new Promise(async (resolve) => { |
106 | try { | 114 | try { | ... | ... |
... | @@ -433,12 +433,20 @@ | ... | @@ -433,12 +433,20 @@ |
433 | }; | 433 | }; |
434 | }, | 434 | }, |
435 | methods: { | 435 | methods: { |
436 | /** | ||
437 | * @description: featchData | ||
438 | * @author: renchao | ||
439 | */ | ||
436 | async featchData () { | 440 | async featchData () { |
437 | try { | 441 | try { |
438 | let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb); | 442 | let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb); |
439 | this.obligeeForm.obligeeList = res; | 443 | this.obligeeForm.obligeeList = res; |
440 | } catch (error) { } | 444 | } catch (error) { } |
441 | }, | 445 | }, |
446 | /** | ||
447 | * @description: handleUpdateForm | ||
448 | * @author: renchao | ||
449 | */ | ||
442 | handleUpdateForm () { | 450 | handleUpdateForm () { |
443 | return new Promise(async (resolve) => { | 451 | return new Promise(async (resolve) => { |
444 | try { | 452 | try { | ... | ... |
... | @@ -25,6 +25,11 @@ | ... | @@ -25,6 +25,11 @@ |
25 | } | 25 | } |
26 | }, | 26 | }, |
27 | methods: { | 27 | methods: { |
28 | /** | ||
29 | * @description: handleClick | ||
30 | * @param {*} evt | ||
31 | * @author: renchao | ||
32 | */ | ||
28 | handleClick (evt) { | 33 | handleClick (evt) { |
29 | this.$emit('click', evt); | 34 | this.$emit('click', evt); |
30 | } | 35 | } | ... | ... |
... | @@ -96,6 +96,10 @@ export default { | ... | @@ -96,6 +96,10 @@ export default { |
96 | } | 96 | } |
97 | }, | 97 | }, |
98 | methods: { | 98 | methods: { |
99 | /** | ||
100 | * @description: handleFullscreen | ||
101 | * @author: renchao | ||
102 | */ | ||
99 | handleFullscreen () { | 103 | handleFullscreen () { |
100 | this.fullscreen = !this.fullscreen | 104 | this.fullscreen = !this.fullscreen |
101 | if (!this.fullscreen) { | 105 | if (!this.fullscreen) { |
... | @@ -104,11 +108,19 @@ export default { | ... | @@ -104,11 +108,19 @@ export default { |
104 | this.scrollerHeight = (window.innerHeight - 120) + 'px' | 108 | this.scrollerHeight = (window.innerHeight - 120) + 'px' |
105 | } | 109 | } |
106 | }, | 110 | }, |
111 | /** | ||
112 | * @description: submitForm | ||
113 | * @author: renchao | ||
114 | */ | ||
107 | submitForm () { | 115 | submitForm () { |
108 | if (this.isButton) { | 116 | if (this.isButton) { |
109 | this.$emit('submitForm'); | 117 | this.$emit('submitForm'); |
110 | } | 118 | } |
111 | }, | 119 | }, |
120 | /** | ||
121 | * @description: closeDialog | ||
122 | * @author: renchao | ||
123 | */ | ||
112 | closeDialog () { | 124 | closeDialog () { |
113 | this.key++ | 125 | this.key++ |
114 | this.$emit('input', false) | 126 | this.$emit('input', false) | ... | ... |
... | @@ -52,6 +52,10 @@ export default { | ... | @@ -52,6 +52,10 @@ export default { |
52 | LbRender | 52 | LbRender |
53 | }, | 53 | }, |
54 | methods: { | 54 | methods: { |
55 | /** | ||
56 | * @description: setColumn | ||
57 | * @author: renchao | ||
58 | */ | ||
55 | setColumn () { | 59 | setColumn () { |
56 | if (this.column.type) { | 60 | if (this.column.type) { |
57 | this.column.renderHeader = forced[this.column.type].renderHeader | 61 | this.column.renderHeader = forced[this.column.type].renderHeader | ... | ... |
1 | /* | 1 | /* |
2 | * FileName: lb-table.vue | 2 | * FileName: lb-table.vue |
3 | * Remark: element table | 3 | * Remark: element table |
4 | * Project: lb-element-table | 4 | * Project: lb-element-table |
5 | * Author: 任超 | 5 | * Author: 任超 |
6 | * File Created: Tuesday, 19th March 2019 9:55:27 am | 6 | * File Created: Tuesday, 19th March 2019 9:55:27 am |
7 | * Last Modified: Tuesday, 19th March 2019 9:55:34 am | 7 | * Last Modified: Tuesday, 19th March 2019 9:55:34 am |
8 | * Modified By: 任超 | 8 | * Modified By: 任超 |
9 | */ | 9 | */ |
10 | 10 | ||
11 | <template> | 11 | <template> |
12 | <div :class="['lb-table', customClass]"> | 12 | <div :class="['lb-table', customClass]"> |
... | @@ -112,15 +112,30 @@ export default { | ... | @@ -112,15 +112,30 @@ export default { |
112 | }, | 112 | }, |
113 | methods: { | 113 | methods: { |
114 | // 单选 | 114 | // 单选 |
115 | /** | ||
116 | * @description: 单选 | ||
117 | * @param {*} row | ||
118 | * @author: renchao | ||
119 | */ | ||
115 | singleElection (row) { | 120 | singleElection (row) { |
116 | this.selected = this.data.indexOf(row); | 121 | this.selected = this.data.indexOf(row); |
117 | }, | 122 | }, |
118 | 123 | ||
124 | /** | ||
125 | * @description: tableRowClassName | ||
126 | * @param {*} row | ||
127 | * @param {*} rowIndex | ||
128 | * @author: renchao | ||
129 | */ | ||
119 | tableRowClassName ({ row, rowIndex }) { | 130 | tableRowClassName ({ row, rowIndex }) { |
120 | if (rowIndex % 2 === 1) { | 131 | if (rowIndex % 2 === 1) { |
121 | return 'interlaced'; | 132 | return 'interlaced'; |
122 | } | 133 | } |
123 | }, | 134 | }, |
135 | /** | ||
136 | * @description: getHeight | ||
137 | * @author: renchao | ||
138 | */ | ||
124 | getHeight () { | 139 | getHeight () { |
125 | if (!this.heightNumSetting) { | 140 | if (!this.heightNumSetting) { |
126 | let _this = this | 141 | let _this = this |
... | @@ -137,6 +152,12 @@ export default { | ... | @@ -137,6 +152,12 @@ export default { |
137 | } | 152 | } |
138 | } | 153 | } |
139 | }, | 154 | }, |
155 | /** | ||
156 | * @description: calcHeightx | ||
157 | * @param {*} value | ||
158 | * @param {*} wappered | ||
159 | * @author: renchao | ||
160 | */ | ||
140 | calcHeightx (value, wappered = true) { | 161 | calcHeightx (value, wappered = true) { |
141 | //项目自定义的公共header部分的高度,可忽略 | 162 | //项目自定义的公共header部分的高度,可忽略 |
142 | let header = document.querySelector(".from-clues-header").offsetHeight; | 163 | let header = document.querySelector(".from-clues-header").offsetHeight; |
... | @@ -156,36 +177,91 @@ export default { | ... | @@ -156,36 +177,91 @@ export default { |
156 | } | 177 | } |
157 | return res; | 178 | return res; |
158 | }, | 179 | }, |
180 | /** | ||
181 | * @description: clearSelection | ||
182 | * @author: renchao | ||
183 | */ | ||
159 | clearSelection () { | 184 | clearSelection () { |
160 | this.$refs.elTable.clearSelection() | 185 | this.$refs.elTable.clearSelection() |
161 | }, | 186 | }, |
187 | /** | ||
188 | * @description: toggleRowSelection | ||
189 | * @param {*} row | ||
190 | * @param {*} selected | ||
191 | * @author: renchao | ||
192 | */ | ||
162 | toggleRowSelection (row, selected) { | 193 | toggleRowSelection (row, selected) { |
163 | this.$refs.elTable.toggleRowSelection(row, selected) | 194 | this.$refs.elTable.toggleRowSelection(row, selected) |
164 | }, | 195 | }, |
196 | /** | ||
197 | * @description: toggleAllSelection | ||
198 | * @author: renchao | ||
199 | */ | ||
165 | toggleAllSelection () { | 200 | toggleAllSelection () { |
166 | this.$refs.elTable.toggleAllSelection() | 201 | this.$refs.elTable.toggleAllSelection() |
167 | }, | 202 | }, |
203 | /** | ||
204 | * @description: toggleRowExpansion | ||
205 | * @param {*} row | ||
206 | * @param {*} expanded | ||
207 | * @author: renchao | ||
208 | */ | ||
168 | toggleRowExpansion (row, expanded) { | 209 | toggleRowExpansion (row, expanded) { |
169 | this.$refs.elTable.toggleRowExpansion(row, expanded) | 210 | this.$refs.elTable.toggleRowExpansion(row, expanded) |
170 | }, | 211 | }, |
212 | /** | ||
213 | * @description: setCurrentRow | ||
214 | * @param {*} row | ||
215 | * @author: renchao | ||
216 | */ | ||
171 | setCurrentRow (row) { | 217 | setCurrentRow (row) { |
172 | this.$refs.elTable.setCurrentRow(row) | 218 | this.$refs.elTable.setCurrentRow(row) |
173 | }, | 219 | }, |
220 | /** | ||
221 | * @description: clearSort | ||
222 | * @author: renchao | ||
223 | */ | ||
174 | clearSort () { | 224 | clearSort () { |
175 | this.$refs.elTable.clearSort() | 225 | this.$refs.elTable.clearSort() |
176 | }, | 226 | }, |
227 | /** | ||
228 | * @description: clearFilter | ||
229 | * @param {*} columnKey | ||
230 | * @author: renchao | ||
231 | */ | ||
177 | clearFilter (columnKey) { | 232 | clearFilter (columnKey) { |
178 | this.$refs.elTable.clearFilter(columnKey) | 233 | this.$refs.elTable.clearFilter(columnKey) |
179 | }, | 234 | }, |
235 | /** | ||
236 | * @description: doLayout | ||
237 | * @author: renchao | ||
238 | */ | ||
180 | doLayout () { | 239 | doLayout () { |
181 | this.$refs.elTable.doLayout() | 240 | this.$refs.elTable.doLayout() |
182 | }, | 241 | }, |
242 | /** | ||
243 | * @description: sort | ||
244 | * @param {*} prop | ||
245 | * @param {*} order | ||
246 | * @author: renchao | ||
247 | */ | ||
183 | sort (prop, order) { | 248 | sort (prop, order) { |
184 | this.$refs.elTable.sort(prop, order) | 249 | this.$refs.elTable.sort(prop, order) |
185 | }, | 250 | }, |
251 | /** | ||
252 | * @description: paginationCurrentChange | ||
253 | * @param {*} val | ||
254 | * @author: renchao | ||
255 | */ | ||
186 | paginationCurrentChange (val) { | 256 | paginationCurrentChange (val) { |
187 | this.$emit('p-current-change', val) | 257 | this.$emit('p-current-change', val) |
188 | }, | 258 | }, |
259 | /** | ||
260 | * @description: getMergeArr | ||
261 | * @param {*} tableData | ||
262 | * @param {*} merge | ||
263 | * @author: renchao | ||
264 | */ | ||
189 | getMergeArr (tableData, merge) { | 265 | getMergeArr (tableData, merge) { |
190 | if (!merge) return | 266 | if (!merge) return |
191 | this.mergeLine = {} | 267 | this.mergeLine = {} |
... | @@ -208,6 +284,14 @@ export default { | ... | @@ -208,6 +284,14 @@ export default { |
208 | }) | 284 | }) |
209 | }) | 285 | }) |
210 | }, | 286 | }, |
287 | /** | ||
288 | * @description: mergeMethod | ||
289 | * @param {*} row | ||
290 | * @param {*} column | ||
291 | * @param {*} rowIndex | ||
292 | * @param {*} columnIndex | ||
293 | * @author: renchao | ||
294 | */ | ||
211 | mergeMethod ({ row, column, rowIndex, columnIndex }) { | 295 | mergeMethod ({ row, column, rowIndex, columnIndex }) { |
212 | const index = this.merge.indexOf(column.property) | 296 | const index = this.merge.indexOf(column.property) |
213 | if (index > -1) { | 297 | if (index > -1) { |
... | @@ -249,3 +333,4 @@ export default { | ... | @@ -249,3 +333,4 @@ export default { |
249 | display: none; | 333 | display: none; |
250 | } | 334 | } |
251 | </style> | 335 | </style> |
336 | ... | ... |
... | @@ -25,6 +25,12 @@ | ... | @@ -25,6 +25,12 @@ |
25 | }, | 25 | }, |
26 | }, | 26 | }, |
27 | methods: { | 27 | methods: { |
28 | /** | ||
29 | * @description: hexToRgba | ||
30 | * @param {*} hex | ||
31 | * @param {*} opacity | ||
32 | * @author: renchao | ||
33 | */ | ||
28 | hexToRgba (hex, opacity) { | 34 | hexToRgba (hex, opacity) { |
29 | let rgbaColor = ""; | 35 | let rgbaColor = ""; |
30 | let reg = /^#[\da-f]{6}$/i; | 36 | let reg = /^#[\da-f]{6}$/i; |
... | @@ -35,6 +41,11 @@ | ... | @@ -35,6 +41,11 @@ |
35 | } | 41 | } |
36 | return rgbaColor; | 42 | return rgbaColor; |
37 | }, | 43 | }, |
44 | /** | ||
45 | * @description: fontSize | ||
46 | * @param {*} res | ||
47 | * @author: renchao | ||
48 | */ | ||
38 | fontSize (res) { | 49 | fontSize (res) { |
39 | let docEl = document.documentElement, | 50 | let docEl = document.documentElement, |
40 | clientWidth = | 51 | clientWidth = | ... | ... |
... | @@ -35,6 +35,10 @@ | ... | @@ -35,6 +35,10 @@ |
35 | }); | 35 | }); |
36 | }, | 36 | }, |
37 | methods: { | 37 | methods: { |
38 | /** | ||
39 | * @description: dataTrend | ||
40 | * @author: renchao | ||
41 | */ | ||
38 | async dataTrend () { | 42 | async dataTrend () { |
39 | try { | 43 | try { |
40 | let { result: res } = await work.dataTrend(); | 44 | let { result: res } = await work.dataTrend(); | ... | ... |
... | @@ -25,6 +25,10 @@ | ... | @@ -25,6 +25,10 @@ |
25 | this.submitViews(); | 25 | this.submitViews(); |
26 | }, | 26 | }, |
27 | methods: { | 27 | methods: { |
28 | /** | ||
29 | * @description: submitViews | ||
30 | * @author: renchao | ||
31 | */ | ||
28 | async submitViews () { | 32 | async submitViews () { |
29 | try { | 33 | try { |
30 | let { result: res } = await work.submitViews("A20"); | 34 | let { result: res } = await work.submitViews("A20"); | ... | ... |
... | @@ -30,6 +30,10 @@ | ... | @@ -30,6 +30,10 @@ |
30 | }, 10000) // 10s | 30 | }, 10000) // 10s |
31 | }, | 31 | }, |
32 | methods: { | 32 | methods: { |
33 | /** | ||
34 | * @description: getDjlxtotal | ||
35 | * @author: renchao | ||
36 | */ | ||
33 | getDjlxtotal () { | 37 | getDjlxtotal () { |
34 | return new Promise(async (resolve) => { | 38 | return new Promise(async (resolve) => { |
35 | try { | 39 | try { | ... | ... |
... | @@ -184,6 +184,10 @@ | ... | @@ -184,6 +184,10 @@ |
184 | }, | 184 | }, |
185 | methods: { | 185 | methods: { |
186 | // 开启定时器 | 186 | // 开启定时器 |
187 | /** | ||
188 | * @description: 开启定时器 | ||
189 | * @author: renchao | ||
190 | */ | ||
187 | startInterval () { | 191 | startInterval () { |
188 | const _self = this; | 192 | const _self = this; |
189 | // 应通过接口获取配置时间,暂时写死5s | 193 | // 应通过接口获取配置时间,暂时写死5s |
... | @@ -196,6 +200,10 @@ | ... | @@ -196,6 +200,10 @@ |
196 | }, time); | 200 | }, time); |
197 | }, | 201 | }, |
198 | // 重新随机选中地图区域 | 202 | // 重新随机选中地图区域 |
203 | /** | ||
204 | * @description: 重新随机选中地图区域 | ||
205 | * @author: renchao | ||
206 | */ | ||
199 | reSelectMapRandomArea () { | 207 | reSelectMapRandomArea () { |
200 | const length = 9; | 208 | const length = 9; |
201 | this.$nextTick(() => { | 209 | this.$nextTick(() => { |
... | @@ -226,6 +234,10 @@ | ... | @@ -226,6 +234,10 @@ |
226 | } | 234 | } |
227 | }); | 235 | }); |
228 | }, | 236 | }, |
237 | /** | ||
238 | * @description: handleMapRandomSelect | ||
239 | * @author: renchao | ||
240 | */ | ||
229 | handleMapRandomSelect () { | 241 | handleMapRandomSelect () { |
230 | this.$nextTick(() => { | 242 | this.$nextTick(() => { |
231 | try { | 243 | try { | ... | ... |
... | @@ -27,6 +27,10 @@ | ... | @@ -27,6 +27,10 @@ |
27 | }, 10000) // 10s | 27 | }, 10000) // 10s |
28 | }, | 28 | }, |
29 | methods: { | 29 | methods: { |
30 | /** | ||
31 | * @description: mapViews | ||
32 | * @author: renchao | ||
33 | */ | ||
30 | async mapViews () { | 34 | async mapViews () { |
31 | try { | 35 | try { |
32 | let { result: res } = await work.mapViews("A20"); | 36 | let { result: res } = await work.mapViews("A20"); | ... | ... |
... | @@ -39,6 +39,10 @@ | ... | @@ -39,6 +39,10 @@ |
39 | }); | 39 | }); |
40 | }, | 40 | }, |
41 | methods: { | 41 | methods: { |
42 | /** | ||
43 | * @description: addhousetotal | ||
44 | * @author: renchao | ||
45 | */ | ||
42 | async addhousetotal () { | 46 | async addhousetotal () { |
43 | if (this.cdata == 0) { | 47 | if (this.cdata == 0) { |
44 | this.cdata = []; | 48 | this.cdata = []; |
... | @@ -61,6 +65,11 @@ | ... | @@ -61,6 +65,11 @@ |
61 | } | 65 | } |
62 | }, | 66 | }, |
63 | // 处理数据方法 | 67 | // 处理数据方法 |
68 | /** | ||
69 | * @description: 处理数据方法 | ||
70 | * @param {*} delarr | ||
71 | * @author: renchao | ||
72 | */ | ||
64 | setadat (delarr) { | 73 | setadat (delarr) { |
65 | this.cdata = delarr.splice(0, 6); | 74 | this.cdata = delarr.splice(0, 6); |
66 | let sum = 0 | 75 | let sum = 0 | ... | ... |
... | @@ -193,6 +193,12 @@ | ... | @@ -193,6 +193,12 @@ |
193 | }; | 193 | }; |
194 | }, | 194 | }, |
195 | methods: { | 195 | methods: { |
196 | /** | ||
197 | * @description: dicStatus | ||
198 | * @param {*} val | ||
199 | * @param {*} code | ||
200 | * @author: renchao | ||
201 | */ | ||
196 | dicStatus (val, code) { | 202 | dicStatus (val, code) { |
197 | let data = this.dicData[code], | 203 | let data = this.dicData[code], |
198 | name = '' | 204 | name = '' |
... | @@ -205,8 +211,18 @@ | ... | @@ -205,8 +211,18 @@ |
205 | return name | 211 | return name |
206 | } | 212 | } |
207 | }, | 213 | }, |
214 | /** | ||
215 | * @description: handleTitleTab | ||
216 | * @param {*} val | ||
217 | * @author: renchao | ||
218 | */ | ||
208 | handleTitleTab (val) { | 219 | handleTitleTab (val) { |
209 | }, | 220 | }, |
221 | /** | ||
222 | * @description: isShow | ||
223 | * @param {*} item | ||
224 | * @author: renchao | ||
225 | */ | ||
210 | isShow (item) { | 226 | isShow (item) { |
211 | if (item.bizMsgid) { | 227 | if (item.bizMsgid) { |
212 | this.$set(this.bwoptions, 0, { | 228 | this.$set(this.bwoptions, 0, { |
... | @@ -240,6 +256,11 @@ | ... | @@ -240,6 +256,11 @@ |
240 | } | 256 | } |
241 | }, | 257 | }, |
242 | // 获取列表接口 | 258 | // 获取列表接口 |
259 | /** | ||
260 | * @description: 获取列表接口 | ||
261 | * @param {*} data | ||
262 | * @author: renchao | ||
263 | */ | ||
243 | _getList (data) { | 264 | _getList (data) { |
244 | getTabsDetail({ bsmReport: data.bsmReport || data.bsmSjsb }).then((res) => { | 265 | getTabsDetail({ bsmReport: data.bsmReport || data.bsmSjsb }).then((res) => { |
245 | if (res.code == 200) { | 266 | if (res.code == 200) { |
... | @@ -250,6 +271,11 @@ | ... | @@ -250,6 +271,11 @@ |
250 | } | 271 | } |
251 | }); | 272 | }); |
252 | }, | 273 | }, |
274 | /** | ||
275 | * @description: changeList | ||
276 | * @param {*} val | ||
277 | * @author: renchao | ||
278 | */ | ||
253 | changeList (val) { | 279 | changeList (val) { |
254 | let _index = val.index; | 280 | let _index = val.index; |
255 | if (_index > this.index) { | 281 | if (_index > this.index) { |
... | @@ -263,10 +289,19 @@ | ... | @@ -263,10 +289,19 @@ |
263 | // } | 289 | // } |
264 | // }); | 290 | // }); |
265 | }, | 291 | }, |
292 | /** | ||
293 | * @description: loadView | ||
294 | * @param {*} view | ||
295 | * @author: renchao | ||
296 | */ | ||
266 | loadView (view) { | 297 | loadView (view) { |
267 | return (r) => | 298 | return (r) => |
268 | require.ensure([], () => r(require(`@/components/Business/${view}.vue`))); | 299 | require.ensure([], () => r(require(`@/components/Business/${view}.vue`))); |
269 | }, | 300 | }, |
301 | /** | ||
302 | * @description: closeDialog | ||
303 | * @author: renchao | ||
304 | */ | ||
270 | closeDialog () { | 305 | closeDialog () { |
271 | this.dialogVisible = false; | 306 | this.dialogVisible = false; |
272 | //关闭弹框时将tabs项置空 | 307 | //关闭弹框时将tabs项置空 | ... | ... |
... | @@ -60,16 +60,36 @@ export default { | ... | @@ -60,16 +60,36 @@ export default { |
60 | this.iconList = icoNameList | 60 | this.iconList = icoNameList |
61 | }, | 61 | }, |
62 | methods: { | 62 | methods: { |
63 | /** | ||
64 | * @description: show | ||
65 | * @param {*} show | ||
66 | * @author: renchao | ||
67 | */ | ||
63 | show(show) { | 68 | show(show) { |
64 | this.visible = show | 69 | this.visible = show |
65 | }, | 70 | }, |
71 | /** | ||
72 | * @description: handleClick | ||
73 | * @param {*} tab | ||
74 | * @param {*} event | ||
75 | * @author: renchao | ||
76 | */ | ||
66 | handleClick(tab, event) { | 77 | handleClick(tab, event) { |
67 | }, | 78 | }, |
79 | /** | ||
80 | * @description: changeData | ||
81 | * @param {*} iconName | ||
82 | * @author: renchao | ||
83 | */ | ||
68 | changeData(iconName) { | 84 | changeData(iconName) { |
69 | this.visible = false | 85 | this.visible = false |
70 | // 传递图标名称给父级 | 86 | // 传递图标名称给父级 |
71 | this.$emit('iconName', iconName) | 87 | this.$emit('iconName', iconName) |
72 | }, | 88 | }, |
89 | /** | ||
90 | * @description: changeIconName | ||
91 | * @author: renchao | ||
92 | */ | ||
73 | changeIconName() { | 93 | changeIconName() { |
74 | this.visible = false | 94 | this.visible = false |
75 | // 传递图标名称给父级 | 95 | // 传递图标名称给父级 | ... | ... |
... | @@ -52,6 +52,10 @@ export default { | ... | @@ -52,6 +52,10 @@ export default { |
52 | LbRender | 52 | LbRender |
53 | }, | 53 | }, |
54 | methods: { | 54 | methods: { |
55 | /** | ||
56 | * @description: setColumn | ||
57 | * @author: renchao | ||
58 | */ | ||
55 | setColumn () { | 59 | setColumn () { |
56 | if (this.column.type) { | 60 | if (this.column.type) { |
57 | this.column.renderHeader = forced[this.column.type].renderHeader | 61 | this.column.renderHeader = forced[this.column.type].renderHeader | ... | ... |
... | @@ -125,15 +125,30 @@ export default { | ... | @@ -125,15 +125,30 @@ export default { |
125 | }, | 125 | }, |
126 | methods: { | 126 | methods: { |
127 | // 单选 | 127 | // 单选 |
128 | /** | ||
129 | * @description: 单选 | ||
130 | * @param {*} row | ||
131 | * @author: renchao | ||
132 | */ | ||
128 | singleElection (row) { | 133 | singleElection (row) { |
129 | this.selected = this.data.indexOf(row); | 134 | this.selected = this.data.indexOf(row); |
130 | }, | 135 | }, |
131 | 136 | ||
137 | /** | ||
138 | * @description: tableRowClassName | ||
139 | * @param {*} row | ||
140 | * @param {*} rowIndex | ||
141 | * @author: renchao | ||
142 | */ | ||
132 | tableRowClassName ({ row, rowIndex }) { | 143 | tableRowClassName ({ row, rowIndex }) { |
133 | if (rowIndex % 2 === 1) { | 144 | if (rowIndex % 2 === 1) { |
134 | return 'interlaced'; | 145 | return 'interlaced'; |
135 | } | 146 | } |
136 | }, | 147 | }, |
148 | /** | ||
149 | * @description: getHeight | ||
150 | * @author: renchao | ||
151 | */ | ||
137 | getHeight () { | 152 | getHeight () { |
138 | if (!this.heightNumSetting) { | 153 | if (!this.heightNumSetting) { |
139 | let _this = this | 154 | let _this = this |
... | @@ -169,6 +184,12 @@ export default { | ... | @@ -169,6 +184,12 @@ export default { |
169 | }) | 184 | }) |
170 | } | 185 | } |
171 | }, | 186 | }, |
187 | /** | ||
188 | * @description: calcHeightx | ||
189 | * @param {*} value | ||
190 | * @param {*} wappered | ||
191 | * @author: renchao | ||
192 | */ | ||
172 | calcHeightx (value, wappered = true) { | 193 | calcHeightx (value, wappered = true) { |
173 | //项目自定义的公共header部分的高度,可忽略 | 194 | //项目自定义的公共header部分的高度,可忽略 |
174 | let header = document.querySelector(".from-clues-header").offsetHeight; | 195 | let header = document.querySelector(".from-clues-header").offsetHeight; |
... | @@ -194,36 +215,91 @@ export default { | ... | @@ -194,36 +215,91 @@ export default { |
194 | } | 215 | } |
195 | return res; | 216 | return res; |
196 | }, | 217 | }, |
218 | /** | ||
219 | * @description: clearSelection | ||
220 | * @author: renchao | ||
221 | */ | ||
197 | clearSelection () { | 222 | clearSelection () { |
198 | this.$refs.elTable.clearSelection() | 223 | this.$refs.elTable.clearSelection() |
199 | }, | 224 | }, |
225 | /** | ||
226 | * @description: toggleRowSelection | ||
227 | * @param {*} row | ||
228 | * @param {*} selected | ||
229 | * @author: renchao | ||
230 | */ | ||
200 | toggleRowSelection (row, selected) { | 231 | toggleRowSelection (row, selected) { |
201 | this.$refs.elTable.toggleRowSelection(row, selected) | 232 | this.$refs.elTable.toggleRowSelection(row, selected) |
202 | }, | 233 | }, |
234 | /** | ||
235 | * @description: toggleAllSelection | ||
236 | * @author: renchao | ||
237 | */ | ||
203 | toggleAllSelection () { | 238 | toggleAllSelection () { |
204 | this.$refs.elTable.toggleAllSelection() | 239 | this.$refs.elTable.toggleAllSelection() |
205 | }, | 240 | }, |
241 | /** | ||
242 | * @description: toggleRowExpansion | ||
243 | * @param {*} row | ||
244 | * @param {*} expanded | ||
245 | * @author: renchao | ||
246 | */ | ||
206 | toggleRowExpansion (row, expanded) { | 247 | toggleRowExpansion (row, expanded) { |
207 | this.$refs.elTable.toggleRowExpansion(row, expanded) | 248 | this.$refs.elTable.toggleRowExpansion(row, expanded) |
208 | }, | 249 | }, |
250 | /** | ||
251 | * @description: setCurrentRow | ||
252 | * @param {*} row | ||
253 | * @author: renchao | ||
254 | */ | ||
209 | setCurrentRow (row) { | 255 | setCurrentRow (row) { |
210 | this.$refs.elTable.setCurrentRow(row) | 256 | this.$refs.elTable.setCurrentRow(row) |
211 | }, | 257 | }, |
258 | /** | ||
259 | * @description: clearSort | ||
260 | * @author: renchao | ||
261 | */ | ||
212 | clearSort () { | 262 | clearSort () { |
213 | this.$refs.elTable.clearSort() | 263 | this.$refs.elTable.clearSort() |
214 | }, | 264 | }, |
265 | /** | ||
266 | * @description: clearFilter | ||
267 | * @param {*} columnKey | ||
268 | * @author: renchao | ||
269 | */ | ||
215 | clearFilter (columnKey) { | 270 | clearFilter (columnKey) { |
216 | this.$refs.elTable.clearFilter(columnKey) | 271 | this.$refs.elTable.clearFilter(columnKey) |
217 | }, | 272 | }, |
273 | /** | ||
274 | * @description: doLayout | ||
275 | * @author: renchao | ||
276 | */ | ||
218 | doLayout () { | 277 | doLayout () { |
219 | this.$refs.elTable.doLayout() | 278 | this.$refs.elTable.doLayout() |
220 | }, | 279 | }, |
280 | /** | ||
281 | * @description: sort | ||
282 | * @param {*} prop | ||
283 | * @param {*} order | ||
284 | * @author: renchao | ||
285 | */ | ||
221 | sort (prop, order) { | 286 | sort (prop, order) { |
222 | this.$refs.elTable.sort(prop, order) | 287 | this.$refs.elTable.sort(prop, order) |
223 | }, | 288 | }, |
289 | /** | ||
290 | * @description: paginationCurrentChange | ||
291 | * @param {*} val | ||
292 | * @author: renchao | ||
293 | */ | ||
224 | paginationCurrentChange (val) { | 294 | paginationCurrentChange (val) { |
225 | this.$emit('p-current-change', val) | 295 | this.$emit('p-current-change', val) |
226 | }, | 296 | }, |
297 | /** | ||
298 | * @description: getMergeArr | ||
299 | * @param {*} tableData | ||
300 | * @param {*} merge | ||
301 | * @author: renchao | ||
302 | */ | ||
227 | getMergeArr (tableData, merge) { | 303 | getMergeArr (tableData, merge) { |
228 | if (!merge) return | 304 | if (!merge) return |
229 | this.mergeLine = {} | 305 | this.mergeLine = {} |
... | @@ -246,6 +322,14 @@ export default { | ... | @@ -246,6 +322,14 @@ export default { |
246 | }) | 322 | }) |
247 | }) | 323 | }) |
248 | }, | 324 | }, |
325 | /** | ||
326 | * @description: mergeMethod | ||
327 | * @param {*} row | ||
328 | * @param {*} column | ||
329 | * @param {*} rowIndex | ||
330 | * @param {*} columnIndex | ||
331 | * @author: renchao | ||
332 | */ | ||
249 | mergeMethod ({ row, column, rowIndex, columnIndex }) { | 333 | mergeMethod ({ row, column, rowIndex, columnIndex }) { |
250 | const index = this.merge.indexOf(column.property) | 334 | const index = this.merge.indexOf(column.property) |
251 | if (index > -1) { | 335 | if (index > -1) { | ... | ... |
1 | import service from './src/index'; | 1 | import service from './src/index'; |
2 | 2 | ||
3 | export default { | 3 | export default { |
4 | /** | ||
5 | * @description: install | ||
6 | * @param {*} Vue | ||
7 | * @author: renchao | ||
8 | */ | ||
4 | install (Vue) { | 9 | install (Vue) { |
5 | Vue.prototype.$loading = service; | 10 | Vue.prototype.$loading = service; |
6 | }, | 11 | }, | ... | ... |
... | @@ -20,6 +20,10 @@ let fullscreenLoading; | ... | @@ -20,6 +20,10 @@ let fullscreenLoading; |
20 | LoadingConstructor.prototype.originalPosition = ''; | 20 | LoadingConstructor.prototype.originalPosition = ''; |
21 | LoadingConstructor.prototype.originalOverflow = ''; | 21 | LoadingConstructor.prototype.originalOverflow = ''; |
22 | 22 | ||
23 | /** | ||
24 | * @description: close | ||
25 | * @author: renchao | ||
26 | */ | ||
23 | LoadingConstructor.prototype.close = function() { | 27 | LoadingConstructor.prototype.close = function() { |
24 | if (this.fullscreen) { | 28 | if (this.fullscreen) { |
25 | fullscreenLoading = undefined; | 29 | fullscreenLoading = undefined; |
... | @@ -38,6 +42,13 @@ LoadingConstructor.prototype.close = function() { | ... | @@ -38,6 +42,13 @@ LoadingConstructor.prototype.close = function() { |
38 | this.visible = false; | 42 | this.visible = false; |
39 | }; | 43 | }; |
40 | 44 | ||
45 | /** | ||
46 | * @description: addStyle | ||
47 | * @param {*} options | ||
48 | * @param {*} parent | ||
49 | * @param {*} instance | ||
50 | * @author: renchao | ||
51 | */ | ||
41 | const addStyle = (options, parent, instance) => { | 52 | const addStyle = (options, parent, instance) => { |
42 | let maskStyle = {}; | 53 | let maskStyle = {}; |
43 | if (options.fullscreen) { | 54 | if (options.fullscreen) { |
... | @@ -64,6 +75,11 @@ const addStyle = (options, parent, instance) => { | ... | @@ -64,6 +75,11 @@ const addStyle = (options, parent, instance) => { |
64 | }); | 75 | }); |
65 | }; | 76 | }; |
66 | 77 | ||
78 | /** | ||
79 | * @description: Loading | ||
80 | * @param {*} options | ||
81 | * @author: renchao | ||
82 | */ | ||
67 | const Loading = (options = {}) => { | 83 | const Loading = (options = {}) => { |
68 | if (Vue.prototype.$isServer) return; | 84 | if (Vue.prototype.$isServer) return; |
69 | options = merge({}, defaults, options); | 85 | options = merge({}, defaults, options); | ... | ... |
... | @@ -28,9 +28,18 @@ export default { | ... | @@ -28,9 +28,18 @@ export default { |
28 | }, | 28 | }, |
29 | 29 | ||
30 | methods: { | 30 | methods: { |
31 | /** | ||
32 | * @description: handleAfterLeave | ||
33 | * @author: renchao | ||
34 | */ | ||
31 | handleAfterLeave () { | 35 | handleAfterLeave () { |
32 | this.$emit('after-leave'); | 36 | this.$emit('after-leave'); |
33 | }, | 37 | }, |
38 | /** | ||
39 | * @description: setText | ||
40 | * @param {*} text | ||
41 | * @author: renchao | ||
42 | */ | ||
34 | setText (text) { | 43 | setText (text) { |
35 | this.text = text; | 44 | this.text = text; |
36 | } | 45 | } | ... | ... |
... | @@ -43,6 +43,10 @@ const MessageBoxConstructor = Vue.extend(msgboxVue); | ... | @@ -43,6 +43,10 @@ const MessageBoxConstructor = Vue.extend(msgboxVue); |
43 | let currentMsg, instance; | 43 | let currentMsg, instance; |
44 | let msgQueue = []; | 44 | let msgQueue = []; |
45 | 45 | ||
46 | /** | ||
47 | * @description: defaultCallback | ||
48 | * @author: renchao | ||
49 | */ | ||
46 | const defaultCallback = action => { | 50 | const defaultCallback = action => { |
47 | if (currentMsg) { | 51 | if (currentMsg) { |
48 | let callback = currentMsg.callback; | 52 | let callback = currentMsg.callback; |
... | @@ -56,6 +60,10 @@ const defaultCallback = action => { | ... | @@ -56,6 +60,10 @@ const defaultCallback = action => { |
56 | } | 60 | } |
57 | }; | 61 | }; |
58 | 62 | ||
63 | /** | ||
64 | * @description: initInstance | ||
65 | * @author: renchao | ||
66 | */ | ||
59 | const initInstance = () => { | 67 | const initInstance = () => { |
60 | instance = new MessageBoxConstructor({ | 68 | instance = new MessageBoxConstructor({ |
61 | el: document.createElement('div') | 69 | el: document.createElement('div') |
... | @@ -64,6 +72,10 @@ const initInstance = () => { | ... | @@ -64,6 +72,10 @@ const initInstance = () => { |
64 | instance.callback = defaultCallback; | 72 | instance.callback = defaultCallback; |
65 | }; | 73 | }; |
66 | 74 | ||
75 | /** | ||
76 | * @description: showNextMsg | ||
77 | * @author: renchao | ||
78 | */ | ||
67 | const showNextMsg = () => { | 79 | const showNextMsg = () => { |
68 | if (!instance) { | 80 | if (!instance) { |
69 | initInstance(); | 81 | initInstance(); |
... | @@ -109,6 +121,12 @@ const showNextMsg = () => { | ... | @@ -109,6 +121,12 @@ const showNextMsg = () => { |
109 | } | 121 | } |
110 | }; | 122 | }; |
111 | 123 | ||
124 | /** | ||
125 | * @description: MessageBox | ||
126 | * @param {*} options | ||
127 | * @param {*} callback | ||
128 | * @author: renchao | ||
129 | */ | ||
112 | const MessageBox = function (options, callback) { | 130 | const MessageBox = function (options, callback) { |
113 | if (Vue.prototype.$isServer) return; | 131 | if (Vue.prototype.$isServer) return; |
114 | if (typeof options === 'string' || isVNode(options)) { | 132 | if (typeof options === 'string' || isVNode(options)) { |
... | @@ -143,10 +161,21 @@ const MessageBox = function (options, callback) { | ... | @@ -143,10 +161,21 @@ const MessageBox = function (options, callback) { |
143 | } | 161 | } |
144 | }; | 162 | }; |
145 | 163 | ||
164 | /** | ||
165 | * @description: setDefaults | ||
166 | * @author: renchao | ||
167 | */ | ||
146 | MessageBox.setDefaults = defaults => { | 168 | MessageBox.setDefaults = defaults => { |
147 | MessageBox.defaults = defaults; | 169 | MessageBox.defaults = defaults; |
148 | }; | 170 | }; |
149 | 171 | ||
172 | /** | ||
173 | * @description: alert | ||
174 | * @param {*} title | ||
175 | * @param {*} message | ||
176 | * @param {*} options | ||
177 | * @author: renchao | ||
178 | */ | ||
150 | MessageBox.alert = (title, message, options) => { | 179 | MessageBox.alert = (title, message, options) => { |
151 | if (typeof title === 'object') { | 180 | if (typeof title === 'object') { |
152 | options = title; | 181 | options = title; |
... | @@ -163,6 +192,10 @@ MessageBox.alert = (title, message, options) => { | ... | @@ -163,6 +192,10 @@ MessageBox.alert = (title, message, options) => { |
163 | }, options)); | 192 | }, options)); |
164 | }; | 193 | }; |
165 | 194 | ||
195 | /** | ||
196 | * @description: close | ||
197 | * @author: renchao | ||
198 | */ | ||
166 | MessageBox.close = () => { | 199 | MessageBox.close = () => { |
167 | instance.doClose(); | 200 | instance.doClose(); |
168 | instance.visible = false; | 201 | instance.visible = false; | ... | ... |
... | @@ -97,6 +97,10 @@ export default { | ... | @@ -97,6 +97,10 @@ export default { |
97 | }, | 97 | }, |
98 | 98 | ||
99 | methods: { | 99 | methods: { |
100 | /** | ||
101 | * @description: getSafeClose | ||
102 | * @author: renchao | ||
103 | */ | ||
100 | getSafeClose () { | 104 | getSafeClose () { |
101 | const currentId = this.uid; | 105 | const currentId = this.uid; |
102 | return () => { | 106 | return () => { |
... | @@ -105,6 +109,10 @@ export default { | ... | @@ -105,6 +109,10 @@ export default { |
105 | }); | 109 | }); |
106 | }; | 110 | }; |
107 | }, | 111 | }, |
112 | /** | ||
113 | * @description: doClose | ||
114 | * @author: renchao | ||
115 | */ | ||
108 | doClose () { | 116 | doClose () { |
109 | if (!this.visible) return; | 117 | if (!this.visible) return; |
110 | this.visible = false; | 118 | this.visible = false; |
... | @@ -122,18 +130,31 @@ export default { | ... | @@ -122,18 +130,31 @@ export default { |
122 | }); | 130 | }); |
123 | }, | 131 | }, |
124 | 132 | ||
133 | /** | ||
134 | * @description: handleWrapperClick | ||
135 | * @author: renchao | ||
136 | */ | ||
125 | handleWrapperClick () { | 137 | handleWrapperClick () { |
126 | if (this.closeOnClickModal) { | 138 | if (this.closeOnClickModal) { |
127 | this.handleAction(this.distinguishCancelAndClose ? 'close' : 'cancel'); | 139 | this.handleAction(this.distinguishCancelAndClose ? 'close' : 'cancel'); |
128 | } | 140 | } |
129 | }, | 141 | }, |
130 | 142 | ||
143 | /** | ||
144 | * @description: handleInputEnter | ||
145 | * @author: renchao | ||
146 | */ | ||
131 | handleInputEnter () { | 147 | handleInputEnter () { |
132 | if (this.inputType !== 'textarea') { | 148 | if (this.inputType !== 'textarea') { |
133 | return this.handleAction('confirm'); | 149 | return this.handleAction('confirm'); |
134 | } | 150 | } |
135 | }, | 151 | }, |
136 | 152 | ||
153 | /** | ||
154 | * @description: handleAction | ||
155 | * @param {*} action | ||
156 | * @author: renchao | ||
157 | */ | ||
137 | handleAction (action) { | 158 | handleAction (action) { |
138 | if (this.$type === 'prompt' && action === 'confirm' && !this.validate()) { | 159 | if (this.$type === 'prompt' && action === 'confirm' && !this.validate()) { |
139 | return; | 160 | return; |
... | @@ -147,6 +168,10 @@ export default { | ... | @@ -147,6 +168,10 @@ export default { |
147 | } | 168 | } |
148 | }, | 169 | }, |
149 | 170 | ||
171 | /** | ||
172 | * @description: validate | ||
173 | * @author: renchao | ||
174 | */ | ||
150 | validate () { | 175 | validate () { |
151 | if (this.$type === 'prompt') { | 176 | if (this.$type === 'prompt') { |
152 | const inputPattern = this.inputPattern; | 177 | const inputPattern = this.inputPattern; |
... | @@ -174,15 +199,27 @@ export default { | ... | @@ -174,15 +199,27 @@ export default { |
174 | removeClass(this.getInputElement(), 'invalid'); | 199 | removeClass(this.getInputElement(), 'invalid'); |
175 | return true; | 200 | return true; |
176 | }, | 201 | }, |
202 | /** | ||
203 | * @description: getFirstFocus | ||
204 | * @author: renchao | ||
205 | */ | ||
177 | getFirstFocus () { | 206 | getFirstFocus () { |
178 | const btn = this.$el.querySelector('.el-message-box__btns .el-button'); | 207 | const btn = this.$el.querySelector('.el-message-box__btns .el-button'); |
179 | const title = this.$el.querySelector('.el-message-box__btns .el-message-box__title'); | 208 | const title = this.$el.querySelector('.el-message-box__btns .el-message-box__title'); |
180 | return btn || title; | 209 | return btn || title; |
181 | }, | 210 | }, |
211 | /** | ||
212 | * @description: getInputElement | ||
213 | * @author: renchao | ||
214 | */ | ||
182 | getInputElement () { | 215 | getInputElement () { |
183 | const inputRefs = this.$refs.input.$refs; | 216 | const inputRefs = this.$refs.input.$refs; |
184 | return inputRefs.input || inputRefs.textarea; | 217 | return inputRefs.input || inputRefs.textarea; |
185 | }, | 218 | }, |
219 | /** | ||
220 | * @description: handleClose | ||
221 | * @author: renchao | ||
222 | */ | ||
186 | handleClose () { | 223 | handleClose () { |
187 | this.handleAction('close'); | 224 | this.handleAction('close'); |
188 | } | 225 | } | ... | ... |
... | @@ -3,6 +3,10 @@ import Popup from './index.vue' | ... | @@ -3,6 +3,10 @@ import Popup from './index.vue' |
3 | const PopupBox = Vue.extend(Popup) | 3 | const PopupBox = Vue.extend(Popup) |
4 | let popuping = undefined | 4 | let popuping = undefined |
5 | 5 | ||
6 | /** | ||
7 | * @description: close | ||
8 | * @author: renchao | ||
9 | */ | ||
6 | PopupBox.prototype.close = function () { | 10 | PopupBox.prototype.close = function () { |
7 | // 如果Popup 有引用,则去掉引用 | 11 | // 如果Popup 有引用,则去掉引用 |
8 | if (popuping) { | 12 | if (popuping) { |
... | @@ -19,6 +23,14 @@ PopupBox.prototype.close = function () { | ... | @@ -19,6 +23,14 @@ PopupBox.prototype.close = function () { |
19 | }, 300) | 23 | }, 300) |
20 | } | 24 | } |
21 | 25 | ||
26 | /** | ||
27 | * @description: Popup1 | ||
28 | * @param {*} title | ||
29 | * @param {*} editItem | ||
30 | * @param {*} data | ||
31 | * @param {*} formData | ||
32 | * @author: renchao | ||
33 | */ | ||
22 | const Popup1 = (title, editItem, data, formData) => { | 34 | const Popup1 = (title, editItem, data, formData) => { |
23 | // 如果组件已渲染,则返回即可 | 35 | // 如果组件已渲染,则返回即可 |
24 | if (popuping) { | 36 | if (popuping) { | ... | ... |
... | @@ -74,9 +74,17 @@ | ... | @@ -74,9 +74,17 @@ |
74 | }, 300) | 74 | }, 300) |
75 | }, | 75 | }, |
76 | methods: { | 76 | methods: { |
77 | /** | ||
78 | * @description: onCancel | ||
79 | * @author: renchao | ||
80 | */ | ||
77 | onCancel () { | 81 | onCancel () { |
78 | Popup1().close() | 82 | Popup1().close() |
79 | }, | 83 | }, |
84 | /** | ||
85 | * @description: onConfirm | ||
86 | * @author: renchao | ||
87 | */ | ||
80 | onConfirm () { | 88 | onConfirm () { |
81 | this.loading = true | 89 | this.loading = true |
82 | let res = new Promise((resolve, reject) => { | 90 | let res = new Promise((resolve, reject) => { |
... | @@ -87,9 +95,19 @@ | ... | @@ -87,9 +95,19 @@ |
87 | this.isShow = false | 95 | this.isShow = false |
88 | } | 96 | } |
89 | }, | 97 | }, |
98 | /** | ||
99 | * @description: loadingFn | ||
100 | * @param {*} e | ||
101 | * @author: renchao | ||
102 | */ | ||
90 | loadingFn (e) { //加载状态 | 103 | loadingFn (e) { //加载状态 |
91 | this.loading = e | 104 | this.loading = e |
92 | }, | 105 | }, |
106 | /** | ||
107 | * @description: loadViewFn | ||
108 | * @param {*} view | ||
109 | * @author: renchao | ||
110 | */ | ||
93 | loadViewFn (view) { | 111 | loadViewFn (view) { |
94 | return (r) => | 112 | return (r) => |
95 | require.ensure([], () => | 113 | require.ensure([], () => | ... | ... |
... | @@ -66,6 +66,10 @@ | ... | @@ -66,6 +66,10 @@ |
66 | }, | 66 | }, |
67 | methods: { | 67 | methods: { |
68 | // 初始化值 | 68 | // 初始化值 |
69 | /** | ||
70 | * @description: 初始化值 | ||
71 | * @author: renchao | ||
72 | */ | ||
69 | initHandle () { | 73 | initHandle () { |
70 | if (this.valueId && this.options.length!=0) { | 74 | if (this.valueId && this.options.length!=0) { |
71 | this.valueTitle = this.$refs.selectTree.getNode(this.valueId).data[ | 75 | this.valueTitle = this.$refs.selectTree.getNode(this.valueId).data[ |
... | @@ -77,6 +81,10 @@ | ... | @@ -77,6 +81,10 @@ |
77 | this.initScroll() | 81 | this.initScroll() |
78 | }, | 82 | }, |
79 | // 初始化滚动条 | 83 | // 初始化滚动条 |
84 | /** | ||
85 | * @description: 初始化滚动条 | ||
86 | * @author: renchao | ||
87 | */ | ||
80 | initScroll () { | 88 | initScroll () { |
81 | this.$nextTick(() => { | 89 | this.$nextTick(() => { |
82 | let scrollWrap = document.querySelectorAll( | 90 | let scrollWrap = document.querySelectorAll( |
... | @@ -91,6 +99,11 @@ | ... | @@ -91,6 +99,11 @@ |
91 | }) | 99 | }) |
92 | }, | 100 | }, |
93 | // 切换选项 | 101 | // 切换选项 |
102 | /** | ||
103 | * @description: 切换选项 | ||
104 | * @param {*} node | ||
105 | * @author: renchao | ||
106 | */ | ||
94 | handleNodeClick (node) { | 107 | handleNodeClick (node) { |
95 | this.valueId = node[this.props.value] | 108 | this.valueId = node[this.props.value] |
96 | this.valueTitle = node[this.props.label] | 109 | this.valueTitle = node[this.props.label] |
... | @@ -122,6 +135,10 @@ | ... | @@ -122,6 +135,10 @@ |
122 | // return temp | 135 | // return temp |
123 | // }, | 136 | // }, |
124 | // 清除选中 | 137 | // 清除选中 |
138 | /** | ||
139 | * @description: 清除选中 | ||
140 | * @author: renchao | ||
141 | */ | ||
125 | clearHandle () { | 142 | clearHandle () { |
126 | this.valueTitle = '' | 143 | this.valueTitle = '' |
127 | this.valueId = null | 144 | this.valueId = null |
... | @@ -130,10 +147,20 @@ | ... | @@ -130,10 +147,20 @@ |
130 | this.$emit('getValue', null) | 147 | this.$emit('getValue', null) |
131 | }, | 148 | }, |
132 | /* 清空选中样式 */ | 149 | /* 清空选中样式 */ |
150 | /** | ||
151 | * @description: 清空选中样式 | ||
152 | * @author: renchao | ||
153 | */ | ||
133 | clearSelected () { | 154 | clearSelected () { |
134 | let allNode = document.querySelectorAll('#tree-option .el-tree-node') | 155 | let allNode = document.querySelectorAll('#tree-option .el-tree-node') |
135 | allNode.forEach((element) => element.classList.remove('is-current')) | 156 | allNode.forEach((element) => element.classList.remove('is-current')) |
136 | }, | 157 | }, |
158 | /** | ||
159 | * @description: filterNode | ||
160 | * @param {*} value | ||
161 | * @param {*} data | ||
162 | * @author: renchao | ||
163 | */ | ||
137 | filterNode (value, data) { | 164 | filterNode (value, data) { |
138 | if (!value) return true | 165 | if (!value) return true |
139 | return data.name.indexOf(value) !== -1 | 166 | return data.name.indexOf(value) !== -1 | ... | ... |
1 | /* | ||
2 | * FileName: lb-column.vue | ||
3 | * Remark: element-column | ||
4 | * Project: lb-element-table | ||
5 | * Author: 任超 | ||
6 | * File Created: Tuesday, 19th March 2019 9:58:23 am | ||
7 | * Last Modified: Tuesday, 19th March 2019 10:14:42 am | ||
8 | * Modified By: 任超 | ||
9 | */ | ||
10 | |||
11 | <template> | ||
12 | <el-table-column v-bind="$attrs" v-on="$listeners" :prop="column.prop" :label="column.label" :type="column.type" | ||
13 | :index="column.index" :column-key="column.columnKey" :width="column.width" :min-width="column.minWidth" | ||
14 | :fixed="column.fixed" :scoped-slot="column.renderHeader" :sortable="column.sortable || false" | ||
15 | :sort-method="column.sortMethod" :sort-by="column.sortBy" :sort-orders="column.sortOrders" | ||
16 | :resizable="column.resizable || true" :formatter="column.formatter" | ||
17 | :show-overflow-tooltip="column.showOverflowTooltip || false" :align="column.align || align || 'center'" | ||
18 | :header-align="column.headerAlign || headerAlign || column.align || align || 'center'" | ||
19 | :class-name="column.className" :label-class-name="column.labelClassName" :selectable="column.selectable" | ||
20 | :reserve-selection="column.reserveSelection || false" :filters="column.filters" | ||
21 | :filter-placement="column.filterPlacement" :filter-multiple="column.filterMultiple" | ||
22 | :filter-method="column.filterMethod" :filtered-value="column.filteredValue"> | ||
23 | <template slot="header" slot-scope="scope"> | ||
24 | <lb-render v-if="column.renderHeader" :scope="scope" :render="column.renderHeader"> | ||
25 | </lb-render> | ||
26 | <span v-else>{{ scope.column.label }}</span> | ||
27 | </template> | ||
28 | |||
29 | <template slot-scope="scope"> | ||
30 | <lb-render :scope="scope" :render="column.render"> | ||
31 | </lb-render> | ||
32 | </template> | ||
33 | |||
34 | <template v-if="column.children"> | ||
35 | <lb-column v-for="(col, index) in column.children" :key="index" :column="col"> | ||
36 | </lb-column> | ||
37 | </template> | ||
38 | </el-table-column> | ||
39 | </template> | ||
40 | |||
41 | <script> | ||
42 | import LbRender from './LbRender' | ||
43 | import forced from './forced.js' | ||
44 | export default { | ||
45 | name: 'LbColumn', | ||
46 | props: { | ||
47 | column: Object, | ||
48 | headerAlign: String, | ||
49 | align: String | ||
50 | }, | ||
51 | components: { | ||
52 | LbRender | ||
53 | }, | ||
54 | methods: { | ||
55 | setColumn () { | ||
56 | if (this.column.type) { | ||
57 | this.column.renderHeader = forced[this.column.type].renderHeader | ||
58 | this.column.render = this.column.render || forced[this.column.type].renderCell | ||
59 | } | ||
60 | if (this.column.formatter) { | ||
61 | this.column.render = (h, scope) => { | ||
62 | return <span>{scope.column.formatter(scope.row, scope.column, scope.row, scope.$index)}</span> | ||
63 | } | ||
64 | } | ||
65 | if (!this.column.render) { | ||
66 | this.column.render = (h, scope) => { | ||
67 | return <span>{scope.row[scope.column.property]}</span> | ||
68 | } | ||
69 | } | ||
70 | } | ||
71 | }, | ||
72 | watch: { | ||
73 | column: { | ||
74 | handler () { | ||
75 | this.setColumn() | ||
76 | }, | ||
77 | immediate: true | ||
78 | } | ||
79 | } | ||
80 | } | ||
81 | </script> |
1 | /* | ||
2 | * FileName: lb-render.vue | ||
3 | * Remark: 自定义render | ||
4 | * Project: lb-element-table | ||
5 | * Author: 任超 | ||
6 | * File Created: Tuesday, 19th March 2019 10:15:30 am | ||
7 | * Last Modified: Tuesday, 19th March 2019 10:15:32 am | ||
8 | * Modified By: 任超 | ||
9 | */ | ||
10 | <script> | ||
11 | export default { | ||
12 | name: 'LbRender', | ||
13 | functional: true, | ||
14 | props: { | ||
15 | scope: Object, | ||
16 | render: Function | ||
17 | }, | ||
18 | render: (h, ctx) => { | ||
19 | return ctx.props.render ? ctx.props.render(h, ctx.props.scope) : '' | ||
20 | } | ||
21 | } | ||
22 | </script> |
src/components/downLbTable/forced.js
deleted
100644 → 0
1 | export default { | ||
2 | selection: { | ||
3 | renderHeader: (h, { store }) => { | ||
4 | return ( | ||
5 | <el-checkbox | ||
6 | disabled={store.states.data && store.states.data.length === 0} | ||
7 | indeterminate={ | ||
8 | store.states.selection.length > 0 && !store.states.isAllSelected | ||
9 | } | ||
10 | nativeOn-click={store.toggleAllSelection} | ||
11 | value={store.states.isAllSelected} | ||
12 | /> | ||
13 | ) | ||
14 | }, | ||
15 | renderCell: (h, { row, column, store, $index }) => { | ||
16 | return ( | ||
17 | <el-checkbox | ||
18 | nativeOn-click={event => event.stopPropagation()} | ||
19 | value={store.isSelected(row)} | ||
20 | disabled={ | ||
21 | column.selectable | ||
22 | ? !column.selectable.call(null, row, $index) | ||
23 | : false | ||
24 | } | ||
25 | on-input={() => { | ||
26 | store.commit('rowSelectedChanged', row) | ||
27 | }} | ||
28 | /> | ||
29 | ) | ||
30 | }, | ||
31 | sortable: false, | ||
32 | resizable: false | ||
33 | }, | ||
34 | index: { | ||
35 | renderHeader: (h, scope) => { | ||
36 | return <span>{scope.column.label || '#'}</span> | ||
37 | }, | ||
38 | renderCell: (h, { $index, column }) => { | ||
39 | let i = $index + 1 | ||
40 | const index = column.index | ||
41 | |||
42 | if (typeof index === 'number') { | ||
43 | i = $index + index | ||
44 | } else if (typeof index === 'function') { | ||
45 | i = index($index) | ||
46 | } | ||
47 | |||
48 | return <div>{i}</div> | ||
49 | }, | ||
50 | sortable: false | ||
51 | }, | ||
52 | expand: { | ||
53 | renderHeader: (h, scope) => { | ||
54 | return <span>{scope.column.label || ''}</span> | ||
55 | }, | ||
56 | renderCell: (h, { row, store }, proxy) => { | ||
57 | const expanded = store.states.expandRows.indexOf(row) > -1 | ||
58 | return ( | ||
59 | <div | ||
60 | class={ | ||
61 | 'el-table__expand-icon ' + | ||
62 | (expanded ? 'el-table__expand-icon--expanded' : '') | ||
63 | } | ||
64 | on-click={e => proxy.handleExpandClick(row, e)} | ||
65 | > | ||
66 | <i class='el-icon el-icon-arrow-right' /> | ||
67 | </div> | ||
68 | ) | ||
69 | }, | ||
70 | sortable: false, | ||
71 | resizable: false, | ||
72 | className: 'el-table__expand-column' | ||
73 | } | ||
74 | } |
src/components/downLbTable/index.vue
deleted
100644 → 0
1 | /* | ||
2 | * FileName: lb-table.vue | ||
3 | * Remark: element table | ||
4 | * Project: lb-element-table | ||
5 | * Author: 任超 | ||
6 | * File Created: Tuesday, 19th March 2019 9:55:27 am | ||
7 | * Last Modified: Tuesday, 19th March 2019 9:55:34 am | ||
8 | * Modified By: 任超 | ||
9 | */ | ||
10 | |||
11 | <template> | ||
12 | <div :class="['lb-table', customClass]"> | ||
13 | <el-table v-if="!heightNumSetting" class="table-fixed" :row-style="{ height: '50px' }" ref="elTable" :border='border' | ||
14 | :row-class-name="tableRowClassName" :show-header='showHeader' @row-click="singleElection" v-bind="$attrs" | ||
15 | :height="tableHeight" v-on="$listeners" :data="data" style="width: 100%" | ||
16 | :span-method="this.merge ? this.mergeMethod : this.spanMethod"> | ||
17 | <el-table-column width="45" align="center" v-if="isRadio"> | ||
18 | <template slot-scope="scope"> | ||
19 | <el-radio v-model="selected" :label="scope.$index"></el-radio> | ||
20 | </template> | ||
21 | </el-table-column> | ||
22 | |||
23 | <el-table-column :label="downTitle" align="center"> | ||
24 | <lb-column v-bind="$attrs" v-for="(item, index) in column" :key="index" :column="item"> | ||
25 | </lb-column> | ||
26 | </el-table-column> | ||
27 | </el-table> | ||
28 | <br> | ||
29 | <el-pagination class="lb-table-pagination" v-if="pagination" v-bind="$attrs" v-on="$listeners" background | ||
30 | layout="total, prev, pager, next" @current-change="paginationCurrentChange" | ||
31 | :style="{ 'margin-top': paginationTop, 'text-align': paginationAlign }"> | ||
32 | </el-pagination> | ||
33 | </div> | ||
34 | </template> | ||
35 | |||
36 | <script> | ||
37 | import LbColumn from './LbColumn' | ||
38 | export default { | ||
39 | props: { | ||
40 | column: Array, | ||
41 | data: Array, | ||
42 | spanMethod: Function, | ||
43 | pagination: { | ||
44 | type: Boolean, | ||
45 | default: true, | ||
46 | }, | ||
47 | downExcel: { | ||
48 | type: Boolean, | ||
49 | default: false, | ||
50 | }, | ||
51 | downTitle: { | ||
52 | type: String, | ||
53 | default: '标题' | ||
54 | }, | ||
55 | isRadio: { | ||
56 | type: Boolean, | ||
57 | default: false, | ||
58 | }, | ||
59 | border: { | ||
60 | type: Boolean, | ||
61 | default: false, | ||
62 | }, | ||
63 | showHeader: { | ||
64 | type: Boolean, | ||
65 | default: true, | ||
66 | }, | ||
67 | paginationTop: { | ||
68 | type: String, | ||
69 | default: '0', | ||
70 | }, | ||
71 | heightNum: { | ||
72 | type: Number, | ||
73 | default: 355, | ||
74 | }, | ||
75 | maxHeight: { | ||
76 | type: Number, | ||
77 | default: 500 | ||
78 | }, | ||
79 | heightNumSetting: { | ||
80 | type: Boolean, | ||
81 | default: false, | ||
82 | }, | ||
83 | customClass: { | ||
84 | type: String, | ||
85 | default: '', | ||
86 | }, | ||
87 | paginationAlign: { | ||
88 | type: String, | ||
89 | default: 'left', | ||
90 | }, | ||
91 | merge: Array, | ||
92 | }, | ||
93 | components: { | ||
94 | LbColumn, | ||
95 | }, | ||
96 | data () { | ||
97 | return { | ||
98 | tableHeight: 'auto', | ||
99 | mergeLine: {}, | ||
100 | mergeIndex: {}, | ||
101 | selected: '' | ||
102 | } | ||
103 | }, | ||
104 | created () { | ||
105 | this.getMergeArr(this.data, this.merge) | ||
106 | this.getHeight() | ||
107 | }, | ||
108 | computed: { | ||
109 | dataLength () { | ||
110 | return [] || this.data.length | ||
111 | }, | ||
112 | }, | ||
113 | methods: { | ||
114 | // 单选 | ||
115 | singleElection (row) { | ||
116 | this.selected = this.data.indexOf(row); | ||
117 | }, | ||
118 | |||
119 | tableRowClassName ({ row, rowIndex }) { | ||
120 | if (rowIndex % 2 === 1) { | ||
121 | return 'interlaced'; | ||
122 | } | ||
123 | }, | ||
124 | getHeight () { | ||
125 | if (!this.heightNumSetting) { | ||
126 | let _this = this | ||
127 | if (this.heightNum) { | ||
128 | _this.$nextTick(() => { | ||
129 | |||
130 | window.addEventListener('resize', () => { | ||
131 | _this.tableHeight = _this.calcHeightx(230) | ||
132 | }); | ||
133 | _this.tableHeight = _this.calcHeightx(230) | ||
134 | }) | ||
135 | } else { | ||
136 | _this.tableHeight = window.innerHeight - _this.heightNum | ||
137 | } | ||
138 | } | ||
139 | }, | ||
140 | calcHeightx (value, wappered = true) { | ||
141 | //项目自定义的公共header部分的高度,可忽略 | ||
142 | let header = document.querySelector(".from-clues-header").offsetHeight; | ||
143 | //value为动态计算table界面高度时,减去的其他空白部分,需自行在调试找到临界值,剩下的就是table表格的高度(包含header+body部分) | ||
144 | value = value == undefined ? 100 : value; | ||
145 | let res = window.innerHeight - parseInt(header) - value; | ||
146 | if (wappered) { | ||
147 | //通过原生方法,获取dom节点的高度------获取element-ui table表格body的元素 | ||
148 | let wapper = window.document.getElementsByClassName('el-table__body-wrapper'); | ||
149 | //通过原生方法,获取dom节点的高度------获取element-ui table表格header的元素 | ||
150 | let header = window.document.getElementsByClassName('el-table__header-wrapper'); | ||
151 | //必须加延时,要不然赋不上去值 | ||
152 | setTimeout(() => { | ||
153 | //通过上边计算得到的table高度的value值,减去table表格的header高度,剩下的通过dom节点直接强行赋给table表格的body | ||
154 | wapper[0].style.height = (value - header[0].clientHeight) | ||
155 | }, 100) | ||
156 | } | ||
157 | return res; | ||
158 | }, | ||
159 | clearSelection () { | ||
160 | this.$refs.elTable.clearSelection() | ||
161 | }, | ||
162 | toggleRowSelection (row, selected) { | ||
163 | this.$refs.elTable.toggleRowSelection(row, selected) | ||
164 | }, | ||
165 | toggleAllSelection () { | ||
166 | this.$refs.elTable.toggleAllSelection() | ||
167 | }, | ||
168 | toggleRowExpansion (row, expanded) { | ||
169 | this.$refs.elTable.toggleRowExpansion(row, expanded) | ||
170 | }, | ||
171 | setCurrentRow (row) { | ||
172 | this.$refs.elTable.setCurrentRow(row) | ||
173 | }, | ||
174 | clearSort () { | ||
175 | this.$refs.elTable.clearSort() | ||
176 | }, | ||
177 | clearFilter (columnKey) { | ||
178 | this.$refs.elTable.clearFilter(columnKey) | ||
179 | }, | ||
180 | doLayout () { | ||
181 | this.$refs.elTable.doLayout() | ||
182 | }, | ||
183 | sort (prop, order) { | ||
184 | this.$refs.elTable.sort(prop, order) | ||
185 | }, | ||
186 | paginationCurrentChange (val) { | ||
187 | this.$emit('p-current-change', val) | ||
188 | }, | ||
189 | getMergeArr (tableData, merge) { | ||
190 | if (!merge) return | ||
191 | this.mergeLine = {} | ||
192 | this.mergeIndex = {} | ||
193 | merge.forEach((item, k) => { | ||
194 | tableData.forEach((data, i) => { | ||
195 | if (i === 0) { | ||
196 | this.mergeIndex[item] = this.mergeIndex[item] || [] | ||
197 | this.mergeIndex[item].push(1) | ||
198 | this.mergeLine[item] = 0 | ||
199 | } else { | ||
200 | if (data[item] === tableData[i - 1][item]) { | ||
201 | this.mergeIndex[item][this.mergeLine[item]] += 1 | ||
202 | this.mergeIndex[item].push(0) | ||
203 | } else { | ||
204 | this.mergeIndex[item].push(1) | ||
205 | this.mergeLine[item] = i | ||
206 | } | ||
207 | } | ||
208 | }) | ||
209 | }) | ||
210 | }, | ||
211 | mergeMethod ({ row, column, rowIndex, columnIndex }) { | ||
212 | const index = this.merge.indexOf(column.property) | ||
213 | if (index > -1) { | ||
214 | const _row = this.mergeIndex[this.merge[index]][rowIndex] | ||
215 | const _col = _row > 0 ? 1 : 0 | ||
216 | return { | ||
217 | rowspan: _row, | ||
218 | colspan: _col, | ||
219 | } | ||
220 | } | ||
221 | }, | ||
222 | }, | ||
223 | watch: { | ||
224 | merge () { | ||
225 | this.getMergeArr(this.data, this.merge) | ||
226 | }, | ||
227 | dataLength () { | ||
228 | this.getMergeArr(this.data, this.merge) | ||
229 | } | ||
230 | }, | ||
231 | } | ||
232 | </script> | ||
233 | <style rel="stylesheet/scss" scoped lang="scss"> | ||
234 | .lb-table { | ||
235 | margin-top: 1px; | ||
236 | |||
237 | .interlaced { | ||
238 | background: #fafcff; | ||
239 | border: 1px solid #ebf2fa; | ||
240 | } | ||
241 | } | ||
242 | |||
243 | /deep/.el-table .cell { | ||
244 | padding-left: 3px; | ||
245 | padding-right: 3px; | ||
246 | } | ||
247 | |||
248 | /deep/.el-radio__label { | ||
249 | display: none; | ||
250 | } | ||
251 | </style> |
src/components/downLbTable/redeme.md
deleted
100644 → 0
1 | export const theme = { | 1 | export const theme = { |
2 | /** | ||
3 | * @description: bind | ||
4 | * @param {*} el | ||
5 | * @param {*} binding | ||
6 | * @param {*} vnode | ||
7 | * @author: renchao | ||
8 | */ | ||
2 | bind: function (el, binding, vnode) { | 9 | bind: function (el, binding, vnode) { |
3 | setEleStyleColorAttribute(el, binding); | 10 | setEleStyleColorAttribute(el, binding); |
4 | }, | 11 | }, |
12 | /** | ||
13 | * @description: update | ||
14 | * @param {*} el | ||
15 | * @param {*} binding | ||
16 | * @param {*} vnode | ||
17 | * @author: renchao | ||
18 | */ | ||
5 | update: function (el, binding, vnode) { | 19 | update: function (el, binding, vnode) { |
6 | setEleStyleColorAttribute(el, binding); | 20 | setEleStyleColorAttribute(el, binding); |
7 | }, | 21 | }, |
22 | /** | ||
23 | * @description: componentUpdated | ||
24 | * @param {*} el | ||
25 | * @param {*} binding | ||
26 | * @param {*} vnode | ||
27 | * @author: renchao | ||
28 | */ | ||
8 | componentUpdated: function (el, binding, vnode) { | 29 | componentUpdated: function (el, binding, vnode) { |
9 | setEleStyleColorAttribute(el, binding); | 30 | setEleStyleColorAttribute(el, binding); |
10 | } | 31 | } |
11 | } | 32 | } |
12 | 33 | ||
34 | /** | ||
35 | * @description: setEleStyleColorAttribute | ||
36 | * @param {*} el | ||
37 | * @param {*} binding | ||
38 | * @author: renchao | ||
39 | */ | ||
13 | function setEleStyleColorAttribute (el, binding) { | 40 | function setEleStyleColorAttribute (el, binding) { |
14 | const { name, value, arg, expression, modifiers } = binding; | 41 | const { name, value, arg, expression, modifiers } = binding; |
15 | const { background, font, border } = modifiers; | 42 | const { background, font, border } = modifiers; | ... | ... |
... | @@ -10,6 +10,10 @@ export default { | ... | @@ -10,6 +10,10 @@ export default { |
10 | this.fixBugIniOS() | 10 | this.fixBugIniOS() |
11 | }, | 11 | }, |
12 | methods: { | 12 | methods: { |
13 | /** | ||
14 | * @description: fixBugIniOS | ||
15 | * @author: renchao | ||
16 | */ | ||
13 | fixBugIniOS() { | 17 | fixBugIniOS() { |
14 | const $subMenu = this.$refs.subMenu | 18 | const $subMenu = this.$refs.subMenu |
15 | if ($subMenu) { | 19 | if ($subMenu) { | ... | ... |
... | @@ -53,6 +53,12 @@ export default { | ... | @@ -53,6 +53,12 @@ export default { |
53 | return {} | 53 | return {} |
54 | }, | 54 | }, |
55 | methods: { | 55 | methods: { |
56 | /** | ||
57 | * @description: hasOneShowingChild | ||
58 | * @param {*} children | ||
59 | * @param {*} parent | ||
60 | * @author: renchao | ||
61 | */ | ||
56 | hasOneShowingChild (children = [], parent) { | 62 | hasOneShowingChild (children = [], parent) { |
57 | const showingChildren = children.filter(item => { | 63 | const showingChildren = children.filter(item => { |
58 | if (item.hidden) { | 64 | if (item.hidden) { |
... | @@ -77,6 +83,11 @@ export default { | ... | @@ -77,6 +83,11 @@ export default { |
77 | 83 | ||
78 | return false | 84 | return false |
79 | }, | 85 | }, |
86 | /** | ||
87 | * @description: resolvePath | ||
88 | * @param {*} routePath | ||
89 | * @author: renchao | ||
90 | */ | ||
80 | resolvePath (routePath) { | 91 | resolvePath (routePath) { |
81 | if (isExternal(routePath)) { | 92 | if (isExternal(routePath)) { |
82 | return routePath | 93 | return routePath | ... | ... |
... | @@ -26,14 +26,28 @@ export default { | ... | @@ -26,14 +26,28 @@ export default { |
26 | this.scrollWrapper.removeEventListener('scroll', this.emitScroll) | 26 | this.scrollWrapper.removeEventListener('scroll', this.emitScroll) |
27 | }, | 27 | }, |
28 | methods: { | 28 | methods: { |
29 | /** | ||
30 | * @description: handleScroll | ||
31 | * @param {*} e | ||
32 | * @author: renchao | ||
33 | */ | ||
29 | handleScroll (e) { | 34 | handleScroll (e) { |
30 | const eventDelta = e.wheelDelta || -e.deltaY * 40 | 35 | const eventDelta = e.wheelDelta || -e.deltaY * 40 |
31 | const $scrollWrapper = this.scrollWrapper | 36 | const $scrollWrapper = this.scrollWrapper |
32 | $scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4 | 37 | $scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4 |
33 | }, | 38 | }, |
39 | /** | ||
40 | * @description: emitScroll | ||
41 | * @author: renchao | ||
42 | */ | ||
34 | emitScroll () { | 43 | emitScroll () { |
35 | this.$emit('scroll') | 44 | this.$emit('scroll') |
36 | }, | 45 | }, |
46 | /** | ||
47 | * @description: moveToTarget | ||
48 | * @param {*} currentTag | ||
49 | * @author: renchao | ||
50 | */ | ||
37 | moveToTarget (currentTag) { | 51 | moveToTarget (currentTag) { |
38 | const $container = this.$refs.scrollContainer.$el | 52 | const $container = this.$refs.scrollContainer.$el |
39 | const $containerWidth = $container.offsetWidth | 53 | const $containerWidth = $container.offsetWidth | ... | ... |
... | @@ -59,12 +59,28 @@ export default { | ... | @@ -59,12 +59,28 @@ export default { |
59 | this.addTags() | 59 | this.addTags() |
60 | }, | 60 | }, |
61 | methods: { | 61 | methods: { |
62 | /** | ||
63 | * @description: isActive | ||
64 | * @param {*} route | ||
65 | * @author: renchao | ||
66 | */ | ||
62 | isActive (route) { | 67 | isActive (route) { |
63 | return route.path === this.$route.path | 68 | return route.path === this.$route.path |
64 | }, | 69 | }, |
70 | /** | ||
71 | * @description: isAffix | ||
72 | * @param {*} tag | ||
73 | * @author: renchao | ||
74 | */ | ||
65 | isAffix (tag) { | 75 | isAffix (tag) { |
66 | return tag.meta && tag.meta.affix | 76 | return tag.meta && tag.meta.affix |
67 | }, | 77 | }, |
78 | /** | ||
79 | * @description: filterAffixTags | ||
80 | * @param {*} routes | ||
81 | * @param {*} basePath | ||
82 | * @author: renchao | ||
83 | */ | ||
68 | filterAffixTags (routes, basePath = '/') { | 84 | filterAffixTags (routes, basePath = '/') { |
69 | let tags = [] | 85 | let tags = [] |
70 | routes.forEach(route => { | 86 | routes.forEach(route => { |
... | @@ -86,6 +102,10 @@ export default { | ... | @@ -86,6 +102,10 @@ export default { |
86 | }) | 102 | }) |
87 | return tags | 103 | return tags |
88 | }, | 104 | }, |
105 | /** | ||
106 | * @description: initTags | ||
107 | * @author: renchao | ||
108 | */ | ||
89 | initTags () { | 109 | initTags () { |
90 | const affixTags = this.affixTags = this.filterAffixTags(this.routes) | 110 | const affixTags = this.affixTags = this.filterAffixTags(this.routes) |
91 | for (const tag of affixTags) { | 111 | for (const tag of affixTags) { |
... | @@ -95,6 +115,10 @@ export default { | ... | @@ -95,6 +115,10 @@ export default { |
95 | } | 115 | } |
96 | } | 116 | } |
97 | }, | 117 | }, |
118 | /** | ||
119 | * @description: addTags | ||
120 | * @author: renchao | ||
121 | */ | ||
98 | addTags () { | 122 | addTags () { |
99 | const { name } = this.$route | 123 | const { name } = this.$route |
100 | if (name) { | 124 | if (name) { |
... | @@ -102,6 +126,10 @@ export default { | ... | @@ -102,6 +126,10 @@ export default { |
102 | } | 126 | } |
103 | return false | 127 | return false |
104 | }, | 128 | }, |
129 | /** | ||
130 | * @description: moveToCurrentTag | ||
131 | * @author: renchao | ||
132 | */ | ||
105 | moveToCurrentTag () { | 133 | moveToCurrentTag () { |
106 | const tags = this.$refs.tag | 134 | const tags = this.$refs.tag |
107 | this.$nextTick(() => { | 135 | this.$nextTick(() => { |
... | @@ -117,6 +145,11 @@ export default { | ... | @@ -117,6 +145,11 @@ export default { |
117 | } | 145 | } |
118 | }) | 146 | }) |
119 | }, | 147 | }, |
148 | /** | ||
149 | * @description: refreshSelectedTag | ||
150 | * @param {*} view | ||
151 | * @author: renchao | ||
152 | */ | ||
120 | refreshSelectedTag (view) { | 153 | refreshSelectedTag (view) { |
121 | this.$store.dispatch('tagsView/delCachedView', view).then(() => { | 154 | this.$store.dispatch('tagsView/delCachedView', view).then(() => { |
122 | const { fullPath } = view | 155 | const { fullPath } = view |
... | @@ -127,6 +160,11 @@ export default { | ... | @@ -127,6 +160,11 @@ export default { |
127 | }) | 160 | }) |
128 | }) | 161 | }) |
129 | }, | 162 | }, |
163 | /** | ||
164 | * @description: closeSelectedTag | ||
165 | * @param {*} view | ||
166 | * @author: renchao | ||
167 | */ | ||
130 | closeSelectedTag (view) { | 168 | closeSelectedTag (view) { |
131 | this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => { | 169 | this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => { |
132 | if (this.isActive(view)) { | 170 | if (this.isActive(view)) { |
... | @@ -134,12 +172,21 @@ export default { | ... | @@ -134,12 +172,21 @@ export default { |
134 | } | 172 | } |
135 | }) | 173 | }) |
136 | }, | 174 | }, |
175 | /** | ||
176 | * @description: closeOthersTags | ||
177 | * @author: renchao | ||
178 | */ | ||
137 | closeOthersTags () { | 179 | closeOthersTags () { |
138 | this.$router.push(this.selectedTag) | 180 | this.$router.push(this.selectedTag) |
139 | this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => { | 181 | this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => { |
140 | this.moveToCurrentTag() | 182 | this.moveToCurrentTag() |
141 | }) | 183 | }) |
142 | }, | 184 | }, |
185 | /** | ||
186 | * @description: closeAllTags | ||
187 | * @param {*} view | ||
188 | * @author: renchao | ||
189 | */ | ||
143 | closeAllTags (view) { | 190 | closeAllTags (view) { |
144 | this.$store.dispatch('tagsView/delAllViews').then(({ visitedViews }) => { | 191 | this.$store.dispatch('tagsView/delAllViews').then(({ visitedViews }) => { |
145 | if (this.affixTags.some(tag => tag.path === view.path)) { | 192 | if (this.affixTags.some(tag => tag.path === view.path)) { |
... | @@ -148,6 +195,12 @@ export default { | ... | @@ -148,6 +195,12 @@ export default { |
148 | this.toLastView(visitedViews, view) | 195 | this.toLastView(visitedViews, view) |
149 | }) | 196 | }) |
150 | }, | 197 | }, |
198 | /** | ||
199 | * @description: toLastView | ||
200 | * @param {*} visitedViews | ||
201 | * @param {*} view | ||
202 | * @author: renchao | ||
203 | */ | ||
151 | toLastView (visitedViews, view) { | 204 | toLastView (visitedViews, view) { |
152 | const latestView = visitedViews.slice(-1)[0] | 205 | const latestView = visitedViews.slice(-1)[0] |
153 | if (latestView) { | 206 | if (latestView) { |
... | @@ -163,6 +216,12 @@ export default { | ... | @@ -163,6 +216,12 @@ export default { |
163 | } | 216 | } |
164 | } | 217 | } |
165 | }, | 218 | }, |
219 | /** | ||
220 | * @description: openMenu | ||
221 | * @param {*} tag | ||
222 | * @param {*} e | ||
223 | * @author: renchao | ||
224 | */ | ||
166 | openMenu (tag, e) { | 225 | openMenu (tag, e) { |
167 | const menuMinWidth = 105 | 226 | const menuMinWidth = 105 |
168 | const offsetLeft = this.$el.getBoundingClientRect().left // container margin left | 227 | const offsetLeft = this.$el.getBoundingClientRect().left // container margin left |
... | @@ -180,9 +239,17 @@ export default { | ... | @@ -180,9 +239,17 @@ export default { |
180 | this.visible = true | 239 | this.visible = true |
181 | this.selectedTag = tag | 240 | this.selectedTag = tag |
182 | }, | 241 | }, |
242 | /** | ||
243 | * @description: closeMenu | ||
244 | * @author: renchao | ||
245 | */ | ||
183 | closeMenu () { | 246 | closeMenu () { |
184 | this.visible = false | 247 | this.visible = false |
185 | }, | 248 | }, |
249 | /** | ||
250 | * @description: handleScroll | ||
251 | * @author: renchao | ||
252 | */ | ||
186 | handleScroll () { | 253 | handleScroll () { |
187 | this.closeMenu() | 254 | this.closeMenu() |
188 | } | 255 | } | ... | ... |
... | @@ -27,10 +27,19 @@ export default { | ... | @@ -27,10 +27,19 @@ export default { |
27 | methods: { | 27 | methods: { |
28 | // use $_ for mixins properties | 28 | // use $_ for mixins properties |
29 | // https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential | 29 | // https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential |
30 | /** | ||
31 | * @description: use $_ for mixins properties | ||
32 | * https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential | ||
33 | * @author: renchao | ||
34 | */ | ||
30 | $_isMobile() { | 35 | $_isMobile() { |
31 | const rect = body.getBoundingClientRect() | 36 | const rect = body.getBoundingClientRect() |
32 | return rect.width - 1 < WIDTH | 37 | return rect.width - 1 < WIDTH |
33 | }, | 38 | }, |
39 | /** | ||
40 | * @description: $_resizeHandler | ||
41 | * @author: renchao | ||
42 | */ | ||
34 | $_resizeHandler() { | 43 | $_resizeHandler() { |
35 | if (!document.hidden) { | 44 | if (!document.hidden) { |
36 | const isMobile = this.$_isMobile() | 45 | const isMobile = this.$_isMobile() | ... | ... |
... | @@ -32,6 +32,11 @@ export const TableListMixin = { | ... | @@ -32,6 +32,11 @@ export const TableListMixin = { |
32 | }, | 32 | }, |
33 | methods: { | 33 | methods: { |
34 | // 加载表格数据 | 34 | // 加载表格数据 |
35 | /** | ||
36 | * @description: 加载表格数据 | ||
37 | * @param {*} arg | ||
38 | * @author: renchao | ||
39 | */ | ||
35 | loadData(arg) { | 40 | loadData(arg) { |
36 | if (!this.tableUrl) { | 41 | if (!this.tableUrl) { |
37 | console.log('请设置tableUrl属性为接口地址!') | 42 | console.log('请设置tableUrl属性为接口地址!') |
... | @@ -63,22 +68,45 @@ export const TableListMixin = { | ... | @@ -63,22 +68,45 @@ export const TableListMixin = { |
63 | }) | 68 | }) |
64 | }, | 69 | }, |
65 | // 字典值配置 | 70 | // 字典值配置 |
71 | /** | ||
72 | * @description: 字典值配置 | ||
73 | * @author: renchao | ||
74 | */ | ||
66 | initDictConfig() { | 75 | initDictConfig() { |
67 | // console.log('假初始化字典值方法!') | 76 | // console.log('假初始化字典值方法!') |
68 | }, | 77 | }, |
69 | // 选择所有和取消所有 | 78 | // 选择所有和取消所有 |
79 | /** | ||
80 | * @description: 选择所有和取消所有 | ||
81 | * @param {*} checked | ||
82 | * @param {*} records | ||
83 | * @author: renchao | ||
84 | */ | ||
70 | selectAllEvent({ checked, records }) { | 85 | selectAllEvent({ checked, records }) { |
71 | this.selectionRows = records | 86 | this.selectionRows = records |
72 | }, | 87 | }, |
73 | // 选中节点 | 88 | // 选中节点 |
89 | /** | ||
90 | * @description: 选中节点 | ||
91 | * @param {*} records | ||
92 | * @author: renchao | ||
93 | */ | ||
74 | selectChangeEvent({ records }) { | 94 | selectChangeEvent({ records }) { |
75 | this.selectionRows = records | 95 | this.selectionRows = records |
76 | }, | 96 | }, |
77 | // 使用查询条件查询 | 97 | // 使用查询条件查询 |
98 | /** | ||
99 | * @description: 使用查询条件查询 | ||
100 | * @author: renchao | ||
101 | */ | ||
78 | searchQuery() { | 102 | searchQuery() { |
79 | this.loadData() | 103 | this.loadData() |
80 | }, | 104 | }, |
81 | // 获取查询条件 | 105 | // 获取查询条件 |
106 | /** | ||
107 | * @description: 获取查询条件 | ||
108 | * @author: renchao | ||
109 | */ | ||
82 | getQueryParams() { | 110 | getQueryParams() { |
83 | if (this.queryOptions !== '') { | 111 | if (this.queryOptions !== '') { |
84 | this.queryParam.queryOptions = JSON.stringify(this.queryOptions) | 112 | this.queryParam.queryOptions = JSON.stringify(this.queryOptions) |
... | @@ -86,17 +114,32 @@ export const TableListMixin = { | ... | @@ -86,17 +114,32 @@ export const TableListMixin = { |
86 | return this.$filterNullObj(this.queryParam) | 114 | return this.$filterNullObj(this.queryParam) |
87 | }, | 115 | }, |
88 | // 新增 | 116 | // 新增 |
117 | /** | ||
118 | * @description: 新增 | ||
119 | * @author: renchao | ||
120 | */ | ||
89 | handleAdd: function() { | 121 | handleAdd: function() { |
90 | this.$refs.dialogForm.add() | 122 | this.$refs.dialogForm.add() |
91 | this.$refs.dialogForm.title = '新增' | 123 | this.$refs.dialogForm.title = '新增' |
92 | }, | 124 | }, |
93 | // 修改 | 125 | // 修改 |
126 | /** | ||
127 | * @description: 修改 | ||
128 | * @param {*} record | ||
129 | * @author: renchao | ||
130 | */ | ||
94 | handleEdit: function(record) { | 131 | handleEdit: function(record) { |
95 | localStorage.setItem('record', JSON.stringify(record)) | 132 | localStorage.setItem('record', JSON.stringify(record)) |
96 | this.$refs.dialogForm.edit(record) | 133 | this.$refs.dialogForm.edit(record) |
97 | this.$refs.dialogForm.title = '修改' | 134 | this.$refs.dialogForm.title = '修改' |
98 | }, | 135 | }, |
99 | // 删除 | 136 | // 删除 |
137 | /** | ||
138 | * @description: 删除 | ||
139 | * @param {*} id | ||
140 | * @param {*} content | ||
141 | * @author: renchao | ||
142 | */ | ||
100 | handleDelete: function(id, content = '') { | 143 | handleDelete: function(id, content = '') { |
101 | this.$confirm( | 144 | this.$confirm( |
102 | `<div class="customer-message-wrapper"> | 145 | `<div class="customer-message-wrapper"> |
... | @@ -137,6 +180,10 @@ export const TableListMixin = { | ... | @@ -137,6 +180,10 @@ export const TableListMixin = { |
137 | .catch(() => {}) | 180 | .catch(() => {}) |
138 | }, | 181 | }, |
139 | // 批量删除 | 182 | // 批量删除 |
183 | /** | ||
184 | * @description: 批量删除 | ||
185 | * @author: renchao | ||
186 | */ | ||
140 | batchDel: function() { | 187 | batchDel: function() { |
141 | if (!this.tableUrl) { | 188 | if (!this.tableUrl) { |
142 | this.$message.error({ | 189 | this.$message.error({ |
... | @@ -174,10 +221,20 @@ export const TableListMixin = { | ... | @@ -174,10 +221,20 @@ export const TableListMixin = { |
174 | .catch(() => {}) | 221 | .catch(() => {}) |
175 | }, | 222 | }, |
176 | // 新增或修改成功时,重载列表 | 223 | // 新增或修改成功时,重载列表 |
224 | /** | ||
225 | * @description: 新增或修改成功时,重载列表 | ||
226 | * @author: renchao | ||
227 | */ | ||
177 | dialogFormOk() { | 228 | dialogFormOk() { |
178 | this.loadData() | 229 | this.loadData() |
179 | }, | 230 | }, |
180 | // 导出 | 231 | // 导出 |
232 | /** | ||
233 | * @description: 导出 | ||
234 | * @param {*} data | ||
235 | * @param {*} name | ||
236 | * @author: renchao | ||
237 | */ | ||
181 | handleExportXls(data, name) { | 238 | handleExportXls(data, name) { |
182 | if (name === '菜单' || name === '部门' || name === '机构' || | 239 | if (name === '菜单' || name === '部门' || name === '机构' || |
183 | name === '资源' || name === '资源分类' || name === '数据字典' || name === '行政区划') { | 240 | name === '资源' || name === '资源分类' || name === '数据字典' || name === '行政区划') { |
... | @@ -205,6 +262,10 @@ export const TableListMixin = { | ... | @@ -205,6 +262,10 @@ export const TableListMixin = { |
205 | } | 262 | } |
206 | }, | 263 | }, |
207 | /* 导入 */ | 264 | /* 导入 */ |
265 | /** | ||
266 | * @description: 导入 | ||
267 | * @author: renchao | ||
268 | */ | ||
208 | handleImportExcel(info) {} | 269 | handleImportExcel(info) {} |
209 | } | 270 | } |
210 | } | 271 | } | ... | ... |
... | @@ -16,8 +16,16 @@ let mixin = { | ... | @@ -16,8 +16,16 @@ let mixin = { |
16 | this.featchData() | 16 | this.featchData() |
17 | }, | 17 | }, |
18 | methods: { | 18 | methods: { |
19 | /** | ||
20 | * @description: featchData | ||
21 | * @author: renchao | ||
22 | */ | ||
19 | featchData () { | 23 | featchData () { |
20 | }, | 24 | }, |
25 | /** | ||
26 | * @description: verificationForm | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | verificationForm () { | 29 | verificationForm () { |
22 | return new Promise((resolve) => { | 30 | return new Promise((resolve) => { |
23 | this.$refs['formList'].validate((valid) => { | 31 | this.$refs['formList'].validate((valid) => { |
... | @@ -29,9 +37,17 @@ let mixin = { | ... | @@ -29,9 +37,17 @@ let mixin = { |
29 | }) | 37 | }) |
30 | }) | 38 | }) |
31 | }, | 39 | }, |
40 | /** | ||
41 | * @description: changeCertificate | ||
42 | * @author: renchao | ||
43 | */ | ||
32 | changeCertificate() { | 44 | changeCertificate() { |
33 | 45 | ||
34 | }, | 46 | }, |
47 | /** | ||
48 | * @description: featchRule | ||
49 | * @author: renchao | ||
50 | */ | ||
35 | async featchRule () { | 51 | async featchRule () { |
36 | try { | 52 | try { |
37 | let { result: { sysywsjbfieldlist } } = await ruleConfig.getRuleList(this.bsmYwsjb) | 53 | let { result: { sysywsjbfieldlist } } = await ruleConfig.getRuleList(this.bsmYwsjb) | ... | ... |
... | @@ -21,13 +21,27 @@ let mixin = { | ... | @@ -21,13 +21,27 @@ let mixin = { |
21 | }, | 21 | }, |
22 | methods: { | 22 | methods: { |
23 | // 表格索引得问题 | 23 | // 表格索引得问题 |
24 | /** | ||
25 | * @description: 表格索引得问题 | ||
26 | * @param {*} index | ||
27 | * @author: renchao | ||
28 | */ | ||
24 | indexMethod (index) { | 29 | indexMethod (index) { |
25 | return index + 1 + (this.form.currentPage - 1) * this.formData.pageSize; | 30 | return index + 1 + (this.form.currentPage - 1) * this.formData.pageSize; |
26 | }, | 31 | }, |
32 | /** | ||
33 | * @description: handleSizeChange | ||
34 | * @param {*} val | ||
35 | * @author: renchao | ||
36 | */ | ||
27 | handleSizeChange (val) { | 37 | handleSizeChange (val) { |
28 | this.formData.pageSize = val | 38 | this.formData.pageSize = val |
29 | this.featchData() | 39 | this.featchData() |
30 | }, | 40 | }, |
41 | /** | ||
42 | * @description: handleSearch | ||
43 | * @author: renchao | ||
44 | */ | ||
31 | handleSearch () { | 45 | handleSearch () { |
32 | this.form.currentPage = 1 | 46 | this.form.currentPage = 1 |
33 | this.tableData.data = [] | 47 | this.tableData.data = [] |
... | @@ -38,15 +52,29 @@ let mixin = { | ... | @@ -38,15 +52,29 @@ let mixin = { |
38 | this.queryClick() | 52 | this.queryClick() |
39 | } | 53 | } |
40 | }, | 54 | }, |
55 | /** | ||
56 | * @description: handleCurrentChange | ||
57 | * @param {*} val | ||
58 | * @author: renchao | ||
59 | */ | ||
41 | handleCurrentChange (val) { | 60 | handleCurrentChange (val) { |
42 | this.form.currentPage = val | 61 | this.form.currentPage = val |
43 | this.featchData() | 62 | this.featchData() |
44 | }, | 63 | }, |
64 | /** | ||
65 | * @description: handleSubmit | ||
66 | * @author: renchao | ||
67 | */ | ||
45 | handleSubmit () { | 68 | handleSubmit () { |
46 | this.tableData.data = [] | 69 | this.tableData.data = [] |
47 | this.featchData() | 70 | this.featchData() |
48 | }, | 71 | }, |
49 | // 详情 | 72 | // 详情 |
73 | /** | ||
74 | * @description: 详情 | ||
75 | * @param {*} row | ||
76 | * @author: renchao | ||
77 | */ | ||
50 | handleEdit (row) { | 78 | handleEdit (row) { |
51 | this.$refs.editLog.isShow(row); | 79 | this.$refs.editLog.isShow(row); |
52 | if (row.rectypeName) { | 80 | if (row.rectypeName) { |
... | @@ -70,6 +98,10 @@ let mixin = { | ... | @@ -70,6 +98,10 @@ let mixin = { |
70 | } | 98 | } |
71 | }, | 99 | }, |
72 | // 重置表单 | 100 | // 重置表单 |
101 | /** | ||
102 | * @description: 重置表单 | ||
103 | * @author: renchao | ||
104 | */ | ||
73 | resetForm () { | 105 | resetForm () { |
74 | if (!this.form) return | 106 | if (!this.form) return |
75 | Object.keys(this.form).forEach((key) => { | 107 | Object.keys(this.form).forEach((key) => { | ... | ... |
... | @@ -15,6 +15,11 @@ const mutations = { | ... | @@ -15,6 +15,11 @@ const mutations = { |
15 | } | 15 | } |
16 | 16 | ||
17 | const actions = { | 17 | const actions = { |
18 | /** | ||
19 | * @description: generateDic | ||
20 | * @param {*} commit | ||
21 | * @author: renchao | ||
22 | */ | ||
18 | generateDic ({ commit }) { | 23 | generateDic ({ commit }) { |
19 | return new Promise(async (resolve) => { | 24 | return new Promise(async (resolve) => { |
20 | let { result: res } = await getAllDict() | 25 | let { result: res } = await getAllDict() |
... | @@ -22,6 +27,11 @@ const actions = { | ... | @@ -22,6 +27,11 @@ const actions = { |
22 | resolve(true) | 27 | resolve(true) |
23 | }) | 28 | }) |
24 | }, | 29 | }, |
30 | /** | ||
31 | * @description: resetdict | ||
32 | * @param {*} commit | ||
33 | * @author: renchao | ||
34 | */ | ||
25 | resetdict ({ commit }) { | 35 | resetdict ({ commit }) { |
26 | commit('RESET_DICT') | 36 | commit('RESET_DICT') |
27 | } | 37 | } | ... | ... |
... | @@ -25,6 +25,12 @@ const mutations = { | ... | @@ -25,6 +25,12 @@ const mutations = { |
25 | } | 25 | } |
26 | const actions = { | 26 | const actions = { |
27 | // 添加全部菜单 | 27 | // 添加全部菜单 |
28 | /** | ||
29 | * @description: 添加全部菜单 | ||
30 | * @param {*} commit | ||
31 | * @param {*} getMenuInfo | ||
32 | * @author: renchao | ||
33 | */ | ||
28 | generateRoutes ({ commit }, getMenuInfo) { | 34 | generateRoutes ({ commit }, getMenuInfo) { |
29 | let Layout = r => require.ensure([], () => r(require(`@/layout`))) | 35 | let Layout = r => require.ensure([], () => r(require(`@/layout`))) |
30 | function asyncRouter (routers) { | 36 | function asyncRouter (routers) { |
... | @@ -63,11 +69,22 @@ const actions = { | ... | @@ -63,11 +69,22 @@ const actions = { |
63 | }) | 69 | }) |
64 | }, | 70 | }, |
65 | // 重置路由 | 71 | // 重置路由 |
72 | /** | ||
73 | * @description: 重置路由 | ||
74 | * @param {*} commit | ||
75 | * @author: renchao | ||
76 | */ | ||
66 | resetRoutes ({ commit }) { | 77 | resetRoutes ({ commit }) { |
67 | commit('RESET_ROUTE') | 78 | commit('RESET_ROUTE') |
68 | } | 79 | } |
69 | } | 80 | } |
70 | // 树转数组 | 81 | // 树转数组 |
82 | /** | ||
83 | * @description: 树转数组 | ||
84 | * @param {*} root | ||
85 | * @param {*} fVisit | ||
86 | * @author: renchao | ||
87 | */ | ||
71 | function dfs (root, fVisit) { | 88 | function dfs (root, fVisit) { |
72 | let stack = Array.isArray(root) ? [...root] : [root]; | 89 | let stack = Array.isArray(root) ? [...root] : [root]; |
73 | while (stack.length) { | 90 | while (stack.length) { |
... | @@ -81,6 +98,12 @@ function dfs (root, fVisit) { | ... | @@ -81,6 +98,12 @@ function dfs (root, fVisit) { |
81 | } | 98 | } |
82 | // 数组转树 | 99 | // 数组转树 |
83 | //需要插入父节点id,pid为null或'',就是找root节点,然后root节点再去找自己的子节点 | 100 | //需要插入父节点id,pid为null或'',就是找root节点,然后root节点再去找自己的子节点 |
101 | /** | ||
102 | * @description: 数组转树 | ||
103 | * @param {*} data | ||
104 | * @param {*} pid | ||
105 | * @author: renchao | ||
106 | */ | ||
84 | function array2Tree (data, pid) { | 107 | function array2Tree (data, pid) { |
85 | let res = []; | 108 | let res = []; |
86 | data.forEach(item => { | 109 | data.forEach(item => { | ... | ... |
... | @@ -20,6 +20,11 @@ const mutations = { | ... | @@ -20,6 +20,11 @@ const mutations = { |
20 | }; | 20 | }; |
21 | 21 | ||
22 | const actions = { | 22 | const actions = { |
23 | /** | ||
24 | * @description: getUserInfo | ||
25 | * @param {*} commit | ||
26 | * @author: renchao | ||
27 | */ | ||
23 | getUserInfo ({ commit }) { | 28 | getUserInfo ({ commit }) { |
24 | return new Promise(async (resolve) => { | 29 | return new Promise(async (resolve) => { |
25 | let { result: res } = await getUserInfo(); | 30 | let { result: res } = await getUserInfo(); |
... | @@ -27,6 +32,11 @@ const actions = { | ... | @@ -27,6 +32,11 @@ const actions = { |
27 | resolve(true); | 32 | resolve(true); |
28 | }); | 33 | }); |
29 | }, | 34 | }, |
35 | /** | ||
36 | * @description: resetState | ||
37 | * @param {*} commit | ||
38 | * @author: renchao | ||
39 | */ | ||
30 | resetState ({ commit }) { | 40 | resetState ({ commit }) { |
31 | commit("RESET_USER"); | 41 | commit("RESET_USER"); |
32 | }, | 42 | }, | ... | ... |
... | @@ -3,6 +3,10 @@ | ... | @@ -3,6 +3,10 @@ |
3 | var CreatedOKLodopObject, CLodopIsLocal, CLodopJsState; | 3 | var CreatedOKLodopObject, CLodopIsLocal, CLodopJsState; |
4 | 4 | ||
5 | //==判断是否需要CLodop(那些不支持插件的浏览器):== | 5 | //==判断是否需要CLodop(那些不支持插件的浏览器):== |
6 | /** | ||
7 | * @description: ==判断是否需要CLodop(那些不支持插件的浏览器):== | ||
8 | * @author: renchao | ||
9 | */ | ||
6 | function needCLodop () { | 10 | function needCLodop () { |
7 | try { | 11 | try { |
8 | var ua = navigator.userAgent; | 12 | var ua = navigator.userAgent; |
... | @@ -45,6 +49,10 @@ function needCLodop () { | ... | @@ -45,6 +49,10 @@ function needCLodop () { |
45 | } | 49 | } |
46 | 50 | ||
47 | //==加载引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):== | 51 | //==加载引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):== |
52 | /** | ||
53 | * @description: ==加载引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):== | ||
54 | * @author: renchao | ||
55 | */ | ||
48 | function loadCLodop () { | 56 | function loadCLodop () { |
49 | if (CLodopJsState == "loading" || CLodopJsState == "complete") return; | 57 | if (CLodopJsState == "loading" || CLodopJsState == "complete") return; |
50 | CLodopJsState = "loading"; | 58 | CLodopJsState = "loading"; |
... | @@ -63,7 +71,12 @@ function loadCLodop () { | ... | @@ -63,7 +71,12 @@ function loadCLodop () { |
63 | if (needCLodop()) { loadCLodop(); }//加载 | 71 | if (needCLodop()) { loadCLodop(); }//加载 |
64 | 72 | ||
65 | //==获取LODOP对象主过程,判断是否安装、需否升级:== | 73 | //==获取LODOP对象主过程,判断是否安装、需否升级:== |
66 | 74 | /** | |
75 | * @description: ==获取LODOP对象主过程,判断是否安装、需否升级:== | ||
76 | * @param {*} oOBJECT | ||
77 | * @param {*} oEMBED | ||
78 | * @author: renchao | ||
79 | */ | ||
67 | export function getLodop (oOBJECT, oEMBED) { | 80 | export function getLodop (oOBJECT, oEMBED) { |
68 | var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"; | 81 | var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"; |
69 | var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>"; | 82 | var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>"; | ... | ... |
... | @@ -12,6 +12,11 @@ if (ApiUrl.THEME == 'sb') { | ... | @@ -12,6 +12,11 @@ if (ApiUrl.THEME == 'sb') { |
12 | Layout = r => require.ensure([], () => r(require(`@/layout`))) | 12 | Layout = r => require.ensure([], () => r(require(`@/layout`))) |
13 | } | 13 | } |
14 | 14 | ||
15 | /** | ||
16 | * @description: filterAsyncRouter | ||
17 | * @param {*} routers | ||
18 | * @author: renchao | ||
19 | */ | ||
15 | export default function filterAsyncRouter (routers) { | 20 | export default function filterAsyncRouter (routers) { |
16 | routers.forEach(item => { | 21 | routers.forEach(item => { |
17 | if (!item.children) { | 22 | if (!item.children) { |
... | @@ -32,6 +37,11 @@ export default function filterAsyncRouter (routers) { | ... | @@ -32,6 +37,11 @@ export default function filterAsyncRouter (routers) { |
32 | }) | 37 | }) |
33 | return routers | 38 | return routers |
34 | } | 39 | } |
40 | /** | ||
41 | * @description: loadView | ||
42 | * @param {*} view | ||
43 | * @author: renchao | ||
44 | */ | ||
35 | function loadView (view) { | 45 | function loadView (view) { |
36 | return r => require.ensure([], () => r(require(`@/views${view}.vue`))) | 46 | return r => require.ensure([], () => r(require(`@/views${view}.vue`))) |
37 | } | 47 | } | ... | ... |
... | @@ -28,6 +28,10 @@ export default { | ... | @@ -28,6 +28,10 @@ export default { |
28 | window.removeEventListener('resize', this.resize) | 28 | window.removeEventListener('resize', this.resize) |
29 | }, | 29 | }, |
30 | methods: { | 30 | methods: { |
31 | /** | ||
32 | * @description: calcRate | ||
33 | * @author: renchao | ||
34 | */ | ||
31 | calcRate () { | 35 | calcRate () { |
32 | const appRef = this.$refs["appRef"] | 36 | const appRef = this.$refs["appRef"] |
33 | if (!appRef) return | 37 | if (!appRef) return |
... | @@ -47,6 +51,10 @@ export default { | ... | @@ -47,6 +51,10 @@ export default { |
47 | } | 51 | } |
48 | } | 52 | } |
49 | }, | 53 | }, |
54 | /** | ||
55 | * @description: resize | ||
56 | * @author: renchao | ||
57 | */ | ||
50 | resize () { | 58 | resize () { |
51 | clearTimeout(this.drawTiming) | 59 | clearTimeout(this.drawTiming) |
52 | this.drawTiming = setTimeout(() => { | 60 | this.drawTiming = setTimeout(() => { | ... | ... |
... | @@ -2,17 +2,33 @@ import store from '@/store' | ... | @@ -2,17 +2,33 @@ import store from '@/store' |
2 | // table 内部过滤器 由于过滤器只能在模板中使用 所以 就有了 jsx内部方法过滤器 | 2 | // table 内部过滤器 由于过滤器只能在模板中使用 所以 就有了 jsx内部方法过滤器 |
3 | export default class filter { | 3 | export default class filter { |
4 | // 业务来源 | 4 | // 业务来源 |
5 | /** | ||
6 | * @description: 业务来源 | ||
7 | * @param {*} val | ||
8 | * @author: renchao | ||
9 | */ | ||
5 | busSource(val) { | 10 | busSource(val) { |
6 | let status = { 1: '办事大厅', 2: '微信小程序' } | 11 | let status = { 1: '办事大厅', 2: '微信小程序' } |
7 | return status[val] | 12 | return status[val] |
8 | } | 13 | } |
9 | 14 | ||
10 | //申请分类(1:正常申请,2:一并申请,3:补录申请) | 15 | //申请分类(1:正常申请,2:一并申请,3:补录申请) |
16 | /** | ||
17 | * @description: 申请分类(1:正常申请,2:一并申请,3:补录申请) | ||
18 | * @param {*} val | ||
19 | * @author: renchao | ||
20 | */ | ||
11 | sqfls(val) { | 21 | sqfls(val) { |
12 | let status = { 1: '正常申请', 2: '一并申请', 3: '补录申请' } | 22 | let status = { 1: '正常申请', 2: '一并申请', 3: '补录申请' } |
13 | return status[val] | 23 | return status[val] |
14 | } | 24 | } |
15 | // 字典 | 25 | // 字典 |
26 | /** | ||
27 | * @description: 字典 | ||
28 | * @param {*} val | ||
29 | * @param {*} code | ||
30 | * @author: renchao | ||
31 | */ | ||
16 | dicStatus(val, code) { | 32 | dicStatus(val, code) { |
17 | let data = store.getters.dicData[code], | 33 | let data = store.getters.dicData[code], |
18 | name = '' | 34 | name = '' |
... | @@ -25,6 +41,11 @@ export default class filter { | ... | @@ -25,6 +41,11 @@ export default class filter { |
25 | return name | 41 | return name |
26 | } | 42 | } |
27 | } | 43 | } |
44 | /** | ||
45 | * @description: stateStatus | ||
46 | * @param {*} val | ||
47 | * @author: renchao | ||
48 | */ | ||
28 | stateStatus(val) { | 49 | stateStatus(val) { |
29 | let index = val + 1; | 50 | let index = val + 1; |
30 | // -1 : 不存在 ,0 : 待激活,1:正常,2:暂停,3 : 出错, 4:阻塞 | 51 | // -1 : 不存在 ,0 : 待激活,1:正常,2:暂停,3 : 出错, 4:阻塞 | ... | ... |
... | @@ -7,6 +7,11 @@ | ... | @@ -7,6 +7,11 @@ |
7 | import Vue from 'vue' | 7 | import Vue from 'vue' |
8 | const title = Vue.prototype.BASE_API.TITLE | 8 | const title = Vue.prototype.BASE_API.TITLE |
9 | 9 | ||
10 | /** | ||
11 | * @description: getPageTitle | ||
12 | * @param {*} pageTitle | ||
13 | * @author: renchao | ||
14 | */ | ||
10 | export default function getPageTitle (pageTitle) { | 15 | export default function getPageTitle (pageTitle) { |
11 | if (pageTitle) { | 16 | if (pageTitle) { |
12 | return `${pageTitle} - ${title}` | 17 | return `${pageTitle} - ${title}` | ... | ... |
1 | /** | 1 | /** |
2 | * @description: debounce | ||
2 | * @param {Function} fn 防抖函数 | 3 | * @param {Function} fn 防抖函数 |
3 | * @param {Number} delay 延迟时间 | 4 | * @param {Number} delay 延迟时间 |
5 | * @author: renchao | ||
4 | */ | 6 | */ |
5 | export function debounce(fn, delay) { | 7 | export function debounce(fn, delay) { |
6 | var timer; | 8 | var timer; |
... | @@ -15,8 +17,10 @@ export function debounce(fn, delay) { | ... | @@ -15,8 +17,10 @@ export function debounce(fn, delay) { |
15 | } | 17 | } |
16 | 18 | ||
17 | /** | 19 | /** |
20 | * @description: formatTime | ||
18 | * @param {date} time 需要转换的时间 | 21 | * @param {date} time 需要转换的时间 |
19 | * @param {String} fmt 需要转换的格式 如 yyyy-MM-dd、yyyy-MM-dd HH:mm:ss | 22 | * @param {String} fmt 需要转换的格式 如 yyyy-MM-dd、yyyy-MM-dd HH:mm:ss |
23 | * @author: renchao | ||
20 | */ | 24 | */ |
21 | export function formatTime(time, fmt) { | 25 | export function formatTime(time, fmt) { |
22 | if (!time) return ''; | 26 | if (!time) return ''; | ... | ... |
... | @@ -18,23 +18,41 @@ export default { | ... | @@ -18,23 +18,41 @@ export default { |
18 | } | 18 | } |
19 | }, | 19 | }, |
20 | methods: { | 20 | methods: { |
21 | /** | ||
22 | * @description: handleSizeChange | ||
23 | * @param {*} val | ||
24 | * @author: renchao | ||
25 | */ | ||
21 | handleSizeChange (val) { | 26 | handleSizeChange (val) { |
22 | this.pageData.currentPage = 1 | 27 | this.pageData.currentPage = 1 |
23 | this.pageData.pageSize = val | 28 | this.pageData.pageSize = val |
24 | this.queryClick() | 29 | this.queryClick() |
25 | }, | 30 | }, |
31 | /** | ||
32 | * @description: handleCurrentChange | ||
33 | * @param {*} val | ||
34 | * @author: renchao | ||
35 | */ | ||
26 | handleCurrentChange (val) { | 36 | handleCurrentChange (val) { |
27 | this.pageData.currentPage = val | 37 | this.pageData.currentPage = val |
28 | if (this.queryClick) { | 38 | if (this.queryClick) { |
29 | this.queryClick() | 39 | this.queryClick() |
30 | } | 40 | } |
31 | }, | 41 | }, |
42 | /** | ||
43 | * @description: handleDel | ||
44 | * @author: renchao | ||
45 | */ | ||
32 | handleDel () { | 46 | handleDel () { |
33 | let deleteAfterPage = Math.ceil((this.tableData.total - 1) / this.pageData.pageSize) | 47 | let deleteAfterPage = Math.ceil((this.tableData.total - 1) / this.pageData.pageSize) |
34 | let currentPage = this.pageData.currentPage > deleteAfterPage ? deleteAfterPage : this.pageData.currentPage | 48 | let currentPage = this.pageData.currentPage > deleteAfterPage ? deleteAfterPage : this.pageData.currentPage |
35 | this.pageData.currentPage = currentPage < 1 ? 1 : currentPage | 49 | this.pageData.currentPage = currentPage < 1 ? 1 : currentPage |
36 | }, | 50 | }, |
37 | // 重置表单 | 51 | // 重置表单 |
52 | /** | ||
53 | * @description: 重置表单 | ||
54 | * @author: renchao | ||
55 | */ | ||
38 | resetForm () { | 56 | resetForm () { |
39 | if (!this.form) return | 57 | if (!this.form) return |
40 | Object.keys(this.form).forEach((key) => { | 58 | Object.keys(this.form).forEach((key) => { | ... | ... |
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-05-11 16:31:01 | ||
5 | */ | ||
1 | import { Message } from "element-ui"; | 6 | import { Message } from "element-ui"; |
7 | /** | ||
8 | * @description: removeTreeListItem | ||
9 | * @param {*} treeList | ||
10 | * @param {*} dictId | ||
11 | * @param {*} idName | ||
12 | * @author: renchao | ||
13 | */ | ||
2 | export function removeTreeListItem (treeList, dictId, idName = 'dictid') { | 14 | export function removeTreeListItem (treeList, dictId, idName = 'dictid') { |
3 | if (!treeList || !treeList.length) { | 15 | if (!treeList || !treeList.length) { |
4 | return | 16 | return |
... | @@ -12,6 +24,12 @@ export function removeTreeListItem (treeList, dictId, idName = 'dictid') { | ... | @@ -12,6 +24,12 @@ export function removeTreeListItem (treeList, dictId, idName = 'dictid') { |
12 | } | 24 | } |
13 | } | 25 | } |
14 | // 创造id | 26 | // 创造id |
27 | /** | ||
28 | * @description: 创造id | ||
29 | * @param {*} len | ||
30 | * @param {*} radix | ||
31 | * @author: renchao | ||
32 | */ | ||
15 | export function getUuid (len, radix) { | 33 | export function getUuid (len, radix) { |
16 | var chars = "0123456789abcdefghijklmnopqrstuvwxyz".split( | 34 | var chars = "0123456789abcdefghijklmnopqrstuvwxyz".split( |
17 | "" | 35 | "" |
... | @@ -34,6 +52,11 @@ export function getUuid (len, radix) { | ... | @@ -34,6 +52,11 @@ export function getUuid (len, radix) { |
34 | } | 52 | } |
35 | return uuid.join(""); | 53 | return uuid.join(""); |
36 | } | 54 | } |
55 | /** | ||
56 | * @description: judgeSort | ||
57 | * @param {*} arr | ||
58 | * @author: renchao | ||
59 | */ | ||
37 | export function judgeSort (arr) { | 60 | export function judgeSort (arr) { |
38 | if (arr.length) { | 61 | if (arr.length) { |
39 | for (let i in arr) { | 62 | for (let i in arr) { |
... | @@ -47,6 +70,13 @@ export function judgeSort (arr) { | ... | @@ -47,6 +70,13 @@ export function judgeSort (arr) { |
47 | return arr | 70 | return arr |
48 | } | 71 | } |
49 | // 上下移动 | 72 | // 上下移动 |
73 | /** | ||
74 | * @description: 上下移动 | ||
75 | * @param {*} bsmDict | ||
76 | * @param {*} operate | ||
77 | * @param {*} data | ||
78 | * @author: renchao | ||
79 | */ | ||
50 | export function realMove (bsmDict, operate, data) { | 80 | export function realMove (bsmDict, operate, data) { |
51 | function changeSort (arr, bsmDict) { | 81 | function changeSort (arr, bsmDict) { |
52 | if (arr.length) { | 82 | if (arr.length) { |
... | @@ -72,6 +102,12 @@ export function realMove (bsmDict, operate, data) { | ... | @@ -72,6 +102,12 @@ export function realMove (bsmDict, operate, data) { |
72 | data = judgeSort(changeSort(data, bsmDict)); | 102 | data = judgeSort(changeSort(data, bsmDict)); |
73 | } | 103 | } |
74 | // 获取所有父节点 | 104 | // 获取所有父节点 |
105 | /** | ||
106 | * @description: 获取所有父节点 | ||
107 | * @param {*} treeData | ||
108 | * @param {*} bsmDict | ||
109 | * @author: renchao | ||
110 | */ | ||
75 | export function findParents (treeData, bsmDict) { | 111 | export function findParents (treeData, bsmDict) { |
76 | if (treeData.length == 0) return | 112 | if (treeData.length == 0) return |
77 | for (let i = 0; i < treeData.length; i++) { | 113 | for (let i = 0; i < treeData.length; i++) { |
... | @@ -88,6 +124,12 @@ export function findParents (treeData, bsmDict) { | ... | @@ -88,6 +124,12 @@ export function findParents (treeData, bsmDict) { |
88 | } | 124 | } |
89 | } | 125 | } |
90 | // 上移下移 | 126 | // 上移下移 |
127 | /** | ||
128 | * @description: 上移下移 | ||
129 | * @param {*} index | ||
130 | * @param {*} data | ||
131 | * @author: renchao | ||
132 | */ | ||
91 | export function upward (index, data) { | 133 | export function upward (index, data) { |
92 | if (index > 0) { | 134 | if (index > 0) { |
93 | let upData = data[index - 1]; | 135 | let upData = data[index - 1]; |
... | @@ -99,6 +141,12 @@ export function upward (index, data) { | ... | @@ -99,6 +141,12 @@ export function upward (index, data) { |
99 | }); | 141 | }); |
100 | } | 142 | } |
101 | } | 143 | } |
144 | /** | ||
145 | * @description: down | ||
146 | * @param {*} index | ||
147 | * @param {*} data | ||
148 | * @author: renchao | ||
149 | */ | ||
102 | export function down (index, data) { | 150 | export function down (index, data) { |
103 | if ((index + 1) == data.length) { | 151 | if ((index + 1) == data.length) { |
104 | Message({ | 152 | Message({ |
... | @@ -110,7 +158,12 @@ export function down (index, data) { | ... | @@ -110,7 +158,12 @@ export function down (index, data) { |
110 | data.splice(index, 0, downData); | 158 | data.splice(index, 0, downData); |
111 | } | 159 | } |
112 | } | 160 | } |
113 | 161 | /** | |
162 | * @description: timeFormat | ||
163 | * @param {*} date | ||
164 | * @param {*} end | ||
165 | * @author: renchao | ||
166 | */ | ||
114 | export function timeFormat (date, end) { | 167 | export function timeFormat (date, end) { |
115 | if (!date || typeof (date) === "string") { | 168 | if (!date || typeof (date) === "string") { |
116 | this.error("参数异常,请检查..."); | 169 | this.error("参数异常,请检查..."); |
... | @@ -125,7 +178,11 @@ export function timeFormat (date, end) { | ... | @@ -125,7 +178,11 @@ export function timeFormat (date, end) { |
125 | } else { | 178 | } else { |
126 | return y + "-" + m + "-" + d + ' 00:00:00'; | 179 | return y + "-" + m + "-" + d + ' 00:00:00'; |
127 | } | 180 | } |
128 | } | 181 | }/** |
182 | * @description: getFirstDayOfSeason | ||
183 | * @param {*} d | ||
184 | * @author: renchao | ||
185 | */ | ||
129 | export function getFirstDayOfSeason (d) { | 186 | export function getFirstDayOfSeason (d) { |
130 | let date = d || new Date() | 187 | let date = d || new Date() |
131 | var month = date.getMonth(); | 188 | var month = date.getMonth(); | ... | ... |
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-05-11 16:31:01 | ||
5 | */ | ||
1 | import Popup from '@/components/Popup/index' | 6 | import Popup from '@/components/Popup/index' |
7 | /** | ||
8 | * @description: popupDialog | ||
9 | * @param {*} title | ||
10 | * @param {*} url | ||
11 | * @param {*} params | ||
12 | * @param {*} width | ||
13 | * @param {*} height | ||
14 | * @param {*} btnShow | ||
15 | * @param {*} callback | ||
16 | * @author: renchao | ||
17 | */ | ||
2 | export function popupDialog (title, url, params, width = '75%', height, btnShow = false, callback) { | 18 | export function popupDialog (title, url, params, width = '75%', height, btnShow = false, callback) { |
3 | // Popup.install | 19 | // Popup.install |
4 | Popup(title, url, { | 20 | Popup(title, url, { |
... | @@ -15,6 +31,10 @@ export function popupDialog (title, url, params, width = '75%', height, btnShow | ... | @@ -15,6 +31,10 @@ export function popupDialog (title, url, params, width = '75%', height, btnShow |
15 | }) | 31 | }) |
16 | } | 32 | } |
17 | 33 | ||
34 | /** | ||
35 | * @description: popupCacel | ||
36 | * @author: renchao | ||
37 | */ | ||
18 | export function popupCacel () { | 38 | export function popupCacel () { |
19 | Popup1().close() | 39 | Popup1().close() |
20 | } | 40 | } | ... | ... |
1 | /** | ||
2 | * @description: deleteDomStr | ||
3 | * @author: renchao | ||
4 | */ | ||
1 | const deleteDomStr = content => { | 5 | const deleteDomStr = content => { |
2 | return `<div class="customer-message-wrapper"><h5 class="title">您确认要执行该操作用于以下信息:</h5><p class="content">${content}</p><p class="result">执行后,数据将<span >无法恢复</span></p></div>` | 6 | return `<div class="customer-message-wrapper"><h5 class="title">您确认要执行该操作用于以下信息:</h5><p class="content">${content}</p><p class="result">执行后,数据将<span >无法恢复</span></p></div>` |
3 | } | 7 | } | ... | ... |
... | @@ -61,6 +61,11 @@ service.interceptors.response.use( | ... | @@ -61,6 +61,11 @@ service.interceptors.response.use( |
61 | } | 61 | } |
62 | ); | 62 | ); |
63 | //对错误信息的处理函数 | 63 | //对错误信息的处理函数 |
64 | /** | ||
65 | * @description: 对错误信息的处理函数 | ||
66 | * @param {*} errMes | ||
67 | * @author: renchao | ||
68 | */ | ||
64 | function handleErrorData (status) { | 69 | function handleErrorData (status) { |
65 | switch (status) { | 70 | switch (status) { |
66 | case 401: | 71 | case 401: | ... | ... |
1 | /** | ||
2 | * @description: deleteDomStr | ||
3 | * @author: renchao | ||
4 | */ | ||
1 | import Loading from '@/components/Loading/index.js'; | 5 | import Loading from '@/components/Loading/index.js'; |
2 | // 定义 loading | 6 | // 定义 loading |
3 | let loading | 7 | let loading |
4 | 8 | ||
5 | // loading开始 方法 | 9 | // loading开始 方法 |
10 | /** | ||
11 | * @description: loading开始 方法 | ||
12 | * @param {*} loadingText | ||
13 | * @author: renchao | ||
14 | */ | ||
6 | function startLoading (loadingText = '正在加载中...') { | 15 | function startLoading (loadingText = '正在加载中...') { |
7 | loading = Loading.service({ | 16 | loading = Loading.service({ |
8 | text: loadingText, | 17 | text: loadingText, |
... | @@ -13,6 +22,10 @@ function startLoading (loadingText = '正在加载中...') { | ... | @@ -13,6 +22,10 @@ function startLoading (loadingText = '正在加载中...') { |
13 | } | 22 | } |
14 | 23 | ||
15 | // loading结束 方法 | 24 | // loading结束 方法 |
25 | /** | ||
26 | * @description: loading开始 方法 | ||
27 | * @author: renchao | ||
28 | */ | ||
16 | function endLoading () { | 29 | function endLoading () { |
17 | loading.close() | 30 | loading.close() |
18 | } | 31 | } |
... | @@ -23,6 +36,13 @@ let loadingCount = 0 | ... | @@ -23,6 +36,13 @@ let loadingCount = 0 |
23 | * 调用一次startLoadingAddCount() 方法 开启Loading 并 loadingCount + 1 | 36 | * 调用一次startLoadingAddCount() 方法 开启Loading 并 loadingCount + 1 |
24 | * 调用一次endLoadingSubCount() 方法 loadingCount - 1 直到为0 关闭loading | 37 | * 调用一次endLoadingSubCount() 方法 loadingCount - 1 直到为0 关闭loading |
25 | */ | 38 | */ |
39 | /** | ||
40 | * @description: 调用一次startLoadingAddCount() 方法 开启Loading 并 loadingCount + 1 | ||
41 | * 调用一次endLoadingSubCount() 方法 loadingCount - 1 直到为0 关闭loading | ||
42 | * @param {*} LoadingText | ||
43 | * @param {*} target | ||
44 | * @author: renchao | ||
45 | */ | ||
26 | export function startLoadingAddCount (LoadingText, target) { | 46 | export function startLoadingAddCount (LoadingText, target) { |
27 | if (loadingCount === 0) { | 47 | if (loadingCount === 0) { |
28 | startLoading(LoadingText, target) | 48 | startLoading(LoadingText, target) |
... | @@ -30,6 +50,10 @@ export function startLoadingAddCount (LoadingText, target) { | ... | @@ -30,6 +50,10 @@ export function startLoadingAddCount (LoadingText, target) { |
30 | loadingCount++ | 50 | loadingCount++ |
31 | } | 51 | } |
32 | 52 | ||
53 | /** | ||
54 | * @description: endLoadingSubCount | ||
55 | * @author: renchao | ||
56 | */ | ||
33 | export function endLoadingSubCount () { | 57 | export function endLoadingSubCount () { |
34 | loadingCount-- | 58 | loadingCount-- |
35 | if (loadingCount === 0) { | 59 | if (loadingCount === 0) { | ... | ... |
1 | /** | ||
2 | * @description: deleteDomStr | ||
3 | * @author: renchao | ||
4 | */ | ||
1 | import Vue from 'vue' | 5 | import Vue from 'vue' |
2 | 6 | ||
3 | // 下载,导出 | 7 | // 下载,导出 |
8 | /** | ||
9 | * @description: 下载,导出 | ||
10 | * @param {*} name | ||
11 | * @param {*} href | ||
12 | * @author: renchao | ||
13 | */ | ||
4 | Vue.prototype.$download = function (name, href) { | 14 | Vue.prototype.$download = function (name, href) { |
5 | var a = document.createElement('a') // 创建a标签 | 15 | var a = document.createElement('a') // 创建a标签 |
6 | var e = document.createEvent('MouseEvents') // 创建鼠标事件对象 | 16 | var e = document.createEvent('MouseEvents') // 创建鼠标事件对象 |
... | @@ -10,6 +20,12 @@ Vue.prototype.$download = function (name, href) { | ... | @@ -10,6 +20,12 @@ Vue.prototype.$download = function (name, href) { |
10 | a.dispatchEvent(e) // 给指定的元素,执行事件click事件 | 20 | a.dispatchEvent(e) // 给指定的元素,执行事件click事件 |
11 | } | 21 | } |
12 | // 导出json文件 | 22 | // 导出json文件 |
23 | /** | ||
24 | * @description: 导出json文件 | ||
25 | * @param {*} data | ||
26 | * @param {*} name | ||
27 | * @author: renchao | ||
28 | */ | ||
13 | Vue.prototype.$downloadJson = function (data, name) { | 29 | Vue.prototype.$downloadJson = function (data, name) { |
14 | // 1 生成文件的 blob 对象 | 30 | // 1 生成文件的 blob 对象 |
15 | const blobData = new Blob([JSON.stringify(data)], { | 31 | const blobData = new Blob([JSON.stringify(data)], { |
... | @@ -46,6 +62,13 @@ const validConfig = [ | ... | @@ -46,6 +62,13 @@ const validConfig = [ |
46 | } | 62 | } |
47 | ] | 63 | ] |
48 | // 校验手机号 | 64 | // 校验手机号 |
65 | /** | ||
66 | * @description: 校验手机号 | ||
67 | * @param {*} rule | ||
68 | * @param {*} value | ||
69 | * @param {*} callback | ||
70 | * @author: renchao | ||
71 | */ | ||
49 | const checkTel = (rule, value, callback) => { | 72 | const checkTel = (rule, value, callback) => { |
50 | const phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/ | 73 | const phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/ |
51 | const rel = /^[0]\d{2,3}-[1-9]\d{7}$/ | 74 | const rel = /^[0]\d{2,3}-[1-9]\d{7}$/ |
... | @@ -57,6 +80,13 @@ const checkTel = (rule, value, callback) => { | ... | @@ -57,6 +80,13 @@ const checkTel = (rule, value, callback) => { |
57 | }, 500) | 80 | }, 500) |
58 | } | 81 | } |
59 | // 检验系统代码 | 82 | // 检验系统代码 |
83 | /** | ||
84 | * @description: 检验系统代码 | ||
85 | * @param {*} rule | ||
86 | * @param {*} value | ||
87 | * @param {*} callback | ||
88 | * @author: renchao | ||
89 | */ | ||
60 | const checkCode = (rule, value, callback) => { | 90 | const checkCode = (rule, value, callback) => { |
61 | const rel = /^[0-9A-Z]+$/ | 91 | const rel = /^[0-9A-Z]+$/ |
62 | if (!value) return callback(new Error('请输入代码')) | 92 | if (!value) return callback(new Error('请输入代码')) |
... | @@ -84,6 +114,11 @@ const checkCode = (rule, value, callback) => { | ... | @@ -84,6 +114,11 @@ const checkCode = (rule, value, callback) => { |
84 | // } | 114 | // } |
85 | // } | 115 | // } |
86 | // 日期格式转换 "yyyy-MM-dd HH:mm:ss" | 116 | // 日期格式转换 "yyyy-MM-dd HH:mm:ss" |
117 | /** | ||
118 | * @description: 日期格式转换 "yyyy-MM-dd HH:mm:ss" | ||
119 | * @param {*} date | ||
120 | * @author: renchao | ||
121 | */ | ||
87 | Vue.prototype.$formdate = function (date) { | 122 | Vue.prototype.$formdate = function (date) { |
88 | if (!date) { | 123 | if (!date) { |
89 | return "" | 124 | return "" |
... | @@ -98,18 +133,39 @@ Vue.prototype.$formdate = function (date) { | ... | @@ -98,18 +133,39 @@ Vue.prototype.$formdate = function (date) { |
98 | return YY + MM + DD + " " + hh + mm + ss | 133 | return YY + MM + DD + " " + hh + mm + ss |
99 | } | 134 | } |
100 | // 时间格式过滤 | 135 | // 时间格式过滤 |
136 | /** | ||
137 | * @description: 时间格式过滤 | ||
138 | * @param {*} timeStr | ||
139 | * @author: renchao | ||
140 | */ | ||
101 | Vue.filter('timeFilter', function (timeStr) { | 141 | Vue.filter('timeFilter', function (timeStr) { |
102 | if (timeStr) { | 142 | if (timeStr) { |
103 | return timeStr.substring(0, 10) | 143 | return timeStr.substring(0, 10) |
104 | } | 144 | } |
105 | }) | 145 | }) |
146 | /** | ||
147 | * @description: getType | ||
148 | * @param {*} o | ||
149 | * @author: renchao | ||
150 | */ | ||
106 | export function getType (o) { | 151 | export function getType (o) { |
107 | return Object.prototype.toString.call(o).slice(8, -1) | 152 | return Object.prototype.toString.call(o).slice(8, -1) |
108 | } | 153 | } |
154 | /** | ||
155 | * @description: isKeyType | ||
156 | * @param {*} o | ||
157 | * @param {*} type | ||
158 | * @author: renchao | ||
159 | */ | ||
109 | export function isKeyType (o, type) { | 160 | export function isKeyType (o, type) { |
110 | return getType(o).toLowerCase() === type.toLowerCase() | 161 | return getType(o).toLowerCase() === type.toLowerCase() |
111 | } | 162 | } |
112 | // 深拷贝全局挂载 | 163 | // 深拷贝全局挂载 |
164 | /** | ||
165 | * @description: 深拷贝全局挂载 | ||
166 | * @param {*} sth | ||
167 | * @author: renchao | ||
168 | */ | ||
113 | Vue.prototype.$deepCopy = function (sth) { | 169 | Vue.prototype.$deepCopy = function (sth) { |
114 | // 深度复制数组 | 170 | // 深度复制数组 |
115 | // if (Object.prototype.toString.call(obj) === "[object Array]") { | 171 | // if (Object.prototype.toString.call(obj) === "[object Array]") { |
... | @@ -153,6 +209,10 @@ Vue.prototype.$deepCopy = function (sth) { | ... | @@ -153,6 +209,10 @@ Vue.prototype.$deepCopy = function (sth) { |
153 | return null | 209 | return null |
154 | } | 210 | } |
155 | // 递归处理树形数据children为空数组 | 211 | // 递归处理树形数据children为空数组 |
212 | /** | ||
213 | * @description: 递归处理树形数据children为空数组 | ||
214 | * @author: renchao | ||
215 | */ | ||
156 | Vue.prototype.$dealArrChildren = arr => { | 216 | Vue.prototype.$dealArrChildren = arr => { |
157 | if (arr.length) { | 217 | if (arr.length) { |
158 | for (const i in arr) { | 218 | for (const i in arr) { |
... | @@ -166,6 +226,10 @@ Vue.prototype.$dealArrChildren = arr => { | ... | @@ -166,6 +226,10 @@ Vue.prototype.$dealArrChildren = arr => { |
166 | return arr | 226 | return arr |
167 | } | 227 | } |
168 | // 过滤对象中为空的属性 | 228 | // 过滤对象中为空的属性 |
229 | /** | ||
230 | * @description: 过滤对象中为空的属性 | ||
231 | * @author: renchao | ||
232 | */ | ||
169 | Vue.prototype.$filterNullObj = obj => { | 233 | Vue.prototype.$filterNullObj = obj => { |
170 | if (!(typeof obj === 'object')) { | 234 | if (!(typeof obj === 'object')) { |
171 | return | 235 | return |
... | @@ -181,6 +245,10 @@ Vue.prototype.$filterNullObj = obj => { | ... | @@ -181,6 +245,10 @@ Vue.prototype.$filterNullObj = obj => { |
181 | return obj | 245 | return obj |
182 | } | 246 | } |
183 | // 递归处理树形数据可选择项 | 247 | // 递归处理树形数据可选择项 |
248 | /** | ||
249 | * @description: 递归处理树形数据可选择项 | ||
250 | * @author: renchao | ||
251 | */ | ||
184 | Vue.prototype.$dealArrNotDisabled = arr => { | 252 | Vue.prototype.$dealArrNotDisabled = arr => { |
185 | if (arr.length) { | 253 | if (arr.length) { |
186 | for (const i in arr) { | 254 | for (const i in arr) { |
... | @@ -207,6 +275,12 @@ Vue.prototype.$dealArrNotDisabled = arr => { | ... | @@ -207,6 +275,12 @@ Vue.prototype.$dealArrNotDisabled = arr => { |
207 | return arr | 275 | return arr |
208 | } | 276 | } |
209 | // 递归处理树形数据不可选择项 | 277 | // 递归处理树形数据不可选择项 |
278 | /** | ||
279 | * @description: 递归处理树形数据不可选择项 | ||
280 | * @param {*} arr | ||
281 | * @param {*} id | ||
282 | * @author: renchao | ||
283 | */ | ||
210 | Vue.prototype.$dealArrDisabled = (arr, id) => { | 284 | Vue.prototype.$dealArrDisabled = (arr, id) => { |
211 | if (arr.length) { | 285 | if (arr.length) { |
212 | for (const i in arr) { | 286 | for (const i in arr) { |
... | @@ -233,6 +307,12 @@ Vue.prototype.$dealArrDisabled = (arr, id) => { | ... | @@ -233,6 +307,12 @@ Vue.prototype.$dealArrDisabled = (arr, id) => { |
233 | return arr | 307 | return arr |
234 | } | 308 | } |
235 | // 根据子节点id递归获取子节点路径id数组 | 309 | // 根据子节点id递归获取子节点路径id数组 |
310 | /** | ||
311 | * @description: 根据子节点id递归获取子节点路径id数组 | ||
312 | * @param {*} val | ||
313 | * @param {*} id | ||
314 | * @author: renchao | ||
315 | */ | ||
236 | Vue.prototype.$getNodeRoute = (val, id) => { | 316 | Vue.prototype.$getNodeRoute = (val, id) => { |
237 | let cid_list = [] | 317 | let cid_list = [] |
238 | val.forEach((item, index) => { | 318 | val.forEach((item, index) => { |
... | @@ -279,6 +359,10 @@ Vue.prototype.$getNodeRoute = (val, id) => { | ... | @@ -279,6 +359,10 @@ Vue.prototype.$getNodeRoute = (val, id) => { |
279 | return result(cid_list) | 359 | return result(cid_list) |
280 | } | 360 | } |
281 | // 扁平化树形数组 | 361 | // 扁平化树形数组 |
362 | /** | ||
363 | * @description: 扁平化树形数组 | ||
364 | * @author: renchao | ||
365 | */ | ||
282 | Vue.prototype.$treeConvertToArr = tree => { | 366 | Vue.prototype.$treeConvertToArr = tree => { |
283 | let arrs = [] | 367 | let arrs = [] |
284 | const result = [] | 368 | const result = [] |
... | @@ -446,6 +530,11 @@ Vue.prototype.$setChildArr = ( | ... | @@ -446,6 +530,11 @@ Vue.prototype.$setChildArr = ( |
446 | } | 530 | } |
447 | } | 531 | } |
448 | // 处理localStorage获取值转换boolean为string问题 json字符串转为json | 532 | // 处理localStorage获取值转换boolean为string问题 json字符串转为json |
533 | /** | ||
534 | * @description: 对错误信息的处理函数 | ||
535 | * @param {*} errMes | ||
536 | * @author: renchao | ||
537 | */ | ||
449 | Vue.prototype.$getLocalStorage = (name, type) => { | 538 | Vue.prototype.$getLocalStorage = (name, type) => { |
450 | let data = localStorage.getItem(name) | 539 | let data = localStorage.getItem(name) |
451 | if (type === 'boolean') { | 540 | if (type === 'boolean') { | ... | ... |
1 | 1 | /** | |
2 | * @description: deleteDomStr | ||
3 | * @author: renchao | ||
4 | */ | ||
2 | import XLSX2 from "xlsx"; | 5 | import XLSX2 from "xlsx"; |
3 | import XLSX from "xlsx-style"; | 6 | import XLSX from "xlsx-style"; |
4 | /** | 7 | /** |
... | @@ -18,6 +21,11 @@ export function getType (o) { | ... | @@ -18,6 +21,11 @@ export function getType (o) { |
18 | export function isKeyType (o, type) { | 21 | export function isKeyType (o, type) { |
19 | return getType(o).toLowerCase() === type.toLowerCase(); | 22 | return getType(o).toLowerCase() === type.toLowerCase(); |
20 | } | 23 | } |
24 | /** | ||
25 | * @description: deepCopy | ||
26 | * @param {*} sth | ||
27 | * @author: renchao | ||
28 | */ | ||
21 | export function deepCopy (sth) { | 29 | export function deepCopy (sth) { |
22 | let copy; | 30 | let copy; |
23 | if (null == sth || "object" != typeof sth) return sth; | 31 | if (null == sth || "object" != typeof sth) return sth; |
... | @@ -58,7 +66,11 @@ export function hideCode (str, frontLen, endLen = 0) { | ... | @@ -58,7 +66,11 @@ export function hideCode (str, frontLen, endLen = 0) { |
58 | return str.substring(0, frontLen) + xing + str.substring(str.length - endLen); | 66 | return str.substring(0, frontLen) + xing + str.substring(str.length - endLen); |
59 | }; | 67 | }; |
60 | // 数组去重 | 68 | // 数组去重 |
61 | 69 | /** | |
70 | * @description: 数组去重 | ||
71 | * @param {*} arr | ||
72 | * @author: renchao | ||
73 | */ | ||
62 | export function unique (arr) { | 74 | export function unique (arr) { |
63 | var obj = {}; | 75 | var obj = {}; |
64 | return arr.filter(function (item, index, arr) { | 76 | return arr.filter(function (item, index, arr) { |
... | @@ -66,7 +78,12 @@ export function unique (arr) { | ... | @@ -66,7 +78,12 @@ export function unique (arr) { |
66 | }) | 78 | }) |
67 | } | 79 | } |
68 | // 创造id | 80 | // 创造id |
69 | 81 | /** | |
82 | * @description: 创造id | ||
83 | * @param {*} len | ||
84 | * @param {*} radix | ||
85 | * @author: renchao | ||
86 | */ | ||
70 | export function getUuid (len, radix) { | 87 | export function getUuid (len, radix) { |
71 | var chars = "0123456789abcdefghijklmnopqrstuvwxyz".split( | 88 | var chars = "0123456789abcdefghijklmnopqrstuvwxyz".split( |
72 | "" | 89 | "" |
... | @@ -91,6 +108,12 @@ export function getUuid (len, radix) { | ... | @@ -91,6 +108,12 @@ export function getUuid (len, radix) { |
91 | } | 108 | } |
92 | 109 | ||
93 | //js计算两个时间戳之间的时间差 (月) | 110 | //js计算两个时间戳之间的时间差 (月) |
111 | /** | ||
112 | * @description: js计算两个时间戳之间的时间差 (月) | ||
113 | * @param {*} startTime | ||
114 | * @param {*} endTime | ||
115 | * @author: renchao | ||
116 | */ | ||
94 | export function intervalTime (startTime, endTime) { | 117 | export function intervalTime (startTime, endTime) { |
95 | // var timestamp=new Date().getTime(); //计算当前时间戳 | 118 | // var timestamp=new Date().getTime(); //计算当前时间戳 |
96 | var timestamp = (Date.parse(new Date())) / 1000;//计算当前时间戳 (毫秒级) | 119 | var timestamp = (Date.parse(new Date())) / 1000;//计算当前时间戳 (毫秒级) |
... | @@ -109,12 +132,22 @@ export function intervalTime (startTime, endTime) { | ... | @@ -109,12 +132,22 @@ export function intervalTime (startTime, endTime) { |
109 | return mon | 132 | return mon |
110 | } | 133 | } |
111 | // 日期转时间戳 | 134 | // 日期转时间戳 |
135 | /** | ||
136 | * @description: 日期转时间戳 | ||
137 | * @param {*} str_time | ||
138 | * @author: renchao | ||
139 | */ | ||
112 | export function js_strto_time (str_time) { | 140 | export function js_strto_time (str_time) { |
113 | var str = str_time.replace(/-/g, '/') // 将-替换成/,因为下面这个构造函数只支持/分隔的日期字符串 | 141 | var str = str_time.replace(/-/g, '/') // 将-替换成/,因为下面这个构造函数只支持/分隔的日期字符串 |
114 | var date = new Date(str) // 构造一个日期型数据,值为传入的字符串 | 142 | var date = new Date(str) // 构造一个日期型数据,值为传入的字符串 |
115 | return date.getTime() | 143 | return date.getTime() |
116 | } | 144 | } |
117 | // 时间戳转日期 | 145 | // 时间戳转日期 |
146 | /** | ||
147 | * @description: 时间戳转日期 | ||
148 | * @param {*} timestamp | ||
149 | * @author: renchao | ||
150 | */ | ||
118 | export function timestampToTime (timestamp) { | 151 | export function timestampToTime (timestamp) { |
119 | var date = new Date(timestamp)//时间戳为10位需*1000,时间戳为13位的话不需乘1000 | 152 | var date = new Date(timestamp)//时间戳为10位需*1000,时间戳为13位的话不需乘1000 |
120 | var Y = date.getFullYear() + '-' | 153 | var Y = date.getFullYear() + '-' |
... | @@ -123,7 +156,11 @@ export function timestampToTime (timestamp) { | ... | @@ -123,7 +156,11 @@ export function timestampToTime (timestamp) { |
123 | return Y + M + D | 156 | return Y + M + D |
124 | } | 157 | } |
125 | 158 | ||
126 | 159 | /** | |
160 | * @description: formatDate | ||
161 | * @param {*} value | ||
162 | * @author: renchao | ||
163 | */ | ||
127 | function formatDate (value) { | 164 | function formatDate (value) { |
128 | var date = new Date(value); | 165 | var date = new Date(value); |
129 | var y = date.getFullYear(), | 166 | var y = date.getFullYear(), |
... | @@ -135,6 +172,11 @@ function formatDate (value) { | ... | @@ -135,6 +172,11 @@ function formatDate (value) { |
135 | return t; | 172 | return t; |
136 | } | 173 | } |
137 | 174 | ||
175 | /** | ||
176 | * @description: getCurrentDate | ||
177 | * @param {*} date | ||
178 | * @author: renchao | ||
179 | */ | ||
138 | export function getCurrentDate (date = 'firstDay') { | 180 | export function getCurrentDate (date = 'firstDay') { |
139 | var now = new Date() // 当前日期 | 181 | var now = new Date() // 当前日期 |
140 | var nowYear = now.getFullYear() //当前年 | 182 | var nowYear = now.getFullYear() //当前年 |
... | @@ -147,6 +189,11 @@ export function getCurrentDate (date = 'firstDay') { | ... | @@ -147,6 +189,11 @@ export function getCurrentDate (date = 'firstDay') { |
147 | } | 189 | } |
148 | } | 190 | } |
149 | 191 | ||
192 | /** | ||
193 | * @description: setExport2Excel | ||
194 | * @param {*} exportName | ||
195 | * @author: renchao | ||
196 | */ | ||
150 | export function setExport2Excel (exportName) { | 197 | export function setExport2Excel (exportName) { |
151 | /* generate workbook object from table */ | 198 | /* generate workbook object from table */ |
152 | var wb = XLSX2.utils.table_to_sheet(document.querySelector("#mytable"), { raw: true });//mytable为表格的id名 | 199 | var wb = XLSX2.utils.table_to_sheet(document.querySelector("#mytable"), { raw: true });//mytable为表格的id名 |
... | @@ -210,6 +257,12 @@ export function setExport2Excel (exportName) { | ... | @@ -210,6 +257,12 @@ export function setExport2Excel (exportName) { |
210 | openDownloadDialog(filedata, exportName + ".xlsx") | 257 | openDownloadDialog(filedata, exportName + ".xlsx") |
211 | } | 258 | } |
212 | //为合并项添加边框 | 259 | //为合并项添加边框 |
260 | /** | ||
261 | * @description: 为合并项添加边框 | ||
262 | * @param {*} range | ||
263 | * @param {*} ws | ||
264 | * @author: renchao | ||
265 | */ | ||
213 | function addRangeBorder (range, ws) { | 266 | function addRangeBorder (range, ws) { |
214 | let arr = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; | 267 | let arr = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; |
215 | 268 | ||
... | @@ -226,6 +279,12 @@ function addRangeBorder (range, ws) { | ... | @@ -226,6 +279,12 @@ function addRangeBorder (range, ws) { |
226 | return ws; | 279 | return ws; |
227 | } | 280 | } |
228 | //将一个sheet转成最终的excel文件的blob对象,然后利用URL.createObjectURL下载 | 281 | //将一个sheet转成最终的excel文件的blob对象,然后利用URL.createObjectURL下载 |
282 | /** | ||
283 | * @description: 将一个sheet转成最终的excel文件的blob对象,然后利用URL.createObjectURL下载 | ||
284 | * @param {*} sheet | ||
285 | * @param {*} sheetName | ||
286 | * @author: renchao | ||
287 | */ | ||
229 | function sheet2blob (sheet, sheetName) { | 288 | function sheet2blob (sheet, sheetName) { |
230 | sheetName = sheetName || 'sheet1'; | 289 | sheetName = sheetName || 'sheet1'; |
231 | var workbook = { | 290 | var workbook = { |
... | @@ -251,6 +310,12 @@ function sheet2blob (sheet, sheetName) { | ... | @@ -251,6 +310,12 @@ function sheet2blob (sheet, sheetName) { |
251 | } | 310 | } |
252 | return blob; | 311 | return blob; |
253 | } | 312 | } |
313 | /** | ||
314 | * @description: openDownloadDialog | ||
315 | * @param {*} url | ||
316 | * @param {*} saveName | ||
317 | * @author: renchao | ||
318 | */ | ||
254 | function openDownloadDialog (url, saveName) { | 319 | function openDownloadDialog (url, saveName) { |
255 | if (typeof url == 'object' && url instanceof Blob) { | 320 | if (typeof url == 'object' && url instanceof Blob) { |
256 | url = URL.createObjectURL(url); // 创建blob地址 | 321 | url = URL.createObjectURL(url); // 创建blob地址 |
... | @@ -267,9 +332,11 @@ function openDownloadDialog (url, saveName) { | ... | @@ -267,9 +332,11 @@ function openDownloadDialog (url, saveName) { |
267 | aLink.dispatchEvent(event); | 332 | aLink.dispatchEvent(event); |
268 | } | 333 | } |
269 | 334 | ||
270 | 335 | /** | |
271 | 336 | * @description: judgeListComplete | |
272 | 337 | * @param {*} list | |
338 | * @author: renchao | ||
339 | */ | ||
273 | export function judgeListComplete (list) { | 340 | export function judgeListComplete (list) { |
274 | function judgeObjectComplete (obj) { | 341 | function judgeObjectComplete (obj) { |
275 | let flag = false | 342 | let flag = false | ... | ... |
1 | /** | 1 | /** |
2 | * @description: isExternal | ||
2 | * @param {string} path | 3 | * @param {string} path |
3 | * @returns {Boolean} | 4 | * @returns {Boolean} |
4 | */ | 5 | */ |
... | @@ -7,16 +8,37 @@ export function isExternal (path) { | ... | @@ -7,16 +8,37 @@ export function isExternal (path) { |
7 | } | 8 | } |
8 | // ex: {validator:validateCode,trigger:'blur'} | 9 | // ex: {validator:validateCode,trigger:'blur'} |
9 | // 验证code | 10 | // 验证code |
11 | /** | ||
12 | * @description: 验证code | ||
13 | * @param {*} rule | ||
14 | * @param {*} value | ||
15 | * @param {*} callback | ||
16 | * @author: renchao | ||
17 | */ | ||
10 | export const validateCode = (rule, value, callback) => { | 18 | export const validateCode = (rule, value, callback) => { |
11 | const reg = /^[A-Z]{1}[A-Za-z0-9]*$/ | 19 | const reg = /^[A-Z]{1}[A-Za-z0-9]*$/ |
12 | !reg.test(value) ? callback('字母开头、数字和字母组成') : callback() | 20 | !reg.test(value) ? callback('字母开头、数字和字母组成') : callback() |
13 | } | 21 | } |
14 | // 验证 网址 | 22 | // 验证 网址 |
23 | /** | ||
24 | * @description: 验证 网址 | ||
25 | * @param {*} rule | ||
26 | * @param {*} value | ||
27 | * @param {*} callback | ||
28 | * @author: renchao | ||
29 | */ | ||
15 | export const validateUrl = (rule, value, callback) => { | 30 | export const validateUrl = (rule, value, callback) => { |
16 | const reg = /^(((ht|f)tps?):\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/ | 31 | const reg = /^(((ht|f)tps?):\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/ |
17 | !reg.test(value) ? callback('URL格式不正确') : callback() | 32 | !reg.test(value) ? callback('URL格式不正确') : callback() |
18 | } | 33 | } |
19 | // 验证 电话 | 34 | // 验证 电话 |
35 | /** | ||
36 | * @description: 验证 电话 | ||
37 | * @param {*} rule | ||
38 | * @param {*} value | ||
39 | * @param {*} callback | ||
40 | * @author: renchao | ||
41 | */ | ||
20 | export const validatePhone = (rule, value, callback) => { | 42 | export const validatePhone = (rule, value, callback) => { |
21 | const phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/ | 43 | const phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/ |
22 | const rel = /^[0]\d{2,3}-[1-9]\d{7}$/ | 44 | const rel = /^[0]\d{2,3}-[1-9]\d{7}$/ | ... | ... |
... | @@ -180,6 +180,10 @@ | ... | @@ -180,6 +180,10 @@ |
180 | } | 180 | } |
181 | }, | 181 | }, |
182 | methods: { | 182 | methods: { |
183 | /** | ||
184 | * @description: featchData | ||
185 | * @author: renchao | ||
186 | */ | ||
183 | async featchData () { | 187 | async featchData () { |
184 | try { | 188 | try { |
185 | let { result: { list, total, pages: pageSize, pageNum: current } | 189 | let { result: { list, total, pages: pageSize, pageNum: current } | ... | ... |
... | @@ -146,6 +146,10 @@ | ... | @@ -146,6 +146,10 @@ |
146 | } | 146 | } |
147 | }, | 147 | }, |
148 | methods: { | 148 | methods: { |
149 | /** | ||
150 | * @description: featchData | ||
151 | * @author: renchao | ||
152 | */ | ||
149 | async featchData () { | 153 | async featchData () { |
150 | try { | 154 | try { |
151 | let { result: { list, total, pages: pageSize, pageNum: current } | 155 | let { result: { list, total, pages: pageSize, pageNum: current } | ... | ... |
... | @@ -151,6 +151,10 @@ | ... | @@ -151,6 +151,10 @@ |
151 | } | 151 | } |
152 | }, | 152 | }, |
153 | methods: { | 153 | methods: { |
154 | /** | ||
155 | * @description: featchData | ||
156 | * @author: renchao | ||
157 | */ | ||
154 | async featchData () { | 158 | async featchData () { |
155 | try { | 159 | try { |
156 | this.form = Object.assign(this.form, this.formData) | 160 | this.form = Object.assign(this.form, this.formData) | ... | ... |
... | @@ -147,10 +147,19 @@ | ... | @@ -147,10 +147,19 @@ |
147 | }, | 147 | }, |
148 | methods: { | 148 | methods: { |
149 | // 是否显示下拉框 | 149 | // 是否显示下拉框 |
150 | /** | ||
151 | * @description: 是否显示下拉框 | ||
152 | * @param {*} e | ||
153 | * @author: renchao | ||
154 | */ | ||
150 | isShowSelectOptions (e) { | 155 | isShowSelectOptions (e) { |
151 | if (!e) this.$refs.selectmanyQL.blur() | 156 | if (!e) this.$refs.selectmanyQL.blur() |
152 | if (!e) this.$refs.selectmanyDJ.blur() | 157 | if (!e) this.$refs.selectmanyDJ.blur() |
153 | }, | 158 | }, |
159 | /** | ||
160 | * @description: featchData | ||
161 | * @author: renchao | ||
162 | */ | ||
154 | async featchData () { | 163 | async featchData () { |
155 | try { | 164 | try { |
156 | this.form = Object.assign(this.form, this.formData) | 165 | this.form = Object.assign(this.form, this.formData) |
... | @@ -167,6 +176,12 @@ | ... | @@ -167,6 +176,12 @@ |
167 | // this.$refs.msg.messageShow() | 176 | // this.$refs.msg.messageShow() |
168 | } | 177 | } |
169 | }, | 178 | }, |
179 | /** | ||
180 | * @description: handlDatadetails | ||
181 | * @param {*} index | ||
182 | * @param {*} row | ||
183 | * @author: renchao | ||
184 | */ | ||
170 | async handlDatadetails (index, row) { | 185 | async handlDatadetails (index, row) { |
171 | let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB) | 186 | let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB) |
172 | if (res != null) { | 187 | if (res != null) { | ... | ... |
... | @@ -111,9 +111,18 @@ | ... | @@ -111,9 +111,18 @@ |
111 | }, | 111 | }, |
112 | methods: { | 112 | methods: { |
113 | // 是否显示下拉框 | 113 | // 是否显示下拉框 |
114 | /** | ||
115 | * @description: 是否显示下拉框 | ||
116 | * @param {*} e | ||
117 | * @author: renchao | ||
118 | */ | ||
114 | isShowSelectOptions (e) { | 119 | isShowSelectOptions (e) { |
115 | if (!e) this.$refs.selectshareQL.blur() | 120 | if (!e) this.$refs.selectshareQL.blur() |
116 | }, | 121 | }, |
122 | /** | ||
123 | * @description: featchData | ||
124 | * @author: renchao | ||
125 | */ | ||
117 | async featchData () { | 126 | async featchData () { |
118 | try { | 127 | try { |
119 | this.form = Object.assign(this.form, this.formData) | 128 | this.form = Object.assign(this.form, this.formData) |
... | @@ -129,6 +138,12 @@ | ... | @@ -129,6 +138,12 @@ |
129 | this.message = error | 138 | this.message = error |
130 | } | 139 | } |
131 | }, | 140 | }, |
141 | /** | ||
142 | * @description: handlDatadetails | ||
143 | * @param {*} index | ||
144 | * @param {*} row | ||
145 | * @author: renchao | ||
146 | */ | ||
132 | async handlDatadetails (index, row) { | 147 | async handlDatadetails (index, row) { |
133 | let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB) | 148 | let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB) |
134 | if (res != null) { | 149 | if (res != null) { | ... | ... |
... | @@ -179,10 +179,19 @@ | ... | @@ -179,10 +179,19 @@ |
179 | }, | 179 | }, |
180 | methods: { | 180 | methods: { |
181 | // 是否显示下拉框 | 181 | // 是否显示下拉框 |
182 | /** | ||
183 | * @description: 是否显示下拉框 | ||
184 | * @param {*} e | ||
185 | * @author: renchao | ||
186 | */ | ||
182 | isShowSelectOptions (e) { | 187 | isShowSelectOptions (e) { |
183 | if (!e) this.$refs.selectsingleQL.blur() | 188 | if (!e) this.$refs.selectsingleQL.blur() |
184 | if (!e) this.$refs.selectsingleDJ.blur() | 189 | if (!e) this.$refs.selectsingleDJ.blur() |
185 | }, | 190 | }, |
191 | /** | ||
192 | * @description: featchData | ||
193 | * @author: renchao | ||
194 | */ | ||
186 | async featchData () { | 195 | async featchData () { |
187 | try { | 196 | try { |
188 | this.form = Object.assign(this.form, this.formData) | 197 | this.form = Object.assign(this.form, this.formData) |
... | @@ -199,6 +208,12 @@ | ... | @@ -199,6 +208,12 @@ |
199 | // this.$refs.msg.messageShow() | 208 | // this.$refs.msg.messageShow() |
200 | } | 209 | } |
201 | }, | 210 | }, |
211 | /** | ||
212 | * @description: handlDatadetails | ||
213 | * @param {*} index | ||
214 | * @param {*} row | ||
215 | * @author: renchao | ||
216 | */ | ||
202 | async handlDatadetails (index, row) { | 217 | async handlDatadetails (index, row) { |
203 | let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB) | 218 | let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB) |
204 | if (res != null) { | 219 | if (res != null) { | ... | ... |
... | @@ -139,10 +139,19 @@ | ... | @@ -139,10 +139,19 @@ |
139 | }, | 139 | }, |
140 | methods: { | 140 | methods: { |
141 | // 是否显示下拉框 | 141 | // 是否显示下拉框 |
142 | /** | ||
143 | * @description: 是否显示下拉框 | ||
144 | * @param {*} e | ||
145 | * @author: renchao | ||
146 | */ | ||
142 | isShowSelectOptions (e) { | 147 | isShowSelectOptions (e) { |
143 | if (!e) this.$refs.selectownershipQL.blur() | 148 | if (!e) this.$refs.selectownershipQL.blur() |
144 | if (!e) this.$refs.selectownershipDJ.blur() | 149 | if (!e) this.$refs.selectownershipDJ.blur() |
145 | }, | 150 | }, |
151 | /** | ||
152 | * @description: featchData | ||
153 | * @author: renchao | ||
154 | */ | ||
146 | async featchData () { | 155 | async featchData () { |
147 | try { | 156 | try { |
148 | this.form = Object.assign(this.form, this.formData) | 157 | this.form = Object.assign(this.form, this.formData) | ... | ... |
... | @@ -146,10 +146,19 @@ | ... | @@ -146,10 +146,19 @@ |
146 | }, | 146 | }, |
147 | methods: { | 147 | methods: { |
148 | // 是否显示下拉框 | 148 | // 是否显示下拉框 |
149 | /** | ||
150 | * @description: 是否显示下拉框 | ||
151 | * @param {*} e | ||
152 | * @author: renchao | ||
153 | */ | ||
149 | isShowSelectOptions (e) { | 154 | isShowSelectOptions (e) { |
150 | if (!e) this.$refs.selectseaAreaQL.blur() | 155 | if (!e) this.$refs.selectseaAreaQL.blur() |
151 | if (!e) this.$refs.selectseaAreaDJ.blur() | 156 | if (!e) this.$refs.selectseaAreaDJ.blur() |
152 | }, | 157 | }, |
158 | /** | ||
159 | * @description: featchData | ||
160 | * @author: renchao | ||
161 | */ | ||
153 | async featchData () { | 162 | async featchData () { |
154 | try { | 163 | try { |
155 | this.form = Object.assign(this.form, this.formData) | 164 | this.form = Object.assign(this.form, this.formData) | ... | ... |
... | @@ -139,10 +139,19 @@ | ... | @@ -139,10 +139,19 @@ |
139 | }, | 139 | }, |
140 | methods: { | 140 | methods: { |
141 | // 是否显示下拉框 | 141 | // 是否显示下拉框 |
142 | /** | ||
143 | * @description: 是否显示下拉框 | ||
144 | * @param {*} e | ||
145 | * @author: renchao | ||
146 | */ | ||
142 | isShowSelectOptions (e) { | 147 | isShowSelectOptions (e) { |
143 | if (!e) this.$refs.selectbuildQL.blur() | 148 | if (!e) this.$refs.selectbuildQL.blur() |
144 | if (!e) this.$refs.selectbuildDJ.blur() | 149 | if (!e) this.$refs.selectbuildDJ.blur() |
145 | }, | 150 | }, |
151 | /** | ||
152 | * @description: featchData | ||
153 | * @author: renchao | ||
154 | */ | ||
146 | async featchData () { | 155 | async featchData () { |
147 | try { | 156 | try { |
148 | this.form = Object.assign(this.form, this.formData) | 157 | this.form = Object.assign(this.form, this.formData) |
... | @@ -159,6 +168,12 @@ | ... | @@ -159,6 +168,12 @@ |
159 | // this.$refs.msg.messageShow() | 168 | // this.$refs.msg.messageShow() |
160 | } | 169 | } |
161 | }, | 170 | }, |
171 | /** | ||
172 | * @description: handlDatadetails | ||
173 | * @param {*} index | ||
174 | * @param {*} row | ||
175 | * @author: renchao | ||
176 | */ | ||
162 | async handlDatadetails (index, row) { | 177 | async handlDatadetails (index, row) { |
163 | let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB) | 178 | let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB) |
164 | if (res != null) { | 179 | if (res != null) { | ... | ... |
... | @@ -134,6 +134,10 @@ | ... | @@ -134,6 +134,10 @@ |
134 | } | 134 | } |
135 | }, | 135 | }, |
136 | methods: { | 136 | methods: { |
137 | /** | ||
138 | * @description: featchData | ||
139 | * @author: renchao | ||
140 | */ | ||
137 | async featchData () { | 141 | async featchData () { |
138 | try { | 142 | try { |
139 | this.form = Object.assign(this.form, this.formData) | 143 | this.form = Object.assign(this.form, this.formData) | ... | ... |
... | @@ -140,6 +140,10 @@ | ... | @@ -140,6 +140,10 @@ |
140 | } | 140 | } |
141 | }, | 141 | }, |
142 | methods: { | 142 | methods: { |
143 | /** | ||
144 | * @description: featchData | ||
145 | * @author: renchao | ||
146 | */ | ||
143 | async featchData () { | 147 | async featchData () { |
144 | try { | 148 | try { |
145 | this.form = Object.assign(this.form, this.formData) | 149 | this.form = Object.assign(this.form, this.formData) | ... | ... |
... | @@ -135,6 +135,10 @@ | ... | @@ -135,6 +135,10 @@ |
135 | } | 135 | } |
136 | }, | 136 | }, |
137 | methods: { | 137 | methods: { |
138 | /** | ||
139 | * @description: featchData | ||
140 | * @author: renchao | ||
141 | */ | ||
138 | async featchData () { | 142 | async featchData () { |
139 | try { | 143 | try { |
140 | this.form = Object.assign(this.form, this.formData) | 144 | this.form = Object.assign(this.form, this.formData) | ... | ... |
... | @@ -138,10 +138,19 @@ | ... | @@ -138,10 +138,19 @@ |
138 | }, | 138 | }, |
139 | methods: { | 139 | methods: { |
140 | // 是否显示下拉框 | 140 | // 是否显示下拉框 |
141 | /** | ||
142 | * @description: 是否显示下拉框 | ||
143 | * @param {*} e | ||
144 | * @author: renchao | ||
145 | */ | ||
141 | isShowSelectOptions (e) { | 146 | isShowSelectOptions (e) { |
142 | if (!e) this.$refs.selectnoticeRegQL.blur() | 147 | if (!e) this.$refs.selectnoticeRegQL.blur() |
143 | if (!e) this.$refs.selectnoticeRegDJ.blur() | 148 | if (!e) this.$refs.selectnoticeRegDJ.blur() |
144 | }, | 149 | }, |
150 | /** | ||
151 | * @description: featchData | ||
152 | * @author: renchao | ||
153 | */ | ||
145 | async featchData () { | 154 | async featchData () { |
146 | try { | 155 | try { |
147 | let { result: { list, total, pages: pageSize, pageNum: current } | 156 | let { result: { list, total, pages: pageSize, pageNum: current } | ... | ... |
... | @@ -134,10 +134,19 @@ | ... | @@ -134,10 +134,19 @@ |
134 | }, | 134 | }, |
135 | methods: { | 135 | methods: { |
136 | // 是否显示下拉框 | 136 | // 是否显示下拉框 |
137 | /** | ||
138 | * @description: 是否显示下拉框 | ||
139 | * @param {*} e | ||
140 | * @author: renchao | ||
141 | */ | ||
137 | isShowSelectOptions (e) { | 142 | isShowSelectOptions (e) { |
138 | if (!e) this.$refs.selectobjectionRegQL.blur() | 143 | if (!e) this.$refs.selectobjectionRegQL.blur() |
139 | if (!e) this.$refs.selectobjectionRegDJ.blur() | 144 | if (!e) this.$refs.selectobjectionRegDJ.blur() |
140 | }, | 145 | }, |
146 | /** | ||
147 | * @description: featchData | ||
148 | * @author: renchao | ||
149 | */ | ||
141 | async featchData () { | 150 | async featchData () { |
142 | try { | 151 | try { |
143 | this.form = Object.assign(this.form, this.formData) | 152 | this.form = Object.assign(this.form, this.formData) |
... | @@ -154,6 +163,12 @@ | ... | @@ -154,6 +163,12 @@ |
154 | this.$refs.msg.messageShow() | 163 | this.$refs.msg.messageShow() |
155 | } | 164 | } |
156 | }, | 165 | }, |
166 | /** | ||
167 | * @description: handlDatadetails | ||
168 | * @param {*} index | ||
169 | * @param {*} row | ||
170 | * @author: renchao | ||
171 | */ | ||
157 | handledetails (index, row) { | 172 | handledetails (index, row) { |
158 | } | 173 | } |
159 | } | 174 | } | ... | ... |
... | @@ -122,6 +122,10 @@ | ... | @@ -122,6 +122,10 @@ |
122 | } | 122 | } |
123 | }, | 123 | }, |
124 | methods: { | 124 | methods: { |
125 | /** | ||
126 | * @description: featchData | ||
127 | * @author: renchao | ||
128 | */ | ||
125 | async featchData () { | 129 | async featchData () { |
126 | try { | 130 | try { |
127 | this.form = Object.assign(this.form, this.formData) | 131 | this.form = Object.assign(this.form, this.formData) | ... | ... |
... | @@ -19,6 +19,10 @@ export default { | ... | @@ -19,6 +19,10 @@ export default { |
19 | } | 19 | } |
20 | }, | 20 | }, |
21 | methods: { | 21 | methods: { |
22 | /** | ||
23 | * @description: nextTo | ||
24 | * @author: renchao | ||
25 | */ | ||
22 | nextTo () { | 26 | nextTo () { |
23 | this.$router.push({ | 27 | this.$router.push({ |
24 | path: this.redirect || '/', | 28 | path: this.redirect || '/', | ... | ... |
... | @@ -27,6 +27,10 @@ export default { | ... | @@ -27,6 +27,10 @@ export default { |
27 | window.addEventListener("resize", this.debounce(this.setScale)); | 27 | window.addEventListener("resize", this.debounce(this.setScale)); |
28 | }, | 28 | }, |
29 | methods: { | 29 | methods: { |
30 | /** | ||
31 | * @description: getScale | ||
32 | * @author: renchao | ||
33 | */ | ||
30 | getScale() { | 34 | getScale() { |
31 | // 固定好16:9的宽高比,计算出最合适的缩放比 | 35 | // 固定好16:9的宽高比,计算出最合适的缩放比 |
32 | const { width, height } = this; | 36 | const { width, height } = this; |
... | @@ -34,6 +38,10 @@ export default { | ... | @@ -34,6 +38,10 @@ export default { |
34 | const ww = window.innerWidth / width; | 38 | const ww = window.innerWidth / width; |
35 | return ww < wh ? ww : wh; | 39 | return ww < wh ? ww : wh; |
36 | }, | 40 | }, |
41 | /** | ||
42 | * @description: setScale | ||
43 | * @author: renchao | ||
44 | */ | ||
37 | setScale() { | 45 | setScale() { |
38 | // 获取到缩放比例,设置它 | 46 | // 获取到缩放比例,设置它 |
39 | this.scale = this.getScale(); | 47 | this.scale = this.getScale(); |
... | @@ -41,6 +49,12 @@ export default { | ... | @@ -41,6 +49,12 @@ export default { |
41 | this.$refs.ScaleBox.style.setProperty("--scale", this.scale); | 49 | this.$refs.ScaleBox.style.setProperty("--scale", this.scale); |
42 | } | 50 | } |
43 | }, | 51 | }, |
52 | /** | ||
53 | * @description: debounce | ||
54 | * @param {*} fn | ||
55 | * @param {*} delay | ||
56 | * @author: renchao | ||
57 | */ | ||
44 | debounce(fn, delay) { | 58 | debounce(fn, delay) { |
45 | const delays = delay || 500; | 59 | const delays = delay || 500; |
46 | let timer; | 60 | let timer; | ... | ... |
... | @@ -56,6 +56,10 @@ | ... | @@ -56,6 +56,10 @@ |
56 | clearInterval(this.timing); | 56 | clearInterval(this.timing); |
57 | }, | 57 | }, |
58 | methods: { | 58 | methods: { |
59 | /** | ||
60 | * @description: cancelLoading | ||
61 | * @author: renchao | ||
62 | */ | ||
59 | cancelLoading () { | 63 | cancelLoading () { |
60 | setTimeout(() => { | 64 | setTimeout(() => { |
61 | this.loading = false; | 65 | this.loading = false; | ... | ... |
... | @@ -91,6 +91,10 @@ | ... | @@ -91,6 +91,10 @@ |
91 | }, | 91 | }, |
92 | }, | 92 | }, |
93 | methods: { | 93 | methods: { |
94 | /** | ||
95 | * @description: getsthjqxjrtotal | ||
96 | * @author: renchao | ||
97 | */ | ||
94 | getsthjqxjrtotal () { | 98 | getsthjqxjrtotal () { |
95 | return new Promise(async (resolve) => { | 99 | return new Promise(async (resolve) => { |
96 | try { | 100 | try { |
... | @@ -119,6 +123,10 @@ | ... | @@ -119,6 +123,10 @@ |
119 | } | 123 | } |
120 | }); | 124 | }); |
121 | }, | 125 | }, |
126 | /** | ||
127 | * @description: handleSthj | ||
128 | * @author: renchao | ||
129 | */ | ||
122 | handleSthj () { | 130 | handleSthj () { |
123 | this.$router.push({ | 131 | this.$router.push({ |
124 | path: '/sthj/sbbwcx', | 132 | path: '/sthj/sbbwcx', | ... | ... |
... | @@ -36,6 +36,10 @@ | ... | @@ -36,6 +36,10 @@ |
36 | clearInterval(this.timing); | 36 | clearInterval(this.timing); |
37 | }, | 37 | }, |
38 | methods: { | 38 | methods: { |
39 | /** | ||
40 | * @description: cancelLoading | ||
41 | * @author: renchao | ||
42 | */ | ||
39 | cancelLoading () { | 43 | cancelLoading () { |
40 | setTimeout(() => { | 44 | setTimeout(() => { |
41 | this.loading = false; | 45 | this.loading = false; | ... | ... |
... | @@ -56,6 +56,12 @@ export default { | ... | @@ -56,6 +56,12 @@ export default { |
56 | }; | 56 | }; |
57 | }, | 57 | }, |
58 | methods: { | 58 | methods: { |
59 | /** | ||
60 | * @description: drawProvinceMap | ||
61 | * @param {*} provinceName | ||
62 | * @param {*} mapName | ||
63 | * @author: renchao | ||
64 | */ | ||
59 | drawProvinceMap (provinceName, mapName) { | 65 | drawProvinceMap (provinceName, mapName) { |
60 | this.provinceName = provinceName; | 66 | this.provinceName = provinceName; |
61 | this.mapName = mapName; | 67 | this.mapName = mapName; | ... | ... |
... | @@ -76,10 +76,19 @@ | ... | @@ -76,10 +76,19 @@ |
76 | ...mapGetters(["dicData"]), | 76 | ...mapGetters(["dicData"]), |
77 | }, | 77 | }, |
78 | methods: { | 78 | methods: { |
79 | /** | ||
80 | * @description: endTimeChange | ||
81 | * @param {*} val | ||
82 | * @author: renchao | ||
83 | */ | ||
79 | endTimeChange (val) { | 84 | endTimeChange (val) { |
80 | this.form.endTime = timeFormat(new Date(val), true); | 85 | this.form.endTime = timeFormat(new Date(val), true); |
81 | }, | 86 | }, |
82 | //查询各区县办件数量 | 87 | //查询各区县办件数量 |
88 | /** | ||
89 | * @description: 查询各区县办件数量 | ||
90 | * @author: renchao | ||
91 | */ | ||
83 | async getProcessCounts () { | 92 | async getProcessCounts () { |
84 | this.pieChartsData = []; | 93 | this.pieChartsData = []; |
85 | let { result: res } = await efficient.getProcessCounts( | 94 | let { result: res } = await efficient.getProcessCounts( |
... | @@ -106,6 +115,10 @@ | ... | @@ -106,6 +115,10 @@ |
106 | }); | 115 | }); |
107 | }, | 116 | }, |
108 | // 重置 | 117 | // 重置 |
118 | /** | ||
119 | * @description: 重置 | ||
120 | * @author: renchao | ||
121 | */ | ||
109 | resetForm () { | 122 | resetForm () { |
110 | this.form = { | 123 | this.form = { |
111 | startTime: getFirstDayOfSeason(), | 124 | startTime: getFirstDayOfSeason(), |
... | @@ -114,6 +127,10 @@ | ... | @@ -114,6 +127,10 @@ |
114 | this.getProcessCounts(); | 127 | this.getProcessCounts(); |
115 | }, | 128 | }, |
116 | //玫瑰图初始化 | 129 | //玫瑰图初始化 |
130 | /** | ||
131 | * @description: 玫瑰图初始化 | ||
132 | * @author: renchao | ||
133 | */ | ||
117 | echartInit () { | 134 | echartInit () { |
118 | let _this = this; | 135 | let _this = this; |
119 | // 基于准备好的dom,初始化echarts实例 | 136 | // 基于准备好的dom,初始化echarts实例 |
... | @@ -178,6 +195,11 @@ | ... | @@ -178,6 +195,11 @@ |
178 | }); | 195 | }); |
179 | }, | 196 | }, |
180 | //柱图初始化 | 197 | //柱图初始化 |
198 | /** | ||
199 | * @description: 柱图初始化 | ||
200 | * @param {*} recType | ||
201 | * @author: renchao | ||
202 | */ | ||
181 | async barChartInit (recType) { | 203 | async barChartInit (recType) { |
182 | //请求recType对应业务的各区县数据 | 204 | //请求recType对应业务的各区县数据 |
183 | let { result: res } = await efficient.getProcessDays( | 205 | let { result: res } = await efficient.getProcessDays( | ... | ... |
src/views/jktj/ccdjqk/index.vue
0 → 100644
1 | <template> | ||
2 | <!-- 监控日志 --> | ||
3 | <div class="ccdjqk from-clues"> | ||
4 | <!-- 头部搜索 --> | ||
5 | <div class="from-clues-header"> | ||
6 | <el-form ref="form" :model="form" label-width="100px"> | ||
7 | <Breadcrumb /> | ||
8 | <el-row class="mb-5"> | ||
9 | <el-col :span="4"> | ||
10 | <el-form-item label="开始日期" class="d-flex"> | ||
11 | <el-date-picker class="width100" :clearable="false" type="date" placeholder="开始日期" | ||
12 | :picker-options="pickerOptionsStart" v-model="form.startDate" | ||
13 | value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> | ||
14 | </el-form-item> | ||
15 | </el-col> | ||
16 | <el-col :span="4"> | ||
17 | <el-form-item label="结束日期" class="d-flex"> | ||
18 | <el-date-picker class="width100" :clearable="false" type="date" placeholder="结束日期" | ||
19 | :picker-options="pickerOptionsEnd" v-model="form.endDate" value-format="yyyy-MM-dd HH:mm:ss" | ||
20 | @change="endDateChange"></el-date-picker> | ||
21 | </el-form-item> | ||
22 | </el-col> | ||
23 | <!-- 操作按钮 --> | ||
24 | <el-col :span="16" class="btnColRight"> | ||
25 | <btn nativeType="cz" @click="resetForm">重置</btn> | ||
26 | <btn nativeType="cx" @click="getProcessCounts">查询</btn> | ||
27 | </el-col> | ||
28 | </el-row> | ||
29 | </el-form> | ||
30 | </div> | ||
31 | <!-- 图表 --> | ||
32 | <div class="from-clues-content echarts-box" v-if="chartData.length"> | ||
33 | <div id="myChart" class="chart" style="height:100%;width:100%;"></div> | ||
34 | </div> | ||
35 | <div class="from-clues-content echarts-box center" v-else>暂无数据</div> | ||
36 | </div> | ||
37 | </template> | ||
38 | <script> | ||
39 | import { mapGetters } from "vuex"; | ||
40 | import { djqk } from "@/api/searchRecord.js"; | ||
41 | import { getFirstDayOfSeason, timeFormat } from "@/utils/operation"; | ||
42 | export default { | ||
43 | name: "jktj", | ||
44 | data () { | ||
45 | return { | ||
46 | // 开始日期限制 | ||
47 | pickerOptionsStart: { | ||
48 | disabledDate: (time) => { | ||
49 | if (this.form.endDate) { | ||
50 | return time.getTime() > new Date(this.form.endDate).getTime(); | ||
51 | } | ||
52 | }, | ||
53 | }, | ||
54 | // 结束日期限制 | ||
55 | pickerOptionsEnd: { | ||
56 | disabledDate: (time) => { | ||
57 | if (this.form.startDate) { | ||
58 | return time.getTime() < new Date(this.form.startDate).getTime(); | ||
59 | } | ||
60 | }, | ||
61 | }, | ||
62 | // 搜索表单 | ||
63 | form: { | ||
64 | startDate: getFirstDayOfSeason(), | ||
65 | endDate: timeFormat(new Date(), true), | ||
66 | }, | ||
67 | chartData: [] | ||
68 | }; | ||
69 | }, | ||
70 | mounted () { | ||
71 | // 财产登记情况 | ||
72 | this.getProcessCounts(); | ||
73 | }, | ||
74 | computed: { | ||
75 | ...mapGetters(["dicData"]), | ||
76 | }, | ||
77 | methods: { | ||
78 | endDateChange (val) { | ||
79 | this.form.endDate = timeFormat(new Date(val), true) | ||
80 | }, | ||
81 | async getProcessCounts () { | ||
82 | this.chartData = []; | ||
83 | let { result: res } = await djqk(this.form) | ||
84 | //获取图表配置项需要的数据 | ||
85 | this.chartData = res; | ||
86 | this.$nextTick(() => { | ||
87 | // 初始化图表 | ||
88 | this.chartData.length && this.echartInit(this.chartData) | ||
89 | }); | ||
90 | |||
91 | }, | ||
92 | // 重置 | ||
93 | resetForm () { | ||
94 | this.form = { | ||
95 | startDate: getFirstDayOfSeason(), | ||
96 | endDate: timeFormat(new Date(), true) | ||
97 | }; | ||
98 | this.getProcessCounts(); | ||
99 | }, | ||
100 | //图表渲染 | ||
101 | echartInit (chartArr) { | ||
102 | // 基于准备好的dom,初始化echarts实例 | ||
103 | let myChart = this.$echarts.init(document.getElementById("myChart")); | ||
104 | // 绘制图表 | ||
105 | myChart.setOption({ | ||
106 | color: ["#13E5FF"], | ||
107 | tooltip: { | ||
108 | show: true, | ||
109 | trigger: "axis", | ||
110 | textStyle: { | ||
111 | fontSize: 16, // 字体大小 | ||
112 | }, | ||
113 | }, | ||
114 | grid: { | ||
115 | top: 120, | ||
116 | bottom: 100, | ||
117 | }, | ||
118 | label: { | ||
119 | color: 'inherit', | ||
120 | }, | ||
121 | xAxis: [ | ||
122 | { | ||
123 | type: "category", | ||
124 | data: chartArr.map(item => item.name), | ||
125 | axisLabel: { | ||
126 | textStyle: { | ||
127 | show: true, | ||
128 | color: this.BASE_API.echartTextColor, | ||
129 | fontSize: "16" | ||
130 | } | ||
131 | } | ||
132 | } | ||
133 | ], | ||
134 | yAxis: [ | ||
135 | { | ||
136 | type: "value", | ||
137 | name: "数量/个", | ||
138 | nameTextStyle: { | ||
139 | color: this.BASE_API.echartTextColor, | ||
140 | fontSize: "16", | ||
141 | }, | ||
142 | axisLabel: { | ||
143 | textStyle: { | ||
144 | show: true, | ||
145 | color: this.BASE_API.echartTextColor, | ||
146 | fontSize: "16", | ||
147 | }, | ||
148 | }, | ||
149 | }, | ||
150 | ], | ||
151 | series: [ | ||
152 | { | ||
153 | type: "bar", | ||
154 | //显示数值 | ||
155 | itemStyle: { | ||
156 | normal: { | ||
157 | label: { | ||
158 | show: true, //开启显示 | ||
159 | position: "top", //在上方显示 | ||
160 | }, | ||
161 | }, | ||
162 | }, | ||
163 | barMaxWidth: '60', | ||
164 | data: chartArr.map(item => item.count), | ||
165 | }, | ||
166 | ], | ||
167 | }); | ||
168 | }, | ||
169 | }, | ||
170 | }; | ||
171 | </script> | ||
172 | <style scoped lang="scss"> | ||
173 | .ccdjqk { | ||
174 | flex-direction: column; | ||
175 | |||
176 | .rows { | ||
177 | margin-left: 100px; | ||
178 | } | ||
179 | |||
180 | .center { | ||
181 | line-height: 50vh; | ||
182 | text-align: center; | ||
183 | color: #b6b5b5; | ||
184 | } | ||
185 | } | ||
186 | </style> |
... | @@ -87,9 +87,18 @@ | ... | @@ -87,9 +87,18 @@ |
87 | ...mapGetters(["dicData"]), | 87 | ...mapGetters(["dicData"]), |
88 | }, | 88 | }, |
89 | methods: { | 89 | methods: { |
90 | /** | ||
91 | * @description: endTimeChange | ||
92 | * @param {*} val | ||
93 | * @author: renchao | ||
94 | */ | ||
90 | endTimeChange (val) { | 95 | endTimeChange (val) { |
91 | this.form.endTime = timeFormat(new Date(val), true) | 96 | this.form.endTime = timeFormat(new Date(val), true) |
92 | }, | 97 | }, |
98 | /** | ||
99 | * @description: getSuucessRate | ||
100 | * @author: renchao | ||
101 | */ | ||
93 | async getSuucessRate () { | 102 | async getSuucessRate () { |
94 | this.recTypeArr = []; | 103 | this.recTypeArr = []; |
95 | this.chartData = []; | 104 | this.chartData = []; |
... | @@ -113,6 +122,10 @@ | ... | @@ -113,6 +122,10 @@ |
113 | }); | 122 | }); |
114 | }, | 123 | }, |
115 | // 重置 | 124 | // 重置 |
125 | /** | ||
126 | * @description: 重置 | ||
127 | * @author: renchao | ||
128 | */ | ||
116 | resetForm () { | 129 | resetForm () { |
117 | this.form = { | 130 | this.form = { |
118 | startTime: getFirstDayOfSeason(), | 131 | startTime: getFirstDayOfSeason(), |
... | @@ -121,6 +134,10 @@ | ... | @@ -121,6 +134,10 @@ |
121 | }; | 134 | }; |
122 | this.getSuucessRate(); | 135 | this.getSuucessRate(); |
123 | }, | 136 | }, |
137 | /** | ||
138 | * @description: echartInit | ||
139 | * @author: renchao | ||
140 | */ | ||
124 | echartInit () { | 141 | echartInit () { |
125 | let _this = this; | 142 | let _this = this; |
126 | // 基于准备好的dom,初始化echarts实例 | 143 | // 基于准备好的dom,初始化echarts实例 | ... | ... |
... | @@ -130,12 +130,26 @@ | ... | @@ -130,12 +130,26 @@ |
130 | this.generateFileName() | 130 | this.generateFileName() |
131 | }, | 131 | }, |
132 | methods: { | 132 | methods: { |
133 | /** | ||
134 | * @description: handleSearch | ||
135 | * @author: renchao | ||
136 | */ | ||
133 | handleSearch () { }, | 137 | handleSearch () { }, |
134 | // 生成文件名 | 138 | // 生成文件名 |
139 | /** | ||
140 | * @description: 生成文件名 | ||
141 | * @author: renchao | ||
142 | */ | ||
135 | generateFileName () { | 143 | generateFileName () { |
136 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 144 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
137 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据接入质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 145 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据接入质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
138 | }, | 146 | }, |
147 | /** | ||
148 | * @description: headerStyle | ||
149 | * @param {*} row | ||
150 | * @param {*} rowIndex | ||
151 | * @author: renchao | ||
152 | */ | ||
139 | headerStyle ({ row, rowIndex }) { | 153 | headerStyle ({ row, rowIndex }) { |
140 | if (rowIndex == 4) { | 154 | if (rowIndex == 4) { |
141 | row[2].rowSpan = 2; | 155 | row[2].rowSpan = 2; |
... | @@ -143,6 +157,12 @@ | ... | @@ -143,6 +157,12 @@ |
143 | row[4].rowSpan = 2; | 157 | row[4].rowSpan = 2; |
144 | } | 158 | } |
145 | }, | 159 | }, |
160 | /** | ||
161 | * @description: headerStyle1 | ||
162 | * @param {*} row | ||
163 | * @param {*} rowIndex | ||
164 | * @author: renchao | ||
165 | */ | ||
146 | headerStyle1 ({ row, rowIndex }) { | 166 | headerStyle1 ({ row, rowIndex }) { |
147 | if (rowIndex == 3) { | 167 | if (rowIndex == 3) { |
148 | row[2].rowSpan = 2; | 168 | row[2].rowSpan = 2; |
... | @@ -150,6 +170,11 @@ | ... | @@ -150,6 +170,11 @@ |
150 | row[4].rowSpan = 2; | 170 | row[4].rowSpan = 2; |
151 | } | 171 | } |
152 | }, | 172 | }, |
173 | /** | ||
174 | * @description: handlesetExport2Excel | ||
175 | * @param {*} val | ||
176 | * @author: renchao | ||
177 | */ | ||
153 | handlesetExport2Excel (val) { | 178 | handlesetExport2Excel (val) { |
154 | this.disableds = true | 179 | this.disableds = true |
155 | setTimeout(() => { | 180 | setTimeout(() => { |
... | @@ -159,6 +184,10 @@ | ... | @@ -159,6 +184,10 @@ |
159 | setExport2Excel(val) | 184 | setExport2Excel(val) |
160 | }, | 185 | }, |
161 | // 初始化数据 | 186 | // 初始化数据 |
187 | /** | ||
188 | * @description: 初始化数据 | ||
189 | * @author: renchao | ||
190 | */ | ||
162 | featchDataSelf () { | 191 | featchDataSelf () { |
163 | dataReceiveQuality(this.form.startTime, this.form.endTime).then(res => { | 192 | dataReceiveQuality(this.form.startTime, this.form.endTime).then(res => { |
164 | let records = res.result | 193 | let records = res.result |
... | @@ -166,6 +195,10 @@ | ... | @@ -166,6 +195,10 @@ |
166 | }) | 195 | }) |
167 | }, | 196 | }, |
168 | // 重置 | 197 | // 重置 |
198 | /** | ||
199 | * @description: 重置 | ||
200 | * @author: renchao | ||
201 | */ | ||
169 | handleResetForm () { | 202 | handleResetForm () { |
170 | this.form.startTime = getCurrentDate() | 203 | this.form.startTime = getCurrentDate() |
171 | this.form.endTime = getCurrentDate('time') | 204 | this.form.endTime = getCurrentDate('time') | ... | ... |
... | @@ -127,14 +127,27 @@ | ... | @@ -127,14 +127,27 @@ |
127 | }, | 127 | }, |
128 | methods: { | 128 | methods: { |
129 | // 生成文件名 | 129 | // 生成文件名 |
130 | /** | ||
131 | * @description: 生成文件名 | ||
132 | * @author: renchao | ||
133 | */ | ||
130 | generateFileName () { | 134 | generateFileName () { |
131 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 135 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
132 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据相关字段空项率统计(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 136 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据相关字段空项率统计(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
133 | }, | 137 | }, |
138 | /** | ||
139 | * @description: handlesetExport2Excel | ||
140 | * @param {*} val | ||
141 | * @author: renchao | ||
142 | */ | ||
134 | handlesetExport2Excel (val) { | 143 | handlesetExport2Excel (val) { |
135 | setExport2Excel(val) | 144 | setExport2Excel(val) |
136 | }, | 145 | }, |
137 | // 初始化数据 | 146 | // 初始化数据 |
147 | /** | ||
148 | * @description: 初始化数据 | ||
149 | * @author: renchao | ||
150 | */ | ||
138 | featchDataSelf () { | 151 | featchDataSelf () { |
139 | nonNullSta(this.form.startTime, this.form.endTime).then(res => { | 152 | nonNullSta(this.form.startTime, this.form.endTime).then(res => { |
140 | let records = res.result | 153 | let records = res.result |
... | @@ -142,6 +155,10 @@ | ... | @@ -142,6 +155,10 @@ |
142 | }) | 155 | }) |
143 | }, | 156 | }, |
144 | // 重置 | 157 | // 重置 |
158 | /** | ||
159 | * @description: 重置 | ||
160 | * @author: renchao | ||
161 | */ | ||
145 | handleResetForm () { | 162 | handleResetForm () { |
146 | this.form.startTime = getCurrentDate() | 163 | this.form.startTime = getCurrentDate() |
147 | this.form.endTime = getCurrentDate('time') | 164 | this.form.endTime = getCurrentDate('time') | ... | ... |
... | @@ -149,15 +149,34 @@ | ... | @@ -149,15 +149,34 @@ |
149 | 149 | ||
150 | }, | 150 | }, |
151 | methods: { | 151 | methods: { |
152 | /** | ||
153 | * @description: handleSearch | ||
154 | * @author: renchao | ||
155 | */ | ||
152 | handleSearch () { }, | 156 | handleSearch () { }, |
153 | // 生成文件名 | 157 | // 生成文件名 |
158 | /** | ||
159 | * @description: 生成文件名 | ||
160 | * @author: renchao | ||
161 | */ | ||
154 | generateFileName () { | 162 | generateFileName () { |
155 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 163 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
156 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据登簿质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 164 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据登簿质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
157 | }, | 165 | }, |
166 | /** | ||
167 | * @description: handlesetExport2Excel | ||
168 | * @param {*} val | ||
169 | * @author: renchao | ||
170 | */ | ||
158 | handlesetExport2Excel (val) { | 171 | handlesetExport2Excel (val) { |
159 | setExport2Excel(val) | 172 | setExport2Excel(val) |
160 | }, | 173 | }, |
174 | /** | ||
175 | * @description: headerStyle | ||
176 | * @param {*} row | ||
177 | * @param {*} rowIndex | ||
178 | * @author: renchao | ||
179 | */ | ||
161 | headerStyle ({ row, rowIndex }) { | 180 | headerStyle ({ row, rowIndex }) { |
162 | if (rowIndex == 1) { | 181 | if (rowIndex == 1) { |
163 | row.forEach(item => { | 182 | row.forEach(item => { |
... | @@ -165,6 +184,12 @@ | ... | @@ -165,6 +184,12 @@ |
165 | }) | 184 | }) |
166 | } | 185 | } |
167 | }, | 186 | }, |
187 | /** | ||
188 | * @description: headerStyle1 | ||
189 | * @param {*} row | ||
190 | * @param {*} rowIndex | ||
191 | * @author: renchao | ||
192 | */ | ||
168 | headerStyle1 ({ row, rowIndex }) { | 193 | headerStyle1 ({ row, rowIndex }) { |
169 | if (rowIndex == 2) { | 194 | if (rowIndex == 2) { |
170 | row.forEach(item => { | 195 | row.forEach(item => { |
... | @@ -173,6 +198,10 @@ | ... | @@ -173,6 +198,10 @@ |
173 | } | 198 | } |
174 | }, | 199 | }, |
175 | // 初始化数据 | 200 | // 初始化数据 |
201 | /** | ||
202 | * @description: 初始化数据 | ||
203 | * @author: renchao | ||
204 | */ | ||
176 | featchDataSelf () { | 205 | featchDataSelf () { |
177 | registerBookQuality(this.form.startTime, this.form.endTime).then(res => { | 206 | registerBookQuality(this.form.startTime, this.form.endTime).then(res => { |
178 | let records = res.result | 207 | let records = res.result |
... | @@ -180,6 +209,10 @@ | ... | @@ -180,6 +209,10 @@ |
180 | }) | 209 | }) |
181 | }, | 210 | }, |
182 | // 重置 | 211 | // 重置 |
212 | /** | ||
213 | * @description: 重置 | ||
214 | * @author: renchao | ||
215 | */ | ||
183 | handleResetForm () { | 216 | handleResetForm () { |
184 | this.form.startTime = getCurrentDate() | 217 | this.form.startTime = getCurrentDate() |
185 | this.form.endTime = getCurrentDate('time') | 218 | this.form.endTime = getCurrentDate('time') | ... | ... |
... | @@ -86,9 +86,18 @@ | ... | @@ -86,9 +86,18 @@ |
86 | ...mapGetters(["dicData"]), | 86 | ...mapGetters(["dicData"]), |
87 | }, | 87 | }, |
88 | methods: { | 88 | methods: { |
89 | /** | ||
90 | * @description: endTimeChange | ||
91 | * @param {*} val | ||
92 | * @author: renchao | ||
93 | */ | ||
89 | endTimeChange (val) { | 94 | endTimeChange (val) { |
90 | this.form.endTime = timeFormat(new Date(val), true) | 95 | this.form.endTime = timeFormat(new Date(val), true) |
91 | }, | 96 | }, |
97 | /** | ||
98 | * @description: getProcessCounts | ||
99 | * @author: renchao | ||
100 | */ | ||
92 | async getProcessCounts () { | 101 | async getProcessCounts () { |
93 | this.chartData = []; | 102 | this.chartData = []; |
94 | let { result: res } = await efficient.getProcessCounts( | 103 | let { result: res } = await efficient.getProcessCounts( |
... | @@ -105,6 +114,10 @@ | ... | @@ -105,6 +114,10 @@ |
105 | 114 | ||
106 | }, | 115 | }, |
107 | // 重置 | 116 | // 重置 |
117 | /** | ||
118 | * @description: 重置 | ||
119 | * @author: renchao | ||
120 | */ | ||
108 | resetForm () { | 121 | resetForm () { |
109 | this.form = { | 122 | this.form = { |
110 | startTime: getFirstDayOfSeason(), | 123 | startTime: getFirstDayOfSeason(), |
... | @@ -114,6 +127,11 @@ | ... | @@ -114,6 +127,11 @@ |
114 | this.getProcessCounts(); | 127 | this.getProcessCounts(); |
115 | }, | 128 | }, |
116 | //图表渲染 | 129 | //图表渲染 |
130 | /** | ||
131 | * @description: 图表渲染 | ||
132 | * @param {*} chartArr | ||
133 | * @author: renchao | ||
134 | */ | ||
117 | echartInit (chartArr) { | 135 | echartInit (chartArr) { |
118 | // 基于准备好的dom,初始化echarts实例 | 136 | // 基于准备好的dom,初始化echarts实例 |
119 | let myChart = this.$echarts.init(document.getElementById("myChart")); | 137 | let myChart = this.$echarts.init(document.getElementById("myChart")); | ... | ... |
... | @@ -45,6 +45,11 @@ export default { | ... | @@ -45,6 +45,11 @@ export default { |
45 | }, | 45 | }, |
46 | methods: { | 46 | methods: { |
47 | //记住用户名 | 47 | //记住用户名 |
48 | /** | ||
49 | * @description: 记住用户名 | ||
50 | * @param {*} flag | ||
51 | * @author: renchao | ||
52 | */ | ||
48 | checkUserName: function (flag) { | 53 | checkUserName: function (flag) { |
49 | this.user.checkStatus = flag; | 54 | this.user.checkStatus = flag; |
50 | if (this.user.checkStatus) { | 55 | if (this.user.checkStatus) { |
... | @@ -59,6 +64,11 @@ export default { | ... | @@ -59,6 +64,11 @@ export default { |
59 | this.user.account = localStorage.getItem("accountId"); | 64 | this.user.account = localStorage.getItem("accountId"); |
60 | } | 65 | } |
61 | }, | 66 | }, |
67 | /** | ||
68 | * @description: login | ||
69 | * @param {*} user | ||
70 | * @author: renchao | ||
71 | */ | ||
62 | login (user) { | 72 | login (user) { |
63 | var self = this | 73 | var self = this |
64 | this.$refs[user].validate(async (valid) => { | 74 | this.$refs[user].validate(async (valid) => { | ... | ... |
... | @@ -194,10 +194,19 @@ | ... | @@ -194,10 +194,19 @@ |
194 | this.dialogVisible = false | 194 | this.dialogVisible = false |
195 | }, | 195 | }, |
196 | //截止日期变化 | 196 | //截止日期变化 |
197 | /** | ||
198 | * @description: 截止日期变化 | ||
199 | * @param {*} val | ||
200 | * @author: renchao | ||
201 | */ | ||
197 | endTimeChange (val) { | 202 | endTimeChange (val) { |
198 | this.form.receiveEndTime = timeFormat(new Date(val), true) | 203 | this.form.receiveEndTime = timeFormat(new Date(val), true) |
199 | }, | 204 | }, |
200 | // 初始化数据 | 205 | // 初始化数据 |
206 | /** | ||
207 | * @description: 初始化数据 | ||
208 | * @author: renchao | ||
209 | */ | ||
201 | queryClickSearch () { | 210 | queryClickSearch () { |
202 | saveSearchRecord({ ...this.form, ...this.formData }).then( | 211 | saveSearchRecord({ ...this.form, ...this.formData }).then( |
203 | (res) => { | 212 | (res) => { |
... | @@ -211,16 +220,32 @@ | ... | @@ -211,16 +220,32 @@ |
211 | ) | 220 | ) |
212 | }, | 221 | }, |
213 | // 重置 | 222 | // 重置 |
223 | /** | ||
224 | * @description: 重置 | ||
225 | * @author: renchao | ||
226 | */ | ||
214 | resetForm () { | 227 | resetForm () { |
215 | this.$refs.ruleForm.resetFields(); | 228 | this.$refs.ruleForm.resetFields(); |
216 | }, | 229 | }, |
230 | /** | ||
231 | * @description: featchData | ||
232 | * @author: renchao | ||
233 | */ | ||
217 | featchData () { }, | 234 | featchData () { }, |
235 | /** | ||
236 | * @description: handleSearchResult | ||
237 | * @author: renchao | ||
238 | */ | ||
218 | handleSearchResult () { | 239 | handleSearchResult () { |
219 | this.queryClickSearch() | 240 | this.queryClickSearch() |
220 | 241 | ||
221 | }, | 242 | }, |
222 | // 详情 | 243 | /** |
223 | 244 | * @description: 详情 | |
245 | * @author: renchao | ||
246 | */ | ||
247 | handleDetails (row) { | ||
248 | } | ||
224 | } | 249 | } |
225 | } | 250 | } |
226 | </script> | 251 | </script> | ... | ... |
... | @@ -171,10 +171,19 @@ | ... | @@ -171,10 +171,19 @@ |
171 | }, | 171 | }, |
172 | methods: { | 172 | methods: { |
173 | //截止日期变化 | 173 | //截止日期变化 |
174 | /** | ||
175 | * @description: 截止日期变化 | ||
176 | * @param {*} val | ||
177 | * @author: renchao | ||
178 | */ | ||
174 | endTimeChange (val) { | 179 | endTimeChange (val) { |
175 | this.form.receiveEndTime = timeFormat(new Date(val), true) | 180 | this.form.receiveEndTime = timeFormat(new Date(val), true) |
176 | }, | 181 | }, |
177 | // 初始化数据 | 182 | // 初始化数据 |
183 | /** | ||
184 | * @description: 初始化数据 | ||
185 | * @author: renchao | ||
186 | */ | ||
178 | queryClick () { | 187 | queryClick () { |
179 | getSearchRecordList({ ...this.form, ...this.formData }).then( | 188 | getSearchRecordList({ ...this.form, ...this.formData }).then( |
180 | (res) => { | 189 | (res) => { |
... | @@ -188,21 +197,37 @@ | ... | @@ -188,21 +197,37 @@ |
188 | ) | 197 | ) |
189 | }, | 198 | }, |
190 | // 重置 | 199 | // 重置 |
200 | /** | ||
201 | * @description: 重置 | ||
202 | * @author: renchao | ||
203 | */ | ||
191 | resetForm () { | 204 | resetForm () { |
192 | this.$refs.ruleForm.resetFields(); | 205 | this.$refs.ruleForm.resetFields(); |
193 | this.form.currentPage = 1 | 206 | this.form.currentPage = 1 |
194 | this.queryClick(); | 207 | this.queryClick(); |
195 | }, | 208 | }, |
209 | /** | ||
210 | * @description: featchData | ||
211 | * @author: renchao | ||
212 | */ | ||
196 | featchData () { | 213 | featchData () { |
197 | this.queryClick(); | 214 | this.queryClick(); |
198 | }, | 215 | }, |
199 | // 详情 | 216 | // 详情 |
217 | /** | ||
218 | * @description: 详情 | ||
219 | * @author: renchao | ||
220 | */ | ||
200 | handleDetails (row) { | 221 | handleDetails (row) { |
201 | editSearchRecord(row.bsm).then(res => { | 222 | editSearchRecord(row.bsm).then(res => { |
202 | this.dataDetail = res.result | 223 | this.dataDetail = res.result |
203 | this.$refs.resultData.sing(false); | 224 | this.$refs.resultData.sing(false); |
204 | }) | 225 | }) |
205 | }, | 226 | }, |
227 | /** | ||
228 | * @description: save | ||
229 | * @author: renchao | ||
230 | */ | ||
206 | save () { | 231 | save () { |
207 | this.dataDetail={} | 232 | this.dataDetail={} |
208 | this.$refs.resultData.sing(true); | 233 | this.$refs.resultData.sing(true); | ... | ... |
... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
22 | </el-form-item> | 22 | </el-form-item> |
23 | </el-col> | 23 | </el-col> |
24 | <el-col :span="6"> | 24 | <el-col :span="6"> |
25 | <el-form-item label="接收日期" prop="receiveStartTime"> | 25 | <el-form-item label="受理时间" prop="receiveStartTime"> |
26 | <el-date-picker type="date" class="width100" placeholder="开始日期" :picker-options="pickerOptionsStart" | 26 | <el-date-picker type="date" class="width100" placeholder="开始日期" :picker-options="pickerOptionsStart" |
27 | clearable v-model="form.receiveStartTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> | 27 | clearable v-model="form.receiveStartTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> |
28 | </el-form-item> | 28 | </el-form-item> |
... | @@ -228,6 +228,11 @@ | ... | @@ -228,6 +228,11 @@ |
228 | }; | 228 | }; |
229 | }, | 229 | }, |
230 | methods: { | 230 | methods: { |
231 | /** | ||
232 | * @description: uploadRecord | ||
233 | * @param {*} file | ||
234 | * @author: renchao | ||
235 | */ | ||
231 | uploadRecord (file) { | 236 | uploadRecord (file) { |
232 | this.requested = true | 237 | this.requested = true |
233 | this.files = file; | 238 | this.files = file; |
... | @@ -243,6 +248,11 @@ | ... | @@ -243,6 +248,11 @@ |
243 | } | 248 | } |
244 | return (extension) && isLt5M | 249 | return (extension) && isLt5M |
245 | }, | 250 | }, |
251 | /** | ||
252 | * @description: fileChange | ||
253 | * @param {*} res | ||
254 | * @author: renchao | ||
255 | */ | ||
246 | fileChange (res) { | 256 | fileChange (res) { |
247 | let fd = new FormData() | 257 | let fd = new FormData() |
248 | fd.append('files', res.raw)// 文件对象 | 258 | fd.append('files', res.raw)// 文件对象 |
... | @@ -259,10 +269,19 @@ | ... | @@ -259,10 +269,19 @@ |
259 | }) | 269 | }) |
260 | }, | 270 | }, |
261 | //截止日期变化 | 271 | //截止日期变化 |
272 | /** | ||
273 | * @description: 截止日期变化 | ||
274 | * @param {*} val | ||
275 | * @author: renchao | ||
276 | */ | ||
262 | endTimeChange (val) { | 277 | endTimeChange (val) { |
263 | this.form.receiveEndTime = timeFormat(new Date(val), true) | 278 | this.form.receiveEndTime = timeFormat(new Date(val), true) |
264 | }, | 279 | }, |
265 | // 初始化数据 | 280 | // 初始化数据 |
281 | /** | ||
282 | * @description: 初始化数据 | ||
283 | * @author: renchao | ||
284 | */ | ||
266 | queryClick () { | 285 | queryClick () { |
267 | getReceiveDataReportPage({ ...this.form, ...this.formData }).then( | 286 | getReceiveDataReportPage({ ...this.form, ...this.formData }).then( |
268 | (res) => { | 287 | (res) => { |
... | @@ -276,19 +295,37 @@ | ... | @@ -276,19 +295,37 @@ |
276 | ) | 295 | ) |
277 | }, | 296 | }, |
278 | // 重置 | 297 | // 重置 |
298 | /** | ||
299 | * @description: 重置 | ||
300 | * @author: renchao | ||
301 | */ | ||
279 | resetForm () { | 302 | resetForm () { |
280 | this.$refs.ruleForm.resetFields(); | 303 | this.$refs.ruleForm.resetFields(); |
281 | this.form.currentPage = 1 | 304 | this.form.currentPage = 1 |
282 | this.queryClick(); | 305 | this.queryClick(); |
283 | }, | 306 | }, |
307 | /** | ||
308 | * @description: featchData | ||
309 | * @author: renchao | ||
310 | */ | ||
284 | featchData () { | 311 | featchData () { |
285 | this.queryClick(); | 312 | this.queryClick(); |
286 | }, | 313 | }, |
287 | // 结果 | 314 | // 结果 |
315 | /** | ||
316 | * @description: 结果 | ||
317 | * @param {*} row | ||
318 | * @author: renchao | ||
319 | */ | ||
288 | handleResult (row) { | 320 | handleResult (row) { |
289 | this.$popupDialog('响应结果', 'views/jsbwcx/components/result', row) | 321 | this.$popupDialog('响应结果', 'views/jsbwcx/components/result', row) |
290 | }, | 322 | }, |
291 | // 详情 | 323 | // 详情 |
324 | /** | ||
325 | * @description: 详情 | ||
326 | * @param {*} row | ||
327 | * @author: renchao | ||
328 | */ | ||
292 | handleDetails (row) { | 329 | handleDetails (row) { |
293 | if (row.rectypeName) { | 330 | if (row.rectypeName) { |
294 | this.title = row.rectypeName | 331 | this.title = row.rectypeName | ... | ... |
... | @@ -289,10 +289,19 @@ | ... | @@ -289,10 +289,19 @@ |
289 | }, | 289 | }, |
290 | methods: { | 290 | methods: { |
291 | // 关闭弹框事件 | 291 | // 关闭弹框事件 |
292 | /** | ||
293 | * @description: 关闭弹框事件 | ||
294 | * @author: renchao | ||
295 | */ | ||
292 | closeDialog () { | 296 | closeDialog () { |
293 | this.dialogVisible = false; | 297 | this.dialogVisible = false; |
294 | }, | 298 | }, |
295 | // 展示弹框 | 299 | // 展示弹框 |
300 | /** | ||
301 | * @description: 展示弹框 | ||
302 | * @param {*} item | ||
303 | * @author: renchao | ||
304 | */ | ||
296 | isShow (item) { | 305 | isShow (item) { |
297 | this.title = '登薄日志(' + item.ACCESSDATE + ')' | 306 | this.title = '登薄日志(' + item.ACCESSDATE + ')' |
298 | this.titleName = 'sjmx' | 307 | this.titleName = 'sjmx' |
... | @@ -302,6 +311,7 @@ | ... | @@ -302,6 +311,7 @@ |
302 | }, | 311 | }, |
303 | /** | 312 | /** |
304 | * @description: 获取列表接口 | 313 | * @description: 获取列表接口 |
314 | * @param {*} data | ||
305 | * @author: renchao | 315 | * @author: renchao |
306 | */ | 316 | */ |
307 | _getDetails (data) { | 317 | _getDetails (data) { |
... | @@ -348,6 +358,10 @@ | ... | @@ -348,6 +358,10 @@ |
348 | }) | 358 | }) |
349 | }, | 359 | }, |
350 | // 当日登薄详单 | 360 | // 当日登薄详单 |
361 | /** | ||
362 | * @description: 当日登薄详单 | ||
363 | * @author: renchao | ||
364 | */ | ||
351 | handleDBAdd () { | 365 | handleDBAdd () { |
352 | this.tableDBData.data.push({ | 366 | this.tableDBData.data.push({ |
353 | YWH: '', | 367 | YWH: '', |
... | @@ -363,6 +377,11 @@ | ... | @@ -363,6 +377,11 @@ |
363 | this.$set(item, 'index', index) | 377 | this.$set(item, 'index', index) |
364 | }) | 378 | }) |
365 | }, | 379 | }, |
380 | /** | ||
381 | * @description: handleDBMinus | ||
382 | * @param {*} row | ||
383 | * @author: renchao | ||
384 | */ | ||
366 | handleDBMinus (row) { | 385 | handleDBMinus (row) { |
367 | this.$confirm('此操作将删除列表, 是否继续?', '提示', { | 386 | this.$confirm('此操作将删除列表, 是否继续?', '提示', { |
368 | confirmButtonText: '确定', | 387 | confirmButtonText: '确定', |
... | @@ -385,6 +404,10 @@ | ... | @@ -385,6 +404,10 @@ |
385 | }) | 404 | }) |
386 | }, | 405 | }, |
387 | // 当日上报详单 | 406 | // 当日上报详单 |
407 | /** | ||
408 | * @description: 当日上报详单 | ||
409 | * @author: renchao | ||
410 | */ | ||
388 | handleSBAdd () { | 411 | handleSBAdd () { |
389 | this.tableSBData.data.push({ | 412 | this.tableSBData.data.push({ |
390 | YWH: '', | 413 | YWH: '', |
... | @@ -396,6 +419,11 @@ | ... | @@ -396,6 +419,11 @@ |
396 | this.$set(item, 'index', index) | 419 | this.$set(item, 'index', index) |
397 | }) | 420 | }) |
398 | }, | 421 | }, |
422 | /** | ||
423 | * @description: handleSBMinus | ||
424 | * @param {*} row | ||
425 | * @author: renchao | ||
426 | */ | ||
399 | handleSBMinus (row) { | 427 | handleSBMinus (row) { |
400 | this.$confirm('此操作将删除列表, 是否继续?', '提示', { | 428 | this.$confirm('此操作将删除列表, 是否继续?', '提示', { |
401 | confirmButtonText: '确定', | 429 | confirmButtonText: '确定', | ... | ... |
... | @@ -129,9 +129,18 @@ | ... | @@ -129,9 +129,18 @@ |
129 | }, | 129 | }, |
130 | methods: { | 130 | methods: { |
131 | //截止日期变化 | 131 | //截止日期变化 |
132 | /** | ||
133 | * @description: 截止日期变化 | ||
134 | * @param {*} val | ||
135 | * @author: renchao | ||
136 | */ | ||
132 | endTimeChange (val) { | 137 | endTimeChange (val) { |
133 | this.form.endTime = timeFormat(new Date(val), true) | 138 | this.form.endTime = timeFormat(new Date(val), true) |
134 | }, | 139 | }, |
140 | /** | ||
141 | * @description: featchData | ||
142 | * @author: renchao | ||
143 | */ | ||
135 | featchData () { | 144 | featchData () { |
136 | getRecordLogPage({ ...this.form }).then(res => { | 145 | getRecordLogPage({ ...this.form }).then(res => { |
137 | if (res.code === 200) { | 146 | if (res.code === 200) { |
... | @@ -143,12 +152,21 @@ | ... | @@ -143,12 +152,21 @@ |
143 | }) | 152 | }) |
144 | }, | 153 | }, |
145 | // 重置 | 154 | // 重置 |
155 | /** | ||
156 | * @description: 重置 | ||
157 | * @author: renchao | ||
158 | */ | ||
146 | resetForm () { | 159 | resetForm () { |
147 | this.$refs.ruleForm.resetFields(); | 160 | this.$refs.ruleForm.resetFields(); |
148 | this.form.currentPage = 1 | 161 | this.form.currentPage = 1 |
149 | this.featchData(); | 162 | this.featchData(); |
150 | }, | 163 | }, |
151 | // 编辑 | 164 | // 编辑 |
165 | /** | ||
166 | * @description: 编辑 | ||
167 | * @param {*} row | ||
168 | * @author: renchao | ||
169 | */ | ||
152 | handleEdit (row) { | 170 | handleEdit (row) { |
153 | this.$refs.editLog.isShow(row); | 171 | this.$refs.editLog.isShow(row); |
154 | this.$store.dispatch('business/setEdit') | 172 | this.$store.dispatch('business/setEdit') | ... | ... |
... | @@ -82,9 +82,17 @@ export default { | ... | @@ -82,9 +82,17 @@ export default { |
82 | } | 82 | } |
83 | }, | 83 | }, |
84 | methods: { | 84 | methods: { |
85 | /** | ||
86 | * @description: closeDialog | ||
87 | * @author: renchao | ||
88 | */ | ||
85 | closeDialog () { | 89 | closeDialog () { |
86 | this.$emit('input', false) | 90 | this.$emit('input', false) |
87 | }, | 91 | }, |
92 | /** | ||
93 | * @description: handleSubmit | ||
94 | * @author: renchao | ||
95 | */ | ||
88 | handleSubmit () { | 96 | handleSubmit () { |
89 | this.$emit('input', false) | 97 | this.$emit('input', false) |
90 | } | 98 | } | ... | ... |
... | @@ -192,10 +192,19 @@ | ... | @@ -192,10 +192,19 @@ |
192 | }, | 192 | }, |
193 | methods: { | 193 | methods: { |
194 | //截止日期变化 | 194 | //截止日期变化 |
195 | /** | ||
196 | * @description: 截止日期变化 | ||
197 | * @param {*} val | ||
198 | * @author: renchao | ||
199 | */ | ||
195 | endTimeChange (val) { | 200 | endTimeChange (val) { |
196 | this.form.exchangeEndTime = timeFormat(new Date(val), true) | 201 | this.form.exchangeEndTime = timeFormat(new Date(val), true) |
197 | }, | 202 | }, |
198 | // 初始化数据 | 203 | // 初始化数据 |
204 | /** | ||
205 | * @description: 初始化数据 | ||
206 | * @author: renchao | ||
207 | */ | ||
199 | featchData () { | 208 | featchData () { |
200 | getDataReportPage({ ...this.form }).then((res) => { | 209 | getDataReportPage({ ...this.form }).then((res) => { |
201 | if (res.code === 200) { | 210 | if (res.code === 200) { |
... | @@ -207,8 +216,17 @@ | ... | @@ -207,8 +216,17 @@ |
207 | }); | 216 | }); |
208 | }, | 217 | }, |
209 | // 上报 | 218 | // 上报 |
219 | /** | ||
220 | * @description: 上报 | ||
221 | * @author: renchao | ||
222 | */ | ||
210 | handleEscalation () { }, | 223 | handleEscalation () { }, |
211 | // 详情 | 224 | // 详情 |
225 | /** | ||
226 | * @description: 详情 | ||
227 | * @param {*} row | ||
228 | * @author: renchao | ||
229 | */ | ||
212 | handleDetail (row) { | 230 | handleDetail (row) { |
213 | this.title = row.rectypeName; | 231 | this.title = row.rectypeName; |
214 | this.$refs.editLog.isShow(row); | 232 | this.$refs.editLog.isShow(row); |
... | @@ -217,6 +235,10 @@ | ... | @@ -217,6 +235,10 @@ |
217 | 235 | ||
218 | }, | 236 | }, |
219 | // 重置 | 237 | // 重置 |
238 | /** | ||
239 | * @description: 重置 | ||
240 | * @author: renchao | ||
241 | */ | ||
220 | resetForm () { | 242 | resetForm () { |
221 | this.$refs.ruleForm.resetFields(); | 243 | this.$refs.ruleForm.resetFields(); |
222 | this.form.exchangeEndTime = "" | 244 | this.form.exchangeEndTime = "" | ... | ... |
... | @@ -82,9 +82,17 @@ export default { | ... | @@ -82,9 +82,17 @@ export default { |
82 | } | 82 | } |
83 | }, | 83 | }, |
84 | methods: { | 84 | methods: { |
85 | /** | ||
86 | * @description: closeDialog | ||
87 | * @author: renchao | ||
88 | */ | ||
85 | closeDialog () { | 89 | closeDialog () { |
86 | this.$emit('input', false) | 90 | this.$emit('input', false) |
87 | }, | 91 | }, |
92 | /** | ||
93 | * @description: handleSubmit | ||
94 | * @author: renchao | ||
95 | */ | ||
88 | handleSubmit () { | 96 | handleSubmit () { |
89 | this.$emit('input', false) | 97 | this.$emit('input', false) |
90 | } | 98 | } | ... | ... |
... | @@ -209,10 +209,19 @@ | ... | @@ -209,10 +209,19 @@ |
209 | }, | 209 | }, |
210 | methods: { | 210 | methods: { |
211 | //截止日期变化 | 211 | //截止日期变化 |
212 | /** | ||
213 | * @description: 截止日期变化 | ||
214 | * @param {*} val | ||
215 | * @author: renchao | ||
216 | */ | ||
212 | endTimeChange (val) { | 217 | endTimeChange (val) { |
213 | this.form.exchangeEndTime = timeFormat(new Date(val), true) | 218 | this.form.exchangeEndTime = timeFormat(new Date(val), true) |
214 | }, | 219 | }, |
215 | // 初始化数据 | 220 | // 初始化数据 |
221 | /** | ||
222 | * @description: 初始化数据 | ||
223 | * @author: renchao | ||
224 | */ | ||
216 | featchData () { | 225 | featchData () { |
217 | getSjsbReportPage({ ...this.form, ...this.formData }).then((res) => { | 226 | getSjsbReportPage({ ...this.form, ...this.formData }).then((res) => { |
218 | if (res.code === 200) { | 227 | if (res.code === 200) { |
... | @@ -224,8 +233,17 @@ | ... | @@ -224,8 +233,17 @@ |
224 | }); | 233 | }); |
225 | }, | 234 | }, |
226 | // 上报 | 235 | // 上报 |
236 | /** | ||
237 | * @description: 上报 | ||
238 | * @author: renchao | ||
239 | */ | ||
227 | handleEscalation () { }, | 240 | handleEscalation () { }, |
228 | // 详情 | 241 | // 详情 |
242 | /** | ||
243 | * @description: 详情 | ||
244 | * @param {*} row | ||
245 | * @author: renchao | ||
246 | */ | ||
229 | handleDetail (row) { | 247 | handleDetail (row) { |
230 | this.title = row.rectypeName; | 248 | this.title = row.rectypeName; |
231 | this.$refs.editLog.isShow(row); | 249 | this.$refs.editLog.isShow(row); |
... | @@ -233,12 +251,21 @@ | ... | @@ -233,12 +251,21 @@ |
233 | 251 | ||
234 | }, | 252 | }, |
235 | // 重置 | 253 | // 重置 |
254 | /** | ||
255 | * @description: 重置 | ||
256 | * @author: renchao | ||
257 | */ | ||
236 | resetForm () { | 258 | resetForm () { |
237 | this.$refs.ruleForm.resetFields(); | 259 | this.$refs.ruleForm.resetFields(); |
238 | this.form.exchangeEndTime = "" | 260 | this.form.exchangeEndTime = "" |
239 | this.form.currentPage = 1 | 261 | this.form.currentPage = 1 |
240 | this.featchData(); | 262 | this.featchData(); |
241 | }, | 263 | }, |
264 | /** | ||
265 | * @description: ywhClick | ||
266 | * @param {*} item | ||
267 | * @author: renchao | ||
268 | */ | ||
242 | ywhClick (item) { | 269 | ywhClick (item) { |
243 | window.open('http://192.168.2.38/bdcdj#/workFrame?bsmSlsq=4582b05a4d49c25673eb0880b5787e58&bestepid=sl&bsmBusiness=&sqywbm=A03100', '_blank') | 270 | window.open('http://192.168.2.38/bdcdj#/workFrame?bsmSlsq=4582b05a4d49c25673eb0880b5787e58&bestepid=sl&bsmBusiness=&sqywbm=A03100', '_blank') |
244 | //判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面 | 271 | //判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面 | ... | ... |
... | @@ -92,6 +92,10 @@ | ... | @@ -92,6 +92,10 @@ |
92 | }, | 92 | }, |
93 | methods: { | 93 | methods: { |
94 | // 保存新增或关闭事件 | 94 | // 保存新增或关闭事件 |
95 | /** | ||
96 | * @description: 保存新增或关闭事件 | ||
97 | * @author: renchao | ||
98 | */ | ||
95 | submitForm () { | 99 | submitForm () { |
96 | this.$refs.form.validate((valid) => { | 100 | this.$refs.form.validate((valid) => { |
97 | if (valid) { | 101 | if (valid) { |
... | @@ -152,6 +156,10 @@ | ... | @@ -152,6 +156,10 @@ |
152 | }) | 156 | }) |
153 | }, | 157 | }, |
154 | // 重置 | 158 | // 重置 |
159 | /** | ||
160 | * @description: 重置 | ||
161 | * @author: renchao | ||
162 | */ | ||
155 | resetForm () { | 163 | resetForm () { |
156 | this.dialogForm = { | 164 | this.dialogForm = { |
157 | roleName: '', | 165 | roleName: '', |
... | @@ -159,6 +167,10 @@ | ... | @@ -159,6 +167,10 @@ |
159 | this.$refs.form.resetFields() | 167 | this.$refs.form.resetFields() |
160 | }, | 168 | }, |
161 | // 关闭 | 169 | // 关闭 |
170 | /** | ||
171 | * @description: 关闭 | ||
172 | * @author: renchao | ||
173 | */ | ||
162 | close () { | 174 | close () { |
163 | this.resetForm() | 175 | this.resetForm() |
164 | this.$emit('input', false) | 176 | this.$emit('input', false) | ... | ... |
... | @@ -139,6 +139,10 @@ | ... | @@ -139,6 +139,10 @@ |
139 | mounted () { }, | 139 | mounted () { }, |
140 | methods: { | 140 | methods: { |
141 | //查询 | 141 | //查询 |
142 | /** | ||
143 | * @description: 查询 | ||
144 | * @author: renchao | ||
145 | */ | ||
142 | searchQuery () { | 146 | searchQuery () { |
143 | if (this.form.rolesName) { | 147 | if (this.form.rolesName) { |
144 | this.listdata = this.childrenFn(this.setlistdata, this.form.rolesName); | 148 | this.listdata = this.childrenFn(this.setlistdata, this.form.rolesName); |
... | @@ -146,6 +150,12 @@ | ... | @@ -146,6 +150,12 @@ |
146 | this.getTableData() | 150 | this.getTableData() |
147 | } | 151 | } |
148 | }, | 152 | }, |
153 | /** | ||
154 | * @description: childrenFn | ||
155 | * @param {*} arr | ||
156 | * @param {*} key | ||
157 | * @author: renchao | ||
158 | */ | ||
149 | childrenFn (arr, key) { | 159 | childrenFn (arr, key) { |
150 | let searchTree = []; | 160 | let searchTree = []; |
151 | arr.forEach((item, index) => { | 161 | arr.forEach((item, index) => { |
... | @@ -159,6 +169,10 @@ | ... | @@ -159,6 +169,10 @@ |
159 | } | 169 | } |
160 | }, | 170 | }, |
161 | // 获取角色列表 | 171 | // 获取角色列表 |
172 | /** | ||
173 | * @description: 获取角色列表 | ||
174 | * @author: renchao | ||
175 | */ | ||
162 | getTableData () { | 176 | getTableData () { |
163 | getRolesById([1, 2]) | 177 | getRolesById([1, 2]) |
164 | .then((res) => { | 178 | .then((res) => { | ... | ... |
... | @@ -136,6 +136,12 @@ | ... | @@ -136,6 +136,12 @@ |
136 | methods: { | 136 | methods: { |
137 | 137 | ||
138 | // 人员配置点击行勾选数据 | 138 | // 人员配置点击行勾选数据 |
139 | /** | ||
140 | * @description: 人员配置点击行勾选数据 | ||
141 | * @param {*} row | ||
142 | * @param {*} event | ||
143 | * @author: renchao | ||
144 | */ | ||
139 | handleClickTableRow (row, event) { | 145 | handleClickTableRow (row, event) { |
140 | this.checkNum = 0; | 146 | this.checkNum = 0; |
141 | this.isCheck = false; | 147 | this.isCheck = false; |
... | @@ -176,6 +182,15 @@ | ... | @@ -176,6 +182,15 @@ |
176 | }, | 182 | }, |
177 | // 获取授权主体的菜单权限 | 183 | // 获取授权主体的菜单权限 |
178 | // getMenuAuthorityList | 184 | // getMenuAuthorityList |
185 | /** | ||
186 | * @description: 获取授权主体的菜单权限 | ||
187 | * @param {*} operationList | ||
188 | * @param {*} id | ||
189 | * @param {*} Code | ||
190 | * @param {*} menutablelistData | ||
191 | * @param {*} operationCodes | ||
192 | * @author: renchao | ||
193 | */ | ||
179 | menulist (operationList, id, Code, menutablelistData, operationCodes) { | 194 | menulist (operationList, id, Code, menutablelistData, operationCodes) { |
180 | this.selectedSubsystemCode = Code | 195 | this.selectedSubsystemCode = Code |
181 | this.menuList = menutablelistData; | 196 | this.menuList = menutablelistData; |
... | @@ -198,9 +213,11 @@ | ... | @@ -198,9 +213,11 @@ |
198 | 213 | ||
199 | }, | 214 | }, |
200 | /** | 215 | /** |
201 | * 递归渲染列表数据 | 216 | * @description: 递归渲染列表数据 |
202 | * list:原始数组 | 217 | * @param {*} list 原始数组 |
203 | * authorityList:已授权数组 | 218 | * @param {*} authorityList 已授权数组 |
219 | * @param {*} operationCodes | ||
220 | * @author: renchao | ||
204 | */ | 221 | */ |
205 | getRecursionTreeData (list, authorityList, operationCodes) { | 222 | getRecursionTreeData (list, authorityList, operationCodes) { |
206 | ++this.menukey | 223 | ++this.menukey |
... | @@ -239,6 +256,13 @@ | ... | @@ -239,6 +256,13 @@ |
239 | // this.setCheckAllArr(list) | 256 | // this.setCheckAllArr(list) |
240 | }, | 257 | }, |
241 | // 授权条件 | 258 | // 授权条件 |
259 | /** | ||
260 | * @description: 授权条件 | ||
261 | * @param {*} authorityList | ||
262 | * @param {*} checkArr | ||
263 | * @param {*} item | ||
264 | * @author: renchao | ||
265 | */ | ||
242 | setAuthorizedConditions (authorityList, checkArr, item) { | 266 | setAuthorizedConditions (authorityList, checkArr, item) { |
243 | if (this.roleId === '') { | 267 | if (this.roleId === '') { |
244 | checkArr.forEach(ele => { | 268 | checkArr.forEach(ele => { |
... | @@ -272,6 +296,10 @@ | ... | @@ -272,6 +296,10 @@ |
272 | this.$set(item, 'checkArr', this.$deepCopy(checkArr)) | 296 | this.$set(item, 'checkArr', this.$deepCopy(checkArr)) |
273 | }, | 297 | }, |
274 | // 获取拼接授权信息 | 298 | // 获取拼接授权信息 |
299 | /** | ||
300 | * @description: 获取拼接授权信息 | ||
301 | * @author: renchao | ||
302 | */ | ||
275 | getAuthorizedInfo () { | 303 | getAuthorizedInfo () { |
276 | const lastArr = [] | 304 | const lastArr = [] |
277 | const authorizedList = [] | 305 | const authorizedList = [] |
... | @@ -306,6 +334,12 @@ | ... | @@ -306,6 +334,12 @@ |
306 | } | 334 | } |
307 | }, | 335 | }, |
308 | // 获取人员列表做筛选 | 336 | // 获取人员列表做筛选 |
337 | /** | ||
338 | * @description: 获取人员列表做筛选 | ||
339 | * @param {*} a | ||
340 | * @param {*} rid | ||
341 | * @author: renchao | ||
342 | */ | ||
309 | personlist (a, rid) { | 343 | personlist (a, rid) { |
310 | this.roleId = rid; | 344 | this.roleId = rid; |
311 | this.visible = true; | 345 | this.visible = true; |
... | @@ -326,10 +360,18 @@ | ... | @@ -326,10 +360,18 @@ |
326 | }); | 360 | }); |
327 | }, | 361 | }, |
328 | // 关闭事件 | 362 | // 关闭事件 |
363 | /** | ||
364 | * @description: 关闭事件 | ||
365 | * @author: renchao | ||
366 | */ | ||
329 | close () { | 367 | close () { |
330 | this.visible = false; | 368 | this.visible = false; |
331 | }, | 369 | }, |
332 | // 保存事件 | 370 | // 保存事件 |
371 | /** | ||
372 | * @description: 保存事件 | ||
373 | * @author: renchao | ||
374 | */ | ||
333 | handleSaveMember () { | 375 | handleSaveMember () { |
334 | // 人员授权 | 376 | // 人员授权 |
335 | const idList = this.usermultipleSelection.map((item) => { | 377 | const idList = this.usermultipleSelection.map((item) => { |
... | @@ -357,6 +399,11 @@ | ... | @@ -357,6 +399,11 @@ |
357 | }) | 399 | }) |
358 | }, | 400 | }, |
359 | // 勾选人员事件 | 401 | // 勾选人员事件 |
402 | /** | ||
403 | * @description: 勾选人员事件 | ||
404 | * @param {*} val | ||
405 | * @author: renchao | ||
406 | */ | ||
360 | handleSelectionChange (val) { | 407 | handleSelectionChange (val) { |
361 | this.lastuserList.forEach((element, index) => { | 408 | this.lastuserList.forEach((element, index) => { |
362 | delete this.lastuserList[index].selectStatus | 409 | delete this.lastuserList[index].selectStatus |
... | @@ -371,6 +418,12 @@ | ... | @@ -371,6 +418,12 @@ |
371 | }); | 418 | }); |
372 | }, | 419 | }, |
373 | // 数据筛选 | 420 | // 数据筛选 |
421 | /** | ||
422 | * @description: 数据筛选 | ||
423 | * @param {*} scope | ||
424 | * @param {*} arr | ||
425 | * @author: renchao | ||
426 | */ | ||
374 | setarrdata (scope, arr) { | 427 | setarrdata (scope, arr) { |
375 | 428 | ||
376 | arr.forEach((item, index, arr) => { | 429 | arr.forEach((item, index, arr) => { |
... | @@ -384,6 +437,13 @@ | ... | @@ -384,6 +437,13 @@ |
384 | 437 | ||
385 | }, | 438 | }, |
386 | // 勾选菜单事件 | 439 | // 勾选菜单事件 |
440 | /** | ||
441 | * @description: 勾选菜单事件 | ||
442 | * @param {*} flag | ||
443 | * @param {*} checkId | ||
444 | * @param {*} scope | ||
445 | * @author: renchao | ||
446 | */ | ||
387 | changeCheck (flag, checkId, scope) { | 447 | changeCheck (flag, checkId, scope) { |
388 | this.checklistbor = [] | 448 | this.checklistbor = [] |
389 | this.setarrdata(scope, this.lastMenuList) | 449 | this.setarrdata(scope, this.lastMenuList) |
... | @@ -400,6 +460,12 @@ | ... | @@ -400,6 +460,12 @@ |
400 | ) | 460 | ) |
401 | this.getAuthorizedInfo() | 461 | this.getAuthorizedInfo() |
402 | }, | 462 | }, |
463 | /** | ||
464 | * @description: handleClick | ||
465 | * @param {*} tab | ||
466 | * @param {*} event | ||
467 | * @author: renchao | ||
468 | */ | ||
403 | handleClick (tab, event) { | 469 | handleClick (tab, event) { |
404 | this.lastuserList.forEach((item, index) => { | 470 | this.lastuserList.forEach((item, index) => { |
405 | if (item.selectStatus === 0) { | 471 | if (item.selectStatus === 0) { | ... | ... |
... | @@ -83,6 +83,10 @@ | ... | @@ -83,6 +83,10 @@ |
83 | } | 83 | } |
84 | }, | 84 | }, |
85 | methods: { | 85 | methods: { |
86 | /** | ||
87 | * @description: handleSubmit | ||
88 | * @author: renchao | ||
89 | */ | ||
86 | handleSubmit () { | 90 | handleSubmit () { |
87 | let _this = this | 91 | let _this = this |
88 | this.$refs['ruleForm'].validate(async (valid) => { | 92 | this.$refs['ruleForm'].validate(async (valid) => { |
... | @@ -125,6 +129,10 @@ | ... | @@ -125,6 +129,10 @@ |
125 | } | 129 | } |
126 | }) | 130 | }) |
127 | }, | 131 | }, |
132 | /** | ||
133 | * @description: handleClose | ||
134 | * @author: renchao | ||
135 | */ | ||
128 | handleClose () { | 136 | handleClose () { |
129 | this.$emit("input", false); | 137 | this.$emit("input", false); |
130 | } | 138 | } | ... | ... |
... | @@ -163,6 +163,10 @@ | ... | @@ -163,6 +163,10 @@ |
163 | } | 163 | } |
164 | }, | 164 | }, |
165 | methods: { | 165 | methods: { |
166 | /** | ||
167 | * @description: isShow | ||
168 | * @author: renchao | ||
169 | */ | ||
166 | isShow () { | 170 | isShow () { |
167 | setTimeout(() => { | 171 | setTimeout(() => { |
168 | this.ruleForm = this.ruleData | 172 | this.ruleForm = this.ruleData |
... | @@ -170,9 +174,18 @@ | ... | @@ -170,9 +174,18 @@ |
170 | }, 0) | 174 | }, 0) |
171 | this.$refs.validRule.isShow() | 175 | this.$refs.validRule.isShow() |
172 | }, | 176 | }, |
177 | /** | ||
178 | * @description: handleEdit | ||
179 | * @param {*} scope | ||
180 | * @author: renchao | ||
181 | */ | ||
173 | handleEdit (scope) { | 182 | handleEdit (scope) { |
174 | this.$set(scope.row, '_edit', true) | 183 | this.$set(scope.row, '_edit', true) |
175 | }, | 184 | }, |
185 | /** | ||
186 | * @description: handleAdd | ||
187 | * @author: renchao | ||
188 | */ | ||
176 | handleAdd () { | 189 | handleAdd () { |
177 | this.tableData.data.push({ | 190 | this.tableData.data.push({ |
178 | field: '', | 191 | field: '', |
... | @@ -182,9 +195,19 @@ | ... | @@ -182,9 +195,19 @@ |
182 | message: '' | 195 | message: '' |
183 | }) | 196 | }) |
184 | }, | 197 | }, |
198 | /** | ||
199 | * @description: handleMinus | ||
200 | * @param {*} index | ||
201 | * @param {*} row | ||
202 | * @author: renchao | ||
203 | */ | ||
185 | handleMinus (index, row) { | 204 | handleMinus (index, row) { |
186 | this.tableData.data.splice(index, 1); | 205 | this.tableData.data.splice(index, 1); |
187 | }, | 206 | }, |
207 | /** | ||
208 | * @description: handleSubmit | ||
209 | * @author: renchao | ||
210 | */ | ||
188 | async handleSubmit () { | 211 | async handleSubmit () { |
189 | this.ruleForm.sysYwsjbFieldList = this.tableData.data | 212 | this.ruleForm.sysYwsjbFieldList = this.tableData.data |
190 | try { | 213 | try { |
... | @@ -203,6 +226,10 @@ | ... | @@ -203,6 +226,10 @@ |
203 | } | 226 | } |
204 | 227 | ||
205 | }, | 228 | }, |
229 | /** | ||
230 | * @description: handleClose | ||
231 | * @author: renchao | ||
232 | */ | ||
206 | handleClose () { | 233 | handleClose () { |
207 | this.$refs['ruleForm'].resetFields(); | 234 | this.$refs['ruleForm'].resetFields(); |
208 | this.$refs.validRule.isHide() | 235 | this.$refs.validRule.isHide() | ... | ... |
... | @@ -262,6 +262,12 @@ | ... | @@ -262,6 +262,12 @@ |
262 | }, | 262 | }, |
263 | methods: { | 263 | methods: { |
264 | // 添加索引 | 264 | // 添加索引 |
265 | /** | ||
266 | * @description: 添加索引 | ||
267 | * @param {*} data | ||
268 | * @param {*} isAdd | ||
269 | * @author: renchao | ||
270 | */ | ||
265 | addIndexes (data = this.tableData, isAdd = true) { | 271 | addIndexes (data = this.tableData, isAdd = true) { |
266 | data.forEach((item, index) => { | 272 | data.forEach((item, index) => { |
267 | if (index == 0) { | 273 | if (index == 0) { |
... | @@ -283,6 +289,10 @@ | ... | @@ -283,6 +289,10 @@ |
283 | } | 289 | } |
284 | }); | 290 | }); |
285 | }, | 291 | }, |
292 | /** | ||
293 | * @description: itemShowFalse | ||
294 | * @author: renchao | ||
295 | */ | ||
286 | itemShowFalse () { | 296 | itemShowFalse () { |
287 | this.tableData.forEach((item, index) => { | 297 | this.tableData.forEach((item, index) => { |
288 | item.codeShow = false; | 298 | item.codeShow = false; |
... | @@ -291,11 +301,21 @@ | ... | @@ -291,11 +301,21 @@ |
291 | item.normnameShow = false; | 301 | item.normnameShow = false; |
292 | }); | 302 | }); |
293 | }, | 303 | }, |
304 | /** | ||
305 | * @description: handleMinus | ||
306 | * @param {*} index | ||
307 | * @param {*} row | ||
308 | * @author: renchao | ||
309 | */ | ||
294 | handleMinus (index, row) { | 310 | handleMinus (index, row) { |
295 | removeTreeListItem(this.tableData, row.dictid, 'dictid'); | 311 | removeTreeListItem(this.tableData, row.dictid, 'dictid'); |
296 | this.tableData = judgeSort(this.tableData) | 312 | this.tableData = judgeSort(this.tableData) |
297 | this.key++; | 313 | this.key++; |
298 | }, | 314 | }, |
315 | /** | ||
316 | * @description: handleSubmit | ||
317 | * @author: renchao | ||
318 | */ | ||
299 | handleSubmit () { | 319 | handleSubmit () { |
300 | editDictNode({ | 320 | editDictNode({ |
301 | dictid: this.details.rowData.dictid, | 321 | dictid: this.details.rowData.dictid, |
... | @@ -311,10 +331,19 @@ | ... | @@ -311,10 +331,19 @@ |
311 | } | 331 | } |
312 | }); | 332 | }); |
313 | }, | 333 | }, |
334 | /** | ||
335 | * @description: closeDialog | ||
336 | * @author: renchao | ||
337 | */ | ||
314 | closeDialog () { | 338 | closeDialog () { |
315 | this.$emit("input", false); | 339 | this.$emit("input", false); |
316 | }, | 340 | }, |
317 | // 增加下级 | 341 | // 增加下级 |
342 | /** | ||
343 | * @description: 增加下级 | ||
344 | * @param {*} row | ||
345 | * @author: renchao | ||
346 | */ | ||
318 | handleAddSubordinate (row) { | 347 | handleAddSubordinate (row) { |
319 | if (!row.children) { | 348 | if (!row.children) { |
320 | row.children = []; | 349 | row.children = []; |
... | @@ -332,6 +361,10 @@ | ... | @@ -332,6 +361,10 @@ |
332 | this.keyList.push(row.dictid); | 361 | this.keyList.push(row.dictid); |
333 | }, | 362 | }, |
334 | // 增加 | 363 | // 增加 |
364 | /** | ||
365 | * @description: 增加 | ||
366 | * @author: renchao | ||
367 | */ | ||
335 | handleAdd () { | 368 | handleAdd () { |
336 | this.$nextTick(() => { | 369 | this.$nextTick(() => { |
337 | let container = this.$el.querySelector(".el-table__body-wrapper"); | 370 | let container = this.$el.querySelector(".el-table__body-wrapper"); |
... | @@ -351,12 +384,24 @@ | ... | @@ -351,12 +384,24 @@ |
351 | this.key++; | 384 | this.key++; |
352 | }, | 385 | }, |
353 | // 上移下移 | 386 | // 上移下移 |
387 | /** | ||
388 | * @description: 上移下移 | ||
389 | * @param {*} index | ||
390 | * @param {*} row | ||
391 | * @author: renchao | ||
392 | */ | ||
354 | moveUpward (index, row) { | 393 | moveUpward (index, row) { |
355 | realMove(row.dictid, "UP", this.tableData); | 394 | realMove(row.dictid, "UP", this.tableData); |
356 | let id = findParents(this.tableData, row.dictid); | 395 | let id = findParents(this.tableData, row.dictid); |
357 | this.keyList = id; | 396 | this.keyList = id; |
358 | this.key++; | 397 | this.key++; |
359 | }, | 398 | }, |
399 | /** | ||
400 | * @description: moveDown | ||
401 | * @param {*} index | ||
402 | * @param {*} row | ||
403 | * @author: renchao | ||
404 | */ | ||
360 | moveDown (index, row) { | 405 | moveDown (index, row) { |
361 | realMove(row.dictid, "DOWN", this.tableData); | 406 | realMove(row.dictid, "DOWN", this.tableData); |
362 | let id = findParents(this.tableData, row.dictid); | 407 | let id = findParents(this.tableData, row.dictid); | ... | ... |
... | @@ -86,6 +86,10 @@ | ... | @@ -86,6 +86,10 @@ |
86 | }, | 86 | }, |
87 | methods: { | 87 | methods: { |
88 | // 初始化数据 | 88 | // 初始化数据 |
89 | /** | ||
90 | * @description: 初始化数据 | ||
91 | * @author: renchao | ||
92 | */ | ||
89 | queryClick () { | 93 | queryClick () { |
90 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { | 94 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { |
91 | let { records, total } = res.result | 95 | let { records, total } = res.result |
... | @@ -93,11 +97,19 @@ | ... | @@ -93,11 +97,19 @@ |
93 | this.tableData.total = total ? total : 0 | 97 | this.tableData.total = total ? total : 0 |
94 | }) | 98 | }) |
95 | }, | 99 | }, |
100 | /** | ||
101 | * @description: handleSearch | ||
102 | * @author: renchao | ||
103 | */ | ||
96 | handleSearch () { | 104 | handleSearch () { |
97 | this.pageData.currentPage = 1 | 105 | this.pageData.currentPage = 1 |
98 | this.tableData.data = [] | 106 | this.tableData.data = [] |
99 | this.queryClick() | 107 | this.queryClick() |
100 | }, | 108 | }, |
109 | /** | ||
110 | * @description: handleRefresh | ||
111 | * @author: renchao | ||
112 | */ | ||
101 | handleRefresh () { | 113 | handleRefresh () { |
102 | this.$confirm('是否确认刷新', '提示', { | 114 | this.$confirm('是否确认刷新', '提示', { |
103 | confirmButtonText: '确定', | 115 | confirmButtonText: '确定', |
... | @@ -123,6 +135,12 @@ | ... | @@ -123,6 +135,12 @@ |
123 | }); | 135 | }); |
124 | }); | 136 | }); |
125 | }, | 137 | }, |
138 | /** | ||
139 | * @description: editClick | ||
140 | * @param {*} row | ||
141 | * @param {*} val | ||
142 | * @author: renchao | ||
143 | */ | ||
126 | editClick (row, val) { | 144 | editClick (row, val) { |
127 | this.details.rowData = row | 145 | this.details.rowData = row |
128 | this.details.isenable = val | 146 | this.details.isenable = val | ... | ... |
... | @@ -108,6 +108,11 @@ | ... | @@ -108,6 +108,11 @@ |
108 | ] | 108 | ] |
109 | }, | 109 | }, |
110 | methods: { | 110 | methods: { |
111 | /** | ||
112 | * @description: getUserdata | ||
113 | * @param {*} id | ||
114 | * @author: renchao | ||
115 | */ | ||
111 | getUserdata (id) { | 116 | getUserdata (id) { |
112 | getAction(`${api.users}/${id}`).then((res) => { | 117 | getAction(`${api.users}/${id}`).then((res) => { |
113 | if (res.status === 1) { | 118 | if (res.status === 1) { |
... | @@ -117,6 +122,10 @@ | ... | @@ -117,6 +122,10 @@ |
117 | } | 122 | } |
118 | }) | 123 | }) |
119 | }, | 124 | }, |
125 | /** | ||
126 | * @description: updateInfo | ||
127 | * @author: renchao | ||
128 | */ | ||
120 | updateInfo () { | 129 | updateInfo () { |
121 | this.$refs.form.validate((valid) => { | 130 | this.$refs.form.validate((valid) => { |
122 | if (valid) { | 131 | if (valid) { | ... | ... |
... | @@ -54,9 +54,17 @@ | ... | @@ -54,9 +54,17 @@ |
54 | created () { }, | 54 | created () { }, |
55 | mounted () { }, | 55 | mounted () { }, |
56 | methods: { | 56 | methods: { |
57 | /** | ||
58 | * @description: information | ||
59 | * @author: renchao | ||
60 | */ | ||
57 | information () { | 61 | information () { |
58 | this.isshow = true; | 62 | this.isshow = true; |
59 | }, | 63 | }, |
64 | /** | ||
65 | * @description: password | ||
66 | * @author: renchao | ||
67 | */ | ||
60 | password () { | 68 | password () { |
61 | this.isshow = false; | 69 | this.isshow = false; |
62 | }, | 70 | }, | ... | ... |
... | @@ -83,9 +83,21 @@ | ... | @@ -83,9 +83,21 @@ |
83 | } | 83 | } |
84 | }, | 84 | }, |
85 | methods: { | 85 | methods: { |
86 | /** | ||
87 | * @description: getid | ||
88 | * @param {*} val | ||
89 | * @author: renchao | ||
90 | */ | ||
86 | getid (val) { | 91 | getid (val) { |
87 | this.userId = val.id; | 92 | this.userId = val.id; |
88 | }, | 93 | }, |
94 | /** | ||
95 | * @description: validatorConfirmPassword | ||
96 | * @param {*} rule | ||
97 | * @param {*} value | ||
98 | * @param {*} callback | ||
99 | * @author: renchao | ||
100 | */ | ||
89 | validatorConfirmPassword (rule, value, callback) { | 101 | validatorConfirmPassword (rule, value, callback) { |
90 | const { newPassword } = this.form; | 102 | const { newPassword } = this.form; |
91 | if (value !== newPassword) { | 103 | if (value !== newPassword) { |
... | @@ -94,6 +106,10 @@ | ... | @@ -94,6 +106,10 @@ |
94 | callback(); | 106 | callback(); |
95 | } | 107 | } |
96 | }, | 108 | }, |
109 | /** | ||
110 | * @description: updatePassword | ||
111 | * @author: renchao | ||
112 | */ | ||
97 | updatePassword () { | 113 | updatePassword () { |
98 | this.$refs.form.validate((valid) => { | 114 | this.$refs.form.validate((valid) => { |
99 | if (valid) { | 115 | if (valid) { | ... | ... |
... | @@ -88,10 +88,19 @@ | ... | @@ -88,10 +88,19 @@ |
88 | }, | 88 | }, |
89 | 89 | ||
90 | methods: { | 90 | methods: { |
91 | /** | ||
92 | * @description: onJsonChange | ||
93 | * @param {*} value | ||
94 | * @author: renchao | ||
95 | */ | ||
91 | onJsonChange (value) { | 96 | onJsonChange (value) { |
92 | // 只有在格式正确的时候进入此事件 | 97 | // 只有在格式正确的时候进入此事件 |
93 | this.hasJsonFlag = true | 98 | this.hasJsonFlag = true |
94 | }, | 99 | }, |
100 | /** | ||
101 | * @description: onJsonSave | ||
102 | * @author: renchao | ||
103 | */ | ||
95 | onJsonSave () { | 104 | onJsonSave () { |
96 | const value = this.resultInfo | 105 | const value = this.resultInfo |
97 | if (this.hasJsonFlag === false) { | 106 | if (this.hasJsonFlag === false) { |
... | @@ -104,17 +113,34 @@ | ... | @@ -104,17 +113,34 @@ |
104 | return true | 113 | return true |
105 | } | 114 | } |
106 | }, | 115 | }, |
116 | /** | ||
117 | * @description: onError | ||
118 | * @param {*} value | ||
119 | * @author: renchao | ||
120 | */ | ||
107 | onError (value) { | 121 | onError (value) { |
108 | this.hasJsonFlag = false | 122 | this.hasJsonFlag = false |
109 | }, | 123 | }, |
124 | /** | ||
125 | * @description: openDialog | ||
126 | * @author: renchao | ||
127 | */ | ||
110 | openDialog () { | 128 | openDialog () { |
111 | this.dialogVisible = true | 129 | this.dialogVisible = true |
112 | }, | 130 | }, |
131 | /** | ||
132 | * @description: cancel | ||
133 | * @author: renchao | ||
134 | */ | ||
113 | cancel () { | 135 | cancel () { |
114 | this.resultInfo = this.tmpResultInfo | 136 | this.resultInfo = this.tmpResultInfo |
115 | this.dialogVisible = false | 137 | this.dialogVisible = false |
116 | }, | 138 | }, |
117 | // 放大 | 139 | // 放大 |
140 | /** | ||
141 | * @description: 放大 | ||
142 | * @author: renchao | ||
143 | */ | ||
118 | enLarge () { | 144 | enLarge () { |
119 | const fullarea = document.getElementById('minejson') | 145 | const fullarea = document.getElementById('minejson') |
120 | if (fullarea.requestFullscreen) { | 146 | if (fullarea.requestFullscreen) { | ... | ... |
... | @@ -136,6 +136,11 @@ | ... | @@ -136,6 +136,11 @@ |
136 | }, | 136 | }, |
137 | methods: { | 137 | methods: { |
138 | // 获取父级菜单 | 138 | // 获取父级菜单 |
139 | /** | ||
140 | * @description: 获取父级菜单 | ||
141 | * @param {*} id | ||
142 | * @author: renchao | ||
143 | */ | ||
139 | getParentMenuList (id) { | 144 | getParentMenuList (id) { |
140 | 145 | ||
141 | getParentMenuListAction(id).then((res) => { | 146 | getParentMenuListAction(id).then((res) => { |
... | @@ -156,16 +161,30 @@ | ... | @@ -156,16 +161,30 @@ |
156 | }) | 161 | }) |
157 | }, | 162 | }, |
158 | // 配置参数 | 163 | // 配置参数 |
164 | /** | ||
165 | * @description: 配置参数 | ||
166 | * @param {*} data | ||
167 | * @author: renchao | ||
168 | */ | ||
159 | getJsonString (data) { | 169 | getJsonString (data) { |
160 | this.form.metadata = data | 170 | this.form.metadata = data |
161 | }, | 171 | }, |
162 | // 新增菜单 | 172 | // 新增菜单 |
173 | /** | ||
174 | * @description: 新增菜单 | ||
175 | * @author: renchao | ||
176 | */ | ||
163 | add () { | 177 | add () { |
164 | this.getParentMenuList(this.productId) | 178 | this.getParentMenuList(this.productId) |
165 | this.type = 0 | 179 | this.type = 0 |
166 | this.form.jumpMode = 1 | 180 | this.form.jumpMode = 1 |
167 | }, | 181 | }, |
168 | // 编辑菜单 | 182 | // 编辑菜单 |
183 | /** | ||
184 | * @description: 编辑菜单 | ||
185 | * @param {*} record | ||
186 | * @author: renchao | ||
187 | */ | ||
169 | edit (record) { | 188 | edit (record) { |
170 | this.type = 1 | 189 | this.type = 1 |
171 | // 若有id为编辑 | 190 | // 若有id为编辑 |
... | @@ -177,10 +196,20 @@ | ... | @@ -177,10 +196,20 @@ |
177 | } | 196 | } |
178 | }, | 197 | }, |
179 | // 选择上级菜单 | 198 | // 选择上级菜单 |
199 | /** | ||
200 | * @description: 选择上级菜单 | ||
201 | * @param {*} value | ||
202 | * @author: renchao | ||
203 | */ | ||
180 | handleChange (value) { | 204 | handleChange (value) { |
181 | this.form.parentId = value | 205 | this.form.parentId = value |
182 | }, | 206 | }, |
183 | // 保存 | 207 | // 保存 |
208 | /** | ||
209 | * @description: 保存 | ||
210 | * @param {*} submitType | ||
211 | * @author: renchao | ||
212 | */ | ||
184 | submitForm (submitType) { | 213 | submitForm (submitType) { |
185 | this.$refs.form.validate((valid) => { | 214 | this.$refs.form.validate((valid) => { |
186 | if (valid) { | 215 | if (valid) { |
... | @@ -216,6 +245,10 @@ | ... | @@ -216,6 +245,10 @@ |
216 | }) | 245 | }) |
217 | }, | 246 | }, |
218 | // 重置 | 247 | // 重置 |
248 | /** | ||
249 | * @description: 重置 | ||
250 | * @author: renchao | ||
251 | */ | ||
219 | resetForm () { | 252 | resetForm () { |
220 | this.$refs.form.resetFields() | 253 | this.$refs.form.resetFields() |
221 | this.form = { | 254 | this.form = { |
... | @@ -224,6 +257,10 @@ | ... | @@ -224,6 +257,10 @@ |
224 | } | 257 | } |
225 | }, | 258 | }, |
226 | // 关闭 | 259 | // 关闭 |
260 | /** | ||
261 | * @description: 关闭 | ||
262 | * @author: renchao | ||
263 | */ | ||
227 | close () { | 264 | close () { |
228 | this.resetForm() | 265 | this.resetForm() |
229 | this.$emit('input', false) | 266 | this.$emit('input', false) | ... | ... |
... | @@ -158,6 +158,10 @@ | ... | @@ -158,6 +158,10 @@ |
158 | }, | 158 | }, |
159 | methods: { | 159 | methods: { |
160 | //查询 | 160 | //查询 |
161 | /** | ||
162 | * @description: 查询 | ||
163 | * @author: renchao | ||
164 | */ | ||
161 | searchQuery () { | 165 | searchQuery () { |
162 | if (this.form.menuName) { | 166 | if (this.form.menuName) { |
163 | this.tablelistData = this.childrenFn(this.listData, this.form.menuName); | 167 | this.tablelistData = this.childrenFn(this.listData, this.form.menuName); |
... | @@ -166,6 +170,12 @@ | ... | @@ -166,6 +170,12 @@ |
166 | } | 170 | } |
167 | }, | 171 | }, |
168 | // 数据处理方法 | 172 | // 数据处理方法 |
173 | /** | ||
174 | * @description: 数据处理方法 | ||
175 | * @param {*} arr | ||
176 | * @param {*} key | ||
177 | * @author: renchao | ||
178 | */ | ||
169 | childrenFn (arr, key) { | 179 | childrenFn (arr, key) { |
170 | const that = this; | 180 | const that = this; |
171 | let searchTree = []; | 181 | let searchTree = []; |
... | @@ -195,6 +205,10 @@ | ... | @@ -195,6 +205,10 @@ |
195 | } | 205 | } |
196 | }, | 206 | }, |
197 | // 加载表格数据 | 207 | // 加载表格数据 |
208 | /** | ||
209 | * @description: 加载表格数据 | ||
210 | * @author: renchao | ||
211 | */ | ||
198 | getTableList () { | 212 | getTableList () { |
199 | getMenuInfo(this.BASE_API.CODE).then((res) => { | 213 | getMenuInfo(this.BASE_API.CODE).then((res) => { |
200 | if (res.code === 200) { | 214 | if (res.code === 200) { |
... | @@ -231,6 +245,10 @@ | ... | @@ -231,6 +245,10 @@ |
231 | }) | 245 | }) |
232 | }, | 246 | }, |
233 | // 新增菜单 | 247 | // 新增菜单 |
248 | /** | ||
249 | * @description: 新增菜单 | ||
250 | * @author: renchao | ||
251 | */ | ||
234 | handleAdd () { | 252 | handleAdd () { |
235 | this.isDialog = true | 253 | this.isDialog = true |
236 | this.$refs.dialogForm.add(); | 254 | this.$refs.dialogForm.add(); |
... | @@ -238,12 +256,23 @@ | ... | @@ -238,12 +256,23 @@ |
238 | }, | 256 | }, |
239 | 257 | ||
240 | // 修改 | 258 | // 修改 |
259 | /** | ||
260 | * @description: 修改 | ||
261 | * @param {*} record | ||
262 | * @author: renchao | ||
263 | */ | ||
241 | handleEdit (record) { | 264 | handleEdit (record) { |
242 | this.isDialog = true | 265 | this.isDialog = true |
243 | this.$refs.dialogForm.edit(record); | 266 | this.$refs.dialogForm.edit(record); |
244 | this.$refs.dialogForm.title = "修改"; | 267 | this.$refs.dialogForm.title = "修改"; |
245 | }, | 268 | }, |
246 | // 删除 | 269 | // 删除 |
270 | /** | ||
271 | * @description: 删除 | ||
272 | * @param {*} id | ||
273 | * @param {*} content | ||
274 | * @author: renchao | ||
275 | */ | ||
247 | handleDelete (id, content) { | 276 | handleDelete (id, content) { |
248 | this.$confirm( | 277 | this.$confirm( |
249 | `<div class="customer-message-wrapper"> | 278 | `<div class="customer-message-wrapper"> |
... | @@ -284,11 +313,21 @@ | ... | @@ -284,11 +313,21 @@ |
284 | .catch(() => { }) | 313 | .catch(() => { }) |
285 | }, | 314 | }, |
286 | // 新增、编辑回显 | 315 | // 新增、编辑回显 |
316 | /** | ||
317 | * @description: 获新增、编辑回显 | ||
318 | * @author: renchao | ||
319 | */ | ||
287 | reloadTableData () { | 320 | reloadTableData () { |
288 | this.getTableList() | 321 | this.getTableList() |
289 | }, | 322 | }, |
290 | 323 | ||
291 | // 排序 | 324 | // 排序 |
325 | /** | ||
326 | * @description: 排序 | ||
327 | * @param {*} row | ||
328 | * @param {*} operate | ||
329 | * @author: renchao | ||
330 | */ | ||
292 | moveUp (row, operate) { | 331 | moveUp (row, operate) { |
293 | if (row.isTop) { | 332 | if (row.isTop) { |
294 | return; | 333 | return; |
... | @@ -296,6 +335,12 @@ | ... | @@ -296,6 +335,12 @@ |
296 | this.realMove(row, operate); | 335 | this.realMove(row, operate); |
297 | } | 336 | } |
298 | }, | 337 | }, |
338 | /** | ||
339 | * @description: moveDown | ||
340 | * @param {*} row | ||
341 | * @param {*} operate | ||
342 | * @author: renchao | ||
343 | */ | ||
299 | moveDown (row, operate) { | 344 | moveDown (row, operate) { |
300 | if (row.isBottom) { | 345 | if (row.isBottom) { |
301 | return; | 346 | return; |
... | @@ -305,6 +350,12 @@ | ... | @@ -305,6 +350,12 @@ |
305 | }, | 350 | }, |
306 | 351 | ||
307 | //树形表格移动 | 352 | //树形表格移动 |
353 | /** | ||
354 | * @description: 树形表格移动 | ||
355 | * @param {*} row | ||
356 | * @param {*} operate | ||
357 | * @author: renchao | ||
358 | */ | ||
308 | realMove (row, operate) { | 359 | realMove (row, operate) { |
309 | function tarverse (nodes, id) { | 360 | function tarverse (nodes, id) { |
310 | let result; | 361 | let result; | ... | ... |
... | @@ -92,6 +92,10 @@ | ... | @@ -92,6 +92,10 @@ |
92 | }, | 92 | }, |
93 | methods: { | 93 | methods: { |
94 | // 保存新增或关闭事件 | 94 | // 保存新增或关闭事件 |
95 | /** | ||
96 | * @description: 保存新增或关闭事件 | ||
97 | * @author: renchao | ||
98 | */ | ||
95 | submitForm () { | 99 | submitForm () { |
96 | this.$refs.form.validate((valid) => { | 100 | this.$refs.form.validate((valid) => { |
97 | if (valid) { | 101 | if (valid) { |
... | @@ -151,6 +155,10 @@ | ... | @@ -151,6 +155,10 @@ |
151 | }) | 155 | }) |
152 | }, | 156 | }, |
153 | // 重置 | 157 | // 重置 |
158 | /** | ||
159 | * @description: 重置 | ||
160 | * @author: renchao | ||
161 | */ | ||
154 | resetForm () { | 162 | resetForm () { |
155 | this.dialogForm = { | 163 | this.dialogForm = { |
156 | roleName: '', | 164 | roleName: '', |
... | @@ -158,6 +166,10 @@ | ... | @@ -158,6 +166,10 @@ |
158 | this.$refs.form.resetFields() | 166 | this.$refs.form.resetFields() |
159 | }, | 167 | }, |
160 | // 关闭 | 168 | // 关闭 |
169 | /** | ||
170 | * @description: 关闭 | ||
171 | * @author: renchao | ||
172 | */ | ||
161 | close () { | 173 | close () { |
162 | this.resetForm() | 174 | this.resetForm() |
163 | this.$emit('input', false) | 175 | this.$emit('input', false) | ... | ... |
... | @@ -259,6 +259,10 @@ | ... | @@ -259,6 +259,10 @@ |
259 | mounted () { }, | 259 | mounted () { }, |
260 | methods: { | 260 | methods: { |
261 | //查询 | 261 | //查询 |
262 | /** | ||
263 | * @description: 查询 | ||
264 | * @author: renchao | ||
265 | */ | ||
262 | searchQuery () { | 266 | searchQuery () { |
263 | if (this.form.rolesName) { | 267 | if (this.form.rolesName) { |
264 | this.listdata = this.childrenFn(this.setlistdata, this.form.rolesName); | 268 | this.listdata = this.childrenFn(this.setlistdata, this.form.rolesName); |
... | @@ -266,6 +270,12 @@ | ... | @@ -266,6 +270,12 @@ |
266 | this.getTableData() | 270 | this.getTableData() |
267 | } | 271 | } |
268 | }, | 272 | }, |
273 | /** | ||
274 | * @description: childrenFn | ||
275 | * @param {*} arr | ||
276 | * @param {*} key | ||
277 | * @author: renchao | ||
278 | */ | ||
269 | childrenFn (arr, key) { | 279 | childrenFn (arr, key) { |
270 | let searchTree = []; | 280 | let searchTree = []; |
271 | arr.forEach((item, index) => { | 281 | arr.forEach((item, index) => { |
... | @@ -279,6 +289,10 @@ | ... | @@ -279,6 +289,10 @@ |
279 | } | 289 | } |
280 | }, | 290 | }, |
281 | // 获取角色列表 | 291 | // 获取角色列表 |
292 | /** | ||
293 | * @description: 获取角色列表 | ||
294 | * @author: renchao | ||
295 | */ | ||
282 | getTableData () { | 296 | getTableData () { |
283 | getRolesById([1, 2]) | 297 | getRolesById([1, 2]) |
284 | .then((res) => { | 298 | .then((res) => { |
... | @@ -290,6 +304,10 @@ | ... | @@ -290,6 +304,10 @@ |
290 | }, | 304 | }, |
291 | 305 | ||
292 | // 获取菜单列表 | 306 | // 获取菜单列表 |
307 | /** | ||
308 | * @description: 获取菜单列表 | ||
309 | * @author: renchao | ||
310 | */ | ||
293 | getTableList () { | 311 | getTableList () { |
294 | getMenuInfo(this.BASE_API.CODE).then((res) => { | 312 | getMenuInfo(this.BASE_API.CODE).then((res) => { |
295 | if (res.code === 200) { | 313 | if (res.code === 200) { |
... | @@ -361,6 +379,12 @@ | ... | @@ -361,6 +379,12 @@ |
361 | }); | 379 | }); |
362 | }, | 380 | }, |
363 | // 获取权限列表 | 381 | // 获取权限列表 |
382 | /** | ||
383 | * @description: 获取权限列表 | ||
384 | * @param {*} productId | ||
385 | * @param {*} code | ||
386 | * @author: renchao | ||
387 | */ | ||
364 | getAuthorityList (productId, code) { | 388 | getAuthorityList (productId, code) { |
365 | getAuthorityListAction(productId, code).then( | 389 | getAuthorityListAction(productId, code).then( |
366 | res => { | 390 | res => { |
... | @@ -380,6 +404,11 @@ | ... | @@ -380,6 +404,11 @@ |
380 | }, | 404 | }, |
381 | 405 | ||
382 | // 配置 | 406 | // 配置 |
407 | /** | ||
408 | * @description: 配置 | ||
409 | * @param {*} row | ||
410 | * @author: renchao | ||
411 | */ | ||
383 | getList (row) { | 412 | getList (row) { |
384 | this.getTableList() | 413 | this.getTableList() |
385 | const params = {}; | 414 | const params = {}; |
... | @@ -430,6 +459,11 @@ | ... | @@ -430,6 +459,11 @@ |
430 | }); | 459 | }); |
431 | }, | 460 | }, |
432 | // 新增、修改角色 | 461 | // 新增、修改角色 |
462 | /** | ||
463 | * @description: 新增、修改角色 | ||
464 | * @param {*} value | ||
465 | * @author: renchao | ||
466 | */ | ||
433 | handleAddEdit (value) { | 467 | handleAddEdit (value) { |
434 | this.isDialog = true | 468 | this.isDialog = true |
435 | this.$refs.addEditDialog.menuType = this.menuType; | 469 | this.$refs.addEditDialog.menuType = this.menuType; |
... | @@ -445,6 +479,12 @@ | ... | @@ -445,6 +479,12 @@ |
445 | this.$refs.addEditDialog.title = value.id ? "修改" : "新增"; | 479 | this.$refs.addEditDialog.title = value.id ? "修改" : "新增"; |
446 | }, | 480 | }, |
447 | //排序 | 481 | //排序 |
482 | /** | ||
483 | * @description: 排序 | ||
484 | * @param {*} record | ||
485 | * @param {*} operate | ||
486 | * @author: renchao | ||
487 | */ | ||
448 | updateOrder (record, operate) { | 488 | updateOrder (record, operate) { |
449 | const findIndex = this.listdata.findIndex(item => item.id === record.id) | 489 | const findIndex = this.listdata.findIndex(item => item.id === record.id) |
450 | let swapId = '' | 490 | let swapId = '' |
... | @@ -463,6 +503,12 @@ | ... | @@ -463,6 +503,12 @@ |
463 | }) | 503 | }) |
464 | }, | 504 | }, |
465 | // 删除 | 505 | // 删除 |
506 | /** | ||
507 | * @description: 删除 | ||
508 | * @param {*} id | ||
509 | * @param {*} content | ||
510 | * @author: renchao | ||
511 | */ | ||
466 | handleDelete: function (id, content = "") { | 512 | handleDelete: function (id, content = "") { |
467 | this.$confirm( | 513 | this.$confirm( |
468 | `<div class="customer-message-wrapper"> | 514 | `<div class="customer-message-wrapper"> |
... | @@ -503,6 +549,10 @@ | ... | @@ -503,6 +549,10 @@ |
503 | .catch(() => { }); | 549 | .catch(() => { }); |
504 | }, | 550 | }, |
505 | // 新增回显 | 551 | // 新增回显 |
552 | /** | ||
553 | * @description: 新增回显 | ||
554 | * @author: renchao | ||
555 | */ | ||
506 | reloadTableData () { | 556 | reloadTableData () { |
507 | this.getTableData(); | 557 | this.getTableData(); |
508 | }, | 558 | }, | ... | ... |
... | @@ -134,6 +134,12 @@ | ... | @@ -134,6 +134,12 @@ |
134 | methods: { | 134 | methods: { |
135 | 135 | ||
136 | // 人员配置点击行勾选数据 | 136 | // 人员配置点击行勾选数据 |
137 | /** | ||
138 | * @description: 人员配置点击行勾选数据 | ||
139 | * @param {*} row | ||
140 | * @param {*} event | ||
141 | * @author: renchao | ||
142 | */ | ||
137 | handleClickTableRow (row, event) { | 143 | handleClickTableRow (row, event) { |
138 | this.checkNum = 0; | 144 | this.checkNum = 0; |
139 | this.isCheck = false; | 145 | this.isCheck = false; |
... | @@ -174,6 +180,14 @@ | ... | @@ -174,6 +180,14 @@ |
174 | }, | 180 | }, |
175 | // 获取授权主体的菜单权限 | 181 | // 获取授权主体的菜单权限 |
176 | // getMenuAuthorityList | 182 | // getMenuAuthorityList |
183 | /** | ||
184 | * @description: 获取授权主体的菜单权限 | ||
185 | * @param {*} operationList | ||
186 | * @param {*} id | ||
187 | * @param {*} menutablelistData | ||
188 | * @param {*} operationCodes | ||
189 | * @author: renchao | ||
190 | */ | ||
177 | menulist (operationList, id, Code, menutablelistData, operationCodes) { | 191 | menulist (operationList, id, Code, menutablelistData, operationCodes) { |
178 | this.selectedSubsystemCode = Code | 192 | this.selectedSubsystemCode = Code |
179 | this.menuList = menutablelistData; | 193 | this.menuList = menutablelistData; |
... | @@ -196,9 +210,11 @@ | ... | @@ -196,9 +210,11 @@ |
196 | 210 | ||
197 | }, | 211 | }, |
198 | /** | 212 | /** |
199 | * 递归渲染列表数据 | 213 | * @description: 递归渲染列表数据 |
200 | * list:原始数组 | 214 | * @param {*} list 原始数组 |
201 | * authorityList:已授权数组 | 215 | * @param {*} authorityList 已授权数组 |
216 | * @param {*} operationCodes | ||
217 | * @author: renchao | ||
202 | */ | 218 | */ |
203 | getRecursionTreeData (list, authorityList, operationCodes) { | 219 | getRecursionTreeData (list, authorityList, operationCodes) { |
204 | ++this.menukey | 220 | ++this.menukey |
... | @@ -237,6 +253,13 @@ | ... | @@ -237,6 +253,13 @@ |
237 | // this.setCheckAllArr(list) | 253 | // this.setCheckAllArr(list) |
238 | }, | 254 | }, |
239 | // 授权条件 | 255 | // 授权条件 |
256 | /** | ||
257 | * @description: 授权条件 | ||
258 | * @param {*} authorityList | ||
259 | * @param {*} checkArr | ||
260 | * @param {*} item | ||
261 | * @author: renchao | ||
262 | */ | ||
240 | setAuthorizedConditions (authorityList, checkArr, item) { | 263 | setAuthorizedConditions (authorityList, checkArr, item) { |
241 | if (this.roleId === '') { | 264 | if (this.roleId === '') { |
242 | checkArr.forEach(ele => { | 265 | checkArr.forEach(ele => { |
... | @@ -270,6 +293,10 @@ | ... | @@ -270,6 +293,10 @@ |
270 | this.$set(item, 'checkArr', this.$deepCopy(checkArr)) | 293 | this.$set(item, 'checkArr', this.$deepCopy(checkArr)) |
271 | }, | 294 | }, |
272 | // 获取拼接授权信息 | 295 | // 获取拼接授权信息 |
296 | /** | ||
297 | * @description: 获取拼接授权信息 | ||
298 | * @author: renchao | ||
299 | */ | ||
273 | getAuthorizedInfo () { | 300 | getAuthorizedInfo () { |
274 | const lastArr = [] | 301 | const lastArr = [] |
275 | const authorizedList = [] | 302 | const authorizedList = [] |
... | @@ -304,6 +331,12 @@ | ... | @@ -304,6 +331,12 @@ |
304 | } | 331 | } |
305 | }, | 332 | }, |
306 | // 获取人员列表做筛选 | 333 | // 获取人员列表做筛选 |
334 | /** | ||
335 | * @description: 获取人员列表做筛选 | ||
336 | * @param {*} e | ||
337 | * @param {*} rid | ||
338 | * @author: renchao | ||
339 | */ | ||
307 | personlist (a, rid) { | 340 | personlist (a, rid) { |
308 | this.roleId = rid; | 341 | this.roleId = rid; |
309 | this.visible = true; | 342 | this.visible = true; |
... | @@ -324,10 +357,18 @@ | ... | @@ -324,10 +357,18 @@ |
324 | }); | 357 | }); |
325 | }, | 358 | }, |
326 | // 关闭事件 | 359 | // 关闭事件 |
360 | /** | ||
361 | * @description: 关闭事件 | ||
362 | * @author: renchao | ||
363 | */ | ||
327 | close () { | 364 | close () { |
328 | this.visible = false; | 365 | this.visible = false; |
329 | }, | 366 | }, |
330 | // 保存事件 | 367 | // 保存事件 |
368 | /** | ||
369 | * @description: 保存事件 | ||
370 | * @author: renchao | ||
371 | */ | ||
331 | handleSaveMember () { | 372 | handleSaveMember () { |
332 | // 人员授权 | 373 | // 人员授权 |
333 | const idList = this.usermultipleSelection.map((item) => { | 374 | const idList = this.usermultipleSelection.map((item) => { |
... | @@ -355,6 +396,11 @@ | ... | @@ -355,6 +396,11 @@ |
355 | }) | 396 | }) |
356 | }, | 397 | }, |
357 | // 勾选人员事件 | 398 | // 勾选人员事件 |
399 | /** | ||
400 | * @description: 勾选人员事件 | ||
401 | * @param {*} val | ||
402 | * @author: renchao | ||
403 | */ | ||
358 | handleSelectionChange (val) { | 404 | handleSelectionChange (val) { |
359 | this.lastuserList.forEach((element, index) => { | 405 | this.lastuserList.forEach((element, index) => { |
360 | delete this.lastuserList[index].selectStatus | 406 | delete this.lastuserList[index].selectStatus |
... | @@ -369,6 +415,12 @@ | ... | @@ -369,6 +415,12 @@ |
369 | }); | 415 | }); |
370 | }, | 416 | }, |
371 | // 数据筛选 | 417 | // 数据筛选 |
418 | /** | ||
419 | * @description: 数据筛选 | ||
420 | * @param {*} scope | ||
421 | * @param {*} arr | ||
422 | * @author: renchao | ||
423 | */ | ||
372 | setarrdata (scope, arr) { | 424 | setarrdata (scope, arr) { |
373 | 425 | ||
374 | arr.forEach((item, index, arr) => { | 426 | arr.forEach((item, index, arr) => { |
... | @@ -382,6 +434,13 @@ | ... | @@ -382,6 +434,13 @@ |
382 | 434 | ||
383 | }, | 435 | }, |
384 | // 勾选菜单事件 | 436 | // 勾选菜单事件 |
437 | /** | ||
438 | * @description: 勾选菜单事件 | ||
439 | * @param {*} flag | ||
440 | * @param {*} checkId | ||
441 | * @param {*} scope | ||
442 | * @author: renchao | ||
443 | */ | ||
385 | changeCheck (flag, checkId, scope) { | 444 | changeCheck (flag, checkId, scope) { |
386 | this.checklistbor = [] | 445 | this.checklistbor = [] |
387 | this.setarrdata(scope, this.lastMenuList) | 446 | this.setarrdata(scope, this.lastMenuList) |
... | @@ -398,6 +457,12 @@ | ... | @@ -398,6 +457,12 @@ |
398 | ) | 457 | ) |
399 | this.getAuthorizedInfo() | 458 | this.getAuthorizedInfo() |
400 | }, | 459 | }, |
460 | /** | ||
461 | * @description: handleClick | ||
462 | * @param {*} tab | ||
463 | * @param {*} event | ||
464 | * @author: renchao | ||
465 | */ | ||
401 | handleClick (tab, event) { | 466 | handleClick (tab, event) { |
402 | this.lastuserList.forEach((item, index) => { | 467 | this.lastuserList.forEach((item, index) => { |
403 | if (item.selectStatus === 0) { | 468 | if (item.selectStatus === 0) { | ... | ... |
... | @@ -106,14 +106,26 @@ | ... | @@ -106,14 +106,26 @@ |
106 | } | 106 | } |
107 | }, | 107 | }, |
108 | methods: { | 108 | methods: { |
109 | /** | ||
110 | * @description: handleAdd | ||
111 | * @author: renchao | ||
112 | */ | ||
109 | handleAdd () { | 113 | handleAdd () { |
110 | this.taskData = null | 114 | this.taskData = null |
111 | this.isDialog = true | 115 | this.isDialog = true |
112 | }, | 116 | }, |
117 | /** | ||
118 | * @description: resetSe | ||
119 | * @author: renchao | ||
120 | */ | ||
113 | resetSe () { | 121 | resetSe () { |
114 | this.form.jobName = '' | 122 | this.form.jobName = '' |
115 | this.featchData() | 123 | this.featchData() |
116 | }, | 124 | }, |
125 | /** | ||
126 | * @description: featchData | ||
127 | * @author: renchao | ||
128 | */ | ||
117 | async featchData () { | 129 | async featchData () { |
118 | try { | 130 | try { |
119 | this.form = Object.assign(this.form, this.formData) | 131 | this.form = Object.assign(this.form, this.formData) |
... | @@ -124,6 +136,11 @@ | ... | @@ -124,6 +136,11 @@ |
124 | this.message = error | 136 | this.message = error |
125 | } | 137 | } |
126 | }, | 138 | }, |
139 | /** | ||
140 | * @description: recover | ||
141 | * @param {*} row | ||
142 | * @author: renchao | ||
143 | */ | ||
127 | recover (row) { | 144 | recover (row) { |
128 | this.$confirm('此操将进行恢复操作, 是否继续?', '提示', { | 145 | this.$confirm('此操将进行恢复操作, 是否继续?', '提示', { |
129 | confirmButtonText: '确定', | 146 | confirmButtonText: '确定', |
... | @@ -156,6 +173,11 @@ | ... | @@ -156,6 +173,11 @@ |
156 | }) | 173 | }) |
157 | }, | 174 | }, |
158 | 175 | ||
176 | /** | ||
177 | * @description: handleActive | ||
178 | * @param {*} row | ||
179 | * @author: renchao | ||
180 | */ | ||
159 | handleActive (row) { | 181 | handleActive (row) { |
160 | this.$confirm('此操将进行激活操作, 是否继续?', '提示', { | 182 | this.$confirm('此操将进行激活操作, 是否继续?', '提示', { |
161 | confirmButtonText: '确定', | 183 | confirmButtonText: '确定', |
... | @@ -188,6 +210,11 @@ | ... | @@ -188,6 +210,11 @@ |
188 | }) | 210 | }) |
189 | }, | 211 | }, |
190 | // 暂停 | 212 | // 暂停 |
213 | /** | ||
214 | * @description: 暂停 | ||
215 | * @param {*} row | ||
216 | * @author: renchao | ||
217 | */ | ||
191 | handleSuspend (row) { | 218 | handleSuspend (row) { |
192 | this.$confirm('此操将进行暂停操作, 是否继续?', '提示', { | 219 | this.$confirm('此操将进行暂停操作, 是否继续?', '提示', { |
193 | confirmButtonText: '确定', | 220 | confirmButtonText: '确定', |
... | @@ -219,10 +246,20 @@ | ... | @@ -219,10 +246,20 @@ |
219 | }) | 246 | }) |
220 | }) | 247 | }) |
221 | }, | 248 | }, |
249 | /** | ||
250 | * @description: handleEdit | ||
251 | * @param {*} row | ||
252 | * @author: renchao | ||
253 | */ | ||
222 | handleEdit (row) { | 254 | handleEdit (row) { |
223 | this.taskData = row | 255 | this.taskData = row |
224 | this.isDialog = true | 256 | this.isDialog = true |
225 | }, | 257 | }, |
258 | /** | ||
259 | * @description: handleDel | ||
260 | * @param {*} row | ||
261 | * @author: renchao | ||
262 | */ | ||
226 | handleDel (row) { | 263 | handleDel (row) { |
227 | this.$confirm('此操将进行删除操作, 是否继续?', '提示', { | 264 | this.$confirm('此操将进行删除操作, 是否继续?', '提示', { |
228 | confirmButtonText: '确定', | 265 | confirmButtonText: '确定', | ... | ... |
... | @@ -125,6 +125,10 @@ | ... | @@ -125,6 +125,10 @@ |
125 | this.getdistricts() | 125 | this.getdistricts() |
126 | }, | 126 | }, |
127 | methods: { | 127 | methods: { |
128 | /** | ||
129 | * @description: getdistricts | ||
130 | * @author: renchao | ||
131 | */ | ||
128 | getdistricts () { | 132 | getdistricts () { |
129 | getAction(api.departments, { | 133 | getAction(api.departments, { |
130 | queryOptions: { orderBys: [{ property: "sort", direction: "desc" }] }, | 134 | queryOptions: { orderBys: [{ property: "sort", direction: "desc" }] }, |
... | @@ -132,14 +136,21 @@ | ... | @@ -132,14 +136,21 @@ |
132 | this.districtAreaList = res.content; | 136 | this.districtAreaList = res.content; |
133 | 137 | ||
134 | }); | 138 | }); |
135 | |||
136 | |||
137 | }, | 139 | }, |
138 | // 添加人员 | 140 | // 添加人员 |
141 | /** | ||
142 | * @description: 添加人员 | ||
143 | * @author: renchao | ||
144 | */ | ||
139 | adds () { | 145 | adds () { |
140 | this.showLoginName = false | 146 | this.showLoginName = false |
141 | }, | 147 | }, |
142 | // 编辑 | 148 | // 编辑 |
149 | /** | ||
150 | * @description: 编辑 | ||
151 | * @param {*} record | ||
152 | * @author: renchao | ||
153 | */ | ||
143 | edit (record) { | 154 | edit (record) { |
144 | this.showLoginName = true | 155 | this.showLoginName = true |
145 | // 若有id为编辑 | 156 | // 若有id为编辑 |
... | @@ -150,6 +161,10 @@ | ... | @@ -150,6 +161,10 @@ |
150 | } | 161 | } |
151 | }, | 162 | }, |
152 | // 保存 | 163 | // 保存 |
164 | /** | ||
165 | * @description: 保存 | ||
166 | * @author: renchao | ||
167 | */ | ||
153 | submitForm () { | 168 | submitForm () { |
154 | this.districtAreaList.forEach((item) => { | 169 | this.districtAreaList.forEach((item) => { |
155 | if (this.form.departmentId == item.id) { | 170 | if (this.form.departmentId == item.id) { |
... | @@ -185,6 +200,10 @@ | ... | @@ -185,6 +200,10 @@ |
185 | }) | 200 | }) |
186 | }, | 201 | }, |
187 | // 重置 | 202 | // 重置 |
203 | /** | ||
204 | * @description: 重置 | ||
205 | * @author: renchao | ||
206 | */ | ||
188 | resetForm () { | 207 | resetForm () { |
189 | this.form = { | 208 | this.form = { |
190 | sex: '0' | 209 | sex: '0' |
... | @@ -192,6 +211,10 @@ | ... | @@ -192,6 +211,10 @@ |
192 | this.$refs.form.resetFields() | 211 | this.$refs.form.resetFields() |
193 | }, | 212 | }, |
194 | // 关闭 | 213 | // 关闭 |
214 | /** | ||
215 | * @description: 关闭 | ||
216 | * @author: renchao | ||
217 | */ | ||
195 | close () { | 218 | close () { |
196 | this.resetForm() | 219 | this.resetForm() |
197 | this.$emit('input', false) | 220 | this.$emit('input', false) | ... | ... |
... | @@ -230,12 +230,20 @@ | ... | @@ -230,12 +230,20 @@ |
230 | }, | 230 | }, |
231 | }, | 231 | }, |
232 | methods: { | 232 | methods: { |
233 | /** | ||
234 | * @description: handleAdd | ||
235 | * @author: renchao | ||
236 | */ | ||
233 | handleAdd () { | 237 | handleAdd () { |
234 | this.isDialog = true | 238 | this.isDialog = true |
235 | this.$refs.dialogForm.adds(); | 239 | this.$refs.dialogForm.adds(); |
236 | this.$refs.dialogForm.title = "添加"; | 240 | this.$refs.dialogForm.title = "添加"; |
237 | }, | 241 | }, |
238 | // 查询 | 242 | // 查询 |
243 | /** | ||
244 | * @description: 查询 | ||
245 | * @author: renchao | ||
246 | */ | ||
239 | getTableList () { | 247 | getTableList () { |
240 | this.queryParam = { | 248 | this.queryParam = { |
241 | name: this.form.name, | 249 | name: this.form.name, |
... | @@ -258,6 +266,11 @@ | ... | @@ -258,6 +266,11 @@ |
258 | }) | 266 | }) |
259 | }, | 267 | }, |
260 | // 获取组织机构 | 268 | // 获取组织机构 |
269 | /** | ||
270 | * @description: 获取组织机构 | ||
271 | * @param {*} deptIdArr | ||
272 | * @author: renchao | ||
273 | */ | ||
261 | getDepts (deptIdArr) { | 274 | getDepts (deptIdArr) { |
262 | let params = { | 275 | let params = { |
263 | queryOptions: { | 276 | queryOptions: { |
... | @@ -307,6 +320,11 @@ | ... | @@ -307,6 +320,11 @@ |
307 | // }, | 320 | // }, |
308 | 321 | ||
309 | // 重置用户密码 | 322 | // 重置用户密码 |
323 | /** | ||
324 | * @description: 重置用户密码 | ||
325 | * @param {*} data | ||
326 | * @author: renchao | ||
327 | */ | ||
310 | resetPassword (data) { | 328 | resetPassword (data) { |
311 | const ids = [] | 329 | const ids = [] |
312 | if (data instanceof Array) { | 330 | if (data instanceof Array) { |
... | @@ -352,6 +370,12 @@ | ... | @@ -352,6 +370,12 @@ |
352 | .catch(() => { }) | 370 | .catch(() => { }) |
353 | }, | 371 | }, |
354 | //排序 | 372 | //排序 |
373 | /** | ||
374 | * @description: 排序 | ||
375 | * @param {*} record | ||
376 | * @param {*} operate | ||
377 | * @author: renchao | ||
378 | */ | ||
355 | updateOrder (record, operate) { | 379 | updateOrder (record, operate) { |
356 | const findIndex = this.tableData.data.findIndex(item => item.id === record.id) | 380 | const findIndex = this.tableData.data.findIndex(item => item.id === record.id) |
357 | let swapId = '' | 381 | let swapId = '' |
... | @@ -371,12 +395,23 @@ | ... | @@ -371,12 +395,23 @@ |
371 | }, | 395 | }, |
372 | 396 | ||
373 | // 修改人员信息 | 397 | // 修改人员信息 |
398 | /** | ||
399 | * @description: 修改人员信息 | ||
400 | * @param {*} row | ||
401 | * @author: renchao | ||
402 | */ | ||
374 | handleEdit (row) { | 403 | handleEdit (row) { |
375 | this.isDialog = true | 404 | this.isDialog = true |
376 | this.$refs.dialogForm.edit(row); | 405 | this.$refs.dialogForm.edit(row); |
377 | this.$refs.dialogForm.title = "修改"; | 406 | this.$refs.dialogForm.title = "修改"; |
378 | }, | 407 | }, |
379 | // 删除 | 408 | // 删除 |
409 | /** | ||
410 | * @description: 删除 | ||
411 | * @param {*} id | ||
412 | * @param {*} content | ||
413 | * @author: renchao | ||
414 | */ | ||
380 | handleDelete (id, content) { | 415 | handleDelete (id, content) { |
381 | this.$confirm(deleteDomStr(content), '执行确认', { | 416 | this.$confirm(deleteDomStr(content), '执行确认', { |
382 | dangerouslyUseHTMLString: true, | 417 | dangerouslyUseHTMLString: true, |
... | @@ -399,6 +434,10 @@ | ... | @@ -399,6 +434,10 @@ |
399 | .catch(() => { }) | 434 | .catch(() => { }) |
400 | }, | 435 | }, |
401 | // 新增回显 | 436 | // 新增回显 |
437 | /** | ||
438 | * @description: 新增回显 | ||
439 | * @author: renchao | ||
440 | */ | ||
402 | reloadTableData () { | 441 | reloadTableData () { |
403 | this.getTableList() | 442 | this.getTableList() |
404 | }, | 443 | }, | ... | ... |
... | @@ -124,6 +124,10 @@ | ... | @@ -124,6 +124,10 @@ |
124 | }; | 124 | }; |
125 | }, | 125 | }, |
126 | methods: { | 126 | methods: { |
127 | /** | ||
128 | * @description: featchData | ||
129 | * @author: renchao | ||
130 | */ | ||
127 | async featchData () { | 131 | async featchData () { |
128 | try { | 132 | try { |
129 | this.form = Object.assign(this.form, this.formData); | 133 | this.form = Object.assign(this.form, this.formData); |
... | @@ -141,11 +145,21 @@ | ... | @@ -141,11 +145,21 @@ |
141 | this.$refs.msg.messageShow(); | 145 | this.$refs.msg.messageShow(); |
142 | } | 146 | } |
143 | }, | 147 | }, |
148 | /** | ||
149 | * @description: handleSearch | ||
150 | * @author: renchao | ||
151 | */ | ||
144 | handleSearch () { | 152 | handleSearch () { |
145 | this.form.currentPage = 1 | 153 | this.form.currentPage = 1 |
146 | this.tableData.data = [] | 154 | this.tableData.data = [] |
147 | this.featchData() | 155 | this.featchData() |
148 | }, | 156 | }, |
157 | /** | ||
158 | * @description: handleEdit | ||
159 | * @param {*} index | ||
160 | * @param {*} row | ||
161 | * @author: renchao | ||
162 | */ | ||
149 | async handleEdit (index, row) { | 163 | async handleEdit (index, row) { |
150 | try { | 164 | try { |
151 | let { result: res } = await ruleConfig.eidtConfigRule(row.BSM_YWSJB); | 165 | let { result: res } = await ruleConfig.eidtConfigRule(row.BSM_YWSJB); |
... | @@ -158,6 +172,12 @@ | ... | @@ -158,6 +172,12 @@ |
158 | }); | 172 | }); |
159 | } | 173 | } |
160 | }, | 174 | }, |
175 | /** | ||
176 | * @description: handleDel | ||
177 | * @param {*} index | ||
178 | * @param {*} row | ||
179 | * @author: renchao | ||
180 | */ | ||
161 | handleDel (index, row) { | 181 | handleDel (index, row) { |
162 | let _this = this; | 182 | let _this = this; |
163 | this.$confirm("此操作将进行删除校验规则, 是否继续?", "提示", { | 183 | this.$confirm("此操作将进行删除校验规则, 是否继续?", "提示", { |
... | @@ -192,6 +212,10 @@ | ... | @@ -192,6 +212,10 @@ |
192 | }); | 212 | }); |
193 | }); | 213 | }); |
194 | }, | 214 | }, |
215 | /** | ||
216 | * @description: handleUpdateDic | ||
217 | * @author: renchao | ||
218 | */ | ||
195 | handleUpdateDic () { | 219 | handleUpdateDic () { |
196 | this.$store.dispatch("dictionaries/generateDic").then((res) => { | 220 | this.$store.dispatch("dictionaries/generateDic").then((res) => { |
197 | if (res) { | 221 | if (res) { | ... | ... |
-
Please register or sign in to post a comment