fix: BUG修改
This commit is contained in:
parent
4bae879e46
commit
2c5d20972a
@ -440,3 +440,8 @@ export const engineerInfoPage = (params: any) => {
|
|||||||
export const getProjectInfo = (params: any) => {
|
export const getProjectInfo = (params: any) => {
|
||||||
return http.post(BASEURL + `/hzent/index/projectInfo`, params);
|
return http.post(BASEURL + `/hzent/index/projectInfo`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 模板下载
|
||||||
|
export const downModel = (params: any) => {
|
||||||
|
return http.post(BASEURL + `/xmgl/governmentConfig/queryById`, params);
|
||||||
|
};
|
||||||
|
|||||||
@ -51,6 +51,9 @@
|
|||||||
>
|
>
|
||||||
<el-button class="hzStyle" type="primary">导入</el-button>
|
<el-button class="hzStyle" type="primary">导入</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
|
<el-button class="hzStyle" type="primary" style="margin-left: 20px" @click="modelDocumentDownload"
|
||||||
|
>模板下载</el-button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
<!-- 表格操作 -->
|
<!-- 表格操作 -->
|
||||||
<!-- <template #operation="{ row }">
|
<!-- <template #operation="{ row }">
|
||||||
@ -67,12 +70,13 @@
|
|||||||
|
|
||||||
<script lang="tsx" setup name="engineerInventory">
|
<script lang="tsx" setup name="engineerInventory">
|
||||||
import { ref, onMounted, onBeforeMount, watch } from "vue";
|
import { ref, onMounted, onBeforeMount, watch } from "vue";
|
||||||
|
import { ElMessage } from "element-plus";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import { GlobalStore } from "@/stores";
|
import { GlobalStore } from "@/stores";
|
||||||
import LeftMenu from "@/components/LeftMenu/LeftMenu.vue";
|
import LeftMenu from "@/components/LeftMenu/LeftMenu.vue";
|
||||||
import ProTable from "@/components/ProTable/index.vue";
|
import ProTable from "@/components/ProTable/index.vue";
|
||||||
import { ColumnProps } from "@/components/ProTable/interface";
|
import { ColumnProps } from "@/components/ProTable/interface";
|
||||||
import { payGovermentEngList, payGovermentProList, engineerInfoPage } from "@/api/modules/huizhou";
|
import { payGovermentEngList, payGovermentProList, engineerInfoPage, downModel } from "@/api/modules/huizhou";
|
||||||
import { sendIframeMessage } from "@/utils/util";
|
import { sendIframeMessage } from "@/utils/util";
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const otherParams = ref({});
|
const otherParams = ref({});
|
||||||
@ -107,6 +111,15 @@ const columns: ColumnProps[] = [
|
|||||||
const proTable = ref();
|
const proTable = ref();
|
||||||
// 搜索用的项目sn或者工程sn
|
// 搜索用的项目sn或者工程sn
|
||||||
const searchSn = ref("");
|
const searchSn = ref("");
|
||||||
|
// 模板下载
|
||||||
|
const modelDocumentDownload = async () => {
|
||||||
|
const { result } = await downModel({ id: 1 });
|
||||||
|
if (result && result.value) {
|
||||||
|
window.open(result.value);
|
||||||
|
} else {
|
||||||
|
ElMessage.error("当前没有文件,请先上传文件");
|
||||||
|
}
|
||||||
|
};
|
||||||
// 导入文件
|
// 导入文件
|
||||||
const uploadFileSuccess = (response: any) => {
|
const uploadFileSuccess = (response: any) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
<el-button v-auth="'project_add'" class="btnStyle" @click="handleAddItem">新增</el-button>
|
<el-button v-auth="'project_add'" class="btnStyle" @click="handleAddItem">新增</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template #operation="{ row }">
|
<template #operation="{ row }">
|
||||||
<el-button type="primary" link @click="onFileList(row)"
|
<el-button type="primary" v-auth="'file_list'" link @click="onFileList(row)"
|
||||||
><img src="@/assets/images/tableIcon/look.png" alt="" class="configureIcon" /><span>文件列表</span></el-button
|
><img src="@/assets/images/tableIcon/look.png" alt="" class="configureIcon" /><span>文件列表</span></el-button
|
||||||
>
|
>
|
||||||
<el-button type="primary" link @click="onSee(row)"
|
<el-button type="primary" link @click="onSee(row)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user