Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
00dbb42f
提交
00dbb42f
编写于
4月 13, 2020
作者:
haochangdi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改 设定机构的设定行政范围
上级
9610cdc9
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
50 行删除
+9
-50
setOrganization.vue
src/components/education/template/setOrganization.vue
+9
-50
未找到文件。
src/components/education/template/setOrganization.vue
浏览文件 @
00dbb42f
...
...
@@ -239,7 +239,8 @@ export default {
});
}
}
}
},
regio
:
''
//设定行政范围选择的范围
}
},
created
()
{
...
...
@@ -252,7 +253,8 @@ export default {
methods
:
{
//查询机构列表
getOrganization
(
r
)
{
console
.
log
(
'=========================getOrganization'
)
this
.
regio
=
r
;
this
.
formOrganization
.
administrativeIdList
=
[
"0"
];
let
req
=
{
projectId
:
this
.
projectId
,
administrativeId
:
""
,
...
...
@@ -279,12 +281,11 @@ export default {
},
//设定的行政范围内容
getScope
(
type
)
{
console
.
log
(
'=========================getScope'
)
console
.
log
(
'=========================getScope'
)
if
(
vm
.
idType
==
2
)
{
return
null
;
}
let
scope
=
""
;
let
noChangeTree
=
this
.
getTreeCheck
();
if
(
type
==
"administrative"
)
{
for
(
let
i
=
0
;
i
<
this
.
tagsRegion
.
length
;
i
++
)
{
scope
+=
this
.
tagsRegion
[
i
].
key
;
...
...
@@ -292,56 +293,12 @@ export default {
scope
+=
"|"
;
}
}
}
else
if
(
type
==
"administrativeUpdate"
)
{
console
.
log
(
"this.allSelectedKeys"
,
this
.
allSelectedKeys
);
if
(
this
.
allSelectedKeys
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
allSelectedKeys
.
length
;
i
++
)
{
scope
+=
this
.
allSelectedKeys
[
i
].
key
+
":"
+
this
.
allSelectedKeys
[
i
].
type
;
if
(
i
<
this
.
allSelectedKeys
.
length
-
1
)
{
scope
+=
"|"
;
}
}
}
else
{
// let noChangeTree = this.getTreeCheck();
console
.
log
(
"noChangeTree值"
,
noChangeTree
);
if
(
noChangeTree
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
noChangeTree
.
length
;
i
++
)
{
scope
+=
noChangeTree
[
i
].
key
+
":"
+
noChangeTree
[
i
].
type
;
if
(
i
<
noChangeTree
.
length
-
1
)
{
scope
+=
"|"
;
}
}
}
else
{
//选全国项目
if
(
this
.
tagsRegion
.
length
>
0
&&
this
.
tagsRegion
[
0
].
key
==
"000"
)
{
scope
=
"000:1"
;
console
.
log
(
this
.
tagsRegion
,
"scope"
,
scope
);
}
}
}
}
//console.log(scope);
if
(
scope
==
""
)
{
return
null
;
}
return
scope
;
},
// 获取行政范围树
getTreeCheck
()
{
console
.
log
(
'=========================getTreeCheck'
)
//重构归并树
// let checkedTree = operationData.getSimpleCheckedNodes(
// this.$refs.tree.store
// );
let
halfCheckedTree
=
this
.
$refs
.
tree
.
getHalfCheckedKeys
();
let
allSelectedKeys
=
operationData
.
setSelectedKeys
(
checkedTree
,
halfCheckedTree
);
vm
.
allSelectedKeys
=
allSelectedKeys
;
//重构内容
return
allSelectedKeys
;
},
//获取地区select
getRegionOption
()
{
...
...
@@ -515,7 +472,8 @@ export default {
];
let
req
=
{
fileArray
:
fileArray
,
scopeOfAdministrative
:
vm
.
getScope
(
"administrative"
)
// scopeOfAdministrative: vm.getScope("administrative")
scopeOfAdministrative
:
this
.
regio
};
let
projectId
=
vm
.
projectId
;
console
.
log
(
"req"
,
req
);
...
...
@@ -602,7 +560,8 @@ export default {
pageNum
:
this
.
formOrganization
.
pageNum
,
pageSize
:
this
.
formOrganization
.
pageSize
,
// scope: this.getScope("administrative")
scope
:
'000'
scope
:
this
.
regio
// scope: '000'
};
openLoading
(
vm
);
// vm.POST("portal/scope/v1/organization/choose", req).then(res => {
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录