no message

This commit is contained in:
kuaifan 2022-07-19 15:50:25 +08:00
parent 4c6b58cbd5
commit 3fa2814531
3 changed files with 19 additions and 20 deletions

View File

@ -307,7 +307,7 @@ class WebSocketDialogMsg extends AbstractModel
public function toggleTodoMsg($sender, $userids = [])
{
if (in_array($this->type, ['tag', 'todo', 'notice'])) {
return Base::retError('此消息不支持待办');
return Base::retError('此消息不支持待办');
}
if ($this->todo && $this->todo != $sender) {
return Base::retError('仅支持设此待办人员【' . User::userid2nickname($this->todo) . '】取消');

View File

@ -4,13 +4,11 @@
:mask="false"
:mask-closable="false"
:footer-hide="true"
:transition-names="['', '']"
:transition-names="[transition, '']"
:beforeClose="onBeforeClose"
class-name="dialog-modal"
fullscreen>
<transition :name="transition">
<DialogWrapper v-if="windowSmall && dialogId > 0" :dialogId="dialogId" :beforeBack="onBeforeClose"/>
</transition>
<DialogWrapper v-if="windowSmall && dialogId > 0" :dialogId="dialogId" :beforeBack="onBeforeClose"/>
</Modal>
</template>
@ -56,7 +54,6 @@ export default {
data() {
return {
timer: null,
visible: false,
transition: $A.isIos() ? 'mobile-dialog' : ''
}
},
@ -64,24 +61,11 @@ export default {
computed: {
...mapState(['dialogId']),
show() {
visible() {
return this.dialogId > 0 && this.windowSmall
}
},
watch: {
show(v) {
this.timer && clearTimeout(this.timer);
if (v) {
this.visible = true;
} else {
this.timer = setTimeout(_ => {
this.visible = false;
}, 300);
}
}
},
methods: {
onBeforeClose() {
return new Promise(_ => {

View File

@ -1649,3 +1649,18 @@
}
}
}
@media (max-width: 768px) and (min-width: 390px){
.dialog-wrapper-operate {
.operate-action {
width: 376px;
}
.operate-emoji {
width: 376px;
> li {
width: 46px;
}
}
}
}