style:监管
Showing
68 changed files
with
229 additions
and
167 deletions
1 | ### | ||
2 | # @Description: | ||
3 | # @Autor: renchao | ||
4 | # @LastEditTime: 2023-05-06 15:55:04 | ||
5 | ### | ||
1 | # just a flag | 6 | # just a flag |
2 | ENV = 'development' | 7 | ENV = 'development' |
3 | NODE_ENV=development | 8 | NODE_ENV=development |
... | @@ -5,4 +10,4 @@ NODE_ENV=development | ... | @@ -5,4 +10,4 @@ NODE_ENV=development |
5 | VUE_APP_BASE_API = '/api' | 10 | VUE_APP_BASE_API = '/api' |
6 | 11 | ||
7 | # 开发环境 | 12 | # 开发环境 |
8 | VUE_APP_API_BASE_URL = 'http://192.168.2.38:8027' | 13 | VUE_APP_API_BASE_URL = 'http://192.168.2.89:8027' | ... | ... |
1 | { | 1 | { |
2 | "TITLE": "汉中市数据上报系统", | 2 | "TITLE": "汉中市监管系统", |
3 | "THEME": "sb", | 3 | "THEME": "jg", |
4 | "LOGIN": "sb", | 4 | "LOGIN": "jg", |
5 | "CODE": "BDCSBPT", | 5 | "CODE": "BDCJGPT", |
6 | "AREARMAP": "610702", | 6 | "AREARMAP": "610702", |
7 | "SERVERAPI": "/bdcsjsb", | 7 | "SERVERAPI": "/bdcsjsb", |
8 | "calcHeight": 160, | 8 | "calcHeight": 200, |
9 | "echartTextColor": "#4A4A4A", | 9 | "echartTextColor": "#FFFFFF", |
10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management" | 10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management" |
11 | } | 11 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 引入配置文件 | 2 | * @Description: 引入配置文件 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-04-12 11:12:50 | 4 | * @LastEditTime: 2023-05-06 16:26:39 |
5 | --> | 5 | --> |
6 | <!DOCTYPE html> | 6 | <!DOCTYPE html> |
7 | <html> | 7 | <html> |
... | @@ -17,6 +17,13 @@ | ... | @@ -17,6 +17,13 @@ |
17 | <%= webpackConfig.name %> | 17 | <%= webpackConfig.name %> |
18 | </title> | 18 | </title> |
19 | </head> | 19 | </head> |
20 | <script> | ||
21 | fetch('/config.json') | ||
22 | .then(response => response.json()) | ||
23 | .then(config => { | ||
24 | window.config = config | ||
25 | }); | ||
26 | </script> | ||
20 | 27 | ||
21 | <body> | 28 | <body> |
22 | <div id="app"></div> | 29 | <div id="app"></div> | ... | ... |
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | /* 引入请求文件 */ | 6 | /* 引入请求文件 */ |
7 | import request from '@/utils/request' | 7 | import request from '@/utils/request' |
8 | /* 引入配置文件 */ | 8 | /* 引入配置文件 */ |
9 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 9 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
10 | class business { | 10 | class business { |
11 | /** | 11 | /** |
12 | * @description: 成功率统计 | 12 | * @description: 成功率统计 | ... | ... |
src/api/config.js
deleted
100644 → 0
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | /* 引入axios请求文件 */ | 6 | /* 引入axios请求文件 */ |
7 | import request from '@/utils/request' | 7 | import request from '@/utils/request' |
8 | /* 引入配置 */ | 8 | /* 引入配置 */ |
9 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 9 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
10 | const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/DataReport/' | 10 | const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/DataReport/' |
11 | 11 | ||
12 | /** | 12 | /** | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class djfDjDb { | 4 | class djfDjDb { |
5 | //登记登簿信息 | 5 | //登记登簿信息 |
6 | async getDjfDjDbById(bsmSjsb) { | 6 | async getDjfDjDbById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjDb/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjDb/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class djfDjDb { | ... | @@ -13,7 +13,7 @@ class djfDjDb { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | //修改登记登簿信息 | 15 | //修改登记登簿信息 |
16 | async updateDjfDjDb(data) { | 16 | async updateDjfDjDb (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjDb/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjDb/edit", |
19 | method: "post", | 19 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class djfDjFz { | 4 | class djfDjFz { |
5 | //登记发证信息 | 5 | //登记发证信息 |
6 | async getDjfDjFzDetailById(bsmSjsb) { | 6 | async getDjfDjFzDetailById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjFz/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjFz/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class djfDjFz { | ... | @@ -13,7 +13,7 @@ class djfDjFz { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | //修改登记发证信息 | 15 | //修改登记发证信息 |
16 | async updateDjfDjFz(data) { | 16 | async updateDjfDjFz (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjFz/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjFz/edit", |
19 | method: "post", | 19 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class djfDjGd { | 4 | class djfDjGd { |
5 | // 登记归档信息-业务表单 | 5 | // 登记归档信息-业务表单 |
6 | async getDjfDjGdById(bsmSjsb) { | 6 | async getDjfDjGdById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjGd/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjGd/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class djfDjGd { | ... | @@ -13,7 +13,7 @@ class djfDjGd { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | // 登记归档信息-业务-修改 | 15 | // 登记归档信息-业务-修改 |
16 | async updateDjfDjGd(data) { | 16 | async updateDjfDjGd (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjGd/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjGd/edit", |
19 | method: "put", | 19 | method: "put", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class djfDjSh { | 4 | class djfDjSh { |
5 | //登记审核信息 | 5 | //登记审核信息 |
6 | async getDjfDjShById(bsmSjsb) { | 6 | async getDjfDjShById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSh/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSh/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class djfDjSh { | ... | @@ -13,7 +13,7 @@ class djfDjSh { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | //修改登记审核信息 | 15 | //修改登记审核信息 |
16 | async updateDjfDjSh(data) { | 16 | async updateDjfDjSh (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSh/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSh/edit", |
19 | method: "post", | 19 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class djfDjSj { | 4 | class djfDjSj { |
5 | //登记收件信息 | 5 | //登记收件信息 |
6 | async getDjfDjSjById(bsmSjsb) { | 6 | async getDjfDjSjById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class djfDjSj { | ... | @@ -13,7 +13,7 @@ class djfDjSj { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | //修改登记收件信息 | 15 | //修改登记收件信息 |
16 | async updateDjfDjSj(data) { | 16 | async updateDjfDjSj (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/edit", |
19 | method: "post", | 19 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class djfDjSqr { | 4 | class djfDjSqr { |
5 | // 申请人属性信息-业务表单 | 5 | // 申请人属性信息-业务表单 |
6 | async getDjfDjSqrById(bsmSjsb) { | 6 | async getDjfDjSqrById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class djfDjSqr { | ... | @@ -13,7 +13,7 @@ class djfDjSqr { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | // 申请人属性信息-业务-修改 | 15 | // 申请人属性信息-业务-修改 |
16 | async updateDjfDjSqr(data) { | 16 | async updateDjfDjSqr (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/edit", |
19 | method: "post", | 19 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class djfDjSz { | 4 | class djfDjSz { |
5 | //登记缮证信息 | 5 | //登记缮证信息 |
6 | async getDjfDjSzById(bsmSjsb) { | 6 | async getDjfDjSzById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class djfDjSz { | ... | @@ -13,7 +13,7 @@ class djfDjSz { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | //修改登记缮证信息 | 15 | //修改登记缮证信息 |
16 | async updateDjfDjSz(data) { | 16 | async updateDjfDjSz (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/edit", |
19 | method: "post", | 19 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class djtDjSlsq { | 4 | class djtDjSlsq { |
5 | // 登记受理申请信息 -- 业务表单 | 5 | // 登记受理申请信息 -- 业务表单 |
6 | async getDjtDjSlsqById(bsmSjsb) { | 6 | async getDjtDjSlsqById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class djtDjSlsq { | ... | @@ -13,7 +13,7 @@ class djtDjSlsq { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | // 登记受理申请信息 -- 业务修改 | 15 | // 登记受理申请信息 -- 业务修改 |
16 | async updateDjtDjSlsq(data) { | 16 | async updateDjtDjSlsq (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/edit", |
19 | method: "post", | 19 | method: "post", |
... | @@ -21,7 +21,7 @@ class djtDjSlsq { | ... | @@ -21,7 +21,7 @@ class djtDjSlsq { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | //修改登记受理申请信息 | 23 | //修改登记受理申请信息 |
24 | async updateDjtDjSlsq(data) { | 24 | async updateDjtDjSlsq (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/updateDjtDjSlsq", | 26 | url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/updateDjtDjSlsq", |
27 | method: "put", | 27 | method: "put", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class efficient { | 4 | class efficient { |
5 | /* | 5 | /* |
... | @@ -7,14 +7,14 @@ class efficient { | ... | @@ -7,14 +7,14 @@ class efficient { |
7 | startDate:开始日期 | 7 | startDate:开始日期 |
8 | endDate:结束日期 | 8 | endDate:结束日期 |
9 | */ | 9 | */ |
10 | async getProcessCounts(startDate, endDate,qxdm) { | 10 | async getProcessCounts (startDate, endDate, qxdm) { |
11 | return request({ | 11 | return request({ |
12 | url: SERVER.SERVERAPI + "/rest/statistics/Efficient/getProcessCounts", | 12 | url: SERVER.SERVERAPI + "/rest/statistics/Efficient/getProcessCounts", |
13 | method: "post", | 13 | method: "post", |
14 | params: { | 14 | params: { |
15 | startDate: startDate, | 15 | startDate: startDate, |
16 | endDate: endDate, | 16 | endDate: endDate, |
17 | qxdm:qxdm | 17 | qxdm: qxdm |
18 | }, | 18 | }, |
19 | }); | 19 | }); |
20 | } | 20 | } |
... | @@ -24,7 +24,7 @@ class efficient { | ... | @@ -24,7 +24,7 @@ class efficient { |
24 | startDate:开始日期 | 24 | startDate:开始日期 |
25 | endDate:结束日期 | 25 | endDate:结束日期 |
26 | */ | 26 | */ |
27 | async getProcessDays(recType, startDate, endDate) { | 27 | async getProcessDays (recType, startDate, endDate) { |
28 | return request({ | 28 | return request({ |
29 | url: SERVER.SERVERAPI + "/rest/statistics/Efficient/getProcessDays", | 29 | url: SERVER.SERVERAPI + "/rest/statistics/Efficient/getProcessDays", |
30 | method: "post", | 30 | method: "post", | ... | ... |
src/api/file.js
0 → 100644
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-05-06 16:25:08 | ||
5 | */ | ||
6 | import request from '@/utils/request' | ||
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | ||
8 | /* 引入配置 */ | ||
9 | const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/DataReport/storage' | ||
10 | |||
11 | /** | ||
12 | * @description: xml导入 | ||
13 | * @param {*} data | ||
14 | * @author: renchao | ||
15 | */ | ||
16 | export function storage (data) { | ||
17 | return request({ | ||
18 | url: urlHeader, | ||
19 | headers: { | ||
20 | 'Content-Type': 'multipart/form-data' | ||
21 | }, | ||
22 | method: 'post', | ||
23 | data | ||
24 | }) | ||
25 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class ktfQtDzdzw { | 4 | class ktfQtDzdzw { |
5 | // 点状定着物信息 | 5 | // 点状定着物信息 | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class ktfQtMzdzw { | 4 | class ktfQtMzdzw { |
5 | // 面状定着物 | 5 | // 面状定着物 | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class ktfQtXzdzw { | 4 | class ktfQtXzdzw { |
5 | // 线状定着物 | 5 | // 线状定着物 | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class ktfZdbhqk { | 4 | class ktfZdbhqk { |
5 | //宗地变化情况 | 5 | //宗地变化情况 | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class ktfZhYhydzb { | 4 | class ktfZhYhydzb { |
5 | // 用海,用岛坐标 | 5 | // 用海,用岛坐标 | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class kttFwC { | 4 | class kttFwC { |
5 | // 层信息- 业务表单 | 5 | // 层信息- 业务表单 |
6 | async getKttFwCById(bsmSjsb) { | 6 | async getKttFwCById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/KttFwC/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/KttFwC/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class kttFwC { | ... | @@ -13,7 +13,7 @@ class kttFwC { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | // 层信息-业务-修改 | 15 | // 层信息-业务-修改 |
16 | async updateKttFwC(data) { | 16 | async updateKttFwC (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/KttFwC/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/KttFwC/edit", |
19 | method: "post", | 19 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class kttFwH { | 4 | class kttFwH { |
5 | // 户信息- 业务表单 | 5 | // 户信息- 业务表单 |
6 | async getKttFwHById(bsmSjsb) { | 6 | async getKttFwHById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/KttFwH/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/KttFwH/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class kttFwH { | ... | @@ -13,7 +13,7 @@ class kttFwH { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | // 户信息-业务-修改 | 15 | // 户信息-业务-修改 |
16 | async updateKttFwH(data) { | 16 | async updateKttFwH (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/KttFwH/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/KttFwH/edit", |
19 | method: "post", | 19 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class kttFwLjz { | 4 | class kttFwLjz { |
5 | // 逻辑幢信息 -- 业务表单 | 5 | // 逻辑幢信息 -- 业务表单 |
6 | async getKttFwLjzById(bsmSjsb) { | 6 | async getKttFwLjzById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class kttFwLjz { | ... | @@ -13,7 +13,7 @@ class kttFwLjz { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | // 逻辑幢信息 -- 业务修改 | 15 | // 逻辑幢信息 -- 业务修改 |
16 | async updateKttFwLjz(data) { | 16 | async updateKttFwLjz (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/edit", |
19 | method: "post", | 19 | method: "post", | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class kttZdjbxx { | 4 | class kttZdjbxx { |
5 | // 宗地基本信息 | 5 | // 宗地基本信息 | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class kttZhjbxx { | 4 | class kttZhjbxx { |
5 | //宗海基本信息 | 5 | //宗海基本信息 | ... | ... |
... | @@ -4,8 +4,8 @@ | ... | @@ -4,8 +4,8 @@ |
4 | * @LastEditTime: 2023-03-23 17:19:52 | 4 | * @LastEditTime: 2023-03-23 17:19:52 |
5 | */ | 5 | */ |
6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
7 | // import SERVER from "./config"; | 7 | // let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 8 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
9 | // console.log(SERVER, 'SERVERSERVER'); | 9 | // console.log(SERVER, 'SERVERSERVER'); |
10 | 10 | ||
11 | export function loginIn (username, password) { | 11 | export function loginIn (username, password) { | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | // import SERVER from "./config"; | 2 | // let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 3 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
4 | const workflow = '/workflow' | 4 | const workflow = '/workflow' |
5 | const log = '/log' | 5 | const log = '/log' |
6 | const crud = '/crud' | 6 | const crud = '/crud' | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfFwFdcqDzXm { | 4 | class qlfFwFdcqDzXm { |
5 | // 房地产权_项目内多幢房屋项目属性 | 5 | // 房地产权_项目内多幢房屋项目属性 | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfFwFdcqQfsyq { | 4 | class qlfFwFdcqQfsyq { |
5 | // 建筑物区分所有权业主共有部分信息 | 5 | // 建筑物区分所有权业主共有部分信息 |
6 | async getQlfFwFdcqQfsyqList(data) { | 6 | async getQlfFwFdcqQfsyqList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfFwFdcqQfsyq { | ... | @@ -11,7 +11,7 @@ class qlfFwFdcqQfsyq { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | //建筑物区分所有权业主共有部分信息 | 13 | //建筑物区分所有权业主共有部分信息 |
14 | async getQlfFwFdcqQfsyqById(bsmSjsb) { | 14 | async getQlfFwFdcqQfsyqById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qlfFwFdcqQfsyq { | ... | @@ -21,7 +21,7 @@ class qlfFwFdcqQfsyq { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | //修改建筑物区分所有权业主共有部分信息 | 23 | //修改建筑物区分所有权业主共有部分信息 |
24 | async updateQlfFwFdcqQfsyq(data) { | 24 | async updateQlfFwFdcqQfsyq (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlCfdj { | 4 | class qlfQlCfdj { |
5 | // 查封登记信息 | 5 | // 查封登记信息 |
6 | async getQlfQlCfdjList(data) { | 6 | async getQlfQlCfdjList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfQlCfdj { | ... | @@ -11,7 +11,7 @@ class qlfQlCfdj { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | // 查封登记信息 | 13 | // 查封登记信息 |
14 | async getQlfQlCfdjById(bsmSjsb) { | 14 | async getQlfQlCfdjById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qlfQlCfdj { | ... | @@ -21,7 +21,7 @@ class qlfQlCfdj { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | // 查封登记信息-修改 | 23 | // 查封登记信息-修改 |
24 | async updateQlfQlCfdj(data) { | 24 | async updateQlfQlCfdj (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlDyaq { | 4 | class qlfQlDyaq { |
5 | // 抵押权登记 | 5 | // 抵押权登记 |
6 | async getQlfQlDyaqList(data) { | 6 | async getQlfQlDyaqList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfQlDyaq { | ... | @@ -11,7 +11,7 @@ class qlfQlDyaq { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | // 抵押权 | 13 | // 抵押权 |
14 | async getQlfQlDyaqById(bsmSjsb) { | 14 | async getQlfQlDyaqById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qlfQlDyaq { | ... | @@ -21,7 +21,7 @@ class qlfQlDyaq { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | // 抵押权-修改 | 23 | // 抵押权-修改 |
24 | async updateQlfQlDyaq(data) { | 24 | async updateQlfQlDyaq (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlDyiq { | 4 | class qlfQlDyiq { |
5 | // 地役权 | 5 | // 地役权 |
6 | async getQlfQlDyiqList(data) { | 6 | async getQlfQlDyiqList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfQlDyiq { | ... | @@ -11,7 +11,7 @@ class qlfQlDyiq { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | // 地役权信息 | 13 | // 地役权信息 |
14 | async getQlfQlDyiqById(bsmSjsb) { | 14 | async getQlfQlDyiqById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qlfQlDyiq { | ... | @@ -21,7 +21,7 @@ class qlfQlDyiq { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | // 地役权信息-修改 | 23 | // 地役权信息-修改 |
24 | async updateQlfQlDyiq(data) { | 24 | async updateQlfQlDyiq (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlGzdj { | 4 | class qlfQlGzdj { |
5 | // 更正登记信息 | 5 | // 更正登记信息 | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlHysyq { | 4 | class qlfQlHysyq { |
5 | // 海域(含无居民海岛)使用权 | 5 | // 海域(含无居民海岛)使用权 |
6 | async getQlfQlHysyqByConditon(data) { | 6 | async getQlfQlHysyqByConditon (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfQlHysyq { | ... | @@ -11,7 +11,7 @@ class qlfQlHysyq { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | //海域(含无居民海岛)使用权 | 13 | //海域(含无居民海岛)使用权 |
14 | async getQlfQlHysyqById(bsmSjsb) { | 14 | async getQlfQlHysyqById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qlfQlHysyq { | ... | @@ -21,7 +21,7 @@ class qlfQlHysyq { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | //修改海域(含无居民海岛)使用权 | 23 | //修改海域(含无居民海岛)使用权 |
24 | async updateQlfQlHysyq(data) { | 24 | async updateQlfQlHysyq (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlJsydsyq { | 4 | class qlfQlJsydsyq { |
5 | // 建设用地、宅基地使用权 | 5 | // 建设用地、宅基地使用权 |
6 | async getQlfQlJsydsyqList(data) { | 6 | async getQlfQlJsydsyqList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlJsydsyq/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlJsydsyq/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfQlJsydsyq { | ... | @@ -11,7 +11,7 @@ class qlfQlJsydsyq { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | //建设用地、宅基地使用权 | 13 | //建设用地、宅基地使用权 |
14 | async getQlfQlJsydsyqById(bsmSjsb) { | 14 | async getQlfQlJsydsyqById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/detail', | 16 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/detail', |
17 | method: 'get', | 17 | method: 'get', |
... | @@ -21,7 +21,7 @@ class qlfQlJsydsyq { | ... | @@ -21,7 +21,7 @@ class qlfQlJsydsyq { |
21 | }) | 21 | }) |
22 | } | 22 | } |
23 | //修改建设用地、宅基地使用权 | 23 | //修改建设用地、宅基地使用权 |
24 | async updateQlfQlJsydsyq(data) { | 24 | async updateQlfQlJsydsyq (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/edit', | 26 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/edit', |
27 | method: 'post', | 27 | method: 'post', | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlNydsyq { | 4 | class qlfQlNydsyq { |
5 | // 农用地使用权(非林地) | 5 | // 农用地使用权(非林地) |
6 | async getQlfQlNydsyqByConditon(data) { | 6 | async getQlfQlNydsyqByConditon (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfQlNydsyq { | ... | @@ -11,7 +11,7 @@ class qlfQlNydsyq { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | //农用地使用权(非林地) | 13 | //农用地使用权(非林地) |
14 | async getQlfQlNydsyqByID(bsmSjsb) { | 14 | async getQlfQlNydsyqByID (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qlfQlNydsyq { | ... | @@ -21,7 +21,7 @@ class qlfQlNydsyq { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | //修改农用地使用权(非林地) | 23 | //修改农用地使用权(非林地) |
24 | async updateQlfQlNydsyq(data) { | 24 | async updateQlfQlNydsyq (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlQtxgql { | 4 | class qlfQlQtxgql { |
5 | // 其他相关权利 | 5 | // 其他相关权利 | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlTdsyq { | 4 | class qlfQlTdsyq { |
5 | // 土地所有权 | 5 | // 土地所有权 |
6 | async getQlfQlTdsyqList(data) { | 6 | async getQlfQlTdsyqList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlTdsyq/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlTdsyq/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfQlTdsyq { | ... | @@ -11,7 +11,7 @@ class qlfQlTdsyq { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | //土地所有权 | 13 | //土地所有权 |
14 | async getQlfQlTdsyqById(bsmSjsb) { | 14 | async getQlfQlTdsyqById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/detail', | 16 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/detail', |
17 | method: 'get', | 17 | method: 'get', |
... | @@ -21,7 +21,7 @@ class qlfQlTdsyq { | ... | @@ -21,7 +21,7 @@ class qlfQlTdsyq { |
21 | }) | 21 | }) |
22 | } | 22 | } |
23 | //修改土地所有权 | 23 | //修改土地所有权 |
24 | async updateQlfQlTdsyq(data) { | 24 | async updateQlfQlTdsyq (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/edit', | 26 | url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/edit', |
27 | method: 'post', | 27 | method: 'post', | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlYgdj { | 4 | class qlfQlYgdj { |
5 | // 预告登记信息 | 5 | // 预告登记信息 |
6 | async getQlfQlYgdjList(data) { | 6 | async getQlfQlYgdjList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfQlYgdj { | ... | @@ -11,7 +11,7 @@ class qlfQlYgdj { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | // 预告登记信息 | 13 | // 预告登记信息 |
14 | async getQlfQlYgdjById(bsmSjsb) { | 14 | async getQlfQlYgdjById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qlfQlYgdj { | ... | @@ -21,7 +21,7 @@ class qlfQlYgdj { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | // 预告登记信息-修改 | 23 | // 预告登记信息-修改 |
24 | async updateQlfQlYgdj(data) { | 24 | async updateQlfQlYgdj (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlYydj { | 4 | class qlfQlYydj { |
5 | // 异议登记信息 | 5 | // 异议登记信息 |
6 | async getQlfQlYydjList(data) { | 6 | async getQlfQlYydjList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfQlYydj { | ... | @@ -11,7 +11,7 @@ class qlfQlYydj { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | // 异议登记信息 | 13 | // 异议登记信息 |
14 | async getQlfQlYydjById(bsmSjsb) { | 14 | async getQlfQlYydjById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qlfQlYydj { | ... | @@ -21,7 +21,7 @@ class qlfQlYydj { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | // 异议登记信息-修改 | 23 | // 异议登记信息-修改 |
24 | async updateQlfQlYydj(data) { | 24 | async updateQlfQlYydj (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qlfQlZxdj { | 4 | class qlfQlZxdj { |
5 | // 注销登记 | 5 | // 注销登记 |
6 | async getQlfQlZxdjList(data) { | 6 | async getQlfQlZxdjList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qlfQlZxdj { | ... | @@ -11,7 +11,7 @@ class qlfQlZxdj { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | // 注销登记信息 | 13 | // 注销登记信息 |
14 | async getQlfQlZxdjById(bsmSjsb) { | 14 | async getQlfQlZxdjById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qlfQlZxdj { | ... | @@ -21,7 +21,7 @@ class qlfQlZxdj { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | //注销登记信息 - 修改 | 23 | //注销登记信息 - 修改 |
24 | async updateQlfQlZxdj(data) { | 24 | async updateQlfQlZxdj (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qltFwFdcqDz { | 4 | class qltFwFdcqDz { |
5 | // 房地产权_项目内多幢房屋信息 | 5 | // 房地产权_项目内多幢房屋信息 |
6 | async getQltFwFdcqDzList(data) { | 6 | async getQltFwFdcqDzList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqDz/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqDz/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qltFwFdcqDz { | ... | @@ -11,7 +11,7 @@ class qltFwFdcqDz { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | //房地产权_项目内多幢房屋信息 | 13 | //房地产权_项目内多幢房屋信息 |
14 | async getQltFwFdcqDzById(bsmSjsb) { | 14 | async getQltFwFdcqDzById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/detail', | 16 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/detail', |
17 | method: 'get', | 17 | method: 'get', |
... | @@ -21,7 +21,7 @@ class qltFwFdcqDz { | ... | @@ -21,7 +21,7 @@ class qltFwFdcqDz { |
21 | }) | 21 | }) |
22 | } | 22 | } |
23 | //修改房地产权_项目内多幢房屋信息 | 23 | //修改房地产权_项目内多幢房屋信息 |
24 | async updateQltFwFdcqDz(data) { | 24 | async updateQltFwFdcqDz (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/edit', | 26 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/edit', |
27 | method: 'post', | 27 | method: 'post', | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qltFwFdcqYz { | 4 | class qltFwFdcqYz { |
5 | // 房地产权(独幢、层、套、间、房屋) | 5 | // 房地产权(独幢、层、套、间、房屋) |
6 | async getQltFwFdcqYzList(data) { | 6 | async getQltFwFdcqYzList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqYz/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqYz/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qltFwFdcqYz { | ... | @@ -11,7 +11,7 @@ class qltFwFdcqYz { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | //房地产权(独幢、层、套、间、房屋) | 13 | //房地产权(独幢、层、套、间、房屋) |
14 | async getQltFwFdcqYzById(bsmSjsb) { | 14 | async getQltFwFdcqYzById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqYz/detail', | 16 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqYz/detail', |
17 | method: 'get', | 17 | method: 'get', |
... | @@ -21,7 +21,7 @@ class qltFwFdcqYz { | ... | @@ -21,7 +21,7 @@ class qltFwFdcqYz { |
21 | }) | 21 | }) |
22 | } | 22 | } |
23 | //修改房地产权(独幢、层、套、间、房屋) | 23 | //修改房地产权(独幢、层、套、间、房屋) |
24 | async updateQltFwFdcqYz(data) { | 24 | async updateQltFwFdcqYz (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqYz/edit', | 26 | url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqYz/edit', |
27 | method: 'post', | 27 | method: 'post', | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qltQlGjzwsyq { | 4 | class qltQlGjzwsyq { |
5 | // 构(建)筑物所有权 | 5 | // 构(建)筑物所有权 |
6 | async getQltQlGjzwsyqList(data) { | 6 | async getQltQlGjzwsyqList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qltQlGjzwsyq { | ... | @@ -11,7 +11,7 @@ class qltQlGjzwsyq { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | // 构(建)筑物所有权 | 13 | // 构(建)筑物所有权 |
14 | async getQltQlGjzwsyqById(bsmSjsb) { | 14 | async getQltQlGjzwsyqById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qltQlGjzwsyq { | ... | @@ -21,7 +21,7 @@ class qltQlGjzwsyq { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | //构(建)筑物所有权 - 修改 | 23 | //构(建)筑物所有权 - 修改 |
24 | async updateQltQlGjzwsyq(data) { | 24 | async updateQltQlGjzwsyq (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class qltQlLq { | 4 | class qltQlLq { |
5 | // 林权 | 5 | // 林权 |
6 | async getQltQlLqList(data) { | 6 | async getQltQlLqList (data) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/getDataPage", | 8 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/getDataPage", |
9 | method: "post", | 9 | method: "post", |
... | @@ -11,7 +11,7 @@ class qltQlLq { | ... | @@ -11,7 +11,7 @@ class qltQlLq { |
11 | }); | 11 | }); |
12 | } | 12 | } |
13 | //林权 | 13 | //林权 |
14 | async getQltQlLqById(bsmSjsb) { | 14 | async getQltQlLqById (bsmSjsb) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/detail", | 16 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/detail", |
17 | method: "get", | 17 | method: "get", |
... | @@ -21,7 +21,7 @@ class qltQlLq { | ... | @@ -21,7 +21,7 @@ class qltQlLq { |
21 | }); | 21 | }); |
22 | } | 22 | } |
23 | //修改林权 | 23 | //修改林权 |
24 | async updateQltQlLq(data) { | 24 | async updateQltQlLq (data) { |
25 | return request({ | 25 | return request({ |
26 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/edit", | 26 | url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/edit", |
27 | method: "post", | 27 | method: "post", | ... | ... |
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | /* 引入请求文件 */ | 6 | /* 引入请求文件 */ |
7 | import request from '@/utils/request' | 7 | import request from '@/utils/request' |
8 | /* 引入配置文件 */ | 8 | /* 引入配置文件 */ |
9 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 9 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
10 | const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/RecordLog/' | 10 | const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/RecordLog/' |
11 | /** | 11 | /** |
12 | * @description: 登簿日志分页 | 12 | * @description: 登簿日志分页 | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | class ruleConfig { | 3 | class ruleConfig { |
4 | // 列表查询 | 4 | // 列表查询 |
5 | async getSysYwsjbList (data) { | 5 | async getSysYwsjbList (data) { | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class sjsbFunctionOper { | 4 | class sjsbFunctionOper { |
5 | // 数据上报表头相关接口 | 5 | // 数据上报表头相关接口 | ... | ... |
... | @@ -9,7 +9,7 @@ | ... | @@ -9,7 +9,7 @@ |
9 | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. | 9 | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
10 | */ | 10 | */ |
11 | import request from '@/utils/request' | 11 | import request from '@/utils/request' |
12 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 12 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
13 | const url = SERVER.SERVERAPI + '/rest/statistics/Efficient/' | 13 | const url = SERVER.SERVERAPI + '/rest/statistics/Efficient/' |
14 | /** | 14 | /** |
15 | * dataReceiveQuality | 15 | * dataReceiveQuality | ... | ... |
... | @@ -4,8 +4,8 @@ | ... | @@ -4,8 +4,8 @@ |
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 = JSON.parse(localStorage.getItem('ApiUrl')) | 7 | // let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
8 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) | 8 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
9 | // 获取用户信息 | 9 | // 获取用户信息 |
10 | export function getUserInfo () { | 10 | export function getUserInfo () { |
11 | return request({ | 11 | return request({ | ... | ... |
1 | import request from "@/utils/request"; | 1 | import request from "@/utils/request"; |
2 | import SERVER from "./config"; | 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | class zttGyQlr { | 4 | class zttGyQlr { |
5 | // 权利人 -- 业务表单 | 5 | // 权利人 -- 业务表单 |
6 | async getZttGyQlrById(bsmSjsb) { | 6 | async getZttGyQlrById (bsmSjsb) { |
7 | return request({ | 7 | return request({ |
8 | url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/detail", | 8 | url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/detail", |
9 | method: "get", | 9 | method: "get", |
... | @@ -13,7 +13,7 @@ class zttGyQlr { | ... | @@ -13,7 +13,7 @@ class zttGyQlr { |
13 | }); | 13 | }); |
14 | } | 14 | } |
15 | // 权利人 -- 业务表单修改 | 15 | // 权利人 -- 业务表单修改 |
16 | async updateZttGyQlr(data) { | 16 | async updateZttGyQlr (data) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/edit", | 18 | url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/edit", |
19 | method: "post", | 19 | method: "post", | ... | ... |
... | @@ -129,14 +129,14 @@ | ... | @@ -129,14 +129,14 @@ |
129 | </template> | 129 | </template> |
130 | 130 | ||
131 | <script> | 131 | <script> |
132 | import axios from "axios"; | 132 | import Vue from 'vue' |
133 | import SERVER from '@/api/config' | 133 | import axios from "axios"; |
134 | const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/DataReport/' | 134 | const urlHeader = Vue.prototype.BASE_API.SERVERAPI + '/rest/sjsb/DataReport/' |
135 | import { mapGetters } from "vuex"; | 135 | import { mapGetters } from "vuex"; |
136 | import JsonEditor from "@/components/JsonEditor.vue"; | 136 | import JsonEditor from "@/components/JsonEditor.vue"; |
137 | import Xyjg from "./Result"; | 137 | import Xyjg from "./Result"; |
138 | import { getTabsDetail, getXml, getReportDetail, restartGenerateXml, edit } from "@/api/dataReport.js"; | 138 | import { getTabsDetail, getXml, getReportDetail, restartGenerateXml, edit } from "@/api/dataReport.js"; |
139 | export default { | 139 | export default { |
140 | components: { JsonEditor, Xyjg }, | 140 | components: { JsonEditor, Xyjg }, |
141 | props: { | 141 | props: { |
142 | title: { | 142 | title: { |
... | @@ -336,5 +336,5 @@ export default { | ... | @@ -336,5 +336,5 @@ export default { |
336 | } | 336 | } |
337 | } | 337 | } |
338 | } | 338 | } |
339 | } | 339 | } |
340 | </script> | 340 | </script> | ... | ... |
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | * @Author: yangwei | 2 | * @Author: yangwei |
3 | * @Date: 2023-01-16 09:10:12 | 3 | * @Date: 2023-01-16 09:10:12 |
4 | * @LastEditors: Please set LastEditors | 4 | * @LastEditors: Please set LastEditors |
5 | * @LastEditTime: 2023-04-06 14:12:53 | 5 | * @LastEditTime: 2023-05-06 16:38:08 |
6 | * @FilePath: \bdcjg-web\src\main.js | 6 | * @FilePath: \bdcjg-web\src\main.js |
7 | * @Description: | 7 | * @Description: |
8 | * | 8 | * | ... | ... |
... | @@ -79,10 +79,14 @@ | ... | @@ -79,10 +79,14 @@ |
79 | </el-col> | 79 | </el-col> |
80 | <!-- 按钮操作 --> | 80 | <!-- 按钮操作 --> |
81 | <el-col :span="6" class="btnColRight"> | 81 | <el-col :span="6" class="btnColRight"> |
82 | <el-form-item> | 82 | <el-form-item class="d-flex"> |
83 | <btn nativeType="cz" @click="resetForm">重置</btn> | 83 | <btn nativeType="cz" @click="resetForm">重置</btn> |
84 | <btn nativeType="cx" @click="handleSearch">查询</btn> | 84 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
85 | <btn nativeType="cx">存量导入</btn> | 85 | <el-upload ref="upload" style="display:inline-block;margin-left: 10px" action="" :auto-upload="false" |
86 | :limit="1" accept=".xml" :show-file-list="false" | ||
87 | :file-list="fileList" :before-upload="uploadRecord" :on-change="fileChange"> | ||
88 | <btn nativeType="cx">xml导入</btn> | ||
89 | </el-upload> | ||
86 | </el-form-item> | 90 | </el-form-item> |
87 | </el-col> | 91 | </el-col> |
88 | </el-row> | 92 | </el-row> |
... | @@ -101,7 +105,7 @@ | ... | @@ -101,7 +105,7 @@ |
101 | </template> | 105 | </template> |
102 | 106 | ||
103 | <script> | 107 | <script> |
104 | import Vue from 'vue' | 108 | import { storage } from '@/api/file' |
105 | // 接收报文查询 | 109 | // 接收报文查询 |
106 | // 引入表格头部数据 | 110 | // 引入表格头部数据 |
107 | import data from "./data"; | 111 | import data from "./data"; |
... | @@ -121,7 +125,7 @@ | ... | @@ -121,7 +125,7 @@ |
121 | }, | 125 | }, |
122 | data () { | 126 | data () { |
123 | return { | 127 | return { |
124 | 128 | fileList: [], | |
125 | pickerOptionsStart: { | 129 | pickerOptionsStart: { |
126 | disabledDate: (time) => { | 130 | disabledDate: (time) => { |
127 | let endDateVal = this.form.receiveEndTime; | 131 | let endDateVal = this.form.receiveEndTime; |
... | @@ -232,6 +236,36 @@ | ... | @@ -232,6 +236,36 @@ |
232 | }; | 236 | }; |
233 | }, | 237 | }, |
234 | methods: { | 238 | methods: { |
239 | uploadRecord (file) { | ||
240 | this.requested = true | ||
241 | this.files = file; | ||
242 | const extension = file.name.split('.')[1] === 'xml' | ||
243 | const isLt5M = file.size / 1024 / 1024 < 5 | ||
244 | if (!extension) { | ||
245 | this.$message.warning('上传模板只能是 xml格式!') | ||
246 | this.requested = false | ||
247 | } | ||
248 | if (!isLt5M) { | ||
249 | this.$message.warning('上传模板大小不能超过 5MB!') | ||
250 | this.requested = false | ||
251 | } | ||
252 | return (extension) && isLt5M | ||
253 | }, | ||
254 | fileChange (res) { | ||
255 | let fd = new FormData() | ||
256 | fd.append('files', res.raw)// 文件对象 | ||
257 | storage(fd).then(res => { | ||
258 | if (res.code === 200) { | ||
259 | this.requested = false | ||
260 | this.$message({ | ||
261 | message: '上传成功', | ||
262 | type: 'success', | ||
263 | }) | ||
264 | } else { | ||
265 | this.$message.error(res.message) | ||
266 | } | ||
267 | }) | ||
268 | }, | ||
235 | //截止日期变化 | 269 | //截止日期变化 |
236 | endTimeChange (val) { | 270 | endTimeChange (val) { |
237 | this.form.receiveEndTime = timeFormat(new Date(val), true) | 271 | this.form.receiveEndTime = timeFormat(new Date(val), true) | ... | ... |
-
Please register or sign in to post a comment