|
@@ -71,7 +71,7 @@
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
link
|
|
link
|
|
- v-if="row.state === 3"
|
|
|
|
|
|
+ v-if="row.state === 3 && hasRemarkButtonPerm"
|
|
@click="handleRemark(row)"
|
|
@click="handleRemark(row)"
|
|
type="primary"
|
|
type="primary"
|
|
>备注</el-button
|
|
>备注</el-button
|
|
@@ -296,6 +296,15 @@ const handleRemarkSubmit = async () => {
|
|
getData();
|
|
getData();
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const hasRemarkButtonPerm = computed(() => {
|
|
|
|
+ return userStore.user.perms?.some(
|
|
|
|
+ (item) =>
|
|
|
|
+ item.menuName === "备注" && // 按钮名称
|
|
|
|
+ item.type === 2 && // 是否是按钮
|
|
|
|
+ item.parentPath === "sales" //是否是销售反馈页面
|
|
|
|
+ );
|
|
|
|
+});
|
|
|
|
+
|
|
// 处理相关
|
|
// 处理相关
|
|
const handle2Ref = ref(null);
|
|
const handle2Ref = ref(null);
|
|
const handle3Ref = ref(null);
|
|
const handle3Ref = ref(null);
|