zpf 11 månader sedan
förälder
incheckning
f91a9b429c

+ 1 - 0
src/store/store.js

@@ -48,6 +48,7 @@ var store2 = {
         cockpit_vector:{
             title:"",
             tableData:"",
+            columns:[],
         },
         cockpit_wpjg: {
             title: {},

+ 6 - 9
src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

@@ -11,26 +11,23 @@
                 :fetch-suggestions="querySearchAsync" placeholder="请输入内容" @select="handleSelect"
                 :popper-append-to-body="false"></el-autocomplete>
 
-
             <el-table :data="store.state.cockpit_vector.tableData" style="width: 100%" height="440" :header-cell-style="{
                 background: 'rgba(10, 25, 38, 0.6)',
-                color: '#fff',
+                color: '#66b1ff',
                 fontSize: '14px',
                 fontFamily: 'Microsoft YaHei',
                 fontWeight: '400',
             }">
+                
+           
+                <el-table-column v-for="(index, item) in store.state.cockpit_vector.columns" :key="index"
+                    width="120" :prop="store.state.cockpit_vector.columns[item]" :label="store.state.cockpit_vector.columns[item]">
 
-                <el-table-column prop="项目名称" label="项目名称" width="150">
-                </el-table-column>
-                <el-table-column prop="土地用途" label="土地用途" width="120">
-                </el-table-column>
-                <el-table-column prop="出让面积(公顷)" label="出让面积(公顷)" width="120">
                 </el-table-column>
-               
 
                 <el-table-column fixed="right" label="操作" width="100">
                     <template slot-scope="scope">
-                        <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
+                        <el-button @click="handleClick(scope.row)" type="text" size="small">详情</el-button>
                         <el-button @click="handleClick(scope.row)" type="text" size="small">定位</el-button>
                     </template>
                 </el-table-column>

+ 1 - 0
src/views/cockpit/tdsy.vue

@@ -884,6 +884,7 @@ export default {
         store.setCockpit_vector({
           title: "土地供应完成项目",
           tableData: this.vector_data,
+          columns:["项目名称","土地用途","出让面积(公顷)"],
         })
         console.log(this.vector_data, "this.vector_data");