Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
4abfad32
提交
4abfad32
编写于
7月 05, 2020
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2020.7.5 Merge
上级
9fcd5830
变更
7
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
180 行增加
和
50 行删除
+180
-50
app-department-select.vue
...omponents/app-department-select/app-department-select.vue
+9
-1
app-org-select.vue
src/components/app-org-select/app-org-select.vue
+9
-1
filter-tree.vue
src/components/filter-tree/filter-tree.vue
+0
-1
getters.ts
src/store/modules/view-action/getters.ts
+3
-3
mutations.ts
src/store/modules/view-action/mutations.ts
+3
-8
interceptor.ts
src/utils/interceptor/interceptor.ts
+6
-0
yarn.lock
yarn.lock
+150
-36
未找到文件。
src/components/app-department-select/app-department-select.vue
浏览文件 @
4abfad32
<
template
>
<
template
>
<div
class=
"app-department-select"
>
<div
class=
"app-department-select"
>
<ibiz-select-tree
:NodesData=
"Nodesdata"
v-model=
"selectTreeValue"
:multiple=
"multiple"
@
select=
"onSelect"
></ibiz-select-tree>
<ibiz-select-tree
:NodesData=
"Nodesdata"
v-model=
"selectTreeValue"
:
disabled=
"disabled"
:
multiple=
"multiple"
@
select=
"onSelect"
></ibiz-select-tree>
</div>
</div>
</
template
>
</
template
>
...
@@ -42,6 +42,14 @@ export default class AppDepartmentSelect extends Vue {
...
@@ -42,6 +42,14 @@ export default class AppDepartmentSelect extends Vue {
*/
*/
@
Prop
({
default
:
false
})
public
multiple
?:
any
;
@
Prop
({
default
:
false
})
public
multiple
?:
any
;
/**
* 是否禁用
*
* @type {*}
* @memberof AppDepartmentSelect
*/
@
Prop
({
default
:
false
})
public
disabled
?:
boolean
;
/**
/**
* 表单数据
* 表单数据
*
*
...
...
src/components/app-org-select/app-org-select.vue
浏览文件 @
4abfad32
<
template
>
<
template
>
<div
class=
"app-org-select"
>
<div
class=
"app-org-select"
>
<ibiz-select-tree
:NodesData=
"NodesData"
v-model=
"selectTreeValue"
:multiple=
"multiple"
@
select=
"treeSelectChange"
></ibiz-select-tree>
<ibiz-select-tree
:NodesData=
"NodesData"
v-model=
"selectTreeValue"
:
disabled=
"disabled"
:
multiple=
"multiple"
@
select=
"treeSelectChange"
></ibiz-select-tree>
</div>
</div>
</
template
>
</
template
>
<
script
lang =
'ts'
>
<
script
lang =
'ts'
>
...
@@ -44,6 +44,14 @@ export default class AppOrgSelect extends Vue {
...
@@ -44,6 +44,14 @@ export default class AppOrgSelect extends Vue {
*/
*/
@
Prop
({
default
:
false
})
public
multiple
?:
boolean
;
@
Prop
({
default
:
false
})
public
multiple
?:
boolean
;
/**
* 是否禁用
*
* @type {*}
* @memberof AppDepartmentSelect
*/
@
Prop
({
default
:
false
})
public
disabled
?:
boolean
;
/**
/**
* 查询单位路径
* 查询单位路径
*
*
...
...
src/components/filter-tree/filter-tree.vue
浏览文件 @
4abfad32
...
@@ -89,7 +89,6 @@ export default class FilterTree extends Vue {
...
@@ -89,7 +89,6 @@ export default class FilterTree extends Vue {
};
};
if
(
this
.
datas
.
length
==
0
)
{
if
(
this
.
datas
.
length
==
0
)
{
this
.
onAddItem
(
root
);
this
.
onAddItem
(
root
);
this
.
onAddItem
(
root
);
}
}
return
[
root
];
return
[
root
];
}
}
...
...
src/store/modules/view-action/getters.ts
浏览文件 @
4abfad32
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
export
const
getAppView
=
(
state
:
any
)
=>
(
viewtag
:
string
)
=>
{
export
const
getAppView
=
(
state
:
any
)
=>
(
viewtag
:
string
)
=>
{
const
createdview
=
state
.
createdviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
secondtag
,
viewtag
));
const
createdview
=
state
.
createdviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
secondtag
,
viewtag
));
if
(
!
createdview
)
{
if
(
!
createdview
)
{
console
.
log
(
`----视图
${
viewtag
}
不存在-----
`
)
console
.
warn
(
`获取应用视图实例,,视图「
${
viewtag
}
」不存在
`
)
return
null
;
return
null
;
}
}
return
createdview
;
return
createdview
;
...
@@ -20,7 +20,7 @@ export const getAppView = (state: any) => (viewtag: string) => {
...
@@ -20,7 +20,7 @@ export const getAppView = (state: any) => (viewtag: string) => {
export
const
getViewDataChangeState
=
(
state
:
any
)
=>
(
viewtag
:
string
)
=>
{
export
const
getViewDataChangeState
=
(
state
:
any
)
=>
(
viewtag
:
string
)
=>
{
const
createdview
=
state
.
createdviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
secondtag
,
viewtag
));
const
createdview
=
state
.
createdviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
secondtag
,
viewtag
));
if
(
!
createdview
)
{
if
(
!
createdview
)
{
console
.
log
(
`----视图
${
viewtag
}
不存在-----
`
)
console
.
warn
(
`获取视图数据状态,,视图「
${
viewtag
}
」不存在
`
)
return
false
;
return
false
;
}
}
return
createdview
.
viewdatachange
;
return
createdview
.
viewdatachange
;
...
@@ -34,7 +34,7 @@ export const getViewDataChangeState = (state:any) => (viewtag: string) => {
...
@@ -34,7 +34,7 @@ export const getViewDataChangeState = (state:any) => (viewtag: string) => {
export
const
getRefreshData
=
(
state
:
any
)
=>
(
viewtag
:
string
)
=>
{
export
const
getRefreshData
=
(
state
:
any
)
=>
(
viewtag
:
string
)
=>
{
const
createdview
=
state
.
createdviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
secondtag
,
viewtag
));
const
createdview
=
state
.
createdviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
secondtag
,
viewtag
));
if
(
!
createdview
)
{
if
(
!
createdview
)
{
console
.
log
(
`----视图
${
viewtag
}
不存在-----
`
)
console
.
warn
(
`获取数据刷新状态,视图「
${
viewtag
}
」不存在
`
)
return
null
;
return
null
;
}
}
return
createdview
.
refreshdata
;
return
createdview
.
refreshdata
;
...
...
src/store/modules/view-action/mutations.ts
浏览文件 @
4abfad32
...
@@ -6,15 +6,10 @@
...
@@ -6,15 +6,10 @@
* @param param1
* @param param1
*/
*/
export
const
createdView
=
(
state
:
any
,
{
viewtag
,
secondtag
}:
{
viewtag
:
string
,
secondtag
:
string
})
=>
{
export
const
createdView
=
(
state
:
any
,
{
viewtag
,
secondtag
}:
{
viewtag
:
string
,
secondtag
:
string
})
=>
{
// 该视图是否被创建
// const index = state.createdviews.findIndex((view: any) => Object.is(view.secondtag, viewtag));
// if (index !== -1) {
// return;
// }
// 原始数据中是否存在
// 原始数据中是否存在
const
appview
=
state
.
appviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
viewtag
,
viewtag
));
const
appview
=
state
.
appviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
viewtag
,
viewtag
));
if
(
!
appview
)
{
if
(
!
appview
)
{
console
.
log
(
`----视图标识
${
viewtag
}
不存在-----`
)
console
.
warn
(
`视图「
${
viewtag
}
」原始数据不存在`
);
return
;
return
;
}
}
const
_appview
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
appview
));
const
_appview
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
appview
));
...
@@ -48,7 +43,7 @@ export const removeView = (state: any, viewtag: string) => {
...
@@ -48,7 +43,7 @@ export const removeView = (state: any, viewtag: string) => {
export
const
setViewDataChange
=
(
state
:
any
,
{
viewtag
,
viewdatachange
}:
{
viewtag
:
string
,
viewdatachange
:
boolean
})
=>
{
export
const
setViewDataChange
=
(
state
:
any
,
{
viewtag
,
viewdatachange
}:
{
viewtag
:
string
,
viewdatachange
:
boolean
})
=>
{
const
createdview
=
state
.
createdviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
secondtag
,
viewtag
));
const
createdview
=
state
.
createdviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
secondtag
,
viewtag
));
if
(
!
createdview
)
{
if
(
!
createdview
)
{
console
.
log
(
`----视图标识
${
viewtag
}
不存在-----
`
)
console
.
warn
(
`设置数据状态变更,视图「
${
viewtag
}
」不存在
`
)
return
;
return
;
}
}
createdview
.
viewdatachange
=
viewdatachange
;
createdview
.
viewdatachange
=
viewdatachange
;
...
@@ -63,7 +58,7 @@ export const setViewDataChange = (state: any, { viewtag, viewdatachange }: { vie
...
@@ -63,7 +58,7 @@ export const setViewDataChange = (state: any, { viewtag, viewdatachange }: { vie
export
const
refreshViewData
=
(
state
:
any
,
{
viewtag
}:
{
viewtag
:
string
})
=>
{
export
const
refreshViewData
=
(
state
:
any
,
{
viewtag
}:
{
viewtag
:
string
})
=>
{
const
createdview
=
state
.
createdviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
secondtag
,
viewtag
));
const
createdview
=
state
.
createdviews
.
find
((
appview
:
any
)
=>
Object
.
is
(
appview
.
secondtag
,
viewtag
));
if
(
!
createdview
)
{
if
(
!
createdview
)
{
console
.
log
(
`----视图标识
${
viewtag
}
不存在-----
`
)
console
.
warn
(
`刷新视图数据,视图「
${
viewtag
}
」不存在
`
)
return
;
return
;
}
}
createdview
.
refreshdata
+=
1
;
createdview
.
refreshdata
+=
1
;
...
...
src/utils/interceptor/interceptor.ts
浏览文件 @
4abfad32
...
@@ -114,6 +114,12 @@ export class Interceptors {
...
@@ -114,6 +114,12 @@ export class Interceptors {
if
(
res
.
status
===
401
)
{
if
(
res
.
status
===
401
)
{
this
.
doNoLogin
(
_data
.
data
);
this
.
doNoLogin
(
_data
.
data
);
}
}
if
(
res
.
status
===
403
){
if
(
res
.
data
&&
res
.
data
.
status
&&
Object
.
is
(
res
.
data
.
status
,
"FORBIDDEN"
)){
let
alertMessage
:
string
=
"非常抱歉,您无权操作此数据,如需操作请联系管理员!"
;
Object
.
assign
(
res
.
data
,{
localizedMessage
:
alertMessage
,
message
:
alertMessage
});
}
}
// if (res.status === 404) {
// if (res.status === 404) {
// this.router.push({ path: '/404' });
// this.router.push({ path: '/404' });
// } else if (res.status === 500) {
// } else if (res.status === 500) {
...
...
yarn.lock
浏览文件 @
4abfad32
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录