Commit 774acafe authored by liwenhong's avatar liwenhong

add:活动配置禁用时间

parent e9554a1c
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
type="datetime" type="datetime"
@change="timeChange" @change="timeChange"
format="YYYY-MM-DD" format="YYYY-MM-DD"
:disabled-date="hanleDisableTime"
placeholder="请设置时间" placeholder="请设置时间"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
...@@ -172,6 +173,9 @@ ...@@ -172,6 +173,9 @@
date: "", date: "",
config: [], config: [],
}, },
hanleDisableTime(time) {
return time.getTime() < Date.now();
},
}; };
}, },
created() { created() {
......
...@@ -229,7 +229,6 @@ ...@@ -229,7 +229,6 @@
} }
}, },
initMap() { initMap() {
// 加载PositionPicker,loadUI的路径参数为模块名中 'ui/' 之后的部分
let AMapUI = (this.AMapUI = window.AMapUI); let AMapUI = (this.AMapUI = window.AMapUI);
let AMap = (this.AMap = window.AMap); let AMap = (this.AMap = window.AMap);
AMapUI.loadUI(["misc/PositionPicker"], (PositionPicker) => { AMapUI.loadUI(["misc/PositionPicker"], (PositionPicker) => {
...@@ -249,7 +248,10 @@ ...@@ -249,7 +248,10 @@
// mapConfig.area = "北京市"; // mapConfig.area = "北京市";
// } // }
let map = new AMap.Map("js-container", mapConfig); 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; 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