Commit 0817f193 by Kyle_Li

update:限制非实时人群编辑

parent 71e86e86
......@@ -203,7 +203,7 @@
详情
</router-link>
<router-link
v-if="scope.row.canEdit"
v-if="isAllowEdit(scope.row)"
:to="`/memberGroupEdit?memberTagGroupId=${scope.row.memberTagGroupId}`"
class="edit-btn el-button--text p-r-12"
>
......@@ -1030,6 +1030,13 @@ export default {
this.countGroupText = `您的非实时分组数量已达${data.currCount}/${data.totalCount},实时分组数量不受限制。`;
}
});
},
isAllowEdit(row) {
const { latestUpdateTime, canEdit } = row;
if(!canEdit) return false;
if(!latestUpdateTime || latestUpdateTime === '--') return true;
if(new Date().toLocaleDateString() > new Date(latestUpdateTime).toLocaleDateString()) return false;
return true;
}
},
created() {
......
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