提交 df5ed5c2 编写于 作者: tony001's avatar tony001

Merge branch 'dev'

上级 1771b71b
...@@ -72,7 +72,7 @@ export default class AppRichTextEditor extends Vue { ...@@ -72,7 +72,7 @@ export default class AppRichTextEditor extends Vue {
* @type {string} * @type {string}
* @memberof AppRichTextEditor * @memberof AppRichTextEditor
*/ */
public uploadUrl = Environment.BaseUrl + Environment.UploadFile; public uploadUrl = Environment.UploadFile;
/** /**
* 下载路径 * 下载路径
......
...@@ -92,7 +92,7 @@ export default class AppUser extends Vue { ...@@ -92,7 +92,7 @@ export default class AppUser extends Vue {
* @memberof AppUser * @memberof AppUser
*/ */
public logout() { public logout() {
const get: Promise<any> = this.$http.get('v7/logout'); const get: Promise<any> = this.$http.get('/v7/logout');
get.then((response:any) =>{ get.then((response:any) =>{
if (response && response.status === 200) { if (response && response.status === 200) {
localStorage.removeItem('user'); localStorage.removeItem('user');
......
...@@ -185,7 +185,7 @@ export default class DropDownListMpicker extends Vue { ...@@ -185,7 +185,7 @@ export default class DropDownListMpicker extends Vue {
if(this.tag && Object.is(this.codelistType,"STATIC")){ if(this.tag && Object.is(this.codelistType,"STATIC")){
const codelist = this.$store.getters.getCodeList(this.tag); const codelist = this.$store.getters.getCodeList(this.tag);
if (codelist) { if (codelist) {
this.items = [...JSON.parse(JSON.stringify(codelist.items))]; this.items = [...JSON.parse(JSON.stringify(codelist.items))];
} else { } else {
console.log(`----${this.tag}----${(this.$t('app.commonWords.codeNotExist') as string)}`); console.log(`----${this.tag}----${(this.$t('app.commonWords.codeNotExist') as string)}`);
} }
...@@ -197,7 +197,7 @@ export default class DropDownListMpicker extends Vue { ...@@ -197,7 +197,7 @@ export default class DropDownListMpicker extends Vue {
let _context = data.context; let _context = data.context;
let _param = data.param; let _param = data.param;
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => { this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res; this.items = res;
}).catch((error:any) => { }).catch((error:any) => {
console.log(`----${this.tag}----${(this.$t('app.commonWords.codeNotExist') as string)}`); console.log(`----${this.tag}----${(this.$t('app.commonWords.codeNotExist') as string)}`);
}); });
...@@ -225,7 +225,6 @@ export default class DropDownListMpicker extends Vue { ...@@ -225,7 +225,6 @@ export default class DropDownListMpicker extends Vue {
}); });
} }
} }
} }
</script> </script>
......
...@@ -175,7 +175,7 @@ export default class Login extends Vue { ...@@ -175,7 +175,7 @@ export default class Login extends Vue {
const loginname: any = this.form.loginname; const loginname: any = this.form.loginname;
const password: any = this.form.password; const password: any = this.form.password;
const post: Promise<any> = this.$http.post('v7/login', this.form, true); const post: Promise<any> = this.$http.post('/v7/login', this.form, true);
post.then((response: any) => { post.then((response: any) => {
if (response && response.status === 200) { if (response && response.status === 200) {
const data = response.data; const data = response.data;
......
...@@ -963,7 +963,7 @@ export default class EntityService { ...@@ -963,7 +963,7 @@ export default class EntityService {
* @param isloading * @param isloading
*/ */
public async getAllApp(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async getAllApp(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`uaa/access-center/app-switcher/default`,data,isloading); return Http.getInstance().get(`/uaa/access-center/app-switcher/default`,data,isloading);
} }
/** /**
...@@ -974,7 +974,7 @@ export default class EntityService { ...@@ -974,7 +974,7 @@ export default class EntityService {
* @param isloading * @param isloading
*/ */
public async updateChooseApp(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async updateChooseApp(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().put(`uaa/access-center/app-switcher/default`,data,isloading); return Http.getInstance().put(`/uaa/access-center/app-switcher/default`,data,isloading);
} }
/** /**
...@@ -985,7 +985,7 @@ export default class EntityService { ...@@ -985,7 +985,7 @@ export default class EntityService {
* @param isloading * @param isloading
*/ */
public async changPassword(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async changPassword(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`v7/changepwd`,data,isloading); return Http.getInstance().post(`/v7/changepwd`,data,isloading);
} }
} }
\ No newline at end of file
...@@ -77,19 +77,6 @@ export const getViewSplit = (state: any) => (viewUID: string) => { ...@@ -77,19 +77,6 @@ export const getViewSplit = (state: any) => (viewUID: string) => {
return state.viewSplit[viewUID]; return state.viewSplit[viewUID];
} }
/**
* 获取拷贝数据
*
* @param state
*/
export const getCopyData = (state: any) => (srfkey: string) => {
let copyData = state.copyDataMap[srfkey];
if(copyData){
delete state.copyDataMap[srfkey];
}
return copyData;
}
/** /**
* 获取单位数据 * 获取单位数据
* *
......
...@@ -255,18 +255,6 @@ export const setViewSplit = (state: any, args: {viewSplit: number,viewUID:string ...@@ -255,18 +255,6 @@ export const setViewSplit = (state: any, args: {viewSplit: number,viewUID:string
state.viewSplit[args.viewUID] = args.viewSplit; state.viewSplit[args.viewUID] = args.viewSplit;
} }
/**
* 添加拷贝数据
*
* @param state
* @param localdata
*/
export const addCopyData = (state: any, args: {srfkey: string,copyData: any}) => {
if(args && args.srfkey && args.copyData){
state.copyDataMap[args.srfkey] = JSON.parse(JSON.stringify(args.copyData));
}
}
/** /**
* 添加单位数据 * 添加单位数据
* *
......
...@@ -13,7 +13,6 @@ export const rootstate: any = { ...@@ -13,7 +13,6 @@ export const rootstate: any = {
localdata: {}, localdata: {},
zIndex: 300, zIndex: 300,
viewSplit: {}, viewSplit: {},
copyDataMap:{},
orgDataMap:{}, orgDataMap:{},
depDataMap:{}, depDataMap:{},
} }
\ No newline at end of file
...@@ -2,8 +2,7 @@ import { Store } from 'vuex'; ...@@ -2,8 +2,7 @@ import { Store } from 'vuex';
import axios from 'axios'; import axios from 'axios';
import Router from 'vue-router'; import Router from 'vue-router';
import i18n from '@/locale'; import i18n from '@/locale';
import { Environment } from '@/environments/environment';
/** /**
* 拦截器 * 拦截器
* *
...@@ -96,9 +95,9 @@ export class Interceptors { ...@@ -96,9 +95,9 @@ export class Interceptors {
config.headers['Authorization'] = `Bearer ${token}`; config.headers['Authorization'] = `Bearer ${token}`;
} }
config.headers['Accept-Language'] = i18n.locale; config.headers['Accept-Language'] = i18n.locale;
// if (!config.url.startsWith('https://') && !config.url.startsWith('http://')) { if (!Object.is(Environment.BaseUrl,"") && !config.url.startsWith('https://') && !config.url.startsWith('http://') && !config.url.startsWith('./assets')) {
// config.url = Environment.BaseUrl + config.url; config.url = Environment.BaseUrl + config.url;
// } }
return config; return config;
}, (error: any) => { }, (error: any) => {
return Promise.reject(error); return Promise.reject(error);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册