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
提交
31f2a170
提交
31f2a170
编写于
4月 01, 2019
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
bf7c2f78
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
16 行增加
和
14 行删除
+16
-14
App.vue
src/App.vue
+1
-1
env-config.js
src/utils/env-config.js
+1
-1
add-edit.vue
src/views/discuss/add-edit.vue
+5
-6
index.vue
src/views/discuss/index.vue
+9
-6
未找到文件。
src/App.vue
浏览文件 @
31f2a170
...
...
@@ -58,7 +58,7 @@ export default {
getToken
()
{
let
href
=
window
.
location
.
href
let
offset
=
href
.
indexOf
(
"?"
)
localStorage
.
setItem
(
'storageToken'
,
'
70A84A5CC146460EABDE6ED15EEC0C5A
'
)
localStorage
.
setItem
(
'storageToken'
,
'
CBC0F7B0C9D34806958B18E23C881A09
'
)
if
(
offset
!==
-
1
)
{
let
paramStr
=
href
.
substring
(
offset
+
1
,
href
.
length
)
let
pars
=
base64decode
(
paramStr
)
...
...
src/utils/env-config.js
浏览文件 @
31f2a170
...
...
@@ -9,7 +9,7 @@ export const envConfig = {
// baseUrl: 'https://test1-sc.yunqueyi.com/',
//baseUrl: 'https://uat-sc.yunqueyi.com/',
baseUrl
:
'http://192.168.140.38:12801/v2/api-docs/'
||
'https://dev-sc.yunqueyi.com/
'
,
baseUrl
:
'https://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
浏览文件 @
31f2a170
...
...
@@ -123,7 +123,7 @@ export default {
remark
:
''
,
deriverName
:
'积木'
},
maxTopic
:
4
0
,
maxTopic
:
6
0
,
id
:
0
,
};
},
...
...
@@ -183,8 +183,7 @@ export default {
this
.
showError
(
'请选择开发客群'
);
return
;
}
console
.
log
(
this
.
form
.
topicBtnText
)
console
.
log
(
this
.
form
.
topicBtnText
)
if
(
this
.
form
.
topicBtnText
==
''
){
this
.
showError
(
'请输入首页按钮文字'
);
return
;
...
...
@@ -214,7 +213,7 @@ export default {
if
(
this
.
id
){
parm
.
id
=
Number
(
this
.
id
)
this
.
PUT
(
'/discuss/'
,
parm
).
then
((
res
)
=>
{
this
.
PUT
(
'/
interaction/
discuss/'
,
parm
).
then
((
res
)
=>
{
// closeLoading(vm)
if
(
res
.
code
==
'000000'
)
{
this
.
$message
({
...
...
@@ -227,7 +226,7 @@ export default {
}
})
}
else
{
this
.
POST
(
'/discuss/'
,
parm
).
then
((
res
)
=>
{
this
.
POST
(
'/
interaction/
discuss/'
,
parm
).
then
((
res
)
=>
{
// closeLoading(vm)
if
(
res
.
code
==
'000000'
)
{
this
.
$message
({
...
...
@@ -247,7 +246,7 @@ export default {
//获取讨论组件详细
getDissById
(
id
){
this
.
GET
(
'/discuss/'
+
id
).
then
((
res
)
=>
{
this
.
GET
(
'/
interaction/
discuss/'
+
id
).
then
((
res
)
=>
{
// closeLoading(vm)
if
(
res
.
code
==
'000000'
)
{
...
...
src/views/discuss/index.vue
浏览文件 @
31f2a170
...
...
@@ -54,11 +54,11 @@
<el-table
:data=
"tableData"
style=
"width: 100%"
v-loading=
"loading"
>
<el-table-column
prop=
"id"
label=
"ID编号"
min-width=
"
10
0"
align=
"center"
></el-table-column>
<el-table-column
prop=
"id"
label=
"ID编号"
min-width=
"
5
0"
align=
"center"
></el-table-column>
<el-table-column
prop=
"subject"
label=
"讨论主题"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"category"
label=
"分类"
min-width=
"
20
0"
align=
"center"
></el-table-column>
<el-table-column
prop=
"category"
label=
"分类"
min-width=
"
5
0"
align=
"center"
></el-table-column>
<el-table-column
prop=
"remark"
label=
"备注"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdusername"
label=
"创建人"
min-width=
"
20
0"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdusername"
label=
"创建人"
min-width=
"
5
0"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdName"
label=
"最后修改人"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
min-width=
"80"
align=
"center"
>
<template
slot-scope=
"scope"
>
...
...
@@ -168,6 +168,7 @@ export default {
},
created
()
{
this
.
getData
()
this
.
sun
()
},
// 挂载到Dom完成时
mounted
:
function
()
{
...
...
@@ -193,7 +194,7 @@ export default {
}
this
.
loading
=
true
;
let
url
=
'/discuss/'
+
subject
+
'/'
+
name
+
'/'
+
status
+
'/'
+
this
.
searchParam
.
pageNo
+
'/'
+
this
.
searchParam
.
pageSize
let
url
=
'/
interaction/
discuss/'
+
subject
+
'/'
+
name
+
'/'
+
status
+
'/'
+
this
.
searchParam
.
pageNo
+
'/'
+
this
.
searchParam
.
pageSize
this
.
GET
(
url
).
then
((
res
)
=>
{
this
.
loading
=
false
if
(
res
.
code
==
'000000'
)
{
...
...
@@ -203,6 +204,8 @@ export default {
})
},
// 重置
reseat
()
{
this
.
searchParam
=
Object
.
assign
({},{
...
...
@@ -234,12 +237,12 @@ export default {
status
=
3
}
this
.
$confirm
(
'确定要'
+
str
+
'该
组件
吗?'
,
'提示'
,
{
this
.
$confirm
(
'确定要'
+
str
+
'该
讨论
吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
PUT
(
'/discuss/'
,{
id
:
row
.
id
,
status
:
status
}).
then
((
res
)
=>
{
this
.
PUT
(
'/
interaction/
discuss/'
,{
id
:
row
.
id
,
status
:
status
}).
then
((
res
)
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
$message
({
type
:
'success'
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录