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

fix

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