Commit 3cea87e9 authored by 陈浩玮's avatar 陈浩玮

参数

parent abb327f5
<template>
<h1>Menu Management</h1>
</template>
\ No newline at end of file
import OrgManagement from './OrgManagement';
export default OrgManagement;
\ No newline at end of file
<template>
<h1>Menu Management</h1>
</template>
\ No newline at end of file
<template>
<a-form-model layout="vertical" :model="form" :rules="rules" ref="DrawerForm">
<a-form-model-item label="名称" prop="jobName">
<a-input v-model="form.jobName" :disabled="isView" />
</a-form-model-item>
<a-form-model-item label="描述" prop="jobDescription">
<a-textarea v-model="form.jobDescription" :disabled="isView" :rows="4" />
</a-form-model-item>
</a-form-model>
</template>
<script>
import JobsApi from '@/api/organization';
import FormMixin from '@/components/FormMixin';
export default {
mixins: [FormMixin],
data() {
return {
rules: {
jobName: [{ required: true, message: 'Please select Activity zone', trigger: 'change' }],
jobDescription: [
{ required: true, message: 'Please select Activity zone', trigger: 'change' },
],
},
};
},
methods: {
add() {
return JobsApi.addJobs({ ...this.form });
},
edit() {
return JobsApi.updateJobs({ ...this.form });
},
},
};
</script>
<template>
<my-table url="/api/v1/parameters/business" rowKey="paramId" :addBtn="addBtn" ref="table">
<template #drawer>
<Form ref="form" />
</template>
<template #search="{ query }">
<MyFormModelItem label="归属部门">
<a-input v-model="query.jobName" />
</MyFormModelItem>
</template>
<a-table-column title="语言" data-index="paramLocale" />
<a-table-column title="参数模块" data-index="paramModule" />
<a-table-column title="参数编码" data-index="paramCode" />
<a-table-column title="参数值" data-index="paramValue" />
<a-table-column title="参数名称" data-index="paramName" />
<a-table-column title="说明" data-index="remark" />
<a-table-column title="显示顺序" data-index="paramIndex" />
<a-table-column title="操作">
<template #default="row">
<a @click="() => view(row, 1)">编辑</a>
<a-divider type="vertical" />
<PopconfirmDelete :url="`/api/v1/jobs/${row.jobId}`" :cb="refreshTable" />
</template>
</a-table-column>
</my-table>
</template>
<script>
import Form from './form.vue';
import PopconfirmDelete from '@/components/popconfirm_delete/index.vue';
import MyFormModelItem from '@/components/table/my_item.vue';
import { globalConfig } from '@/config';
export default {
components: { Form, PopconfirmDelete, MyFormModelItem },
data() {
return {
addBtn: { width: 600, onOk: () => this.$refs['form']?.submit() },
langList: globalConfig.langs,
};
},
mounted() {
console.log(this.langList);
},
methods: {
refreshTable() {
this.$refs['table']?.getData();
},
view(data, type) {
this.$refs['table']?.show({ type });
this.$nextTick(() => {
this.$refs['form'].setData({ ...data }, type);
});
},
},
};
</script>
\ No newline at end of file
import ParamManagement from './ParamManagement';
export default ParamManagement;
\ No newline at end of file
// 视图组件 // 视图组件
const view = { const view = {
tabs: () => import('@/pages/frame/view/template/TabsTemplateView'), tabs: () => import('@/pages/frame/view/template/TabsTemplateView'),
...@@ -20,20 +19,20 @@ const routerMap = { ...@@ -20,20 +19,20 @@ const routerMap = {
component: view.tabs, component: view.tabs,
}, },
exp403: { exp403: {
authority: "*", authority: '*',
name: "403错误", name: '403错误',
path: "403", path: '403',
component: () => import("@/pages/frame/view/exception/403"), component: () => import('@/pages/frame/view/exception/403'),
}, },
exp404: { exp404: {
name: "404错误", name: '404错误',
path: "404", path: '404',
component: () => import("@/pages/frame/view/exception/404"), component: () => import('@/pages/frame/view/exception/404'),
}, },
exp500: { exp500: {
name: "500错误", name: '500错误',
path: "500", path: '500',
component: () => import("@/pages/frame/view/exception/500"), component: () => import('@/pages/frame/view/exception/500'),
}, },
dashboard: { dashboard: {
name: 'Dashboard', name: 'Dashboard',
...@@ -56,10 +55,10 @@ const routerMap = { ...@@ -56,10 +55,10 @@ const routerMap = {
component: () => import('@/pages/system/view/menu'), component: () => import('@/pages/system/view/menu'),
}, },
organization_management: { // organization_management: {
name: '组织管理', // name: '组织管理',
component: () => import('@/pages/system/view/organization'), // component: () => import('@/pages/system/view/organization'),
}, // },
user_management: { user_management: {
name: '用户管理', name: '用户管理',
component: () => import('@/pages/system/view/user'), component: () => import('@/pages/system/view/user'),
...@@ -68,10 +67,10 @@ const routerMap = { ...@@ -68,10 +67,10 @@ const routerMap = {
name: '角色管理', name: '角色管理',
component: () => import('@/pages/system/view/role'), component: () => import('@/pages/system/view/role'),
}, },
parameter_management: { // parameter_management: {
name: '参数管理', // name: '参数管理',
component: () => import('@/pages/system/view/parameter'), // component: () => import('@/pages/system/view/parameter'),
}, // },
log_management: { log_management: {
name: '日志管理', name: '日志管理',
component: () => import('@/pages/system/view/log'), component: () => import('@/pages/system/view/log'),
......
...@@ -110,7 +110,15 @@ const options = { ...@@ -110,7 +110,15 @@ const options = {
{ {
path: 'parameter_management', path: 'parameter_management',
name: '参数管理', name: '参数管理',
component: () => import('@/pages/system/view/parameter'), component: BlankTemplateView,
children: [
{
path: 'business_management',
name: '业务参数',
component: () =>
import('@/pages/system/view/parameter/business/index.vue'),
},
],
}, },
{ {
path: 'log_management', path: 'log_management',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment