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
提交
cb184436
提交
cb184436
编写于
12月 25, 2020
作者:
vino
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
广场管理和活动管理开发
上级
022a8d77
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
75 行增加
和
20 行删除
+75
-20
filter.js
src/utils/filter.js
+10
-0
plazaApi.js
src/utils/plaza/plazaApi.js
+4
-2
activity-member.vue
src/views/activitymanagement/activity-member.vue
+19
-9
plaza-list.vue
src/views/plaza/plaza-list.vue
+42
-9
未找到文件。
src/utils/filter.js
浏览文件 @
cb184436
...
...
@@ -563,6 +563,16 @@ const vueFilter = {
}
},
tagsFilter
:
(
value
)
=>
{
let
text
=
""
;
if
(
value
!=
null
&&
value
.
length
>
0
){
for
(
let
i
=
0
;
i
<
value
.
length
;
i
++
)
{
text
=
text
+
value
[
i
].
name
;
}
}
return
text
;
}
}
export
default
vueFilter
src/utils/plaza/plazaApi.js
浏览文件 @
cb184436
...
...
@@ -63,12 +63,14 @@ export const delPlaza = (params) => {
};
export
const
getPlaza
=
()
=>
{
export
const
getPlaza
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`circle/sso/square/info`
),
url
:
getBaseUrl
(
`circle/sso/square/info
?id=
${
params
.
id
}
`
),
method
:
'get'
,
data
:
params
,
description
:
'后台管理--广场内专区信息(查看)'
,
withCredentials
:
true
})
};
...
...
src/views/activitymanagement/activity-member.vue
浏览文件 @
cb184436
<
template
>
<div
class=
"organization"
>
<div
class=
"yqrange-index-wrapper"
>
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
:jumPathFirst=
"jumPathFirst"
></bread-crumb>
<div
class=
"yqrange-index-content screenSet"
id=
"screenSet"
>
<el-row
type=
"flex"
class=
"row-bg"
>
<el-col
class=
"add-organization"
v-if=
"showImportFlag"
>
<!--
<el-upload-->
...
...
@@ -47,7 +49,7 @@
</el-table-column>
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../
../
assets/image/no-content1.png"
>
<img
src=
"../../assets/image/no-content1.png"
>
<p>
没有人员信息
</p>
</div>
</div>
...
...
@@ -180,19 +182,18 @@
</el-dialog>
</div>
</div>
</template>
<
script
>
import
*
as
operationData
from
"@/utils/operation
"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue
"
;
import
{
openLoading
,
closeLoading
}
from
"@/utils/utils"
;
import
{
doUpload
,
getFilePath
}
from
"@/utils/qiniu-util"
;
import
{
mpRelSearch
,
mprDeleteOrg
}
from
'@/utils/yqrange/memberApi'
;
import
{
uploadDoc
}
from
'@/utils/yqrange/yqrangeApi'
;
import
addMember
from
'./addMember.vue'
import
{
getActivityDocList
,
removeDoc
,
importDoc
}
from
'@/utils/activitymanagement/activitymanagementApi'
;
let
vm
=
null
;
export
default
{
components
:
{
addMember
BreadCrumb
},
props
:
{
circleId
:
{
...
...
@@ -237,6 +238,10 @@
}
}
},
curmbFirst
:
'活动管理'
,
// curmbSecond: '直播管理',
curmbThird
:
'新建直播'
,
// /live-manage?id=
jumPathFirst
:
'/activity-management'
,
administrativeValue
:
""
,
optionsRegion
:
[],
sourceList
:
[
...
...
@@ -279,8 +284,13 @@
},
created
()
{
vm
=
this
;
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
name
=
this
.
$route
.
query
.
name
;
this
.
curmbSecond
=
"活动成员管理-"
+
this
.
name
;
//Idtype:1,内部 2.外部
vm
.
idType
=
localStorage
.
getItem
(
"storageIdType"
);
this
.
initRange
();
if
(
vm
.
idType
==
1
){
this
.
showImportFlag
=
true
;
...
...
@@ -345,7 +355,7 @@
source
:
this
.
formOrganization
.
source
,
};
openLoading
(
vm
);
mpRelSearch
(
req
).
then
(
res
=>
{
getActivityDocList
(
req
).
then
(
res
=>
{
if
(
!
first
)
{
closeLoading
(
vm
);
}
...
...
@@ -545,7 +555,7 @@
.add-organization
{
margin-left
:
20px
;
line-height
:
20px
;
width
:
12
0px
;
width
:
6
0px
;
cursor
:
pointer
;
padding-top
:
10px
;
i
{
...
...
src/views/plaza/plaza-list.vue
浏览文件 @
cb184436
...
...
@@ -92,20 +92,24 @@
</el-table-column>
<el-table-column
prop=
"diseaseTags"
label=
"疾病标签"
min-width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
streamType
|
streamType
Filter
}}
</span>
<span>
{{
scope
.
row
.
diseaseTags
|
tags
Filter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"deptTags"
label=
"科室标签"
min-width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
streamType
|
streamType
Filter
}}
</span>
<span>
{{
scope
.
row
.
deptTags
|
tags
Filter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"subjectTags"
label=
"学科标签"
min-width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
streamType
|
streamTypeFilter
}}
</span>
<span>
{{
scope
.
row
.
subjectTags
|
tagsFilter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"createdTime"
label=
"添加时间"
min-width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createdTime
|
liveDateFilter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"createdTime"
label=
"添加时间"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
min-width=
"300"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"editPlaza(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button>
...
...
@@ -565,8 +569,14 @@
savePlaza
(){
let
params
=
vm
.
plazaForm
;
let
params
=
{
id
:
vm
.
plazaForm
.
id
,
businessId
:
vm
.
plazaForm
.
businessId
,
diseaseIdList
:
vm
.
plazaForm
.
diseaseIdList
,
deptIdList
:
vm
.
plazaForm
.
deptIdList
,
subjectIdList
:
vm
.
plazaForm
.
subjectIdList
};
openLoading
(
this
);
savePlaza
(
params
).
then
((
res
)
=>
{
closeLoading
(
this
);
if
(
res
.
code
==
"000000"
)
{
...
...
@@ -581,9 +591,32 @@
})
},
cancle
(){
vm
.
dialogVisible
=
false
;
},
//编辑专区
editPlaza
(
row
)
{
vm
.
plazaForm
.
id
=
row
.
id
;
vm
.
plazaForm
.
businessId
=
row
.
businessId
;
if
(
vm
.
selectPlazaList
.
length
==
0
){
vm
.
getSelectPlazaList
();
}
let
params
=
{
id
:
row
.
id
}
openLoading
(
this
);
getPlaza
(
params
).
then
((
res
)
=>
{
closeLoading
(
this
);
if
(
res
.
code
==
"000000"
)
{
vm
.
dialogVisible
=
true
;
vm
.
plazaForm
=
res
.
data
;
}
else
{
this
.
$message
.
error
(
"添加失败,请重试"
);
}
}).
catch
((
error
)
=>
{
this
.
$message
.
error
(
"请重试"
);
})
},
//删除专区
...
...
@@ -663,7 +696,7 @@
if
(
res
.
code
==
"000000"
)
{
// console.log(res);
let
listData
=
[];
if
(
res
.
data
.
pageContents
==
null
)
{
if
(
res
.
data
.
list
==
null
)
{
return
;
}
// for (let i = 0; i
<
res
.
data
.
pageContents
.
length
;
i
++
)
{
...
...
@@ -682,9 +715,9 @@
// };
// listData.push(obj);
// }
this
.
tableData
=
res
.
data
.
pageContents
;
this
.
tableData
=
res
.
data
.
list
;
this
.
totalRows
=
res
.
data
.
total
Rows
;
this
.
totalRows
=
res
.
data
.
total
;
}
else
{
this
.
tableData
=
[];
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录