pull/1/head
zhangyanli 2024-02-04 17:39:17 +08:00
parent 375b8ed5cb
commit 4e3d69b9e4
2 changed files with 9 additions and 7 deletions

View File

@ -244,7 +244,7 @@ const fnGetUser = async (POST_ID) => {
data.userList = resData.userList; data.userList = resData.userList;
}; };
const fnClose = () => { const fnClose = () => {
form.value.resetFields(); // form.value.resetFields();
visible.value = false; visible.value = false;
}; };
const fnSubmit = debounce( const fnSubmit = debounce(
@ -263,7 +263,9 @@ const fnSubmit = debounce(
); );
const fnExportTemplates = async () => { const fnExportTemplates = async () => {
await ElMessageBox.confirm("确定要下载excel模板吗", { type: "warning" }); await ElMessageBox.confirm("确定要下载excel模板吗", { type: "warning" });
window.open(VITE_TEMPLATE_URL + props.templateUrl); window.open(
VITE_TEMPLATE_URL + "/template/hiddenDangerCheckStandardTemplate.xls"
);
}; };
watchEffect(() => { watchEffect(() => {
if (form.value.DEPARTMENT_ID) fnGetPost(form.value.DEPARTMENT_ID); if (form.value.DEPARTMENT_ID) fnGetPost(form.value.DEPARTMENT_ID);

View File

@ -313,12 +313,12 @@
v-model:list="data.inspectionRouteDialog.list" v-model:list="data.inspectionRouteDialog.list"
:info="data.inspectionRouteDialog.info" :info="data.inspectionRouteDialog.info"
/> />
</div>
<import-custom <import-custom
v-model:visible="data.importCustomDialogVisible.visible" v-model:visible="data.importCustomDialogVisible.visible"
v-model:form="data.importCustomDialogVisible.form" v-model:form="data.importCustomDialogVisible.form"
@submit="fnSubmitImport" @submit="fnSubmitImport"
></import-custom> />
</div>
</template> </template>
<script setup> <script setup>