9 changed files with 4332 additions and 144 deletions
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询标段基本信息管理列表
|
||||
|
export function listSectionInfo(query) { |
||||
|
return request({ |
||||
|
url: '/build/sectionInfo/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询标段基本信息管理详细
|
||||
|
export function getSectionInfo(id) { |
||||
|
return request({ |
||||
|
url: '/build/sectionInfo/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增标段基本信息管理
|
||||
|
export function addSectionInfo(data) { |
||||
|
return request({ |
||||
|
url: '/build/sectionInfo', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改标段基本信息管理
|
||||
|
export function updateSectionInfo(data) { |
||||
|
return request({ |
||||
|
url: '/build/sectionInfo', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除标段基本信息管理
|
||||
|
export function delSectionInfo(id) { |
||||
|
return request({ |
||||
|
url: '/build/sectionInfo/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出标段基本信息管理
|
||||
|
export function exportSectionInfo(query) { |
||||
|
return request({ |
||||
|
url: '/build/sectionInfo/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<el-tabs |
||||
|
v-model="activeName" |
||||
|
@tab-click="handleClick" |
||||
|
style="margin-bottom: 20px" |
||||
|
> |
||||
|
<!-- v-if="checkPermi(['building:base:mainProject'])" --> |
||||
|
<el-tab-pane label="项目基本信息" name="mainProject" :lazy="true"> |
||||
|
<mainProject /> |
||||
|
</el-tab-pane> |
||||
|
<!-- v-if="checkPermi(['building:base:sectionProject'])" --> |
||||
|
<el-tab-pane label="项目标段信息" name="sectionProject" :lazy="true"> |
||||
|
<sectionProject |
||||
|
v-if="activeName == 'sectionProject'" |
||||
|
:proNo="formData.proNo" |
||||
|
:proCode="formData.proCode" |
||||
|
:projectName="formData.projectName" |
||||
|
/> |
||||
|
</el-tab-pane> |
||||
|
</el-tabs> |
||||
|
</div> |
||||
|
</template> |
||||
|
<script> |
||||
|
import { checkPermi, checkRole } from "@/utils/permission"; |
||||
|
import { getInfo } from "@/api/build/projectInfo"; |
||||
|
import mainProject from "./options/mainProject.vue"; |
||||
|
import sectionProject from "./options/sectionProject.vue"; |
||||
|
|
||||
|
export default { |
||||
|
components: { |
||||
|
mainProject, |
||||
|
sectionProject, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
activeName: "mainProject", |
||||
|
routeList: [], |
||||
|
formData: [], |
||||
|
form: {}, |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: { |
||||
|
proCode: null, |
||||
|
proNo: null, |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.routeList = JSON.parse(this.$store.state.basePageData.routeList); |
||||
|
this.getList(); |
||||
|
}, |
||||
|
methods: { |
||||
|
checkPermi, |
||||
|
checkRole, |
||||
|
goBack() { |
||||
|
this.$router.back(); |
||||
|
}, |
||||
|
getList() { |
||||
|
getInfo(this.$route.query.baseDataId).then((response) => { |
||||
|
this.formData = response.data; |
||||
|
}); |
||||
|
}, |
||||
|
// 切换标签页 |
||||
|
handleClick(tab, event) { |
||||
|
// console.log("切换标签页", tab, event); |
||||
|
// console.log("切换标签页", this.routeList[1].routeName); |
||||
|
this.routeList[1].routeName = tab.label; |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
File diff suppressed because it is too large
File diff suppressed because it is too large
Loading…
Reference in new issue