修复了禅道的一系列bug
This commit is contained in:
@ -12,6 +12,7 @@ Page({
|
||||
sortOrders: ['升序', '降序'],
|
||||
items: [], // 用于存储查询结果
|
||||
role: '', // 假设初始为主管角色,可以根据实际情况动态设置
|
||||
k: 1
|
||||
},
|
||||
|
||||
// 主管名称输入
|
||||
@ -175,6 +176,7 @@ Page({
|
||||
onLoad(options) {
|
||||
// 根据身份确定角色
|
||||
const role = options.role;
|
||||
this.setData({k: options.k})
|
||||
if (role === 'staff') this.setData({selectedSortField: '推广人数'})
|
||||
console.log('角色---->',options.role);
|
||||
this.setData({ role });
|
||||
|
Reference in New Issue
Block a user