| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <!-- <template slot="menuLeft"> |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | | </template> |
| | | </template> --> |
| | | <template slot-scope="{ type, disabled }" slot="lineForm"> |
| | | <!-- <div class="mapClassMain" style="width: 100%; height: 400px"> |
| | | <Map ref="modalForm" /> |
| | | </div> --> |
| | | <getMapData |
| | | <getMapDataInThere |
| | | ref="getMapData" |
| | | id="getMapData" |
| | | @setMapData="setMapData" |
| | | ></getMapData> |
| | | ></getMapDataInThere> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | |
| | | import { mapGetters } from "vuex"; |
| | | // import Map from "@/components/map/main.vue"; |
| | | import getMapData from "./getMapData.vue"; |
| | | import getMapDataInThere from "./getMapDataInThere.vue"; |
| | | |
| | | export default { |
| | | components: { |
| | | // Map, |
| | | getMapData, |
| | | getMapDataInThere, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "活动地点", |
| | | addDisplay: false, |
| | | hide: true, |
| | | editDisply: false, |
| | | prop: "address", |
| | | }, |
| | | // { |
| | | // label: "活动地点", |
| | | // viewDisply:false, |
| | | // addDisplay: false, |
| | | // hide: true, |
| | | // editDisply: false, |
| | | // prop: "address", |
| | | // }, |
| | | { |
| | | label: "时间", |
| | | prop: "time", |
| | |
| | | action: "/api/blade-resource/oss/endpoint/put-file", |
| | | }, |
| | | { |
| | | label: "选择路径和标点", |
| | | labelWidth: "0", |
| | | prop: "line", |
| | | className: "mapClass", |
| | | hide: true, |
| | | display: true, |
| | | span: 24, |
| | | formslot: true, |
| | | addDisplay: true, |
| | | }, |
| | | { |
| | | label: "介绍", |
| | | prop: "context", |
| | | component: "AvueUeditor", |
| | |
| | | minRows: 5, |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: "选择路径和标点", |
| | | labelWidth: "0", |
| | | prop: "line", |
| | | className: "mapClass", |
| | | hide: true, |
| | | display: true, |
| | | span: 24, |
| | | formslot: true, |
| | | addDisplay: true, |
| | | }, |
| | | // { |
| | | // label: "路线", |
| | | // label: "路线",活动 |
| | | // hide: true, |
| | | // prop: "lx", |
| | | // editDisply: false, |
| | |
| | | row["lx"] = outMapData[0][1]; |
| | | row["addressname"] = outMapData[1][0]; |
| | | row["address"] = outMapData[1][1]; |
| | | // console.log(row); |
| | | // loading(); |
| | | // return; |
| | | add(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | |
| | | row["lx"] = outMapData[0][1]; |
| | | row["addressname"] = outMapData[1][0]; |
| | | row["address"] = outMapData[1][1]; |
| | | // console.log(row); |
| | | // loading(); |
| | | // return; |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | |
| | | width: calc(100% + 90px); |
| | | position: relative; |
| | | left: -90px; |
| | | height: auto; |
| | | height: 400px; |
| | | } |
| | | </style> |