清单修改

yfy
严飞永 1 week ago
parent db7c907b8e
commit db86a7fa73

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

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

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

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

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

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

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

@ -87,7 +87,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="项目法人单位" align="center" prop="xmfrdwxz" width="200" /> <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"> <el-table-column label="项目建设起止时间" align="center" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.begainTime }} {{ scope.row.endTime }} {{ scope.row.begainTime }} {{ scope.row.endTime }}

@ -25,7 +25,7 @@
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="现状分类"> <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" <el-option v-for="dict in dict.type.xzfl" :key="dict.value" :label="dict.label"
:value="dict.value" /> :value="dict.value" />
</el-select> </el-select>
@ -39,6 +39,14 @@
</el-col> </el-col>
</el-row> </el-row>
<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-col :span="8">
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
@ -106,7 +114,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="项目法人单位" align="center" prop="xmfrdwxz" width="200" /> <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"> <el-table-column label="项目建设起止时间" align="center" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
{{ formatMonth(scope.row.begainTime) }} {{ formatMonth(scope.row.endTime) }} {{ formatMonth(scope.row.begainTime) }} {{ formatMonth(scope.row.endTime) }}

@ -42,7 +42,7 @@
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<!-- <el-table-column type="selection" align="center" /> --> <!-- <el-table-column type="selection" align="center" /> -->
<el-table-column label="序号" width="80" align="center"> <el-table-column label="序号" width="80" align="center">
<template slot-scope="scope"> <template slot-scope="scope">

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

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

@ -39,6 +39,14 @@
</el-col> </el-col>
</el-row> </el-row>
<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-col :span="8">
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" <el-button type="primary" icon="el-icon-search"
@ -97,7 +105,7 @@
import { getBasicInformationPage, deleteBasicInformation } from "@/api/ManageApi/index"; import { getBasicInformationPage, deleteBasicInformation } from "@/api/ManageApi/index";
import { checkPermi, checkRole } from "@/utils/permission"; import { checkPermi, checkRole } from "@/utils/permission";
export default { export default {
dicts: ["xzfl"], dicts: ["xzfl","tbzt"],
data() { data() {
return { return {
// //

Loading…
Cancel
Save