621a64ec by renchao@pashanhoo.com

feat:api初始化的完成

1 parent 7150b0af
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-26 09:35:33
* @LastEditTime: 2023-05-05 10:00:05
-->
<!DOCTYPE html>
<html>
......@@ -17,6 +17,14 @@
<%= webpackConfig.name %>
</title>
</head>
<script>
const appConfig = fetch('<%= BASE_URL %>config.json')
.then(response => response.json())
.then(config => {
window.config = config
console.log(11111111111111);
});
</script>
<body>
<div id="app"></div>
......@@ -24,6 +32,7 @@
</body>
</html>
<script>
window.baseUrl = location.origin || location.protocol + '//' + location.host
// window.authorization = 'bearer AT-14-h4UlUGjPvgmrIgnDO-3QgMP0m4YJGQTR';
......
......@@ -4,7 +4,7 @@
* @LastEditTime: 2023-04-20 09:40:17
*/
import request from '@/utils/request';
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 获取不动产权证列表
export function getBdcqzList (params) {
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-20 09:40:36
* @LastEditTime: 2023-05-06 09:15:02
*/
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 材料目录明细初始化
export function InitClml (data) {
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
export function uploadUrl () {
return process.env.VUE_APP_BASE_API + SERVER.SERVERAPI + '/file/upload'
}
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-06 09:17:56
*/
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 转出
export function completeTask (data) {
return request({
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 新增平台接口
export function addSysInterface (data) {
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-06 09:17:41
*/
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
const url = SERVER.LPBSERVERAPI + '/rest/zhcx/lpcx/'
/*
楼盘查询
......@@ -7,7 +12,6 @@ const url = SERVER.LPBSERVERAPI + '/rest/zhcx/lpcx/'
// 根据条件进行列表查询
export function getLpZrz (data) {
return request({
// url: SERVER.SERVERAPI + '/rest/zhcx/lpcx/getLpZrz',
url: 'service-lpb/rest/zhcx/lpcx/getLpZrz',
method: 'post',
data: data
......@@ -18,7 +22,6 @@ export function getLpZrz (data) {
export function getLpb (zrzbsm) {
return request({
url: url + 'getLpb?scyclx=1&zrzbsm=' + zrzbsm,
// url: 'service-lpb/rest/zhcx/lpcx/getLpb?zrzbsm=' + zrzbsm ,
method: 'get'
})
}
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/*
登记簿详情页
*/
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 获取自然幢下其他户
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 获取申请查询列表
export function getSqcxPage (data) {
return request({
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 上传单个文件
export function upload (data) {
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 用户首页
// 获取首页通知公告列表
export function getHomeNoticeList () {
......
......@@ -4,7 +4,7 @@
* @LastEditTime: 2023-04-20 09:39:44
*/
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
//批量初始化
export function BatchInit (data) {
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 初始化内容
export function Init (data) {
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 初始化内容
export function Init (data) {
let apiUrl = "";
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 初始化内容
export function Init (data) {
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 初始化内容
export function Init (data) {
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 初始化内容
export function Init (data) {
let apiUrl = "";
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 初始化内容
export function Init (data) {
let apiUrl = "";
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 初始化内容
export function Init (data) {
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/*
系统监控 -获取错误日志列表
*/
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/*
业务办理-获取收藏业务集合
*/
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/*
综合查询
*/
......
import request from '@/utils/request'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/*
证书管理-获取序列号
*/
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-26 09:36:10
* @LastEditTime: 2023-05-06 09:14:47
*/
import Vue from 'vue'
import App from './App'
......
......@@ -61,6 +61,9 @@ module.exports = {
// configureWebpack通过操作对象的形式,来修改默认的webpack配置
configureWebpack: {
name: name,
entry: {
app: './src/main.js'
},
resolve: {
alias: {
'@': resolve('src')
......@@ -70,7 +73,6 @@ module.exports = {
},
// chainWebpack通过链式编程的形式,来修改默认的webpack配置
chainWebpack (config) {
config.entry.app = ['babel-polyfill', './src/main.js'];
// it can improve the speed of the first screen, it is recommended to turn on preload
// it can improve the speed of the first screen, it is recommended to turn on preload
config.plugin('preload').tap(() => [
......