From 0efcb9f12301633ffe5c77a97cef585e2cc39e73 Mon Sep 17 00:00:00 2001 From: jihongshun <1151753686@qq.com> Date: 星期五, 01 八月 2025 13:21:25 +0800 Subject: [PATCH] 偏移算法优化 --- src/views/system/model/index.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/system/model/index.vue b/src/views/system/model/index.vue index 16bce28..4103b03 100644 --- a/src/views/system/model/index.vue +++ b/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 }, }, }; -- Gitblit v1.9.3