|
@@ -0,0 +1,55 @@
|
|
|
|
+<template>
|
|
|
|
+ <el-row style="text-align: center">
|
|
|
|
+ <el-col :span="4">
|
|
|
|
+ <el-button type="primary" @click="toMethod('initES')">{{ $t('pages.systemFunc.initES') }}</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="4">
|
|
|
|
+ <el-button type="primary" @click="toMethod('cid')">{{ $t('pages.systemFunc.cid') }}</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="4">
|
|
|
|
+ <el-button type="primary" @click="toMethod('ism')">{{ $t('pages.systemFunc.ism') }}</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="4">
|
|
|
|
+ <el-button type="primary" @click="toMethod('ium')">{{ $t('pages.systemFunc.ium') }}</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="4">
|
|
|
|
+ <el-button type="primary" @click="toMethod('ir')">{{ $t('pages.systemFunc.ir') }}</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="4">
|
|
|
|
+ <el-button type="primary" @click="toMethod('irm')">{{ $t('pages.systemFunc.irm') }}</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script setup>
|
|
|
|
+import { SystemFuncStore } from '@/store/api/systemFunc'
|
|
|
|
+const $checkRes = inject('$checkRes')
|
|
|
|
+const store = SystemFuncStore()
|
|
|
|
+const toMethod = async (method) => {
|
|
|
|
+ let res
|
|
|
|
+ switch (method) {
|
|
|
|
+ case 'initES':
|
|
|
|
+ res = await store.initES()
|
|
|
|
+ break
|
|
|
|
+ case 'cid':
|
|
|
|
+ res = await store.correctImportData()
|
|
|
|
+ break
|
|
|
|
+ case 'ism':
|
|
|
|
+ res = await store.initSystemMenus()
|
|
|
|
+ break
|
|
|
|
+ case 'ium':
|
|
|
|
+ res = await store.initUserMenus()
|
|
|
|
+ break
|
|
|
|
+ case 'ir':
|
|
|
|
+ res = await store.initRoleData()
|
|
|
|
+ break
|
|
|
|
+ case 'irm':
|
|
|
|
+ res = await store.initRoleMenus()
|
|
|
|
+ break
|
|
|
|
+ default:
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ $checkRes(res)
|
|
|
|
+}
|
|
|
|
+</script>
|
|
|
|
+<style scoped></style>
|