| | |
| | | @click="handleAdd">新增模板</el-button> |
| | | </template> |
| | | <template #operator="{ row }"> |
| | | <el-button size="mini" type="text" icon="el-icon-view" |
| | | @click="preview(row)">预览</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" |
| | | @click="handleDelete(row)">删除</el-button> |
| | | </template> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <shootPointDialog @on-submit="$refs.AppTable.getData()" v-if="showDialog" @close="close"></shootPointDialog> |
| | | <shootPointDialog @on-submit="$refs.AppTable.getData()" v-if="showDialog" @close="close" :templateId="templateId"></shootPointDialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | } |
| | | ], |
| | | showMap:false, |
| | | showDialog:false |
| | | showDialog:false, |
| | | templateId:null |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | methods: { |
| | | // 添加数据 |
| | | handleAdd() { |
| | | this.templateId = null |
| | | this.showMap = false |
| | | this.showDialog = true |
| | | // this.$refs.shootPointDialog.show() |
| | |
| | | // }, |
| | | close(){ |
| | | this.showDialog =false |
| | | this |
| | | }, |
| | | preview(row){ |
| | | console.log(row) |
| | | this.templateId = row.id |
| | | this.showDialog = true |
| | | } |
| | | }, |
| | | }; |