Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
23375f4d
提交
23375f4d
编写于
3月 30, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix 3:30
上级
251e03af
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
120 行增加
和
47 行删除
+120
-47
operation.js
src/utils/operation.js
+7
-2
add-manager.vue
src/views/education/add-manager.vue
+111
-43
item-manager.vue
src/views/education/item-manager.vue
+2
-2
未找到文件。
src/utils/operation.js
浏览文件 @
23375f4d
...
...
@@ -28,8 +28,13 @@ export function getIntersect(a, b) {
//获取id的list
export
function
getIdList
(
data
)
{
let
list
=
[];
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
list
.
push
(
data
[
i
].
id
);
if
(
typeof
data
===
'undefined'
)
{
return
list
;
}
if
(
data
.
constructor
===
Array
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
list
.
push
(
data
[
i
].
id
);
}
}
return
list
;
}
...
...
src/views/education/add-manager.vue
浏览文件 @
23375f4d
...
...
@@ -96,13 +96,13 @@
:before-upload=
"beforeUploadListPic"
:disabled=
"peopleLevel == 'L3'"
>
<img
v-if=
"formData.attachmentUrl1"
:src=
"formData.attachmentUrl1"
class=
"bg-img"
>
<img
v-if=
"formData.attachmentUrl1"
@
mouseover
.
stop=
"imgMouseOver=true"
:src=
"formData.attachmentUrl1"
class=
"bg-img"
>
<img
v-if=
"!formData.attachmentUrl1"
class=
"bg-img"
src=
"../../assets/image/small.png"
>
<
!--
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
--
>
<
div
class=
"img-delete"
v-show=
"imgMouseOver"
@
click
.
stop=
"deleteImg(1)"
@
mouseout
.
stop=
"imgMouseOver=false"
><i
class=
"el-icon-delete"
></i></div
>
<div
class=
"limit-text"
>
<p>
尺寸:115*86
</p>
<p>
限制大小: 500Kb
</p>
...
...
@@ -137,6 +137,7 @@
<img
v-if=
"formData.type == 1 && formData.attachmentUrl2"
:src=
"formData.attachmentUrl2"
@
mouseover
.
stop=
"imgMouseOver2=true"
class=
"bg-img"
>
<video
...
...
@@ -152,7 +153,7 @@
class=
"bg-img"
src=
"../../assets/image/small.png"
>
<
!--
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
--
>
<
div
class=
"img-delete"
v-show=
"imgMouseOver2"
@
click
.
stop=
"deleteImg(2)"
@
mouseout
.
stop=
"imgMouseOver2=false"
><i
class=
"el-icon-delete"
></i></div
>
<div
v-show=
"formData.type == 1"
class=
"limit-text"
>
<p>
尺寸:375*210
</p>
<p>
限制大小: 2.0 Mb
</p>
...
...
@@ -529,27 +530,27 @@ export default {
BreadCrumb
},
data
()
{
const
itemOrganization
=
{
name
:
"上海市第一人民医院"
,
grade
:
"二甲医院"
,
province
:
"上海市"
,
city
:
"上海市"
,
district
:
"浦东新区"
,
street
:
"张江街道"
};
const
itemPerson
=
{
name
:
"云小鹊"
,
hospital
:
"上海市第一人民医院"
,
department
:
"全科"
,
province
:
"上海市"
,
city
:
"上海市"
,
district
:
"长宁区"
};
//
const itemOrganization = {
//
name: "上海市第一人民医院",
//
grade: "二甲医院",
//
province: "上海市",
//
city: "上海市",
//
district: "浦东新区",
//
street: "张江街道"
//
};
//
const itemPerson = {
//
name: "云小鹊",
//
hospital: "上海市第一人民医院",
//
department: "全科",
//
province: "上海市",
//
city: "上海市",
//
district: "长宁区"
//
};
return
{
idTypeValue
:
1
,
idTypeProject
:
''
,
itemOrganization
:
itemOrganization
,
itemPerson
:
itemPerson
,
//
itemOrganization: itemOrganization,
//
itemPerson: itemPerson,
projectId
:
null
,
peopleLevel
:
null
,
//面包屑
...
...
@@ -562,6 +563,8 @@ export default {
//基层信息 数据
uploadImgMessage
:
false
,
uploadImgMessage2
:
false
,
imgMouseOver
:
false
,
imgMouseOver2
:
false
,
imageUrl
:
""
,
formData
:
{
projectName
:
""
,
...
...
@@ -778,6 +781,7 @@ export default {
commonUtil
.
resizeHeight
();
},
methods
:
{
//表单校验
submitForm
(
formName
)
{
let
flag
=
null
;
...
...
@@ -796,6 +800,16 @@ export default {
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
},
// 删除图片
deleteImg
(
type
)
{
if
(
type
==
1
)
{
vm
.
formData
.
attachmentUrl1
=
''
;
vm
.
imgMouseOver
=
false
;
}
else
{
vm
.
formData
.
attachmentUrl2
=
''
;
vm
.
imgMouseOver2
=
false
;
}
},
//改变封面类型
changeCover
(
radio
)
{
this
.
formData
.
attachmentUrl2
=
""
;
...
...
@@ -1484,6 +1498,9 @@ export default {
let
tabName
=
tab
.
name
;
if
(
tabName
==
"second"
)
{
//设定机构
this
.
formOrganization
.
name
=
""
;
this
.
formOrganization
.
administrativeIdList
=
[
'0'
];
this
.
formOrganization
.
level
=
"0"
;
this
.
getCheckedTree
();
this
.
getOrganization
();
// this.listLevels();
...
...
@@ -1495,6 +1512,9 @@ export default {
// }
}
else
if
(
tabName
==
"fourth"
)
{
//设定人员
this
.
formPerson
.
name
=
""
;
this
.
formPerson
.
departmentId
=
-
1
;
this
.
formPerson
.
hospitalId
=
0
;
this
.
getHospital
();
this
.
departmentList
=
this
.
getDepartmentList
();
//console.log('departmentList',this.departmentList);
...
...
@@ -1719,6 +1739,11 @@ export default {
if
(
res
.
code
==
"000000"
)
{
// console.log(res);
this
.
organizationRank
=
operationData
.
getLevelList
(
res
.
data
.
list
);
}
else
{
this
.
organizationRank
=
[{
id
:
'0'
,
label
:
'全部医院等级'
,
}];
}
});
},
...
...
@@ -1989,6 +2014,32 @@ export default {
this
.
getOrganizationChoose
();
}
},
//初始化搜索人员状态
initOrganizationChoose
()
{
let
tableStatus
=
this
.
tableOrganization
;
if
(
typeof
tableStatus
===
'undefined'
)
{
return
;
}
tableStatus
.
forEach
(
row
=>
{
let
idList
=
[];
idList
[
0
]
=
row
.
id
;
let
intersect
=
operationData
.
getIntersect
(
idList
,
this
.
changedOrganization
);
let
intersect2
=
operationData
.
getIntersect
(
idList
,
this
.
changedOrganization2
);
debugger
;
if
(
intersect
.
length
>
0
)
{
//选中
this
.
$refs
.
multipleOrganization
.
toggleRowSelection
(
row
);
}
else
if
(
intersect2
.
length
>
0
)
{
//不选
}
else
{
if
(
row
.
status
==
1
)
{
this
.
$nextTick
(
function
()
{
this
.
$refs
.
multipleOrganization
.
toggleRowSelection
(
row
);
});
}
}
});
},
//机构搜索
getOrganizationChoose
()
{
// console.log('formOrganization',this.formOrganization);
...
...
@@ -2032,10 +2083,7 @@ export default {
);
//console.log('全部看过的:',this.lookedOrganization);
if
(
vm
.
checkTableState
.
multipleOrganization
===
""
)
{
if
(
intersect
.
length
==
0
)
{
this
.
initOrganizationStatus
();
}
this
.
initOrganizationChoose
();
}
else
if
(
vm
.
checkTableState
.
multipleOrganization
===
true
)
{
let
intersect2
=
operationData
.
getIntersect
(
idList
,
...
...
@@ -2208,16 +2256,6 @@ export default {
}
})
},
initPeopleStatus
()
{
let
tableStatus
=
this
.
tablePerson
;
tableStatus
.
forEach
(
row
=>
{
if
(
row
.
status
==
1
)
{
this
.
$nextTick
(
function
()
{
this
.
$refs
.
multiplePerson
.
toggleRowSelection
(
row
);
});
}
});
},
//选择搜索机构方式
searchPeople
()
{
this
.
formPerson
.
pageNum
=
1
;
...
...
@@ -2234,6 +2272,32 @@ export default {
this
.
getPeopleChoose
();
}
},
//初始化搜索人员状态
initPeopleChoose
()
{
let
tableStatus
=
this
.
tablePerson
;
if
(
typeof
tableStatus
===
'undefined'
)
{
return
;
}
tableStatus
.
forEach
(
row
=>
{
let
idList
=
[];
idList
[
0
]
=
row
.
id
;
let
intersect
=
operationData
.
getIntersect
(
idList
,
this
.
changedPerson
);
let
intersect2
=
operationData
.
getIntersect
(
idList
,
this
.
changedPerson2
);
// debugger;
if
(
intersect
.
length
>
0
)
{
//选中
this
.
$refs
.
multiplePerson
.
toggleRowSelection
(
row
);
}
else
if
(
intersect2
.
length
>
0
)
{
//不选
}
else
{
if
(
row
.
status
==
1
)
{
this
.
$nextTick
(
function
()
{
this
.
$refs
.
multiplePerson
.
toggleRowSelection
(
row
);
});
}
}
});
},
//人员搜索
getPeopleChoose
()
{
// console.log('formOrganization',this.formOrganization);
...
...
@@ -2285,21 +2349,26 @@ export default {
);
//console.log('全部看过的:',this.lookedPerson);
if
(
vm
.
checkTableState
.
multiplePerson
===
""
)
{
if
(
intersect
.
length
==
0
)
{
this
.
initPeopleStatus
();
}
debugger
;
this
.
initPeopleChoose
();
}
else
if
(
vm
.
checkTableState
.
multiplePerson
===
true
)
{
let
intersect2
=
operationData
.
getIntersect
(
idList
,
this
.
changedPerson
);
// console.log('intersect2',intersect2);
if
(
intersect2
.
length
==
0
)
{
this
.
$refs
.
multiplePerson
.
toggleAllSelection
();
}
}
}
});
},
initPeopleStatus
()
{
let
tableStatus
=
this
.
tablePerson
;
tableStatus
.
forEach
(
row
=>
{
if
(
row
.
status
==
1
)
{
this
.
$nextTick
(
function
()
{
this
.
$refs
.
multiplePerson
.
toggleRowSelection
(
row
);
});
}
});
},
...
...
@@ -2463,8 +2532,7 @@ export default {
//console.log('this.tagsComponent',this.tagsComponent);
},
initTags
(
value
)
{
console
.
log
(
'value'
,
value
,
'optionsComponent'
,
this
.
optionsComponent
);
//debugger;
//console.log('value',value,'optionsComponent',this.optionsComponent);
this
.
tagsComponent
=
[];
let
len
=
0
;
for
(
let
i
=
0
;
i
<
value
.
length
;
i
++
)
{
...
...
src/views/education/item-manager.vue
浏览文件 @
23375f4d
...
...
@@ -85,8 +85,8 @@
min-width=
"100"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"projectBegintime"
label=
"项目开始时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectEndtime"
label=
"项目结束时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectBegintime"
label=
"项目开始时间"
min-width=
"90"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectEndtime"
label=
"项目结束时间"
min-width=
"90"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectStatus"
label=
"状态"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
[
scope
.
row
.
projectStatus
,
idType
]
|
statusProject
}}
</span>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录