jihongshun
2 天以前 b1ec910ae7c0c19f6afabafd3cb75722a6b059dd
src/views/system/model/index.vue
@@ -4,10 +4,13 @@
     <el-row :gutter="20">
       <el-col :span="showMap ? 12 : 24" :xs="24">
        <AppTable ref="AppTable" selection :showDeptSearch="false" :url="'tower/model/list'" :tableColumns="tableColumns"
          :tableFilter="tableFilter"  @clickRow="clickRow">
          :tableFilter="tableFilter">
          <template #operatorBox="{ row }">
            <el-button type="primary" plain icon="el-icon-plus" size="mini"
              @click="handleAdd">新增模型</el-button>
          </template>
          <template #modelType="{ row }">
            <DictTag :options="dict.type.model_type" :value="row.modelType"></DictTag>
          </template>
          <template #operator="{ row }">
            <el-button size="mini" type="text" icon="el-icon-edit"
@@ -16,12 +19,12 @@
              @click.stop="handleDelete(row)">删除</el-button>
          </template>
        </AppTable>
      </el-col>
       <el-col :span="12" :xs="24" v-if="showMap">
      </el-col>
       <el-col :span="12" :xs="24" v-if="showMap">
          <CesiumMap ></CesiumMap>
       </el-col>
     </el-row>
    <modelDialog ref="modelDialog" @on-submit="$refs.AppTable.getData()" :model_type="dict.type.model_type"></modelDialog>
  </div>
</template>
@@ -51,7 +54,8 @@
        },
        {
          label: '模型类型',
          prop: 'modelType'
           type: 'slot',
          slotName: 'modelType'
        },
        {
          label: '模型路径',
@@ -107,7 +111,7 @@
    },
    clickRow(row){
      console.log(row)
      this.showMap =true
      // this.showMap =true
    },
  },
};