no message

This commit is contained in:
kuaifan 2025-02-28 21:20:36 +08:00
parent 2c3e80bd8f
commit f1a9077b7e
5 changed files with 6 additions and 18 deletions

View File

@ -1025,7 +1025,6 @@ Pro版
隐藏共享文件 隐藏共享文件
单聊 单聊
显示文件 显示文件
ID、任务名...
仅显示我的 仅显示我的
语音 语音
群头像 群头像

View File

@ -12251,18 +12251,6 @@
"id": "Tampilkan File", "id": "Tampilkan File",
"ru": "Показать файлы" "ru": "Показать файлы"
}, },
{
"key": "ID、任务名...",
"zh": "",
"zh-CHT": "ID、任務名...",
"en": "ID, Task Name...",
"ko": "ID, 작업 이름...",
"ja": "ID、タスク名...",
"de": "ID, Aufgabenname...",
"fr": "ID, Nom de la tâche...",
"id": "ID, Nama Tugas...",
"ru": "ID, Название задачи..."
},
{ {
"key": "仅显示我的", "key": "仅显示我的",
"zh": "", "zh": "",

View File

@ -60,7 +60,6 @@ export default {
components: {Tags}, components: {Tags},
props: { props: {
projectId: { projectId: {
type: [Number, String],
required: true required: true
} }
}, },
@ -107,7 +106,7 @@ export default {
getEmptyTag() { getEmptyTag() {
return { return {
id: null, id: null,
project_id: this.projectId, project_id: $A.runNum(this.projectId),
name: '', name: '',
desc: '', desc: '',
color: '' color: ''
@ -140,6 +139,7 @@ export default {
this.showEditModal = false this.showEditModal = false
this.$emit('on-save', results) this.$emit('on-save', results)
} catch (error) { } catch (error) {
this.$emit('on-save-error', error)
$A.messageError(error.msg || '保存失败') $A.messageError(error.msg || '保存失败')
} }
}, },

View File

@ -5,6 +5,7 @@
<div class="title"> <div class="title">
{{$L('任务标签')}} {{$L('任务标签')}}
<Loading v-if="loadIng > 0"/> <Loading v-if="loadIng > 0"/>
<template v-else-if="tags.length > 0">({{tags.length}})</template>
</div> </div>
<div class="actions"> <div class="actions">
<Button type="primary" icon="md-add" @click="handleAdd(null)"> <Button type="primary" icon="md-add" @click="handleAdd(null)">
@ -39,7 +40,7 @@
</div> </div>
<!-- 标签添加/编辑 --> <!-- 标签添加/编辑 -->
<TaskTagAdd ref="addTag" :project-id="projectId" @on-save="loadTags"/> <TaskTagAdd ref="addTag" :project-id="projectId" @on-save="loadTags" @on-save-error="loadTags"/>
</div> </div>
</template> </template>

View File

@ -97,7 +97,7 @@
</div> </div>
</div> </div>
<Scrollbar ref="scroller" class="scroller"> <Scrollbar ref="scroller" class="scroller">
<Alert v-if="getOwner.length === 0" class="receive-box" type="warning"> <Alert v-if="taskDetail.task_user !== undefined && getOwner.length === 0" class="receive-box" type="warning">
<span class="receive-text">{{$L('该任务尚未被领取,点击这里')}}</span> <span class="receive-text">{{$L('该任务尚未被领取,点击这里')}}</span>
<EPopover <EPopover
v-model="receiveShow" v-model="receiveShow"