diff --git a/test_client/src/api/examtest.js b/test_client/src/api/examtest.js index 0ecf461..061ba7c 100644 --- a/test_client/src/api/examtest.js +++ b/test_client/src/api/examtest.js @@ -34,3 +34,38 @@ export function deleteTestRule(id) { method: 'delete', }) } + +export function getWorkScopeAll() { + return request({ + url: '/examtest/workscope/', + method: 'get', + }) +} + +export function getWorkScopDetail(id){ + return request({ + url: `/examtest/workscope/${id}/`, + method: 'get', + }) +} + +export function createWorkScope(data) { + return request({ + url: '/examtest/workscope/', + method: 'post', + data + }) +} +export function updateWorkScope(id, data) { + return request({ + url: `/examtest/workscope/${id}/`, + method: 'put', + data + }) +} +export function deleteWorkScope(id) { + return request({ + url: `/examtest/workscope/${id}/`, + method: 'delete', + }) +} \ No newline at end of file diff --git a/test_client/src/router/index.js b/test_client/src/router/index.js index fb51b7f..3342a4b 100644 --- a/test_client/src/router/index.js +++ b/test_client/src/router/index.js @@ -101,7 +101,7 @@ export const asyncRoutes = [ path: 'questioncat', name: 'questioncat', component: () => import('@/views/question/questioncat.vue'), - meta: { title: '题库分类', icon: '', perms: ['questioncat_manage'] } + meta: { title: '科目分类', icon: '', perms: ['questioncat_manage'] } }, { path: 'question', @@ -116,13 +116,19 @@ export const asyncRoutes = [ component: Layout, redirect: '/sjmanage/', name: 'Sjmanage', - meta: { title: '试卷管理', icon: 'component'}, + meta: { title: '出卷管理', icon: 'component'}, children: [ { path: 'testrule', name: 'TestRule', component: () => import('@/views/examtest/rule.vue'), - meta: { title: '模考规则', icon: '', perms: ['testrule_manage'] }, + meta: { title: '试卷结构', icon: '', perms: ['testrule_manage'] }, + }, + { + path: 'workscope', + name: 'workscope', + component: () => import('@/views/examtest/workscope.vue'), + meta: { title: '工作类别', icon: '', perms: ['workscope_manage'] }, }, { path: 'testpaper', @@ -134,14 +140,28 @@ export const asyncRoutes = [ path: 'testrule/create', name: 'CreateRule', component: () => import('@/views/examtest/rulecreate.vue'), - meta: { title: '新建模考规则', noCache: true, icon: '', perms: ['testrule_add']}, + meta: { title: '新建试卷结构', noCache: true, icon: '', perms: ['testrule_add']}, hidden: true }, { path: 'testrule/update', name: 'UpdateRule', component: () => import('@/views/examtest/ruleupdate.vue'), - meta: { title: '编辑模考规则', noCache: true, icon: '', perms: ['testrule_update']}, + meta: { title: '编辑试卷结构', noCache: true, icon: '', perms: ['testrule_update']}, + hidden: true + }, + { + path: 'workscope/create', + name: 'CreateWorkscope', + component: () => import('@/views/examtest/workscopecreate.vue'), + meta: { title: '新建工作类别', noCache: true, icon: '', perms: ['workscope_add']}, + hidden: true + }, + { + path: 'workscope/update', + name: 'UpdateWorkscope', + component: () => import('@/views/examtest/workscopeupdate.vue'), + meta: { title: '编辑工作类别', noCache: true, icon: '', perms: ['workscope_update']}, hidden: true }, ] diff --git a/test_client/src/views/crm/consumer.vue b/test_client/src/views/crm/consumer.vue index f378d5d..a72fec0 100644 --- a/test_client/src/views/crm/consumer.vue +++ b/test_client/src/views/crm/consumer.vue @@ -99,7 +99,7 @@ v-if="scope.row.company_name != null" >{{ scope.row.company_name }} - +