{"code":"(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-2d22bdde\"],{f196:function(e,t,l){\"use strict\";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l(\"div\",{staticClass:\"app-container\"},[l(\"el-form\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.showSearch,expression:\"showSearch\"}],ref:\"queryForm\",attrs:{model:e.queryParams,size:\"small\",inline:!0,\"label-width\":\"68px\"}},[l(\"el-form-item\",{attrs:{label:\"实景三维名称\",prop:\"tilesName\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入实景三维名称\",clearable:\"\"},nativeOn:{keyup:function(t){return!t.type.indexOf(\"key\")&&e._k(t.keyCode,\"enter\",13,t.key,\"Enter\")?null:e.handleQuery(t)}},model:{value:e.queryParams.tilesName,callback:function(t){e.$set(e.queryParams,\"tilesName\",t)},expression:\"queryParams.tilesName\"}})],1),l(\"el-form-item\",[l(\"el-button\",{attrs:{type:\"primary\",icon:\"el-icon-search\",size:\"mini\"},on:{click:e.handleQuery}},[e._v(\"搜索\")]),l(\"el-button\",{attrs:{icon:\"el-icon-refresh\",size:\"mini\"},on:{click:e.resetQuery}},[e._v(\"重置\")])],1)],1),l(\"el-row\",{staticClass:\"mb8\",attrs:{gutter:10}},[l(\"el-col\",{attrs:{span:1.5}},[l(\"el-button\",{directives:[{name:\"hasPermi\",rawName:\"v-hasPermi\",value:[\"tiles3d:tilesmap:add\"],expression:\"['tiles3d:tilesmap:add']\"}],attrs:{type:\"primary\",plain:\"\",icon:\"el-icon-plus\",size:\"mini\"},on:{click:e.handleAdd}},[e._v(\"新增\")])],1),l(\"el-col\",{attrs:{span:1.5}},[l(\"el-button\",{directives:[{name:\"hasPermi\",rawName:\"v-hasPermi\",value:[\"tiles3d:tilesmap:edit\"],expression:\"['tiles3d:tilesmap:edit']\"}],attrs:{type:\"success\",plain:\"\",icon:\"el-icon-edit\",size:\"mini\",disabled:e.single},on:{click:e.handleUpdate}},[e._v(\"修改\")])],1),l(\"el-col\",{attrs:{span:1.5}},[l(\"el-button\",{directives:[{name:\"hasPermi\",rawName:\"v-hasPermi\",value:[\"tiles3d:tilesmap:remove\"],expression:\"['tiles3d:tilesmap:remove']\"}],attrs:{type:\"danger\",plain:\"\",icon:\"el-icon-delete\",size:\"mini\",disabled:e.multiple},on:{click:e.handleDelete}},[e._v(\"删除\")])],1),l(\"el-col\",{attrs:{span:1.5}},[l(\"el-button\",{directives:[{name:\"hasPermi\",rawName:\"v-hasPermi\",value:[\"tiles3d:tilesmap:export\"],expression:\"['tiles3d:tilesmap:export']\"}],attrs:{type:\"warning\",plain:\"\",icon:\"el-icon-download\",size:\"mini\"},on:{click:e.handleExport}},[e._v(\"导出\")])],1),l(\"right-toolbar\",{attrs:{showSearch:e.showSearch},on:{\"update:showSearch\":function(t){e.showSearch=t},\"update:show-search\":function(t){e.showSearch=t},queryTable:e.getList}})],1),l(\"el-table\",{directives:[{name:\"loading\",rawName:\"v-loading\",value:e.loading,expression:\"loading\"}],attrs:{data:e.tilesmapList},on:{\"selection-change\":e.handleSelectionChange}},[l(\"el-table-column\",{attrs:{type:\"selection\",width:\"55\",align:\"center\"}}),l(\"el-table-column\",{attrs:{label:\"ID\",align:\"center\",prop:\"tilesId\"}}),l(\"el-table-column\",{attrs:{label:\"实景三维名称\",align:\"center\",prop:\"tilesName\"}}),l(\"el-table-column\",{attrs:{label:\"实景三维路径\",align:\"center\",prop:\"tilesUrl\"}}),l(\"el-table-column\",{attrs:{label:\"是否默认加载ff默认初始化\",align:\"center\",prop:\"tilesType\"}}),l(\"el-table-column\",{attrs:{label:\"x轴偏移\",align:\"center\",prop:\"tilesX\"}}),l(\"el-table-column\",{attrs:{label:\"y轴偏移\",align:\"center\",prop:\"tilesY\"}}),l(\"el-table-column\",{attrs:{label:\"z轴偏移\",align:\"center\",prop:\"tilesZ\"}}),l(\"el-table-column\",{attrs:{label:\"相机坐标\",align:\"center\",prop:\"camPoi\"}}),l(\"el-table-column\",{attrs:{label:\"相机方位\",align:\"center\",prop:\"camHeading\"}}),l(\"el-table-column\",{attrs:{label:\"相机俯仰\",align:\"center\",prop:\"camPitch\"}}),l(\"el-table-column\",{attrs:{label:\"清晰度1\",align:\"center\",prop:\"maximumScreenSpaceError\"}}),l(\"el-table-column\",{attrs:{label:\"清晰度2\",align:\"center\",prop:\"maximumMemoryUsage\"}}),l(\"el-table-column\",{attrs:{label:\"清晰度3\",align:\"center\",prop:\"cullRequestsWhileMovingMultiplier\"}}),l(\"el-table-column\",{attrs:{label:\"清晰度4\",align:\"center\",prop:\"dynamicScreenSpaceErrorDensity\"}}),l(\"el-table-column\",{attrs:{label:\"操作\",align:\"center\",\"class-name\":\"small-padding fixed-width\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[l(\"el-button\",{directives:[{name:\"hasPermi\",rawName:\"v-hasPermi\",value:[\"tiles3d:tilesmap:edit\"],expression:\"['tiles3d:tilesmap:edit']\"}],attrs:{size:\"mini\",type:\"text\",icon:\"el-icon-edit\"},on:{click:function(l){return e.handleUpdate(t.row)}}},[e._v(\"修改\")]),l(\"el-button\",{directives:[{name:\"hasPermi\",rawName:\"v-hasPermi\",value:[\"tiles3d:tilesmap:remove\"],expression:\"['tiles3d:tilesmap:remove']\"}],attrs:{size:\"mini\",type:\"text\",icon:\"el-icon-delete\"},on:{click:function(l){return e.handleDelete(t.row)}}},[e._v(\"删除\")])]}}])})],1),l(\"pagination\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.total>0,expression:\"total>0\"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{\"update:page\":function(t){return e.$set(e.queryParams,\"pageNum\",t)},\"update:limit\":function(t){return e.$set(e.queryParams,\"pageSize\",t)},pagination:e.getList}}),l(\"el-dialog\",{attrs:{title:e.title,visible:e.open,width:\"500px\",\"append-to-body\":\"\"},on:{\"update:visible\":function(t){e.open=t}}},[l(\"el-form\",{ref:\"form\",attrs:{model:e.form,rules:e.rules,\"label-width\":\"80px\"}},[l(\"el-form-item\",{attrs:{label:\"ID\",prop:\"tilesId\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入ID\"},model:{value:e.form.tilesId,callback:function(t){e.$set(e.form,\"tilesId\",t)},expression:\"form.tilesId\"}})],1),l(\"el-form-item\",{attrs:{label:\"实景三维名称\",prop:\"tilesName\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入实景三维名称\"},model:{value:e.form.tilesName,callback:function(t){e.$set(e.form,\"tilesName\",t)},expression:\"form.tilesName\"}})],1),l(\"el-form-item\",{attrs:{label:\"实景三维路径\",prop:\"tilesUrl\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入实景三维路径\"},model:{value:e.form.tilesUrl,callback:function(t){e.$set(e.form,\"tilesUrl\",t)},expression:\"form.tilesUrl\"}})],1),l(\"el-form-item\",{attrs:{label:\"是否默认加载ff默认初始化\",prop:\"tilesType\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入是否默认加载ff默认初始化\"},model:{value:e.form.tilesType,callback:function(t){e.$set(e.form,\"tilesType\",t)},expression:\"form.tilesType\"}})],1),l(\"el-form-item\",{attrs:{label:\"x轴偏移\",prop:\"tilesX\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入x轴偏移\"},model:{value:e.form.tilesX,callback:function(t){e.$set(e.form,\"tilesX\",t)},expression:\"form.tilesX\"}})],1),l(\"el-form-item\",{attrs:{label:\"y轴偏移\",prop:\"tilesY\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入y轴偏移\"},model:{value:e.form.tilesY,callback:function(t){e.$set(e.form,\"tilesY\",t)},expression:\"form.tilesY\"}})],1),l(\"el-form-item\",{attrs:{label:\"z轴偏移\",prop:\"tilesZ\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入z轴偏移\"},model:{value:e.form.tilesZ,callback:function(t){e.$set(e.form,\"tilesZ\",t)},expression:\"form.tilesZ\"}})],1),l(\"el-form-item\",{attrs:{label:\"相机坐标\",prop:\"camPoi\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入相机坐标\"},model:{value:e.form.camPoi,callback:function(t){e.$set(e.form,\"camPoi\",t)},expression:\"form.camPoi\"}})],1),l(\"el-form-item\",{attrs:{label:\"相机方位\",prop:\"camHeading\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入相机方位\"},model:{value:e.form.camHeading,callback:function(t){e.$set(e.form,\"camHeading\",t)},expression:\"form.camHeading\"}})],1),l(\"el-form-item\",{attrs:{label:\"相机俯仰\",prop:\"camPitch\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入相机俯仰\"},model:{value:e.form.camPitch,callback:function(t){e.$set(e.form,\"camPitch\",t)},expression:\"form.camPitch\"}})],1),l(\"el-form-item\",{attrs:{label:\"清晰度1\",prop:\"maximumScreenSpaceError\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入清晰度1\"},model:{value:e.form.maximumScreenSpaceError,callback:function(t){e.$set(e.form,\"maximumScreenSpaceError\",t)},expression:\"form.maximumScreenSpaceError\"}})],1),l(\"el-form-item\",{attrs:{label:\"清晰度2\",prop:\"maximumMemoryUsage\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入清晰度2\"},model:{value:e.form.maximumMemoryUsage,callback:function(t){e.$set(e.form,\"maximumMemoryUsage\",t)},expression:\"form.maximumMemoryUsage\"}})],1),l(\"el-form-item\",{attrs:{label:\"清晰度3\",prop:\"cullRequestsWhileMovingMultiplier\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入清晰度3\"},model:{value:e.form.cullRequestsWhileMovingMultiplier,callback:function(t){e.$set(e.form,\"cullRequestsWhileMovingMultiplier\",t)},expression:\"form.cullRequestsWhileMovingMultiplier\"}})],1),l(\"el-form-item\",{attrs:{label:\"清晰度4\",prop:\"dynamicScreenSpaceErrorDensity\"}},[l(\"el-input\",{attrs:{placeholder:\"请输入清晰度4\"},model:{value:e.form.dynamicScreenSpaceErrorDensity,callback:function(t){e.$set(e.form,\"dynamicScreenSpaceErrorDensity\",t)},expression:\"form.dynamicScreenSpaceErrorDensity\"}})],1)],1),l(\"div\",{staticClass:\"dialog-footer\",attrs:{slot:\"footer\"},slot:\"footer\"},[l(\"el-button\",{attrs:{type:\"primary\"},on:{click:e.submitForm}},[e._v(\"确 定\")]),l(\"el-button\",{on:{click:e.cancel}},[e._v(\"取 消\")])],1)],1)],1)},i=[],r=l(\"5530\"),n=(l(\"d81d\"),l(\"b775\"));function s(e){return Object(n[\"a\"])({url:\"/tiles3d/tilesmap/list\",method:\"get\",params:e})}function o(e){return Object(n[\"a\"])({url:\"/tiles3d/tilesmap/\"+e,method:\"get\"})}function m(e){return Object(n[\"a\"])({url:\"/tiles3d/tilesmap\",method:\"post\",data:e})}function c(e){return Object(n[\"a\"])({url:\"/tiles3d/tilesmap\",method:\"put\",data:e})}function u(e){return Object(n[\"a\"])({url:\"/tiles3d/tilesmap/\"+e,method:\"delete\"})}var p={name:\"Tilesmap\",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,tilesmapList:[],title:\"\",open:!1,queryParams:{pageNum:1,pageSize:10,tilesId:null,tilesName:null,tilesUrl:null,tilesType:null,tilesX:null,tilesY:null,tilesZ:null,camPoi:null,camHeading:null,camPitch:null,maximumScreenSpaceError:null,maximumMemoryUsage:null,cullRequestsWhileMovingMultiplier:null,dynamicScreenSpaceErrorDensity:null},form:{},rules:{}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,s(this.queryParams).then((function(t){e.tilesmapList=t.rows,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={tilesId:null,tilesName:null,tilesUrl:null,tilesType:null,tilesX:null,tilesY:null,tilesZ:null,camPoi:null,camHeading:null,camPitch:null,maximumScreenSpaceError:null,maximumMemoryUsage:null,cullRequestsWhileMovingMultiplier:null,dynamicScreenSpaceErrorDensity:null},this.resetForm(\"form\")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm(\"queryForm\"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.tilesId})),this.single=1!==e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title=\"添加三维实景管理\"},handleUpdate:function(e){var t=this;this.reset();var l=e.tilesId||this.ids;o(l).then((function(e){t.form=e.data,t.open=!0,t.title=\"修改三维实景管理\"}))},submitForm:function(){var e=this;this.$refs[\"form\"].validate((function(t){t&&(null!=e.form.tilesId?c(e.form).then((function(t){e.$modal.msgSuccess(\"修改成功\"),e.open=!1,e.getList()})):m(e.form).then((function(t){e.$modal.msgSuccess(\"新增成功\"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,l=e.tilesId||this.ids;this.$modal.confirm('是否确认删除三维实景管理编号为\"'+l+'\"的数据项?').then((function(){return u(l)})).then((function(){t.getList(),t.$modal.msgSuccess(\"删除成功\")})).catch((function(){}))},handleExport:function(){this.download(\"tiles3d/tilesmap/export\",Object(r[\"a\"])({},this.queryParams),\"tilesmap_\".concat((new Date).getTime(),\".xlsx\"))}}},d=p,f=l(\"2877\"),h=Object(f[\"a\"])(d,a,i,!1,null,null,null);t[\"default\"]=h.exports}}]);","extractedComments":[]}
|