|
@@ -8,7 +8,7 @@
|
|
<a-tab-pane key="2" tab="地质单元目录" forceRender="true">
|
|
<a-tab-pane key="2" tab="地质单元目录" forceRender="true">
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
</a-tabs>
|
|
</a-tabs>
|
|
- <DoubleLeftOutlined @click="showTree=false"/>
|
|
|
|
|
|
+ <DoubleLeftOutlined @click="showTree=false;colspan=6;"/>
|
|
</div>
|
|
</div>
|
|
<div style="margin-top: -15px">
|
|
<div style="margin-top: -15px">
|
|
<a-input-search
|
|
<a-input-search
|
|
@@ -42,7 +42,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="query-index-close" v-else>
|
|
<div class="query-index-close" v-else>
|
|
- <DoubleRightOutlined @click="showTree=true"/>
|
|
|
|
|
|
+ <DoubleRightOutlined @click="showTree=true;colspan=8;"/>
|
|
</div>
|
|
</div>
|
|
<div class="query-index-content">
|
|
<div class="query-index-content">
|
|
<div class="query-index-form">
|
|
<div class="query-index-form">
|
|
@@ -163,7 +163,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="query-index-table" v-else>
|
|
<div class="query-index-table" v-else>
|
|
<a-row :gutter="[24,8]">
|
|
<a-row :gutter="[24,8]">
|
|
- <a-col :span="8" v-for="item in data">
|
|
|
|
|
|
+ <a-col :span="colspan" v-for="item in data">
|
|
<a-card :title="'井名:'+item.well_common_name" class="ant-card-index" bodyStyle="padding: 10px;">
|
|
<a-card :title="'井名:'+item.well_common_name" class="ant-card-index" bodyStyle="padding: 10px;">
|
|
<template #extra>
|
|
<template #extra>
|
|
<a-button type="link" @click="detail(item.well_id)">查看详情</a-button>
|
|
<a-button type="link" @click="detail(item.well_id)">查看详情</a-button>
|
|
@@ -287,6 +287,7 @@ export default defineComponent({
|
|
const showQuery = ref(false);
|
|
const showQuery = ref(false);
|
|
const selectedRowKeys = ref([]);
|
|
const selectedRowKeys = ref([]);
|
|
const activeTab = ref("1");
|
|
const activeTab = ref("1");
|
|
|
|
+ const colspan =ref(8);
|
|
const showTree = ref(true);
|
|
const showTree = ref(true);
|
|
const isShowDoc = ref(false);
|
|
const isShowDoc = ref(false);
|
|
const showColumnType = ref(['oil', 'gas']);
|
|
const showColumnType = ref(['oil', 'gas']);
|
|
@@ -445,9 +446,9 @@ export default defineComponent({
|
|
|
|
|
|
const onCheckboxChange = () => {
|
|
const onCheckboxChange = () => {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- let v = document.getElementsByClassName("ant-table-body")[0];
|
|
|
|
- if (v) {
|
|
|
|
- v.scrollLeft = v.scrollWidth;
|
|
|
|
|
|
+ let tbody = document.getElementsByClassName("ant-table-body")[0];
|
|
|
|
+ if (tbody) {
|
|
|
|
+ tbody.scrollLeft = tbody.scrollWidth;
|
|
}
|
|
}
|
|
}, 300)
|
|
}, 300)
|
|
}
|
|
}
|
|
@@ -487,6 +488,7 @@ export default defineComponent({
|
|
}
|
|
}
|
|
loadData();
|
|
loadData();
|
|
});
|
|
});
|
|
|
|
+
|
|
const loadData = async function () {
|
|
const loadData = async function () {
|
|
loading.value = true;
|
|
loading.value = true;
|
|
const result: any = await get('wellInfo/getList', formState);
|
|
const result: any = await get('wellInfo/getList', formState);
|
|
@@ -625,7 +627,7 @@ export default defineComponent({
|
|
formRef, viewModel, handleTableChange, detail,
|
|
formRef, viewModel, handleTableChange, detail,
|
|
formState, isShowDoc, showDoc, docList, resetFields, showColumnType, filterColumns,
|
|
formState, isShowDoc, showDoc, docList, resetFields, showColumnType, filterColumns,
|
|
labelCol, getTdColor, downFile,
|
|
labelCol, getTdColor, downFile,
|
|
- tabChange, onCheckboxChange, treeRef,
|
|
|
|
|
|
+ tabChange, onCheckboxChange, treeRef,colspan,
|
|
treeOnExpand,
|
|
treeOnExpand,
|
|
subjectTrees,
|
|
subjectTrees,
|
|
getSubjectTree, searchTree,
|
|
getSubjectTree, searchTree,
|
|
@@ -730,6 +732,7 @@ export default defineComponent({
|
|
}
|
|
}
|
|
|
|
|
|
.well-card-table {
|
|
.well-card-table {
|
|
|
|
+ width:100%;
|
|
th {
|
|
th {
|
|
width: 25%;
|
|
width: 25%;
|
|
text-align: left;
|
|
text-align: left;
|