清单修改

yfy
严飞永 7 days ago
parent db7c907b8e
commit db86a7fa73

@ -7,7 +7,7 @@
</div>
</div>
<div class="right-menu">
<bearicon />
<!-- <bearicon /> -->
<div class="avatar-container right-menu-item hover-effect" >
<div class="avatar-wrapper">
<div v-if="checkRole(['common'])">

@ -52,7 +52,7 @@
>
</div>
<el-table v-loading="loading" :data="postList">
<el-table-column type="selection" width="55" align="center" /> -->
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" align="center">
<template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span>
@ -63,33 +63,29 @@
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button
type="text"
style="color: gray"
style="color: #409eff"
@click="handlePreview(scope.row)"
>预览</el-button
>
<el-button
type="text"
style="color: #67c23a"
@click="handleEdit(scope.row)"
>编辑</el-button
>
<el-button
type="text"
style="color: #f56c6c"
@click="handleDelete(scope.row)"
>删除</el-button
>
<el-button
size="mini"
type="text"
style="color: #409eff"
@click="handleExport(scope.row.id)"
>项目手册导出</el-button
>
<el-button
type="text"
style="color: #f56c6c"
@click="handleDelete(scope.row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>

@ -65,7 +65,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="medium" type="text" @click="getInfo(scope.row)"></el-button>
<el-button size="medium" type="text" @click="handleUpdate(scope.row)"></el-button>
<el-button size="medium" type="text" @click="handleUpdate(scope.row)" style="color: #67c23a">编辑</el-button>
<el-button size="medium" type="text" @click="handleDelete(scope.row)" style="color: red;">删除</el-button>
</template>
</el-table-column>

@ -30,7 +30,7 @@
<div class="descriptionsdiv">
<el-descriptions class="margin-top" :column="3" border>
<el-descriptions-item v-for="(item, index) in descriptions" :key="index"
:span="item.label === '项目法人单位简介' || item.label === '统一信用代码' ? 3 : 1">
:span="item.label === '项目法人单位简介' || item.label === '统一社会信用代码' ? 3 : 1">
<template slot="label">
{{ item.label }}
</template>
@ -411,7 +411,7 @@ export default {
{ label: '施工许可证发放时间', value: data.issuingTime },
{ label: '竣工验收时间', value: data.acceptanceTime },
{ label: '建设进度', value: data.jsjd },
{ label: '统一信用代码', value: data.tyshxydm },
{ label: '统一社会信用代码', value: data.tyshxydm },
{ label: '项目法人单位简介', value: data.unitIntroduction },
{ label: '项目简介', value: data.introduction }
];

@ -76,7 +76,7 @@
<script>
//
import { getMonthInformationPage } from "@/api/ManageApi/index";
// import { getMonthInformationPage } from "@/api/ManageApi/index";
//Apitwo
import { updateProjectProgress, deletemonth } from "@/api/manageApitwo/index";
import { checkPermi, checkRole } from "@/utils/permission";
@ -145,7 +145,7 @@ export default {
row.isEditing = false;
row.status = "已更新";
this.getMonthInformationPage();
// this.getMonthInformationPage();
} else {
this.$message.error(response.msg || "更新失败");
Object.assign(row, row.originalData);
@ -187,7 +187,7 @@ export default {
//
if (this.tableData.length === 0 && this.current > 1) {
this.current -= 1;
this.getMonthInformationPage();
// this.getMonthInformationPage();
}
} else {
this.$message.error(response.msg || "删除失败");
@ -204,26 +204,26 @@ export default {
});
});
},
async getMonthInformationPage() {
try {
const response = await getMonthInformationPage({ zwId: this.zwId });
// async getMonthInformationPage() {
// try {
// const response = await getMonthInformationPage({ zwId: this.zwId });
if (Array.isArray(response.data.records) && response.data.records.length > 0) {
this.tableData = response.data.records;
this.total = response.data.total || 0;
} else {
//
this.tableData = [];
this.total = 0;
}
} catch (error) {
console.error("获取月度进展信息失败:", error);
this.$message.error("获取月度进展信息失败");
}
},
// if (Array.isArray(response.data.records) && response.data.records.length > 0) {
// this.tableData = response.data.records;
// this.total = response.data.total || 0;
// } else {
// //
// this.tableData = [];
// this.total = 0;
// }
// } catch (error) {
// console.error(":", error);
// this.$message.error("");
// }
// },
},
created() {
this.getMonthInformationPage();
// this.getMonthInformationPage();
},
};
</script>

@ -15,7 +15,9 @@
</el-table-column>
<el-table-column prop="alertTime">
<template slot-scope="scope">
<span :style="{ color: scope.row.isRead === 2 ? '#ccc' : 'inherit' }">
{{ formatDate(scope.row.alertTime) }}
</span>
</template>
</el-table-column>
</el-table>

@ -15,7 +15,9 @@
</el-table-column>
<el-table-column prop="alertTime">
<template slot-scope="scope">
<span :style="{ color: scope.row.isRead === 2 ? '#ccc' : 'inherit' }">
{{ formatDate(scope.row.alertTime) }}
</span>
</template>
</el-table-column>
</el-table>

