更新
This commit is contained in:
parent
4f8e8a58c7
commit
3ec8507146
@ -7,6 +7,8 @@
|
|||||||
width="800px"
|
width="800px"
|
||||||
@confirm="handleSubmit"
|
@confirm="handleSubmit"
|
||||||
@close="handleClose"
|
@close="handleClose"
|
||||||
|
:button="mode == 'edit'"
|
||||||
|
:clickModalClose="mode == 'details'"
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
ref="formRef"
|
ref="formRef"
|
||||||
@ -14,7 +16,6 @@
|
|||||||
:rules="formRules"
|
:rules="formRules"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
>
|
>
|
||||||
<el-col>
|
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="ID" prop="id">
|
<el-form-item label="ID" prop="id">
|
||||||
@ -36,9 +37,7 @@
|
|||||||
<el-input readonly v-model="formData.name" />
|
<el-input readonly v-model="formData.name" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
<el-col :span="24">
|
||||||
<el-row>
|
|
||||||
<el-col>
|
|
||||||
<el-form-item label="任务描述" prop="remark">
|
<el-form-item label="任务描述" prop="remark">
|
||||||
<el-input
|
<el-input
|
||||||
readonly
|
readonly
|
||||||
@ -48,8 +47,6 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="任务完成时间" prop="id">
|
<el-form-item label="任务完成时间" prop="id">
|
||||||
<el-input readonly v-model="formData.id" />
|
<el-input readonly v-model="formData.id" />
|
||||||
@ -61,7 +58,33 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-divider />
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="详情描述" prop="remark">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="formData.remark"
|
||||||
|
clearable
|
||||||
|
type="textarea"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="附件" prop="flow_cate">
|
||||||
|
<el-image
|
||||||
|
class="attachment"
|
||||||
|
v-for="(item, index) in 5"
|
||||||
|
:key="index"
|
||||||
|
src=""
|
||||||
|
:preview-src-list="[]"
|
||||||
|
:initial-index="index"
|
||||||
|
fit="cover"
|
||||||
|
></el-image>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-divider />
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="">
|
<el-form-item label="">
|
||||||
<el-timeline>
|
<el-timeline>
|
||||||
@ -84,7 +107,10 @@
|
|||||||
clearable
|
clearable
|
||||||
:style="{ width: '100%' }"
|
:style="{ width: '100%' }"
|
||||||
>
|
>
|
||||||
<el-radio-group v-model="formData.flow_detail.type">
|
<el-radio-group
|
||||||
|
:disabled="mode == 'details'"
|
||||||
|
v-model="formData.flow_detail.type"
|
||||||
|
>
|
||||||
<el-radio :label="1">通过</el-radio>
|
<el-radio :label="1">通过</el-radio>
|
||||||
<el-radio :label="2">驳回</el-radio>
|
<el-radio :label="2">驳回</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -93,7 +119,12 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col>
|
<el-col>
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
<el-input v-model="formData.remark" clearable type="textarea" />
|
<el-input
|
||||||
|
:readonly="mode == 'details'"
|
||||||
|
v-model="formData.remark"
|
||||||
|
clearable
|
||||||
|
type="textarea"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -122,7 +153,7 @@ const mode = ref("add");
|
|||||||
|
|
||||||
// 弹窗标题
|
// 弹窗标题
|
||||||
const popupTitle = computed(() => {
|
const popupTitle = computed(() => {
|
||||||
return mode.value == "edit" ? "审核" : "新增";
|
return mode.value == "edit" ? "审核" : "详情";
|
||||||
});
|
});
|
||||||
|
|
||||||
const activities = ref([
|
const activities = ref([
|
||||||
@ -211,4 +242,11 @@ defineExpose({
|
|||||||
:deep(.el-timeline-item__wrapper) {
|
:deep(.el-timeline-item__wrapper) {
|
||||||
top: -8px !important;
|
top: -8px !important;
|
||||||
}
|
}
|
||||||
|
.attachment {
|
||||||
|
width: 150px;
|
||||||
|
height: 150px;
|
||||||
|
/* background-color: red; */
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -72,10 +72,19 @@
|
|||||||
v-perms="['flow/edit']"
|
v-perms="['flow/edit']"
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
|
v-if="row.status == 0"
|
||||||
@click="handleEdit(row)"
|
@click="handleEdit(row)"
|
||||||
>
|
>
|
||||||
审核
|
审核
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
link
|
||||||
|
v-else
|
||||||
|
@click="handleEdit(row, 'details')"
|
||||||
|
>
|
||||||
|
详情
|
||||||
|
</el-button>
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
v-perms="['flow/delete']"
|
v-perms="['flow/delete']"
|
||||||
type="danger"
|
type="danger"
|
||||||
@ -154,10 +163,10 @@ const handleAdd = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 编辑
|
// 编辑
|
||||||
const handleEdit = async (data: any) => {
|
const handleEdit = async (data: any, type = "edit") => {
|
||||||
showEdit.value = true;
|
showEdit.value = true;
|
||||||
await nextTick();
|
await nextTick();
|
||||||
editRef.value?.open("edit");
|
editRef.value?.open(type);
|
||||||
editRef.value?.setFormData(data);
|
editRef.value?.setFormData(data);
|
||||||
};
|
};
|
||||||
// 状态
|
// 状态
|
||||||
|
Loading…
x
Reference in New Issue
Block a user