|
@@ -22,6 +22,11 @@
|
|
<el-button v-if="hasPermission('knowledgeShare:info:del')" type="danger" size="small" icon="el-icon-delete" @click="del()" :disabled="$refs.typeTable && $refs.typeTable.getCheckboxRecords().length === 0" plain>删除</el-button>
|
|
<el-button v-if="hasPermission('knowledgeShare:info:del')" type="danger" size="small" icon="el-icon-delete" @click="del()" :disabled="$refs.typeTable && $refs.typeTable.getCheckboxRecords().length === 0" plain>删除</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-toolbar>
|
|
</vxe-toolbar>
|
|
|
|
+
|
|
|
|
+ <el-tabs v-model="typeId" type="card" @tab-click="handleClick">
|
|
|
|
+ <el-tab-pane :key="index" v-for="(item,index) in typeList" :label="item.klgsType" :name="item.klgsType" :value="item.id"></el-tab-pane>
|
|
|
|
+ </el-tabs>
|
|
|
|
+
|
|
<div style="height: calc(100% - 50px)">
|
|
<div style="height: calc(100% - 50px)">
|
|
<vxe-table
|
|
<vxe-table
|
|
border="inner"
|
|
border="inner"
|
|
@@ -78,12 +83,15 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import KnowledgeShareInfoService from '@/api/sys/KnowledgeShareInfoService'
|
|
import KnowledgeShareInfoService from '@/api/sys/KnowledgeShareInfoService'
|
|
|
|
+ import KnowledgeShareTypeService from '@/api/sys/KnowledgeShareTypeService'
|
|
import InfoForm from './InfoForm'
|
|
import InfoForm from './InfoForm'
|
|
import UserSelect from '@/components/userSelect'
|
|
import UserSelect from '@/components/userSelect'
|
|
import UserService from '@/api/sys/UserService'
|
|
import UserService from '@/api/sys/UserService'
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
|
|
+ typeList: [],
|
|
|
|
+ typeId: '1',
|
|
searchForm: {
|
|
searchForm: {
|
|
title: '',
|
|
title: '',
|
|
createBy: ''
|
|
createBy: ''
|
|
@@ -101,10 +109,15 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
knowledgeShareInfoService: null,
|
|
knowledgeShareInfoService: null,
|
|
|
|
+ knowledgeShareTypeService: null,
|
|
userService: null,
|
|
userService: null,
|
|
created () {
|
|
created () {
|
|
this.knowledgeShareInfoService = new KnowledgeShareInfoService()
|
|
this.knowledgeShareInfoService = new KnowledgeShareInfoService()
|
|
|
|
+ this.knowledgeShareTypeService = new KnowledgeShareTypeService()
|
|
this.userService = new UserService()
|
|
this.userService = new UserService()
|
|
|
|
+ this.knowledgeShareTypeService.list().then(({data}) => {
|
|
|
|
+ this.typeList = data.records
|
|
|
|
+ })
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
InfoForm,
|
|
InfoForm,
|
|
@@ -138,6 +151,7 @@
|
|
'current': this.tablePage.currentPage,
|
|
'current': this.tablePage.currentPage,
|
|
'size': this.tablePage.pageSize,
|
|
'size': this.tablePage.pageSize,
|
|
'orders': this.tablePage.orders,
|
|
'orders': this.tablePage.orders,
|
|
|
|
+ 'typeId': this.typeId,
|
|
...this.searchForm
|
|
...this.searchForm
|
|
}).then(({data}) => {
|
|
}).then(({data}) => {
|
|
this.dataList = data.records
|
|
this.dataList = data.records
|
|
@@ -177,7 +191,13 @@
|
|
this.userService.is().then(({data}) => {
|
|
this.userService.is().then(({data}) => {
|
|
this.isAdmin = data
|
|
this.isAdmin = data
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ handleClick (tab) {
|
|
|
|
+ const val = tab.$attrs.value
|
|
|
|
+ console.log('aaaaaaaaa', val)
|
|
|
|
+ this.typeId = val
|
|
|
|
+ this.refreshList()
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|