@ -87,7 +87,7 @@
</template>
</el-table-column>
<el-table-column label="项目法人单位" align="center" prop="xmfrdwxz" width="200" />
<el-table-column label="统一信用代码" align="center" prop="tyshxydm" width="200" />
<el-table-column label="统一社会信用代码" align="center" prop="tyshxydm" width="200" />
<el-table-column label="项目建设起止时间" align="center" width="200">
<template slot-scope="scope">
{{ scope.row.begainTime }} {{ scope.row.endTime }}

@ -25,7 +25,7 @@
</el-col>
<el-col :span="5">
<el-form-item label="现状分类">
<el-select v-model="queryParams.xzfl" placeholder="现状分类" clearable>
<el-select v-model="queryParams.xzfl" placeholder="请选择现状分类" clearable>
<el-option v-for="dict in dict.type.xzfl" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
@ -39,6 +39,14 @@
</el-col>
</el-row>
<el-row>
<el-col :span="5">
<el-form-item label="当前状态">
<el-select v-model="queryParams.status" placeholder="选择当前状态" clearable>
<el-option v-for="dict in dict.type.tbzt" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
@ -106,7 +114,7 @@
</template>
</el-table-column>
<el-table-column label="项目法人单位" align="center" prop="xmfrdwxz" width="200" />
<el-table-column label="统一信用代码" align="center" prop="tyshxydm" width="200" />
<el-table-column label="统一社会信用代码" align="center" prop="tyshxydm" width="200" />
<el-table-column label="项目建设起止时间" align="center" width="200">
<template slot-scope="scope">
{{ formatMonth(scope.row.begainTime) }} {{ formatMonth(scope.row.endTime) }}

@ -150,7 +150,7 @@ export default {
{ id: 'basic', label: '基本信息' },
{ id: 'programme', label: '规划信息' },
{ id: 'buildings', label: '建筑信息' },
{ id: 'models', label: '要素模型信息' },
{ id: 'models', label: '要素模型信息' },
{ id: 'months', label: '月度进展信息' },
{ id: 'companyenter', label: '企业入驻信息' },
{ id: 'projectpicture', label: '项目画像' },
@ -250,7 +250,7 @@ export default {
showCompanySection() {
const isCompany = this.checkRole(['company']);
const isCommon = this.checkRole(['common']);
//
//
return isCompany && !isCommon;
}
},
@ -344,7 +344,6 @@ export default {
})
.catch(error => {
this.$message.error('审核失败');
console.error('审核错误:', error);
})
.finally(() => {
loading.close();
@ -368,7 +367,6 @@ export default {
})
.catch(error => {
this.$message.error('修改失败');
console.error('修改错误:', error);
})
.finally(() => {
loading.close();

@ -232,8 +232,7 @@ export default {
checkPermi,
checkRole,
loadData() {
// console.log('Loading data for project ID:', this.projectId);
this.loading = true; //
this.loading = true;
getBasicInformationById(this.projectId).then(response => {
const data = response.data;
this.basicInformation = data.basicInformation;
@ -243,8 +242,6 @@ export default {
this.qyrzInformation = data.qyrzInformation;
this.projectRemarks = data.projectRemarks;
//
// console.log('Loaded qyrzInformation111111111111:', this.qyrzInformation);
}).finally(() => {
this.loading = false;
});
@ -263,9 +260,9 @@ export default {
}
},
goBack() {
this.$router.go(-1); //
this.$router.go(-1);
},
//
//
handleDataUpdate(dataKey, updatedData) {
if (dataKey === 'projectOtherInfos' || dataKey === 'wysmxInformations') {
if (Array.isArray(updatedData)) {
@ -289,7 +286,7 @@ export default {
},
//
saveAll() {
//
//
const loading = this.$loading({
lock: true,
text: '正在暂存中...',
@ -297,19 +294,17 @@ export default {
background: 'rgba(0, 0, 0, 0.7)'
});
const tempData = this.prepareSubmitData(); //
const tempData = this.prepareSubmitData(); //
tempBasicInformation(tempData)
.then(response => {
//
this.$message.success('暂存成功');
})
.catch(error => {
//
this.$message.error('暂存失败');
})
.finally(() => {
//
//
loading.close();
});
},
@ -370,7 +365,7 @@ export default {
//
const submitData = this.prepareSubmitData();
// console.log(':', JSON.stringify(submitData, null, 2)); //
// console.log(':', JSON.stringify(submitData, null, 2));
fillBasicInformation(submitData)
.then(response => {

@ -39,6 +39,14 @@
</el-col>
</el-row>
<el-row>
<el-col :span="5">
<el-form-item label="当前状态">
<el-select v-model="queryParams.status" placeholder="选择当前状态" clearable>
<el-option v-for="dict in dict.type.tbzt" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-button type="primary" icon="el-icon-search"
@ -97,7 +105,7 @@
import { getBasicInformationPage, deleteBasicInformation } from "@/api/ManageApi/index";
import { checkPermi, checkRole } from "@/utils/permission";
export default {
dicts: ["xzfl"],
dicts: ["xzfl","tbzt"],
data() {
return {
//

Loading…
Cancel
Save