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
提交
03ffa8f3
提交
03ffa8f3
编写于
4月 22, 2019
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
00fdd61b
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
35 行增加
和
15 行删除
+35
-15
fetch.js
src/utils/fetch.js
+2
-1
reportSet.vue
src/views/report/reportSet.vue
+6
-1
add-edit.vue
src/views/topicManage/add-edit.vue
+16
-6
index.vue
src/views/topicManage/index.vue
+11
-7
未找到文件。
src/utils/fetch.js
浏览文件 @
03ffa8f3
...
...
@@ -37,12 +37,13 @@ service.interceptors.response.use(
apiUrl时,返回200为成功
*/
if
(
res
.
code
!==
'000000'
)
{
return
Promise
.
reject
(
'error'
)
return
Promise
.
reject
(
response
.
data
)
}
else
{
return
response
.
data
}
},
error
=>
{
// logger.error('err' + error)
return
Promise
.
reject
(
error
)
}
...
...
src/views/report/reportSet.vue
浏览文件 @
03ffa8f3
...
...
@@ -210,7 +210,12 @@ export default {
this
.
GET
(
'/interaction/informConfig/getInformList'
,
parm
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
data
.
length
==
0
){
this
.
reportData
=
[{}]
}
else
{
this
.
reportData
=
this
.
handelEmail
(
res
.
data
,
1
)
||
[]
}
}
else
{
this
.
$message
({
...
...
src/views/topicManage/add-edit.vue
浏览文件 @
03ffa8f3
...
...
@@ -218,9 +218,9 @@ export default {
//保存修改讨论组件详细
subFun
(){
///let A = ['PUT','POST']
let
A
=
this
.
isEdit
?
this
.
reType
[
0
]
:
this
.
reType
[
1
];
//console.log(this[A])
let
_this
=
this
;
if
(
this
.
objInfo
.
topic
.
content
.
length
==
0
){
this
.
showError
(
'内容不能为空!'
);
...
...
@@ -231,13 +231,14 @@ export default {
subject
:
this
.
objInfo
.
topic
.
subject
,
content
:
this
.
objInfo
.
topic
.
content
,
discussid
:
this
.
objInfo
.
topic
.
discussid
||
this
.
discussId
,
id
:
this
.
objInfo
.
topic
.
id
id
:
this
.
objInfo
.
topic
.
id
||
null
},
images
:
this
.
fileList
}
this
[
A
](
'/interaction/topic/'
,
parm
).
then
((
res
)
=>
{
// closeLoading(vm)
if
(
res
.
code
==
'000000'
)
{
this
.
$message
({
message
:
'操作成功!'
,
...
...
@@ -247,8 +248,17 @@ export default {
this
.
$emit
(
'setFun'
,
true
)
},
2000
)
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
'error'
});
}
})
}).
catch
(
function
(
error
)
{
///console.log()
//_this.$message.error('接口异常请联系管理员');
});
}
}
};
...
...
src/views/topicManage/index.vue
浏览文件 @
03ffa8f3
...
...
@@ -8,7 +8,7 @@
<div
class=
"search-title"
>
查询条件
</div>
<el-row
:gutter=
"30"
class=
"row"
type=
"flex"
style=
"margin-top: 10px;"
>
<el-form
ref=
"serchForm"
:model=
"searchParam"
label-width=
"75px"
style=
"width:100%;"
>
<el-col
:span=
"6"
>
<!--
<el-col
:span=
"6"
>
<el-form-item
label=
"话题名称:"
>
<el-input
clearable
v-model=
"searchParam.theme"
size=
"mini"
placeholder=
"请输入话题名称"
></el-input>
</el-form-item>
...
...
@@ -40,10 +40,10 @@
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-col>
-->
<el-col
style=
"text-align:right;padding:0 30px 15px 0;"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
>
查询
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"reseat"
>
重置
</el-button>
<
!--
<
el-button
type=
"primary"
size=
"small"
@
click=
"search"
>
查询
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"reseat"
>
重置
</el-button>
-->
<el-button
type=
"primary"
size=
"small"
@
click=
"createTopic"
>
新建话题
</el-button>
</el-col>
</el-form>
...
...
@@ -188,7 +188,7 @@ export default {
//获取数据
getData
(){
let
_this
=
this
;
this
.
loading
=
true
;
let
parm
=
{
discussId
:
this
.
discussId
,
...
...
@@ -206,7 +206,11 @@ export default {
type
:
'warning'
});
}
})
}).
catch
(
function
(
error
)
{
console
.
log
(
error
.
message
)
_this
.
$message
.
error
(
error
.
message
);
_this
.
loading
=
false
});
},
...
...
@@ -288,7 +292,7 @@ export default {
}
}
this
.
$confirm
(
'确定要'
+
str
+
'该
讨论
吗?'
,
'提示'
,
{
this
.
$confirm
(
'确定要'
+
str
+
'该
话题
吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录