Commit 774acafe authored by liwenhong's avatar liwenhong

add:活动配置禁用时间

parent e9554a1c
......@@ -44,6 +44,7 @@
type="datetime"
@change="timeChange"
format="YYYY-MM-DD"
:disabled-date="hanleDisableTime"
placeholder="请设置时间"
></el-date-picker>
</el-form-item>
......@@ -172,6 +173,9 @@
date: "",
config: [],
},
hanleDisableTime(time) {
return time.getTime() < Date.now();
},
};
},
created() {
......
......@@ -229,7 +229,6 @@
}
},
initMap() {
// 加载PositionPicker,loadUI的路径参数为模块名中 'ui/' 之后的部分
let AMapUI = (this.AMapUI = window.AMapUI);
let AMap = (this.AMap = window.AMap);
AMapUI.loadUI(["misc/PositionPicker"], (PositionPicker) => {
......@@ -249,7 +248,10 @@
// mapConfig.area = "北京市";
// }
let map = new AMap.Map("js-container", mapConfig);
map.Marker("js-container", {});
new AMap.Marker({
position: [this.pointObj.longitude, this.pointObj.latitude],
map: map,
});
let _this = this;
// 加载地图搜索插件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment