dom转word
This commit is contained in:
@ -22,19 +22,19 @@
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['cory:contactformtemplate:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['cory:contactformtemplate:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['cory:contactformtemplate:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['cory:contactformtemplate:export']">导出</el-button>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
@ -48,17 +48,20 @@
|
||||
<image-preview :src="scope.row.thumbnail" :width="50" :height="50" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="模板路径" align="center" prop="path">
|
||||
<!-- <el-table-column label="模板路径" align="center" prop="path">
|
||||
<template #default="scope">
|
||||
<span class="text-blue cursor-pointer" @click="openDoc(scope.row)">{{ scope.row.path }}</span></template
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
</el-table-column> -->
|
||||
<!-- <el-table-column label="备注" align="center" prop="remark" /> -->
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<!-- <el-tooltip content="修改" placement="top">
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['cory:contactformtemplate:edit']"></el-button>
|
||||
</el-tooltip> -->
|
||||
<el-tooltip content="查看" placement="top">
|
||||
<el-button link type="primary" icon="View" @click="openDoc(scope.row)" v-hasPermi="['cory:contactformtemplate:edit']"></el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="下载" placement="top">
|
||||
<el-button
|
||||
link
|
||||
@ -97,6 +100,7 @@
|
||||
ref="fileUploadRef"
|
||||
:data="{ name: form.name, projectId: currentProject.id }"
|
||||
uploadUrl="/cory/contactformtemplate"
|
||||
:onUploadSuccess="handleUploadSuccess"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="备注" prop="remark">
|
||||
@ -263,15 +267,17 @@ const submitForm = () => {
|
||||
// }
|
||||
|
||||
uploadData.bo.name = form.value.name;
|
||||
console.log('🚀 ~ contactformtemplateFormRef.value?.validate ~ uploadData:', uploadData);
|
||||
await fileUploadRef.value!.submitUpload();
|
||||
proxy?.$modal.msgSuccess('操作成功');
|
||||
dialog.visible = false;
|
||||
await getList();
|
||||
fileUploadRef.value!.submitUpload();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const handleUploadSuccess = () => {
|
||||
proxy?.$modal.msgSuccess('操作成功');
|
||||
dialog.visible = false;
|
||||
getList();
|
||||
};
|
||||
|
||||
/** 删除按钮操作 */
|
||||
const handleDelete = async (row?: ContactformtemplateVO) => {
|
||||
const _ids = row?.id || ids.value;
|
||||
|
||||
Reference in New Issue
Block a user