jihongshun
2025-07-03 307db148645230afc780a3d5d16ffb97aa32c189
src/views/system/model/index.vue
@@ -9,6 +9,9 @@
            <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"
              @click.stop="handleUpdate(row)">修改</el-button>
@@ -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
    },
  },
};