no message

This commit is contained in:
kuaifan 2024-11-05 15:13:40 +08:00
parent 2ecd0584aa
commit ef2230a331
6 changed files with 10 additions and 11 deletions

View File

@ -66,7 +66,6 @@
"vite-plugin-vue2": "^2.0.3", "vite-plugin-vue2": "^2.0.3",
"vue": "~2.6.14", "vue": "~2.6.14",
"vue-clipboard2": "^0.3.3", "vue-clipboard2": "^0.3.3",
"vue-jsonp": "^2.0.0",
"vue-kityminder-ggg": "^1.3.10", "vue-kityminder-ggg": "^1.3.10",
"vue-loader": "^15.10.1", "vue-loader": "^15.10.1",
"vue-resize-observer": "^2.0.16", "vue-resize-observer": "^2.0.16",

View File

@ -40,8 +40,6 @@
</template> </template>
<script> <script>
import { jsonp } from 'vue-jsonp'
export default { export default {
name: 'ChatEmoji', name: 'ChatEmoji',
props: { props: {

View File

@ -815,11 +815,13 @@ export default {
// Update model if text changes // Update model if text changes
this.quill.on('text-change', _ => { this.quill.on('text-change', _ => {
const {index} = this.quill.getSelection(true); if (this.isFocus) {
if (this.quill.getText(index - 1, 1) === "\r") { const {index} = this.quill.getSelection();
this.quill.insertText(index, "\n"); if (this.quill.getText(index - 1, 1) === "\r") {
this.quill.deleteText(index - 1, 1); this.quill.insertText(index, "\n");
return; this.quill.deleteText(index - 1, 1);
return;
}
} }
if (this.textTimer) { if (this.textTimer) {
clearTimeout(this.textTimer) clearTimeout(this.textTimer)

View File

@ -4,7 +4,7 @@
<div class="cause"> <div class="cause">
<p>{{$L("申请人")}}<span class="mark-color">@{{ msg.data.nickname }}</span> {{ msg.data.department }}</p> <p>{{$L("申请人")}}<span class="mark-color">@{{ msg.data.nickname }}</span> {{ msg.data.department }}</p>
<b>{{$L("详情")}}</b> <b>{{$L("详情")}}</b>
<p v-if="msg.data.type">{{$L("假期类型")}}{{ msg.data.type }}</p> <p v-if="msg.data.type">{{$L("假期类型")}}{{ $L(msg.data.type) }}</p>
<p>{{$L("开始时间")}}{{ msg.data.start_time }} ({{ msg.data.start_day_of_week }})</p> <p>{{$L("开始时间")}}{{ msg.data.start_time }} ({{ msg.data.start_day_of_week }})</p>
<p>{{$L("结束时间")}}{{ msg.data.end_time }} ({{ msg.data.end_day_of_week }})</p> <p>{{$L("结束时间")}}{{ msg.data.end_time }} ({{ msg.data.end_day_of_week }})</p>
<p>{{$L("事由")}}{{ msg.data.description }}</p> <p>{{$L("事由")}}{{ msg.data.description }}</p>

View File

@ -4,7 +4,7 @@
<div class="cause"> <div class="cause">
<p>{{$L("申请人")}}<span class="mark-color">@{{ msg.data.nickname }}</span> {{ msg.data.department }}</p> <p>{{$L("申请人")}}<span class="mark-color">@{{ msg.data.nickname }}</span> {{ msg.data.department }}</p>
<b>{{$L("详情")}}</b> <b>{{$L("详情")}}</b>
<p v-if="msg.data.type">{{$L("假期类型")}}{{ msg.data.type }}</p> <p v-if="msg.data.type">{{$L("假期类型")}}{{ $L(msg.data.type) }}</p>
<p>{{$L("开始时间")}}{{ msg.data.start_time }} ({{ msg.data.start_day_of_week }})</p> <p>{{$L("开始时间")}}{{ msg.data.start_time }} ({{ msg.data.start_day_of_week }})</p>
<p>{{$L("结束时间")}}{{ msg.data.end_time }} ({{ msg.data.end_day_of_week }})</p> <p>{{$L("结束时间")}}{{ msg.data.end_time }} ({{ msg.data.end_day_of_week }})</p>
<p>{{$L("事由")}}{{ msg.data.description }}</p> <p>{{$L("事由")}}{{ msg.data.description }}</p>

View File

@ -4,7 +4,7 @@
<div class="cause"> <div class="cause">
<p>{{$L("申请人")}}<span class="mark-color">@{{ msg.data.start_nickname }}</span> {{ msg.data.department }}</p> <p>{{$L("申请人")}}<span class="mark-color">@{{ msg.data.start_nickname }}</span> {{ msg.data.department }}</p>
<b>{{$L("详情")}}</b> <b>{{$L("详情")}}</b>
<p v-if="msg.data.type">{{$L("假期类型")}}{{ msg.data.type }}</p> <p v-if="msg.data.type">{{$L("假期类型")}}{{ $L(msg.data.type) }}</p>
<p>{{$L("开始时间")}}{{ msg.data.start_time }} ({{ msg.data.start_day_of_week }})</p> <p>{{$L("开始时间")}}{{ msg.data.start_time }} ({{ msg.data.start_day_of_week }})</p>
<p>{{$L("结束时间")}}{{ msg.data.end_time }} ({{ msg.data.end_day_of_week }})</p> <p>{{$L("结束时间")}}{{ msg.data.end_time }} ({{ msg.data.end_day_of_week }})</p>
<p>{{$L("事由")}}{{ msg.data.description }}</p> <p>{{$L("事由")}}{{ msg.data.description }}</p>