设置事件源 <label :data-weight="item1.EvaluateWeight" @click='radioClick' :data-id="item1.EvaluateDictId"> 获取事件源 radioClick: function (event) { var el = event.currentTarget; var id = $(el).data("id"); radioClick: function (e…
函数封装: /** * 获取当前时间 * 格式YYYY-MM-DD */ Vue.prototype.getNowFormatDate = function() { var date = new Date(); var seperator1 = "-"; var year = date.getFullYear(); var month = date.getMonth() + 1; var strDate = date.getDate(); if (month >= 1 &…