| | |
| | | <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> |
| | |
| | | @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> |
| | |
| | | }, |
| | | { |
| | | label: '模型类型', |
| | | prop: 'modelType' |
| | | type: 'slot', |
| | | slotName: 'modelType' |
| | | }, |
| | | { |
| | | label: '模型路径', |
| | |
| | | }, |
| | | clickRow(row){ |
| | | console.log(row) |
| | | this.showMap =true |
| | | // this.showMap =true |
| | | }, |
| | | }, |
| | | }; |