51 lines
1.1 KiB
Vue
51 lines
1.1 KiB
Vue
<template>
|
|
<ai-list>
|
|
<template slot="title">
|
|
<ai-title title="评分管理" :isShowBottomBorder="false">
|
|
</ai-title>
|
|
</template>
|
|
<template #tabs>
|
|
<el-tabs v-model="currIndex">
|
|
<el-tab-pane v-for="(tab,i) in tabs" :key="i" :label="tab.label">
|
|
<component v-if="currIndex == i" :is="tab.comp" @change="onChange" lazy :instance="instance" :dict="dict" :permissions="permissions"/>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</template>
|
|
</ai-list>
|
|
</template>
|
|
|
|
<script>
|
|
import RuleManage from "./components/RuleManage.vue";
|
|
import AppraiseTask from "./components/AppraiseTask.vue";
|
|
|
|
export default {
|
|
name: "AppRateManage",
|
|
label:'评分管理',
|
|
|
|
props: {
|
|
instance: Function,
|
|
dict: Object,
|
|
permissions: Function
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
currIndex:0,
|
|
tabs:[
|
|
{label: '规则管理', name: 'RuleManage', comp: RuleManage, permission: ''},
|
|
{label: '评选任务', name: 'AppraiseTask', comp: AppraiseTask, permission: ''}
|
|
]
|
|
}
|
|
},
|
|
methods: {
|
|
onChange(data) {
|
|
console.log(data)
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
</style>
|