update
This commit is contained in:
@@ -4,6 +4,7 @@ import {reactive, ref, watch} from 'vue';
|
||||
import Api from "../../api/index.ts";
|
||||
import {Message} from "@arco-design/web-vue";
|
||||
import Comment from "../Comment/index.vue";
|
||||
import Talk from "../Talk/index.vue";
|
||||
|
||||
const emits = defineEmits(['success']);
|
||||
const {id} = defineProps({
|
||||
@@ -57,31 +58,26 @@ const refuseTaskChildren = async () => {
|
||||
<a-form
|
||||
layout="vertical">
|
||||
<a-form-item label="标题">
|
||||
<a-input :model-value="item.title"></a-input>
|
||||
<a-input v-model:model-value="item.title" :disabled="detail.check_status !== 0"></a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="正文">
|
||||
<a-textarea
|
||||
auto-size
|
||||
:max-length="1000"
|
||||
show-word-limit
|
||||
:disabled="detail.check_status !== 0"
|
||||
:model-value="item.content">
|
||||
</a-textarea>
|
||||
</a-form-item>
|
||||
<a-form-item label="话题">
|
||||
<div v-if="item.tags_arr.length > 0" id="tag-list"
|
||||
class="w-full bg-[var(--color-neutral-2)] p-[4px]">
|
||||
<a-tag v-for="v in item.tags_arr">#{{ v }}</a-tag>
|
||||
</div>
|
||||
<div v-else>
|
||||
暂无话题
|
||||
</div>
|
||||
<Talk v-model:model-value="item.tags_arr" :disabled="detail.check_status !== 0"></Talk>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item label="素材">
|
||||
<div v-if="item.materia_arr.length > 0" class="flex flex-wrap gap-[16px]">
|
||||
<x-image
|
||||
v-for="(v, index) in item.materia_arr"
|
||||
:hide-delete="true"
|
||||
:hide-delete="detail.check_status !== 0"
|
||||
:key="index"
|
||||
width="60px"
|
||||
height="60px"
|
||||
@@ -89,17 +85,14 @@ const refuseTaskChildren = async () => {
|
||||
</x-image>
|
||||
</div>
|
||||
<div v-else>
|
||||
暂无话题
|
||||
暂无素材
|
||||
</div>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item label="评论区内容">
|
||||
<div v-if="item.comment.length > 0" class="flex flex-col gap-[8px] w-full">
|
||||
<div v-if="item?.comment?.length > 0" class="flex flex-col gap-[8px] w-full">
|
||||
<comment :data="item.comment" :hide-delete="true"></comment>
|
||||
</div>
|
||||
<div v-else>
|
||||
暂无评论区内容
|
||||
</div>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-tab-pane>
|
||||
|
||||
Reference in New Issue
Block a user