提交 a0908976 authored 作者: lidongxu's avatar lidongxu

refactor(plan/index): 删除计划按钮_只显示当前月的

而且新增计划城市经理只能新增下个月一整个月的
上级 615c5f60
......@@ -207,6 +207,7 @@
编辑
</el-button>
<el-button type="danger"
v-if="deleteBtnShow(scope.row)"
link
:disabled="!selectableFn(scope.row)"
@click="deletePlane(scope.row)">
......@@ -1222,6 +1223,14 @@ const init = async () => {
};
init()
// 删除按钮显示隐藏,只显示活动日期是当月的能删除
const deleteBtnShow = (row) => {
const date = new Date()
const rowDate = new Date(row.date)
if (rowDate.getMonth() === date.getMonth()) {
return true
}
}
</script>
<style scoped
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论