| | |
| | | //main-container全局样式 |
| | | .app-container { |
| | | padding: 20px; |
| | | height: calc(100vh - 96px); |
| | | display: flex; |
| | | flex-direction: column; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | // search面板样式 |
| | |
| | | <style lang="scss" scoped> |
| | | .app-main { |
| | | /* 50= navbar 50 */ |
| | | min-height: calc(100vh - 50px); |
| | | // min-height: calc(100vh - 50px); |
| | | width: 100%; |
| | | position: relative; |
| | | overflow: hidden; |
| | |
| | | .hasTagsView { |
| | | .app-main { |
| | | /* 84 = navbar + tags-view = 50 + 34 */ |
| | | min-height: calc(100vh - 84px); |
| | | min-height: calc(100vh - 96px); |
| | | } |
| | | |
| | | .fixed-header + .app-main { |
| | |
| | | v-loading="loading" |
| | | :data="projectInfoList" |
| | | @selection-change="handleSelectionChange" |
| | | height="60vh" |
| | | height="100%" |
| | | sortable="custom" |
| | | :show-overflow-tooltip="true"> |
| | | <el-table-column type="selection" width="55" align="center"/> |
| | |
| | | import {approvalList} from "@/api/system/dept"; |
| | | |
| | | export default { |
| | | name: 'BasicInfo', |
| | | dicts: ['sys_funding_type', 'sys_investment_type', 'sys_project_type', 'sys_project_status', 'sys_competent_department' |
| | | , 'sys_administrative_divisions', 'sys_centralized_management', 'sys_approval_type', 'sys_key_categories', 'sys_annual_plan'], |
| | | components: { |
| | |
| | | this.approvalList = res.data; |
| | | }); |
| | | }, |
| | | submit() { |
| | | submit(usedStatus) { |
| | | this.$refs["projectForm"].validate(valid => { |
| | | if (valid) { |
| | | this.projectForm.usedStatus = usedStatus; |
| | | if (this.projectForm.id) { |
| | | updateProject(this.projectForm).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | |
| | | v-loading="loading" |
| | | :data="projectInfoList" |
| | | @selection-change="handleSelectionChange" |
| | | height="60vh" |
| | | height="100%" |
| | | sortable="custom" |
| | | :show-overflow-tooltip="true"> |
| | | <el-table-column type="selection" width="55" align="center"/> |
| | | <!-- 动态列 --> |
| | | <el-table-column |
| | | v-for="item in columns" |
| | | :key="item.id" |
| | | v-if="item.visible" |
| | | :prop="item.id" |
| | | :label="item.label" |
| | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :page.sync="queryParams.currentPage" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | |
| | | timeRange: [], |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | | projectName: null, |
| | | projectCode: null, |
| | |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.queryParams.currentPage = 1; |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | |
| | | <template> |
| | | <el-card class="card-container" > |
| | | <el-card class="card-container"> |
| | | <div class="flex-container mb-4"> |
| | | <el-tabs v-model="currentTab" @tab-click="handleClick" v-show="isShow"> |
| | | <el-tab-pane |
| | |
| | | class="full-width custom-height" |
| | | /> |
| | | <div v-if="!disabled" class="button-container"> |
| | | <el-button class="save-button" type="primary" @click="submit">保存</el-button> |
| | | <el-button |
| | | v-if="componentName.name == 'BasicInfo'" |
| | | class="save-button" |
| | | type="primary" |
| | | @click="submit(0)" |
| | | >草稿</el-button |
| | | > |
| | | <el-button class="save-button" type="primary" @click="submit(1)" |
| | | >保存</el-button |
| | | > |
| | | <el-button class="reset-button" @click="reset">重置</el-button> |
| | | <!-- <el-button v-else class="cancel-button" @click="cancel">取消</el-button> --> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import BasicInfo from '@/views/projectEngineering/projectLibrary/component/BasicInfo'; |
| | | import InvestInfo from '@/views/projectEngineering/projectLibrary/component/InvestInfo'; |
| | | import InvestmentFunds from '@/views/projectEngineering/projectLibrary/component/investmentFunds'; |
| | | import LegalPerson from '@/views/projectEngineering/projectLibrary/component/legalPerson'; |
| | | import PolicyInfo from '@/views/projectEngineering/projectLibrary/component/PolicyInfo'; |
| | | import DocumentsInfo from '@/views/projectEngineering/projectLibrary/component/DocumentsInfo'; |
| | | import BasicInfo from "@/views/projectEngineering/projectLibrary/component/BasicInfo"; |
| | | import InvestInfo from "@/views/projectEngineering/projectLibrary/component/InvestInfo"; |
| | | import InvestmentFunds from "@/views/projectEngineering/projectLibrary/component/investmentFunds"; |
| | | import LegalPerson from "@/views/projectEngineering/projectLibrary/component/legalPerson"; |
| | | import PolicyInfo from "@/views/projectEngineering/projectLibrary/component/PolicyInfo"; |
| | | import DocumentsInfo from "@/views/projectEngineering/projectLibrary/component/DocumentsInfo"; |
| | | |
| | | export default { |
| | | name: 'ProjectDetails', |
| | | name: "ProjectDetails", |
| | | data() { |
| | | return { |
| | | isShow: false, |
| | | currentTab: '项目管理基础信息', |
| | | currentTab: "项目管理基础信息", |
| | | disabled: false, |
| | | projectForm:{}, |
| | | projectForm: {}, |
| | | componentName: BasicInfo, |
| | | TABS_DATA: [ |
| | | { |
| | | label: '项目管理基础信息', |
| | | value: '项目管理基础信息', |
| | | componentName: BasicInfo |
| | | label: "项目管理基础信息", |
| | | value: "项目管理基础信息", |
| | | componentName: BasicInfo, |
| | | }, |
| | | { |
| | | label: '投资管理基础信息', |
| | | value: '投资管理基础信息', |
| | | componentName: InvestInfo |
| | | label: "投资管理基础信息", |
| | | value: "投资管理基础信息", |
| | | componentName: InvestInfo, |
| | | }, |
| | | { |
| | | label: '项目投资及资金来源', |
| | | value: '项目投资及资金来源', |
| | | componentName: InvestmentFunds |
| | | label: "项目投资及资金来源", |
| | | value: "项目投资及资金来源", |
| | | componentName: InvestmentFunds, |
| | | }, |
| | | { |
| | | label: '项目(法人)单位登记信息', |
| | | value: '项目(法人)单位登记信息', |
| | | componentName: LegalPerson |
| | | label: "项目(法人)单位登记信息", |
| | | value: "项目(法人)单位登记信息", |
| | | componentName: LegalPerson, |
| | | }, |
| | | { |
| | | label: '投资项目产业政策符合情况', |
| | | value: '投资项目产业政策符合情况', |
| | | componentName: PolicyInfo |
| | | label: "投资项目产业政策符合情况", |
| | | value: "投资项目产业政策符合情况", |
| | | componentName: PolicyInfo, |
| | | }, |
| | | { |
| | | label: '相关文书', |
| | | value: '相关文书', |
| | | componentName: DocumentsInfo |
| | | } |
| | | label: "相关文书", |
| | | value: "相关文书", |
| | | componentName: DocumentsInfo, |
| | | }, |
| | | ], |
| | | childRef: null, |
| | | }; |
| | |
| | | this.isShow = newValue; |
| | | }, |
| | | handleClick(tabTarget) { |
| | | this.componentName = this.TABS_DATA[tabTarget.index].componentName; |
| | | this.componentName = this.TABS_DATA[tabTarget.index].componentName; |
| | | |
| | | }, |
| | | changeTable(index) { |
| | | this.componentName = this.TABS_DATA[index].componentName; |
| | | this.currentTab = this.TABS_DATA[index].value; |
| | | }, |
| | | submit() { |
| | | this.$refs.childRef.submit(); |
| | | submit(usedStatus) { |
| | | this.$refs.childRef.submit(usedStatus); |
| | | }, |
| | | reset() { |
| | | this.$refs.childRef.reset(); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | if(this.$route.query.disabled){ |
| | | this.disabled = true |
| | | if (this.$route.query.disabled) { |
| | | this.disabled = true; |
| | | } |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | ::v-deep .el-tabs__nav-wrap::after { |
| | | background-color: rgba(0, 0, 0, 0) !important; |
| | | } |
| | |
| | | v-loading="loading" |
| | | :data="projectInfoList" |
| | | @selection-change="handleSelectionChange" |
| | | height="60vh" |
| | | height="100%" |
| | | sortable="custom" |
| | | :show-overflow-tooltip="true"> |
| | | <el-table-column type="selection" width="55" align="center"/> |