Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
fb6e4da8
提交
fb6e4da8
编写于
3月 25, 2019
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
2cc2f991
变更
8
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
673 行增加
和
28 行删除
+673
-28
App.vue
src/App.vue
+1
-0
router.js
src/router/router.js
+12
-0
common.scss
src/style/common.scss
+6
-1
env-config.js
src/utils/env-config.js
+1
-1
add-edit.vue
src/views/discuss/add-edit.vue
+358
-0
index.vue
src/views/discuss/index.vue
+287
-0
header.vue
src/views/layout/header.vue
+2
-2
slidebar.vue
src/views/layout/slidebar.vue
+6
-24
未找到文件。
src/App.vue
浏览文件 @
fb6e4da8
...
...
@@ -58,6 +58,7 @@ export default {
getToken
()
{
let
href
=
window
.
location
.
href
let
offset
=
href
.
indexOf
(
"?"
)
localStorage
.
setItem
(
'storageToken'
,
'70A84A5CC146460EABDE6ED15EEC0C5A'
)
if
(
offset
!==
-
1
)
{
let
paramStr
=
href
.
substring
(
offset
+
1
,
href
.
length
)
let
pars
=
base64decode
(
paramStr
)
...
...
src/router/router.js
浏览文件 @
fb6e4da8
...
...
@@ -9,6 +9,9 @@ const roleManager = r => require.ensure([], () => r(require('../views/system/rol
const
addManager
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/education/add-manager.vue'
)),
'add-manager'
)
const
itemRole
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/system/item-role.vue'
)),
'item-role'
)
const
discuss
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/discuss/index.vue'
)),
'index'
)
const
creatDiscuss
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/discuss/add-edit.vue'
)),
'creatDiscuss'
)
export
default
[{
path
:
'/'
,
component
:
App
,
...
...
@@ -44,5 +47,14 @@ export default [{
path
:
'/item-role'
,
component
:
itemRole
},
{
path
:
'/discuss-list'
,
component
:
discuss
},
{
path
:
'/creat-discuss'
,
component
:
creatDiscuss
},
]
}]
\ No newline at end of file
src/style/common.scss
浏览文件 @
fb6e4da8
...
...
@@ -216,10 +216,15 @@ html,body{
border-color
:
#449284
!
important
;
background
:
#449284
!
important
;
}
.el-radio__input.is-checked
+
.el-radio__label
,
.el-tabs__item.is-active
{
.el-radio__input.is-checked
+
.el-radio__label
,
.el-tabs__item.is-active
,
.el-checkbox__input.is-checked
+
.el-checkbox__label
{
color
:
#449284
!
important
;
}
.el-checkbox__input.is-checked
.el-checkbox__inner
,
.el-checkbox__input.is-indeterminate
.el-checkbox__inner
{
border-color
:
#449284
!
important
;
background
:
#449284
!
important
;
}
// 面包屑导航
.el-breadcrumb__inner
a
,
.el-breadcrumb__inner.is-link
{
font-weight
:
300
!
important
;
...
...
src/utils/env-config.js
浏览文件 @
fb6e4da8
...
...
@@ -9,7 +9,7 @@ export const envConfig = {
// baseUrl: 'https://test1-sc.yunqueyi.com/',
//baseUrl: 'https://uat-sc.yunqueyi.com/',
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
baseUrl
:
'http
://192.168.140.38:12801/v2/api-docs/'
||
'http
s://dev-sc.yunqueyi.com/'
,
qiniuFileUrl
:
"http://localhost:10201/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
...
...
src/views/discuss/add-edit.vue
0 → 100644
浏览文件 @
fb6e4da8
<
template
>
<div
class=
"add-manager-wrap"
>
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
></bread-crumb>
<div
class=
"add-content screenSet"
id=
"screenSet"
>
<div
class=
"discuss-opt"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"100px"
>
<el-form-item
label=
"讨论主题"
required
>
<el-col
:span=
"8"
>
<el-input
v-model=
"form.subject"
size=
"mini"
type=
"textarea"
></el-input>
</el-col>
</el-form-item>
<el-form-item
label=
"内容发布控制"
>
<div>
<span
class=
"label-name"
>
话题
</span>
<el-radio
v-model=
"form.ht"
label=
"1"
>
允许
</el-radio>
<el-radio
v-model=
"form.ht"
label=
"0"
>
不允许
</el-radio>
</div>
<div>
<span
class=
"label-name"
>
评论
</span>
<el-radio
v-model=
"form.pl"
label=
"1"
>
允许
</el-radio>
<el-radio
v-model=
"form.pl"
label=
"0"
>
不允许
</el-radio>
</div>
</el-form-item>
<el-form-item
label=
"审核规则"
required
>
<div>
<span
class=
"label-name"
>
文字
</span>
<el-radio
v-model=
"form.wz"
label=
"2"
>
先审后显示
</el-radio>
<el-radio
v-model=
"form.wz"
label=
"4"
>
后审先显示
</el-radio>
</div>
<div>
<span
class=
"label-name"
>
图片
</span>
<el-radio
v-model=
"form.tp"
label=
"8"
>
先审后显示
</el-radio>
<el-radio
v-model=
"form.tp"
label=
"16"
>
后审先显示
</el-radio>
</div>
</el-form-item>
<el-form-item
label=
"开放客群"
required
>
<el-checkbox
label=
"注册用户"
v-model=
"form.isZC"
></el-checkbox>
<el-checkbox
label=
"认证用户"
v-model=
"form.isRZ"
></el-checkbox>
</el-form-item>
<el-form-item
label=
"发布按钮文案"
required
>
<div>
<span
class=
"label-name label-f"
>
首页按钮
</span>
<el-input
v-model=
"form.topicBtnText"
size=
"mini"
style=
"width: 100px;"
></el-input>
</div>
<div>
<span
class=
"label-name label-f"
>
二级页按钮
</span>
<el-input
v-model=
"form.commentBtnText"
size=
"mini"
style=
"width: 100px;"
></el-input>
</div>
</el-form-item>
</el-form>
<div
class=
"btn-box pdrt20"
>
<el-button
type=
"primary"
size=
"small"
class=
"button-green"
@
click=
"addDiss"
>
保存
</el-button>
<el-button
size=
"small"
class=
"button-white"
>
返回
</el-button>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
BreadCrumb
from
"../../components/breadcrumb.vue"
;
import
{
doUpload
,
getFilePath
}
from
"../../utils/qiniu-util"
;
import
{
returnData
}
from
"../mock"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
*
as
commonUtil
from
"../../utils/utils"
;
let
vm
=
null
;
export
default
{
components
:
{
BreadCrumb
},
data
()
{
return
{
curmbFirst
:
'讨论组件'
,
curmbSecond
:
'新增'
,
form
:{
subject
:
''
,
ht
:
'1'
,
pl
:
'1'
,
wz
:
'2'
,
tp
:
'8'
,
user
:
'1'
,
isZC
:
false
,
isRZ
:
false
,
zc
:
4
,
rz
:
8
,
topicBtnText
:
''
,
commentBtnText
:
''
,
displayTopicBtn
:
true
,
//是否显示发布话题按钮
dispalyCommentBtn
:
true
,
//是否显示评论按钮
}
};
},
computed
:
{
...
mapGetters
([
"_token"
,
"idType"
])
},
created
()
{
vm
=
this
;
},
// 挂载到Dom完成时
mounted
:
function
()
{
},
methods
:
{
//新增讨论
addDiss
(){
let
visibility
=
0
,
auditRules
=
0
;
if
(
this
.
form
.
isRZ
){
visibility
=
8
}
if
(
this
.
form
.
isZC
){
visibility
=
4
}
if
(
this
.
form
.
isRZ
&&
this
.
form
.
isZC
){
visibility
=
12
}
auditRules
=
Number
(
this
.
form
.
wz
)
+
Number
(
this
.
form
.
tp
)
let
parm
=
{
"auditrules"
:
auditRules
,
"commentbtntext"
:
this
.
form
.
commentBtnText
,
//"deleteflag": 0,
//"derivedid": 0,
//"derivername": "string",
"dispalycommentbtn"
:
this
.
form
.
pl
==
1
?
true
:
false
,
"displaytopicbtn"
:
this
.
form
.
ht
==
1
?
true
:
false
,
"id"
:
0
,
"subject"
:
this
.
form
.
subject
,
"topicbtntext"
:
this
.
form
.
topicbtntext
,
"visibility"
:
visibility
}
this
.
POST
(
'portalComponent/queryPortalComponent'
,
parm
).
then
((
res
)
=>
{
// closeLoading(vm)
if
(
res
.
code
==
'000000'
)
{
}
})
},
//获取讨论组件详细
getDissById
(
id
){
let
parm
=
{
"auditrules"
:
0
,
"commentbtntext"
:
"string"
,
//"createdid": 0,
//"createdtime": "2019-03-25T08:30:35.630Z",
"deleteflag"
:
0
,
"derivedid"
:
0
,
"derivername"
:
"string"
,
"dispalycommentbtn"
:
true
,
"displaytopicbtn"
:
true
,
"id"
:
0
,
//"modifiedid": 0,
//"modifiedtime": "2019-03-25T08:30:35.630Z",
"participatecount"
:
0
,
"subject"
:
"string"
,
"topicbtntext"
:
"string"
,
"visibility"
:
0
}
this
.
POST
(
'portalComponent/queryPortalComponent'
,
parm
).
then
((
res
)
=>
{
// closeLoading(vm)
if
(
res
.
code
==
'000000'
)
{
}
})
}
}
};
</
script
>
<
style
lang=
"scss"
>
.discuss-opt
{
padding
:
20px
;
.btn-box
{
text-align
:
center
}
.label-name
{
font-size
:
12px
;
color
:
#606266
;
padding-right
:
10px
;
display
:
inline-block
;
}
.label-f
{
width
:
80px
;
}
.pdrt20
{
padding
:
20px
0
;
}
.el-radio__label
,
.el-checkbox__label
{
font-size
:
12px
;
}
}
.add-manager-wrap
{
.add-content
{
background
:
#fff
;
}
.rim
{
border
:
1px
solid
#dddddd
;
}
.step-content
{
overflow
:
hidden
;
height
:
60px
;
margin-top
:
66px
;
padding-top
:
15px
;
border-bottom
:
1px
solid
#fff
;
.is-text
{
display
:
none
;
}
.el-steps--simple
{
background
:
#fff
;
}
.button-green
{
color
:
#ffffff
;
background
:
#449284
;
border-color
:
#bfdad5
;
border-radius
:
2px
;
}
.button-white
{
color
:
#606266
;
background
:
#ffffff
;
border-color
:
#ecedf1
;
border-radius
:
2px
;
}
.step-num
{
display
:
block
;
font-size
:
12px
;
border
:
2px
solid
#b8babe
;
border-radius
:
50%
;
width
:
25px
;
height
:
20px
;
line-height
:
15px
;
text-align
:
center
;
color
:
#b8babe
;
}
.is-finish
{
color
:
#c0c4cc
;
}
.on-step
{
color
:
#747476
;
border-color
:
#747476
;
}
}
.first-step
{
margin-top
:
20px
;
.bg-uploader
{
img
{
float
:
left
;
}
.bg-img
{
width
:
84px
;
height
:
100px
;
}
.bg-video
{
float
:
left
;
width
:
100px
;
height
:
100px
;
}
.limit-text
{
float
:
left
;
margin-left
:
10px
;
margin-top
:
-10px
;
p
{
font-size
:
12px
;
color
:
#999
;
}
}
}
.el-upload__tip
{
position
:
absolute
;
top
:
-6px
;
left
:
130px
;
}
.choose-button
{
background
:
#fff
;
color
:
#409eff
;
border
:
1px
solid
#409eff
;
}
}
.second-step
{
margin
:
10px
0
0
20px
;
//隐藏树展开
.table-empty
{
img
{
width
:
100px
;
}
p
{
margin-top
:
-50px
;
}
}
.el-tree-node__expand-icon
{
display
:
none
;
}
.el-table__header-wrapper
{
.el-checkbox__inner
{
//display: none;
//visibility: hidden;
}
}
.department
{
margin-top
:
20px
;
border
:
1px
solid
#dddddd
;
}
.
el-tabs__nav-wrap
:
:
after
{
display
:
none
;
}
.el-tabs__active-bar
{
display
:
none
;
}
#tab-first
,
#tab-second
,
#tab-third
{
padding-right
:
0px
;
}
#
tab-first
:
:
after
,
#tab
-
second
::
after
,
#tab
-
third
::
after
{
color
:
#c7cbd2
;
margin-left
:
20px
;
content
:
"•"
;
}
.el-tag
{
margin
:
0
10px
10px
0
;
border
:
1
.3px
solid
#48a8fe
;
color
:
#1e92fe
;
background-color
:
#e7f6fe
;
.el-icon-close
{
width
:
13px
;
height
:
13px
;
line-height
:
13px
;
font-size
:
12px
;
background-color
:
#0486fe
;
border-radius
:
50%
;
color
:
#d4edfe
;
}
}
}
.third-step
{
margin
:
30px
0
0px
30px
;
padding-bottom
:
30px
;
}
}
</
style
>
\ No newline at end of file
src/views/discuss/index.vue
0 → 100644
浏览文件 @
fb6e4da8
此差异已折叠。
点击以展开。
src/views/layout/header.vue
浏览文件 @
fb6e4da8
<
template
>
<div
class=
"header-container"
>
<div
class=
"logo"
>
<
img
src=
"../../assets/image/index_logoicon.png"
/
>
<p>
云鹊医
工作站
</p>
<
!--
<img
src=
"../../assets/image/index_logoicon.png"
/>
--
>
<p>
云鹊医
</p>
</div>
<div
class=
"user-info"
>
<el-dropdown
trigger=
"click"
@
command=
"handleCommand"
>
...
...
src/views/layout/slidebar.vue
浏览文件 @
fb6e4da8
...
...
@@ -39,37 +39,19 @@ export default {
return
{
items
:
[
{
title
:
'
数据总览
'
,
title
:
'
组件
'
,
icon
:
'el-icon-menu'
,
index
:
'home'
},{
title
:
'教培项目'
,
icon
:
'el-icon-message'
,
index
:
'item'
,
subs
:
[
{
title
:
'
项目
组件'
,
title
:
'
讨论
组件'
,
icon
:
'el-icon-setting'
,
index
:
'
item-componen
t'
index
:
'
discuss-lis
t'
},
{
title
:
'项目管理'
,
icon
:
'el-icon-setting'
,
index
:
'item-manager'
},
]
},{
title
:
'系统管理'
,
icon
:
'el-icon-menu'
,
index
:
'system'
,
subs
:
[
{
title
:
'角色管理'
,
icon
:
'el-icon-setting'
,
index
:
'role'
}
]
}
},
]
}
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录