diff --git a/src/api/company.js b/src/api/company.js
new file mode 100644
index 000000000..a7c1ff06e
--- /dev/null
+++ b/src/api/company.js
@@ -0,0 +1,47 @@
+import request from '@/utils/request';
+
+/** 获取公司列表 */
+export function getCompanyList() {
+ return request({
+ url: '/api/company',
+ method: 'get'
+ });
+}
+/** 添加公司信息 */
+export function addCompany(data) {
+ return request({
+ url: '/api/company',
+ method: 'post',
+ data: data
+ });
+}
+/** 删除公司信息 */
+export function deleteCompany(id) {
+ return request({
+ url: `/api/company/${id}`,
+ method: 'delete'
+ });
+}
+/** 根据id查询公司信心 */
+export function getCompanyById(id) {
+ return request({
+ url: `/api/company/${id}`,
+ method: 'get'
+ });
+}
+/** 更新公司信息 */
+export function updateCompany(id, data) {
+ return request({
+ url: `/api/company/${id}`,
+ method: 'put',
+ data
+ });
+}
+/** 分页查询公司列表 */
+export function getCompanyListPaging(params) {
+ return request({
+ url: `/api/company/paging`,
+ method: 'get',
+ params
+ });
+}
diff --git a/src/api/questionsRule.js b/src/api/questionsRule.js
new file mode 100644
index 000000000..a9d6668e7
--- /dev/null
+++ b/src/api/questionsRule.js
@@ -0,0 +1,47 @@
+import request from '@/utils/request';
+
+/** 获取出题规则列表 */
+export function getQuestionRuleList() {
+ return request({
+ url: `/api/questionsRule`,
+ method: 'get'
+ });
+}
+/** 添加出题规则 */
+export function addQuestionRule(data) {
+ return request({
+ url: `/api/questionsRule`,
+ method: 'post',
+ data
+ });
+}
+/** 分页获取规则列表 */
+export function getQustionRuleListPage(params) {
+ return request({
+ url: `/api/questionsRule/paging`,
+ method: 'get',
+ params
+ });
+}
+/** 删除出题规则 */
+export function deleteQuestionRule(id) {
+ return request({
+ url: `/api/questionsRule/${id}`,
+ method: 'delete'
+ });
+}
+/** 查询单个出题规则 */
+export function selectedQuestionRule(id) {
+ return request({
+ url: `/api/questionsRule/${id}`,
+ method: 'get'
+ });
+}
+/** 更改出题规则内容 */
+export function updateQuestionRule(id, data) {
+ return request({
+ url: `/api/questionsRule/${id}`,
+ method: 'put',
+ data: data
+ });
+}
diff --git a/src/i18n/langs/en/router.js b/src/i18n/langs/en/router.js
index fe7e4b7a6..1ecff02c9 100644
--- a/src/i18n/langs/en/router.js
+++ b/src/i18n/langs/en/router.js
@@ -81,5 +81,6 @@ export default {
raceManage: 'Race manage',
practiceManage:'Practice manage',
bankManage: 'Bank manage',
- sceneManage:'Scene manage'
+ sceneManage:'Scene manage',
+ companyManage: 'Company manage'
};
diff --git a/src/i18n/langs/zh/router.js b/src/i18n/langs/zh/router.js
index 9c8e44e11..dc0645d33 100644
--- a/src/i18n/langs/zh/router.js
+++ b/src/i18n/langs/zh/router.js
@@ -86,5 +86,6 @@ export default {
recaList: '报名列表',
bankManage: '题库列表',
practiceManage:'实操列表',
- sceneManage:'场景列表'
+ sceneManage:'场景列表',
+ companyManage: '单位管理'
};
diff --git a/src/router/index_Common.js b/src/router/index_Common.js
index 6c6d49a7f..37d453e0b 100644
--- a/src/router/index_Common.js
+++ b/src/router/index_Common.js
@@ -147,6 +147,7 @@ const JsxtApply = () => import('@/views/jsxt/apply/index');
const RefereeList = () => import('@/views/jsxt/refereeList/index');
const RefereeDisplay = () => import('@/views/jsxt/refereeList/display');
const Approval = () => import('@/views/approval/index');
+const CompanyManage = () => import('@/views/system/companyManage/index');
import { GenerateRouteProjectList } from '@/scripts/ProjectConfig';
// import { getSessionStorage } from '@/utils/auth';
@@ -370,8 +371,8 @@ export const publicAsyncRoute = [
path: '/plan/usertool',
component: PlanMonitorEditUserTool,
hidden: true
- },
- { // 运行图编辑
+ },
+ { // 运行图编辑
path: '/plan/AUStool',
component: PlanMonitorEditAUSTool,
hidden: true
@@ -380,7 +381,7 @@ export const publicAsyncRoute = [
path: '/plan/tool',
component: PlanMonitorEditTool,
hidden: true
- },
+ },
{
path: '/displayIscs/system',
component: IscsSystem,
@@ -796,6 +797,15 @@ export const asyncRouter = [
i18n: 'router.userManage'
}
},
+ {
+ // 单位管理
+ path: 'companyManage',
+ hidden: true,
+ component: CompanyManage,
+ meta: {
+ i18n: 'router.companyManage'
+ }
+ },
{
// 缓存管理
path: 'cache',
@@ -948,8 +958,8 @@ export const asyncRouter = [
},
children: [
{
- path:'design',
- redirect: '/iscs/design/edit',
+ path:'design',
+ redirect: '/iscs/design/edit',
component: IscsDesign,
meta: {
i18n: 'router.iscsDraw',
@@ -962,8 +972,8 @@ export const asyncRouter = [
hidden: true
}
]
- },
- {
+ },
+ {
path: 'system',
component: IscsSystem,
meta: {
diff --git a/src/views/system/companyManage/add.vue b/src/views/system/companyManage/add.vue
new file mode 100644
index 000000000..c776c0ba0
--- /dev/null
+++ b/src/views/system/companyManage/add.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/companyManage/index.vue b/src/views/system/companyManage/index.vue
new file mode 100644
index 000000000..fa6beabad
--- /dev/null
+++ b/src/views/system/companyManage/index.vue
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/userControl/index.vue b/src/views/system/userControl/index.vue
index aab1bcdfc..dd9faddc0 100644
--- a/src/views/system/userControl/index.vue
+++ b/src/views/system/userControl/index.vue
@@ -90,7 +90,8 @@ export default {
}
],
actions: [
- { text: '创建本地用户', btnCode: 'employee_auto', handler: this.createLocalUsers }
+ { text: '创建本地用户', btnCode: 'employee_auto', handler: this.createLocalUsers },
+ { text: '单位管理', btnCode: 'company_manage', handler: this.companyManage }
]
},
currentModel: {}
@@ -132,6 +133,9 @@ export default {
},
createLocalUsers() {
this.$refs.createUser.doShow();
+ },
+ companyManage() {
+ this.$router.push({ path: `/system/companyManage`});
}
}
};