|
@@ -45,6 +45,10 @@ export default {
|
|
...mapActions(['fetch', 'create', 'update', 'query']),
|
|
...mapActions(['fetch', 'create', 'update', 'query']),
|
|
async serrch() {
|
|
async serrch() {
|
|
const res = await this.query();
|
|
const res = await this.query();
|
|
|
|
+ if (this.user.role == '1') {
|
|
|
|
+ this.menu.push(system, personnel, government, record, serve, enterprise, duijiehui, site, user, links, permission, dictionary);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
for (const val of this.user.columnid) {
|
|
for (const val of this.user.columnid) {
|
|
var result = res.data.filter(item => item.id == val);
|
|
var result = res.data.filter(item => item.id == val);
|
|
for (const acc of result) {
|
|
for (const acc of result) {
|