| | |
| | | </template> |
| | | |
| | | <template #menu="scope"> |
| | | <el-button type="primary" text icon="el-icon-view" @click="uploadPatch(scope.row)">详情 |
| | | <el-button type="primary" text icon="el-icon-view" @click="uploadPatch(scope.row,'detail')">详情 |
| | | </el-button> |
| | | <el-button type="primary" text icon="el-icon-edit" @click="uploadPatch(scope.row)">编辑 |
| | | <el-button type="primary" text icon="el-icon-edit" @click="uploadPatch(scope.row,'edit')">编辑 |
| | | </el-button> |
| | | <el-button type="primary" text icon="el-icon-delete" @click="handleDebug(scope.row)">删除 |
| | | </el-button> |
| | |
| | | <avue-form ref="form" :option="debugOption" v-model="debugForm" @submit="handleSubmit" /> |
| | | </el-dialog> |
| | | <!-- 图斑详情 --> |
| | | <SpotDetails v-model:show="uploadPatchDialog"></SpotDetails> |
| | | <SpotDetails v-model:show="uploadPatchDialog" :title="spotDetailsTitle"></SpotDetails> |
| | | <!-- <patchDetails ref="patchDetails" /> --> |
| | | </basic-container> |
| | | </template> |
| | |
| | | import func from '@/utils/func' |
| | | import patchDetails from '@/views/resource/components/patchDetails.vue' |
| | | import SpotDetails from '@/views/resource/components/spotDetails.vue'; |
| | | |
| | | const spotDetailsTitle = ref(''); |
| | | const store = useStore() |
| | | const router = useRouter() |
| | | |
| | |
| | | }) |
| | | } |
| | | |
| | | // 上传图斑 |
| | | const uploadPatch = () => { |
| | | uploadPatchDialog.value = true |
| | | // 图斑详情/编辑 |
| | | const uploadPatch = (row, type = 'detail') => { |
| | | uploadPatchDialog.value = true; |
| | | spotDetailsTitle.value = type === 'detail' ? '图斑详情' : '图斑编辑'; |
| | | } |
| | | |
| | | // 跳转至图斑类型管理页面 |