diff --git a/xinli-ui/src/views/psychology/permission/index.vue b/xinli-ui/src/views/psychology/permission/index.vue index 356667b6..294ea473 100644 --- a/xinli-ui/src/views/psychology/permission/index.vue +++ b/xinli-ui/src/views/psychology/permission/index.vue @@ -209,9 +209,10 @@ export default { this.loading = false; }); }, - /** 加载量表列表(只显示量表,不包含问卷) */ + /** 加载量表列表(显示所有量表,不包含问卷) */ loadScales() { - listScale({ status: '0', includeQuestionnaire: false }).then(response => { + // 不按状态过滤,并一次性拉取足够数量,确保所有量表都能配置权限 + listScale({ includeQuestionnaire: false, pageNum: 1, pageSize: 1000 }).then(response => { // 过滤掉问卷,只保留量表 this.scaleList = (response.rows || []) .filter(scale => !scale.sourceType || scale.sourceType === 'scale');