style:配置化
Showing
31 changed files
with
141 additions
and
116 deletions
public/config.json
0 → 100644
public/configBase.json
0 → 100644
public/configT.json
0 → 100644
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-04-20 09:40:17 | ||
5 | */ | ||
1 | import request from '@/utils/request'; | 6 | import request from '@/utils/request'; |
2 | import SERVER from './config'; | 7 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 8 | ||
4 | // 获取不动产权证列表 | 9 | // 获取不动产权证列表 |
5 | export function getBdcqzList (params) { | 10 | export function getBdcqzList (params) { | ... | ... |
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-04-20 09:40:36 | ||
5 | */ | ||
1 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
2 | import SERVER from './config' | 7 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 8 | ||
4 | // 材料目录明细初始化 | 9 | // 材料目录明细初始化 |
5 | export function InitClml (data) { | 10 | export function InitClml (data) { | ... | ... |
src/api/config.js
deleted
100644 → 0
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from './config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | export function uploadUrl () { | 3 | export function uploadUrl () { |
4 | return process.env.VUE_APP_BASE_API + SERVER.SERVERAPI + '/file/upload' | 4 | return process.env.VUE_APP_BASE_API + SERVER.SERVERAPI + '/file/upload' |
5 | } | 5 | } | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from './config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | // 转出 | 3 | // 转出 |
4 | export function completeTask (data) { | 4 | export function completeTask (data) { |
5 | return request({ | 5 | return request({ | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from './config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | // 新增平台接口 | 4 | // 新增平台接口 |
5 | export function addSysInterface(data) { | 5 | export function addSysInterface (data) { |
6 | return request({ | 6 | return request({ |
7 | url: SERVER.SERVERAPI+"/rest/system/ptjk/addSysInterface", | 7 | url: SERVER.SERVERAPI + "/rest/system/ptjk/addSysInterface", |
8 | method: 'post', | 8 | method: 'post', |
9 | data | 9 | data |
10 | }) | 10 | }) |
11 | } | 11 | } |
12 | 12 | ||
13 | // 编辑平台接口 | 13 | // 编辑平台接口 |
14 | export function editSysInterface(data) { | 14 | export function editSysInterface (data) { |
15 | return request({ | 15 | return request({ |
16 | url: SERVER.SERVERAPI+"/rest/system/ptjk/editSysInterface", | 16 | url: SERVER.SERVERAPI + "/rest/system/ptjk/editSysInterface", |
17 | method: 'post', | 17 | method: 'post', |
18 | data | 18 | data |
19 | }) | 19 | }) |
20 | } | 20 | } |
21 | // 接口调取 | 21 | // 接口调取 |
22 | export function interfaceRetrieve(data) { | 22 | export function interfaceRetrieve (data) { |
23 | return request({ | 23 | return request({ |
24 | url: SERVER.SERVERAPI+"/rest/system/ptjk/interfaceRetrieve", | 24 | url: SERVER.SERVERAPI + "/rest/system/ptjk/interfaceRetrieve", |
25 | method: 'post', | 25 | method: 'post', |
26 | data | 26 | data |
27 | }) | 27 | }) |
28 | } | 28 | } |
29 | 29 | ||
30 | // 获取平台接口列表 | 30 | // 获取平台接口列表 |
31 | export function getSysInterfaceList(data) { | 31 | export function getSysInterfaceList (data) { |
32 | return request({ | 32 | return request({ |
33 | url: SERVER.SERVERAPI+"/rest/system/ptjk/getSysInterfaceList", | 33 | url: SERVER.SERVERAPI + "/rest/system/ptjk/getSysInterfaceList", |
34 | method: 'post', | 34 | method: 'post', |
35 | data | 35 | data |
36 | }) | 36 | }) | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from './config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | const url = SERVER.LPBSERVERAPI + '/rest/zhcx/lpcx/' | 3 | const url = SERVER.LPBSERVERAPI + '/rest/zhcx/lpcx/' |
4 | /* | 4 | /* |
5 | 楼盘查询 | 5 | 楼盘查询 | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from './config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | // 获取申请查询列表 | 3 | // 获取申请查询列表 |
4 | export function getSqcxPage (data) { | 4 | export function getSqcxPage (data) { |
5 | return request({ | 5 | return request({ | ... | ... |
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-04-20 09:39:44 | ||
5 | */ | ||
1 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
2 | import SERVER from '../config' | 7 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 8 | ||
4 | //批量初始化 | 9 | //批量初始化 |
5 | export function BatchInit (data) { | 10 | export function BatchInit (data) { | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from '../config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | // 初始化内容 | 4 | // 初始化内容 |
5 | export function Init (data) { | 5 | export function Init (data) { |
... | @@ -34,9 +34,9 @@ export function Init (data) { | ... | @@ -34,9 +34,9 @@ export function Init (data) { |
34 | }) | 34 | }) |
35 | } | 35 | } |
36 | // 受理信息保存 | 36 | // 受理信息保存 |
37 | export function saveData (data,djlx) { | 37 | export function saveData (data, djlx) { |
38 | let apiUrl = "/rest/ywbl/dyaq/saveData"; | 38 | let apiUrl = "/rest/ywbl/dyaq/saveData"; |
39 | if(djlx=="400"){ | 39 | if (djlx == "400") { |
40 | apiUrl = "/rest/ywbl/dyaq/saveLogoutData"; | 40 | apiUrl = "/rest/ywbl/dyaq/saveLogoutData"; |
41 | } | 41 | } |
42 | return request({ | 42 | return request({ | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from '../config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | // 初始化内容 | 3 | // 初始化内容 |
4 | export function Init(data) { | 4 | export function Init (data) { |
5 | let apiUrl = ""; | 5 | let apiUrl = ""; |
6 | switch (data.get("djlx")) { | 6 | switch (data.get("djlx")) { |
7 | case "100": | 7 | case "100": |
8 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/fristInit"; | 8 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/fristInit"; |
9 | break; | 9 | break; |
10 | case "200": | 10 | case "200": |
11 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/transferInit"; | 11 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/transferInit"; |
12 | break; | 12 | break; |
13 | case "300": | 13 | case "300": |
14 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/changeInit"; | 14 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/changeInit"; |
15 | break; | 15 | break; |
16 | case "400": | 16 | case "400": |
17 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/logoutInit"; | 17 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/logoutInit"; |
18 | break; | 18 | break; |
19 | case "500": | 19 | case "500": |
20 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/riviseInit"; | 20 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/riviseInit"; |
21 | break; | 21 | break; |
22 | case "901": | 22 | case "901": |
23 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/renewalInit"; | 23 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/renewalInit"; |
24 | break; | 24 | break; |
25 | case "902": | 25 | case "902": |
26 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/replaceInit"; | 26 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/replaceInit"; |
27 | break; | 27 | break; |
28 | } | 28 | } |
29 | return request({ | 29 | return request({ |
... | @@ -33,12 +33,12 @@ export function Init(data) { | ... | @@ -33,12 +33,12 @@ export function Init(data) { |
33 | }) | 33 | }) |
34 | } | 34 | } |
35 | // 首次登记提交 | 35 | // 首次登记提交 |
36 | export function saveBatchData(data) { | 36 | export function saveBatchData (data) { |
37 | return request({ | 37 | return request({ |
38 | url: SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/saveBatchData", | 38 | url: SERVER.SERVERAPI + "/rest/ywbl/fdcq2lr/saveBatchData", |
39 | method: 'post', | 39 | method: 'post', |
40 | data | 40 | data |
41 | }) | 41 | }) |
42 | } | 42 | } |
43 | 43 | ||
44 | 44 | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from '../config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | // 初始化内容 | 3 | // 初始化内容 |
4 | export function Init (data) { | 4 | export function Init (data) { |
5 | let apiUrl = ""; | 5 | let apiUrl = ""; | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from '../config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | // 初始化内容 | 3 | // 初始化内容 |
4 | export function Init (data) { | 4 | export function Init (data) { |
5 | let apiUrl = ""; | 5 | let apiUrl = ""; | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from '../config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | 3 | ||
4 | // 初始化内容 | 4 | // 初始化内容 |
5 | export function Init (data) { | 5 | export function Init (data) { |
... | @@ -34,9 +34,9 @@ export function Init (data) { | ... | @@ -34,9 +34,9 @@ export function Init (data) { |
34 | }) | 34 | }) |
35 | } | 35 | } |
36 | // 受理信息保存 | 36 | // 受理信息保存 |
37 | export function saveData (data,djlx) { | 37 | export function saveData (data, djlx) { |
38 | let apiUrl = "/rest/ywbl/zjgcdy/saveData"; | 38 | let apiUrl = "/rest/ywbl/zjgcdy/saveData"; |
39 | if(djlx=="400"){ | 39 | if (djlx == "400") { |
40 | apiUrl = "/rest/ywbl/zjgcdy/saveLogoutData"; | 40 | apiUrl = "/rest/ywbl/zjgcdy/saveLogoutData"; |
41 | } | 41 | } |
42 | return request({ | 42 | return request({ | ... | ... |
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from './config' | 2 | let SERVER = JSON.parse(localStorage.getItem('ApiUrl')) |
3 | /* | 3 | /* |
4 | 业务办理-获取收藏业务集合 | 4 | 业务办理-获取收藏业务集合 |
5 | */ | 5 | */ |
... | @@ -249,11 +249,11 @@ export function selectJsydQlxx (data) { | ... | @@ -249,11 +249,11 @@ export function selectJsydQlxx (data) { |
249 | * @returns {*} | 249 | * @returns {*} |
250 | */ | 250 | */ |
251 | export function selectFwsyq (data) { | 251 | export function selectFwsyq (data) { |
252 | return request({ | 252 | return request({ |
253 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectFwsyq', | 253 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectFwsyq', |
254 | method: 'post', | 254 | method: 'post', |
255 | data | 255 | data |
256 | }) | 256 | }) |
257 | } | 257 | } |
258 | /** | 258 | /** |
259 | * 业务办理-预告登记-选择权利信息-根据条件进行列表查询 | 259 | * 业务办理-预告登记-选择权利信息-根据条件进行列表查询 |
... | @@ -261,11 +261,11 @@ export function selectFwsyq (data) { | ... | @@ -261,11 +261,11 @@ export function selectFwsyq (data) { |
261 | * @returns {*} | 261 | * @returns {*} |
262 | */ | 262 | */ |
263 | export function selectYgdj100 (data) { | 263 | export function selectYgdj100 (data) { |
264 | return request({ | 264 | return request({ |
265 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectYgdj100', | 265 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectYgdj100', |
266 | method: 'post', | 266 | method: 'post', |
267 | data | 267 | data |
268 | }) | 268 | }) |
269 | } | 269 | } |
270 | /** | 270 | /** |
271 | * 业务办理-预告登记-选择权利信息-根据条件进行列表查询 | 271 | * 业务办理-预告登记-选择权利信息-根据条件进行列表查询 |
... | @@ -273,11 +273,11 @@ export function selectYgdj100 (data) { | ... | @@ -273,11 +273,11 @@ export function selectYgdj100 (data) { |
273 | * @returns {*} | 273 | * @returns {*} |
274 | */ | 274 | */ |
275 | export function selectYgdj200 (data) { | 275 | export function selectYgdj200 (data) { |
276 | return request({ | 276 | return request({ |
277 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectYgdj200', | 277 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectYgdj200', |
278 | method: 'post', | 278 | method: 'post', |
279 | data | 279 | data |
280 | }) | 280 | }) |
281 | } | 281 | } |
282 | /** | 282 | /** |
283 | * 业务办理-预告抵押登记-选择权利信息-根据条件进行列表查询 | 283 | * 业务办理-预告抵押登记-选择权利信息-根据条件进行列表查询 |
... | @@ -285,11 +285,11 @@ export function selectYgdj200 (data) { | ... | @@ -285,11 +285,11 @@ export function selectYgdj200 (data) { |
285 | * @returns {*} | 285 | * @returns {*} |
286 | */ | 286 | */ |
287 | export function selectYgdy (data) { | 287 | export function selectYgdy (data) { |
288 | return request({ | 288 | return request({ |
289 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectYgdy', | 289 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectYgdy', |
290 | method: 'post', | 290 | method: 'post', |
291 | data | 291 | data |
292 | }) | 292 | }) |
293 | } | 293 | } |
294 | /** | 294 | /** |
295 | * 根据自然幢查询房屋信息 | 295 | * 根据自然幢查询房屋信息 |
... | @@ -297,9 +297,9 @@ export function selectYgdy (data) { | ... | @@ -297,9 +297,9 @@ export function selectYgdy (data) { |
297 | * @returns {*} | 297 | * @returns {*} |
298 | */ | 298 | */ |
299 | export function selectAllHInfo (data) { | 299 | export function selectAllHInfo (data) { |
300 | return request({ | 300 | return request({ |
301 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectAllHInfo', | 301 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectAllHInfo', |
302 | method: 'post', | 302 | method: 'post', |
303 | data | 303 | data |
304 | }) | 304 | }) |
305 | } | 305 | } | ... | ... |
1 | /* | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-04-20 09:37:34 | ||
5 | */ | ||
1 | import Vue from 'vue' | 6 | import Vue from 'vue' |
2 | import App from './App' | 7 | import App from './App' |
3 | import 'normalize.css/normalize.css' // a modern alternative to CSS resets | 8 | import 'normalize.css/normalize.css' // a modern alternative to CSS resets |
4 | import Element from 'element-ui' | 9 | import Element from 'element-ui' |
10 | import axios from 'axios' | ||
5 | import '@/styles/element-variables.scss' | 11 | import '@/styles/element-variables.scss' |
6 | import '@/styles/index.scss' | 12 | import '@/styles/index.scss' |
7 | import Base from '@/components/Base/base' // 全局组件引入 | 13 | import Base from '@/components/Base/base' // 全局组件引入 |
... | @@ -47,16 +53,23 @@ import 'quill/dist/quill.bubble.css' | ... | @@ -47,16 +53,23 @@ import 'quill/dist/quill.bubble.css' |
47 | Vue.use(VueQuillEditor) | 53 | Vue.use(VueQuillEditor) |
48 | 54 | ||
49 | import * as filters from './filters' // global filters | 55 | import * as filters from './filters' // global filters |
50 | import './permission' // permission control | ||
51 | Vue.use(Element, { size: 'small', zIndex: 1000 }) | 56 | Vue.use(Element, { size: 'small', zIndex: 1000 }) |
52 | Vue.use(Base) | 57 | Vue.use(Base) |
53 | Object.keys(filters).forEach(key => { | 58 | Object.keys(filters).forEach(key => { |
54 | Vue.filter(key, filters[key]) | 59 | Vue.filter(key, filters[key]) |
55 | }) | 60 | }) |
56 | Vue.config.productionTip = false | 61 | Vue.config.productionTip = false |
57 | new Vue({ | 62 | |
58 | el: '#app', | 63 | axios.get("./config.json") |
59 | router, | 64 | .then((res) => { |
60 | store, | 65 | Vue.prototype.BASE_API = res.data |
61 | render: h => h(App) | 66 | localStorage.setItem('ApiUrl', JSON.stringify(res.data)); |
62 | }) | 67 | window.TITLE = res.data.TITLE |
68 | require('./permission') | ||
69 | new Vue({ | ||
70 | el: '#app', | ||
71 | router, | ||
72 | store, | ||
73 | render: h => h(App) | ||
74 | }) | ||
75 | }) | ... | ... |
... | @@ -194,8 +194,9 @@ | ... | @@ -194,8 +194,9 @@ |
194 | max-width: 80%; | 194 | max-width: 80%; |
195 | } | 195 | } |
196 | 196 | ||
197 | |||
197 | .el-table .el-tooltip span { | 198 | .el-table .el-tooltip span { |
198 | white-space: pre-wrap !important; | 199 | white-space: pre-wrap; |
199 | display: -webkit-box; | 200 | display: -webkit-box; |
200 | -webkit-line-clamp: 2; | 201 | -webkit-line-clamp: 2; |
201 | -webkit-box-orient: vertical; | 202 | -webkit-box-orient: vertical; | ... | ... |
... | @@ -8,7 +8,7 @@ class data extends filter { | ... | @@ -8,7 +8,7 @@ class data extends filter { |
8 | constructor() { | 8 | constructor() { |
9 | super() | 9 | super() |
10 | } | 10 | } |
11 | columns() { | 11 | columns () { |
12 | return [ | 12 | return [ |
13 | { | 13 | { |
14 | label: '序号', | 14 | label: '序号', |
... | @@ -88,7 +88,8 @@ class data extends filter { | ... | @@ -88,7 +88,8 @@ class data extends filter { |
88 | { | 88 | { |
89 | prop: "zl", | 89 | prop: "zl", |
90 | label: "坐落", | 90 | label: "坐落", |
91 | width: '260' | 91 | minWidth: '160', |
92 | showOverflowTooltip: true | ||
92 | }, | 93 | }, |
93 | { | 94 | { |
94 | prop: "slsj", | 95 | prop: "slsj", |
... | @@ -105,13 +106,11 @@ class data extends filter { | ... | @@ -105,13 +106,11 @@ class data extends filter { |
105 | label: "转入时间", | 106 | label: "转入时间", |
106 | sortable: 'custom', | 107 | sortable: 'custom', |
107 | prop: 'fromstepdate', | 108 | prop: 'fromstepdate', |
108 | width: '160' | 109 | width: '140' |
109 | }, | 110 | }, |
110 | { | 111 | { |
111 | label: '操作', | 112 | label: '操作', |
112 | width: '80', | 113 | width: '80', |
113 | align: 'center', | ||
114 | fixed: 'right', | ||
115 | render: (h, scope) => { | 114 | render: (h, scope) => { |
116 | return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.del(scope.row) }}>删除</el-button> | 115 | return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.del(scope.row) }}>删除</el-button> |
117 | } | 116 | } | ... | ... |
... | @@ -189,7 +189,6 @@ | ... | @@ -189,7 +189,6 @@ |
189 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 189 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
190 | import { Init, saveBatchData } from "@/api/workflow/fwsyqFlow.js"; | 190 | import { Init, saveBatchData } from "@/api/workflow/fwsyqFlow.js"; |
191 | import { mapGetters } from "vuex"; | 191 | import { mapGetters } from "vuex"; |
192 | import SERVER from "@/api/config"; | ||
193 | export default { | 192 | export default { |
194 | async created () { | 193 | async created () { |
195 | this.propsParam = this.$attrs; | 194 | this.propsParam = this.$attrs; |
... | @@ -255,7 +254,7 @@ export default { | ... | @@ -255,7 +254,7 @@ export default { |
255 | }, | 254 | }, |
256 | methods: { | 255 | methods: { |
257 | dataSelectClick () { | 256 | dataSelectClick () { |
258 | this.$popup("房屋信息比对", SERVER.SERVERAPI + "/rest/ywbl/fdcq2/slxxCompareDetai", | 257 | this.$popup("房屋信息比对", this.BASE_API.SERVERAPI + "/rest/ywbl/fdcq2/slxxCompareDetai", |
259 | { | 258 | { |
260 | formData: { | 259 | formData: { |
261 | bsmSldy: this.propsParam.bsmSldy, | 260 | bsmSldy: this.propsParam.bsmSldy, | ... | ... |
-
Please register or sign in to post a comment