Merge remote-tracking branch 'remotes/origin/feature/tek-system-ui' into skill
This commit is contained in:
commit
27fe05a636
@ -172,19 +172,6 @@ const constantRoutes = [
|
|||||||
},
|
},
|
||||||
alwaysShow: true,
|
alwaysShow: true,
|
||||||
children: [
|
children: [
|
||||||
{
|
|
||||||
path: 'subject/list',
|
|
||||||
component: () => import('@/views/education/subject/list'),
|
|
||||||
name: 'EducationSubjectPage',
|
|
||||||
meta: { title: 'skill列表', noCache: true }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'subject/edit',
|
|
||||||
component: () => import('@/views/education/subject/edit'),
|
|
||||||
name: 'EducationSubjectEditPage',
|
|
||||||
meta: { title: 'skill编辑', noCache: true, activeMenu: '/education/subject/list' },
|
|
||||||
hidden: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: 'industry/list',
|
path: 'industry/list',
|
||||||
component: () => import('@/views/education/industry/list'),
|
component: () => import('@/views/education/industry/list'),
|
||||||
@ -197,6 +184,19 @@ const constantRoutes = [
|
|||||||
name: 'EducationIndustryEditPage',
|
name: 'EducationIndustryEditPage',
|
||||||
meta: { title: 'industry编辑', noCache: true, activeMenu: '/education/industry/list' },
|
meta: { title: 'industry编辑', noCache: true, activeMenu: '/education/industry/list' },
|
||||||
hidden: true
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'subject/list',
|
||||||
|
component: () => import('@/views/education/subject/list'),
|
||||||
|
name: 'EducationSubjectPage',
|
||||||
|
meta: { title: 'skill列表', noCache: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'subject/edit',
|
||||||
|
component: () => import('@/views/education/subject/edit'),
|
||||||
|
name: 'EducationSubjectEditPage',
|
||||||
|
meta: { title: 'skill编辑', noCache: true, activeMenu: '/education/subject/list' },
|
||||||
|
hidden: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { mapGetters, mapState } from 'vuex'
|
import { mapGetters, mapState } from 'vuex'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import subjectApi from '@/api/subject'
|
import industryApi from '@/api/industry'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Pagination },
|
components: { Pagination },
|
||||||
@ -56,7 +56,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
search () {
|
search () {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
subjectApi.pageList(this.queryParam).then(data => {
|
industryApi.pageList(this.queryParam).then(data => {
|
||||||
const re = data.response
|
const re = data.response
|
||||||
this.tableData = re.list
|
this.tableData = re.list
|
||||||
this.total = re.total
|
this.total = re.total
|
||||||
@ -70,7 +70,7 @@
|
|||||||
},
|
},
|
||||||
delSubject (row) {
|
delSubject (row) {
|
||||||
let _this = this
|
let _this = this
|
||||||
subjectApi.deleteSubject(row.id).then(re => {
|
industryApi.deleteSubject(row.id).then(re => {
|
||||||
if (re.code === 1) {
|
if (re.code === 1) {
|
||||||
_this.search()
|
_this.search()
|
||||||
_this.$message.success(re.message)
|
_this.$message.success(re.message)
|
||||||
|
Loading…
Reference in New Issue
Block a user