Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
1b6e2c69
提交
1b6e2c69
编写于
3月 20, 2020
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
选择地区优化
上级
3baf712d
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
15 行删除
+11
-15
item-list.vue
src/views/learning/item-list.vue
+11
-15
未找到文件。
src/views/learning/item-list.vue
浏览文件 @
1b6e2c69
...
...
@@ -487,15 +487,13 @@ export default {
// this.$refs.childExam.$emit("init");
// }
},
//地区选择操作
handleChange
(
value
)
{
// this.formInline.organization = []; //选择机构的值
this
.
tags
=
[];
let
node
=
this
.
$refs
.
cascaderRegion
.
getCheckedNodes
()[
0
];
//级联当前选中的值
console
.
log
(
'node change'
,
node
)
//获取选中的inputValue
setTimeout
(
function
()
{
// console.log('行政区域改变',vm.$refs["cascaderRegion"].inputValue);
vm
.
dialogData
.
region
=
vm
.
$refs
[
"cascaderRegion"
].
inputValue
;
},
20
);
...
...
@@ -524,8 +522,8 @@ export default {
vm
.
searchNode
(
vm
.
optionsRegion
,
node
.
data
.
id
,
newData
);
});
}
vm
.
formInline
.
organization
=
[];
//这里需要判断当前选中项的degree
是否是5
,如果是5那就不需要再调接口
vm
.
formInline
.
organization
=
[];
//选择的机构
//这里需要判断当前选中项的degree,如果是5那就不需要再调接口
if
(
node
.
data
&&
node
.
data
.
id
&&
node
.
data
.
degree
==
5
)
{
let
changeItemData
=
node
.
data
.
id
;
let
subIndex
=
changeItemData
.
lastIndexOf
(
'_'
);
...
...
@@ -669,8 +667,6 @@ export default {
vm
.
formInline
.
orgId
=
value
.
slice
(
subIndex
+
1
);
vm
.
hospitalCnt
=
1
;
vm
.
formInline
.
organization
.
push
(
vm
.
formInline
.
orgId
);
// vm.hospitalCntList = res.data.list
// vm.organizationList = [];
vm
.
search
();
}
else
{
vm
.
formInline
.
selectRegionId
=
value
;
...
...
@@ -691,7 +687,7 @@ export default {
}
});
},
//获取机构
-老的接口-需要
//获取机构
gethHspitalsCnt
()
{
let
req
=
{
projectId
:
vm
.
projectId
,
...
...
@@ -703,7 +699,7 @@ export default {
vm
.
hospitalCnt
=
res
.
data
.
hospitalCnt
;
vm
.
hospitalCntList
=
res
.
data
.
list
;
//当前选中区域下的机构列表
vm
.
formInline
.
organization
=
[];
vm
.
organizationList
=
[];
//选择机构操作被弃用
//
vm.organizationList = [];//选择机构操作被弃用
// 选中区域下只有一个机构时,所有请求中要传递机构ID added by Anndy Yang
if
(
vm
.
hospitalCntList
.
length
==
1
)
{
let
obj
=
{
...
...
@@ -711,7 +707,7 @@ export default {
label
:
vm
.
hospitalCntList
[
0
].
hospitalName
,
value
:
vm
.
hospitalCntList
[
0
].
hospitalId
,
};
vm
.
organizationList
.
push
(
obj
);
//
vm.organizationList.push(obj);
vm
.
formInline
.
organization
.
push
(
vm
.
hospitalCntList
[
0
].
hospitalId
);
}
vm
.
search
();
// added by Anndy Yang
...
...
@@ -789,10 +785,10 @@ export default {
hospitalNames
:
vm
.
dialogData
.
organization
,
regionNames
:
vm
.
dialogData
.
region
,
};
if
(
vm
.
organizationList
.
length
==
1
)
{
req
.
hospitalIdList
=
[];
req
.
hospitalIdList
[
0
]
=
vm
.
organizationList
[
0
].
value
;
}
//
if(vm.organizationList.length == 1) {
//
req.hospitalIdList = [];
//
req.hospitalIdList[0] = vm.organizationList[0].value;
//
}
// if(req.regionNames == '全部') {
//全部地区 机构只有一个情况
if
(
vm
.
hospitalCntList
.
length
==
1
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录