Commit 7f90e627 authored by 张牧越's avatar 张牧越

fix

parent 33f8370f
......@@ -171,11 +171,9 @@ export async function getZLJCList(id) {
// 获取区域详情接口
export async function getAreaDetail(projectId) {
return await request({
url: `/site/index/whole/${86}`,
url: `/site/index/whole/${projectId}`,
method: 'get',
})
}
......
......@@ -85,8 +85,12 @@
</div>
</div>
<div class="score-detail">
<!-- -->
<el-table border class="dialog-data-table" :data="question_info">
<el-table
border
class="dialog-data-table"
:data="question_info"
@row-click="showQuestion"
>
<el-table-column
label="问题总数"
align="center"
......@@ -308,12 +312,20 @@
</el-table>
</div>
</div>
<ZFJGDialog
:data="currentRowData"
:visible="ZFJGVisible"
@change-visible="(val) => (ZFJGVisible = val)"
></ZFJGDialog>
</Dialog>
</template>
<script>
import { getAreaDetail } from "@/api/dataStatis";
import ZFJGDialog from "./ZFJGDialog.vue";
export default {
name: "AreaProjectDetail",
components: { ZFJGDialog },
props: {
data: {
type: Object,
......@@ -345,6 +357,8 @@ export default {
columns: [],
allData: [],
check_info: [],
ZFJGVisible: false,
currentRowData: {},
};
},
computed: {
......@@ -493,9 +507,16 @@ export default {
key: `unqualified_percent${item.key}`,
});
});
console.log(this.columns);
this.columns = [...this.columns];
console.log(arr, "arr");
},
showQuestion() {
this.currentRowData = {
id: this.data.id,
regulation_score: this.project_info.regulation_score,
project_name: this.project_info.project_name,
};
this.ZFJGVisible = true;
},
},
mounted() {},
......
......@@ -244,7 +244,7 @@
@change-visible="(val) => (areaDialogVisible = val)"
></AreaProjectDetail>
<div class="bottom-area">
<Section2 title="严重问题预警" class="bottom-section">
<Section2 title="工程预警" class="bottom-section">
<STable2
:headers="header5"
:table-data="data5"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment