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
提交
fef87321
提交
fef87321
编写于
1月 25, 2021
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
去掉之前缓存的数据
上级
a301584f
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
1 行增加
和
20 行删除
+1
-20
user-info.vue
src/components/IM/user-info.vue
+1
-12
common.js
src/store/im/common.js
+0
-7
getters.js
src/store/im/getters.js
+0
-1
未找到文件。
src/components/IM/user-info.vue
浏览文件 @
fef87321
...
@@ -65,7 +65,6 @@
...
@@ -65,7 +65,6 @@
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
// import { mapGetters, mapMutations } from 'vuex';
let
clipboard
=
null
;
let
clipboard
=
null
;
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -91,24 +90,16 @@ export default {
...
@@ -91,24 +90,16 @@ export default {
};
};
},
},
computed
:
{
computed
:
{
// ...mapGetters(['stickerCacheMap']),
},
},
watch
:
{
watch
:
{
taskLogId
(
newVal
)
{
taskLogId
(
newVal
)
{
this
.
getStikerInfo
(
newVal
);
this
.
getStikerInfo
(
newVal
);
// if(this.stickerCacheMap[newVal]) {
// this.stickerIdList = this.stickerCacheMap[newVal];
// } else {
// this.stickerIdList = [];
// }
}
}
},
},
created
()
{
created
()
{
this
.
getStickerList
();
this
.
getStickerList
();
},
},
methods
:
{
methods
:
{
// ...mapMutations(['SET_STICKER_CACHE_MAP']),
// 查询所有的问题分类
// 查询所有的问题分类
getStickerList
()
{
getStickerList
()
{
this
.
GET
(
`/im/sticker/list`
).
then
(
res
=>
{
this
.
GET
(
`/im/sticker/list`
).
then
(
res
=>
{
...
@@ -146,10 +137,8 @@ export default {
...
@@ -146,10 +137,8 @@ export default {
// 保存用户问题分类
// 保存用户问题分类
stickerSave
(
status
)
{
stickerSave
(
status
)
{
// 下拉框出现(status==true)或者选项为空时,直接退出
// 下拉框出现(status==true),直接退出
// if(status || !this.stickerIdList.length) return;
if
(
status
)
return
;
if
(
status
)
return
;
// this.SET_STICKER_CACHE_MAP({key: this.taskLogId, idList: this.stickerIdList});
let
params
=
{
let
params
=
{
stickerIdList
:
this
.
stickerIdList
,
stickerIdList
:
this
.
stickerIdList
,
taskLogId
:
this
.
taskLogId
,
taskLogId
:
this
.
taskLogId
,
...
...
src/store/im/common.js
浏览文件 @
fef87321
const
common
=
{
const
common
=
{
state
:
{
state
:
{
_token
:
''
,
_token
:
''
,
// 问题归类
stickerCacheMap
:
{
},
isFromAssignTask
:
false
,
isFromAssignTask
:
false
,
},
},
mutations
:
{
mutations
:
{
CHANGE_TOKEN
:
(
state
,
data
)
=>
{
CHANGE_TOKEN
:
(
state
,
data
)
=>
{
state
.
_token
=
data
state
.
_token
=
data
},
},
SET_STICKER_CACHE_MAP
:
(
state
,
chcheMap
)
=>
{
state
.
stickerCacheMap
[
chcheMap
.
key
]
=
chcheMap
.
idList
;
},
SET_IS_FROM_ASSIGN_TASK
:
(
state
,
status
)
=>
{
SET_IS_FROM_ASSIGN_TASK
:
(
state
,
status
)
=>
{
state
.
isFromAssignTask
=
status
;
state
.
isFromAssignTask
=
status
;
}
}
...
...
src/store/im/getters.js
浏览文件 @
fef87321
const
getters
=
{
const
getters
=
{
_token
:
state
=>
state
.
common
.
_token
,
_token
:
state
=>
state
.
common
.
_token
,
stickerCacheMap
:
state
=>
state
.
common
.
stickerCacheMap
,
isFromAssignTask
:
state
=>
state
.
common
.
isFromAssignTask
,
isFromAssignTask
:
state
=>
state
.
common
.
isFromAssignTask
,
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录