Commit db62d67a by xinla

issue相关问题修改

1 parent c58b4402
...@@ -85,7 +85,7 @@ export function getPushResult(params) { ...@@ -85,7 +85,7 @@ export function getPushResult(params) {
/** /**
* 同步消息发送结果 * 同步消息发送结果
* @param {*} data * @param {*} data
* msgid:列表msgid * msgids:列表msgid
messageId:消息id messageId:消息id
*/ */
export function syncMsg(data) { export function syncMsg(data) {
......
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
this.loading = false this.loading = false
}) })
}, },
getListTag() { getListTag(refresh) {
getListTag().then(({ rows }) => { getListTag().then(({ rows }) => {
this.listTagOneArray = [] this.listTagOneArray = []
rows.forEach((element) => { rows.forEach((element) => {
...@@ -122,6 +122,13 @@ export default { ...@@ -122,6 +122,13 @@ export default {
this.listTagOneArray.push(d) this.listTagOneArray.push(d)
}) })
}) })
if (refresh) {
this.$refs.selectTag.getList()
this.form = {
gourpName: '',
weTags: [],
}
}
}) })
}, },
getListOrganization() { getListOrganization() {
...@@ -497,64 +504,6 @@ export default { ...@@ -497,64 +504,6 @@ export default {
> >
</div> </div>
</SelectTag> </SelectTag>
<!-- <el-dialog
key="1"
:title="tagDialogType.title"
:visible.sync="dialogVisible"
>
<div>
<span class="mr20">选择分组</span>
<el-select v-model="selectedGroup" placeholder="请选择">
<el-option label="所有标签" value></el-option>
<el-option
v-for="(item, index) in listTag"
:key="index"
:label="item.gourpName"
:value="item.groupId"
></el-option>
</el-select>
<div class="mt20">
<el-checkbox-group
v-model="selectedTag"
v-if="tagDialogType.type !== 'remove'"
>
<template v-for="(item, index) in listTag">
<div
class="bfc-d"
v-show="item.groupId === selectedGroup || !selectedGroup"
:key="index"
>
<el-checkbox
:label="unit"
v-for="(unit, unique) in item.weTags"
:key="index + unique"
>{{ unit.name }}</el-checkbox
>
</div>
</template>
</el-checkbox-group>
<el-checkbox-group v-else v-model="selectedTag">
<template v-for="(item, index) in removeTag">
<el-checkbox
v-if="item.groupId === selectedGroup || !selectedGroup"
:label="item"
:key="index"
>{{ item.name }}</el-checkbox
>
</template>
</el-checkbox-group>
</div>
<div class="mt20" v-show="tagDialogType.type === 'add'">
<el-button type="primary" @click="dialogVisibleAddTag = true"
>添加标签</el-button
>
</div>
</div>
<div slot="footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="submitSelectTag">确 定</el-button>
</div>
</el-dialog> -->
<!-- 选择添加人弹窗 --> <!-- 选择添加人弹窗 -->
<SelectUser <SelectUser
...@@ -567,7 +516,7 @@ export default { ...@@ -567,7 +516,7 @@ export default {
<AddTag <AddTag
:visible.sync="dialogVisibleAddTag" :visible.sync="dialogVisibleAddTag"
:form="form" :form="form"
@success="getListTag()" @success="getListTag(true)"
/> />
</div> </div>
</template> </template>
......
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
}, },
syncMsg(data) { syncMsg(data) {
let { msgid, messageId } = data let { msgid, messageId } = data
syncMsg({ msgid, messageId }) syncMsg({ msgids: [msgid], messageId })
.then(({ data }) => { .then(({ data }) => {
this.msgSuccess('同步成功') this.msgSuccess('同步成功')
this.getList() this.getList()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!