|
@@ -10,7 +10,7 @@
|
|
|
<template #extra>
|
|
|
<el-button v-if="!isInfoView" hc-btn type="primary" @click="supplementsModalShow = true">增补清单</el-button>
|
|
|
<el-button hc-btn type="primary" @click="leadModalShow = true">导入</el-button>
|
|
|
- <el-button hc-btn type="primary">导出</el-button>
|
|
|
+ <el-button hc-btn type="primary" @click="exportExcel">导出</el-button>
|
|
|
</template>
|
|
|
<div class="relative">
|
|
|
<infoTable1 v-if="isInfoView" :info-data="infoData" />
|
|
@@ -282,7 +282,7 @@ import { getHeader } from 'hc-vue3-ui'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
import infoTable from './components/check-list/info-table.vue'
|
|
|
import infoTable1 from './components/check-list/info-table1.vue'
|
|
|
-import { addNode, deleteNode, getDetail, getFormTree, sortForm, updateForm } from '~api/project/debit/contract.js'
|
|
|
+import { addNode, deleteNode, getDetail, getFormTree, getImportTemplate, sortForm, updateForm } from '~api/project/debit/contract.js'
|
|
|
import { getDictionary } from '~api/other'
|
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
|
|
@@ -591,7 +591,16 @@ const sortModalSave = async () => {
|
|
|
|
|
|
}
|
|
|
//下载范例模板
|
|
|
-const downLoadExel = ()=>{
|
|
|
-
|
|
|
+const downLoadExel = async ()=>{
|
|
|
+ const { error, code, data, msg } = await getImportTemplate()
|
|
|
+ //判断状态
|
|
|
+ if (!error && code === 200) {
|
|
|
+ if (data) {
|
|
|
+ window.open(data, '_blank')
|
|
|
+ } else {
|
|
|
+ window.$message.warning(msg)
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|