doomiwork 3.3.1 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/database/daoBase.js +4 -10
- package/package.json +1 -1
package/core/database/daoBase.js
CHANGED
|
@@ -216,21 +216,15 @@ class mysqlDao extends dao{
|
|
|
216
216
|
switch (element.allowtype){
|
|
217
217
|
case 1: ///部门
|
|
218
218
|
pObject.deptid.push(element.allowid)
|
|
219
|
-
|
|
220
|
-
pObject.depttext.push(element.allowname)
|
|
221
|
-
}
|
|
219
|
+
pObject.depttext.push(element.allowname)
|
|
222
220
|
break;
|
|
223
221
|
case 2: ///角色
|
|
224
222
|
pObject.roleid.push(element.allowid)
|
|
225
|
-
|
|
226
|
-
pObject.roletext.push(element.allowname)
|
|
227
|
-
}
|
|
223
|
+
pObject.roletext.push(element.allowname)
|
|
228
224
|
break;
|
|
229
225
|
case 4: ///用户
|
|
230
226
|
pObject.userid.push(element.allowid)
|
|
231
|
-
|
|
232
|
-
pObject.usernames.push(element.allowname)
|
|
233
|
-
}
|
|
227
|
+
pObject.usernames.push(element.allowname)
|
|
234
228
|
break;
|
|
235
229
|
}
|
|
236
230
|
}
|
|
@@ -243,7 +237,7 @@ class mysqlDao extends dao{
|
|
|
243
237
|
retValue.consumepermission.user = pObject.userid.join(',')
|
|
244
238
|
retValue.consumepermission.usertext = pObject.usernames.join(',');// + ((pObject.userid.length > pObject.usernames.length) ? `等${pObject.userid.length}个用户` : '');
|
|
245
239
|
|
|
246
|
-
console.log('retValue==>', retValue)
|
|
240
|
+
// console.log('retValue==>', retValue)
|
|
247
241
|
return retValue;
|
|
248
242
|
})
|
|
249
243
|
}
|