fix:暂存
This commit is contained in:
parent
e484fa3965
commit
b11cb4b9d7
@ -223,8 +223,8 @@
|
||||
<a-form-item label="联系方式" name="phone">
|
||||
<a-input
|
||||
v-model:value="form.phone"
|
||||
placeholder="请输入联系方式"
|
||||
:maxlength="20"
|
||||
placeholder="请输入手机号"
|
||||
:maxlength="11"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="初始密码" name="password">
|
||||
@ -350,7 +350,14 @@ const rules = computed(() => ({
|
||||
nickname: [{ required: true, message: "请输入姓名", trigger: "blur" }],
|
||||
gender: [{ required: true, message: "请选择性别", trigger: "change" }],
|
||||
organization: [{ required: true, message: "请输入所属单位", trigger: "blur" }],
|
||||
phone: [{ required: true, message: "请输入联系方式", trigger: "blur" }],
|
||||
phone: [
|
||||
{ required: true, message: "请输入手机号", trigger: "blur" },
|
||||
{
|
||||
pattern: /^1[3-9]\d{9}$/,
|
||||
message: "手机号格式不正确",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
password: isEditing.value
|
||||
? []
|
||||
: [{ required: true, message: "请输入初始密码", trigger: "blur" }],
|
||||
|
||||
@ -122,37 +122,32 @@
|
||||
<span>提交审核</span>
|
||||
</button>
|
||||
|
||||
<button v-else-if="work.status === 'rejected'" class="op-btn primary" :disabled="actionLoading"
|
||||
<button v-if="work.status === 'rejected'" class="op-btn primary" :disabled="actionLoading"
|
||||
@click="handleResubmit">
|
||||
<send-outlined />
|
||||
<span>修改后重交</span>
|
||||
</button>
|
||||
|
||||
<button v-else-if="work.status === 'draft'" class="op-btn primary" :disabled="actionLoading"
|
||||
@click="handleContinue">
|
||||
<button v-else-if="work.status === 'draft' || work.status === 'unpublished'" class="op-btn primary"
|
||||
:disabled="actionLoading" @click="handleContinue">
|
||||
<edit-outlined />
|
||||
<span>编辑</span>
|
||||
</button>
|
||||
|
||||
<button v-else-if="work.status === 'pending_review'" class="op-btn outline" :disabled="actionLoading"
|
||||
<button v-if="work.status === 'pending_review'" class="op-btn outline" :disabled="actionLoading"
|
||||
@click="handleWithdraw">
|
||||
<undo-outlined />
|
||||
<span>撤回审核</span>
|
||||
</button>
|
||||
|
||||
<button v-else-if="work.status === 'published'" class="op-btn outline" :disabled="actionLoading"
|
||||
<button v-if="work.status === 'published'" class="op-btn outline" :disabled="actionLoading"
|
||||
@click="handleUnpublish">
|
||||
<inbox-outlined />
|
||||
<span>下架</span>
|
||||
</button>
|
||||
|
||||
<!-- 删除(审核中、已发布不可删)-->
|
||||
<button
|
||||
v-if="canDeleteWork"
|
||||
class="op-btn ghost-danger"
|
||||
:disabled="actionLoading"
|
||||
@click="handleDelete"
|
||||
>
|
||||
<button v-if="canDeleteWork" class="op-btn ghost-danger" :disabled="actionLoading" @click="handleDelete">
|
||||
<delete-outlined />
|
||||
<span>删除</span>
|
||||
</button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user