mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 04:40:37 +00:00
no message
This commit is contained in:
parent
4c6b58cbd5
commit
3fa2814531
@ -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) . '】取消');
|
||||
|
||||
@ -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(_ => {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user