Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
df5ed5c2
提交
df5ed5c2
编写于
8月 05, 2020
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge branch 'dev'
上级
1771b71b
变更
9
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
12 行增加
和
40 行删除
+12
-40
app-rich-text-editor.vue
src/components/app-rich-text-editor/app-rich-text-editor.vue
+1
-1
app-user.vue
src/components/app-user/app-user.vue
+1
-1
dropdown-list-mpicker.vue
...omponents/dropdown-list-mpicker/dropdown-list-mpicker.vue
+2
-3
login.vue
src/components/login/login.vue
+1
-1
entity-service.ts
src/service/entity-service.ts
+3
-3
getters.ts
src/store/getters.ts
+0
-13
mutations.ts
src/store/mutations.ts
+0
-12
state.ts
src/store/state.ts
+0
-1
interceptor.ts
src/utils/interceptor/interceptor.ts
+4
-5
未找到文件。
src/components/app-rich-text-editor/app-rich-text-editor.vue
浏览文件 @
df5ed5c2
...
...
@@ -72,7 +72,7 @@ export default class AppRichTextEditor extends Vue {
* @type {string}
* @memberof AppRichTextEditor
*/
public
uploadUrl
=
Environment
.
BaseUrl
+
Environment
.
UploadFile
;
public
uploadUrl
=
Environment
.
UploadFile
;
/**
* 下载路径
...
...
src/components/app-user/app-user.vue
浏览文件 @
df5ed5c2
...
...
@@ -92,7 +92,7 @@ export default class AppUser extends Vue {
* @memberof AppUser
*/
public
logout
()
{
const
get
:
Promise
<
any
>
=
this
.
$http
.
get
(
'v7/logout'
);
const
get
:
Promise
<
any
>
=
this
.
$http
.
get
(
'
/
v7/logout'
);
get
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
localStorage
.
removeItem
(
'user'
);
...
...
src/components/dropdown-list-mpicker/dropdown-list-mpicker.vue
浏览文件 @
df5ed5c2
...
...
@@ -185,7 +185,7 @@ export default class DropDownListMpicker extends Vue {
if
(
this
.
tag
&&
Object
.
is
(
this
.
codelistType
,
"STATIC"
)){
const
codelist
=
this
.
$store
.
getters
.
getCodeList
(
this
.
tag
);
if
(
codelist
)
{
this
.
items
=
[...
JSON
.
parse
(
JSON
.
stringify
(
codelist
.
items
))];
this
.
items
=
[...
JSON
.
parse
(
JSON
.
stringify
(
codelist
.
items
))];
}
else
{
console
.
log
(
`----
${
this
.
tag
}
----
${(
this
.
$t
(
'app.commonWords.codeNotExist'
)
as
string
)}
`
);
}
...
...
@@ -197,7 +197,7 @@ export default class DropDownListMpicker extends Vue {
let
_context
=
data
.
context
;
let
_param
=
data
.
param
;
this
.
codeListService
.
getItems
(
this
.
tag
,
_context
,
_param
).
then
((
res
:
any
)
=>
{
this
.
items
=
res
;
this
.
items
=
res
;
}).
catch
((
error
:
any
)
=>
{
console
.
log
(
`----
${
this
.
tag
}
----
${(
this
.
$t
(
'app.commonWords.codeNotExist'
)
as
string
)}
`
);
});
...
...
@@ -225,7 +225,6 @@ export default class DropDownListMpicker extends Vue {
});
}
}
}
</
script
>
...
...
src/components/login/login.vue
浏览文件 @
df5ed5c2
...
...
@@ -175,7 +175,7 @@ export default class Login extends Vue {
const
loginname
:
any
=
this
.
form
.
loginname
;
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
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
const
data
=
response
.
data
;
...
...
src/service/entity-service.ts
浏览文件 @
df5ed5c2
...
...
@@ -963,7 +963,7 @@ export default class EntityService {
* @param isloading
*/
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 {
* @param isloading
*/
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 {
* @param isloading
*/
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
src/store/getters.ts
浏览文件 @
df5ed5c2
...
...
@@ -77,19 +77,6 @@ export const getViewSplit = (state: any) => (viewUID: string) => {
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
;
}
/**
* 获取单位数据
*
...
...
src/store/mutations.ts
浏览文件 @
df5ed5c2
...
...
@@ -255,18 +255,6 @@ export const setViewSplit = (state: any, args: {viewSplit: number,viewUID:string
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
));
}
}
/**
* 添加单位数据
*
...
...
src/store/state.ts
浏览文件 @
df5ed5c2
...
...
@@ -13,7 +13,6 @@ export const rootstate: any = {
localdata
:
{},
zIndex
:
300
,
viewSplit
:
{},
copyDataMap
:{},
orgDataMap
:{},
depDataMap
:{},
}
\ No newline at end of file
src/utils/interceptor/interceptor.ts
浏览文件 @
df5ed5c2
...
...
@@ -2,8 +2,7 @@ import { Store } from 'vuex';
import
axios
from
'axios'
;
import
Router
from
'vue-router'
;
import
i18n
from
'@/locale'
;
import
{
Environment
}
from
'@/environments/environment'
;
/**
* 拦截器
*
...
...
@@ -96,9 +95,9 @@ export class Interceptors {
config
.
headers
[
'Authorization'
]
=
`Bearer
${
token
}
`
;
}
config
.
headers
[
'Accept-Language'
]
=
i18n
.
locale
;
// if (!config.url.startsWith('https://') && !config.url.startsWith('http://
')) {
//
config.url = Environment.BaseUrl + config.url;
//
}
if
(
!
Object
.
is
(
Environment
.
BaseUrl
,
""
)
&&
!
config
.
url
.
startsWith
(
'https://'
)
&&
!
config
.
url
.
startsWith
(
'http://'
)
&&
!
config
.
url
.
startsWith
(
'./assets
'
))
{
config
.
url
=
Environment
.
BaseUrl
+
config
.
url
;
}
return
config
;
},
(
error
:
any
)
=>
{
return
Promise
.
reject
(
error
);
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录