Commit 7d528119 authored by 陈浩玮's avatar 陈浩玮

Merge branch 'feature/chw' into 'master'

参数

See merge request product/kim3-web-vue/starter-web-vue!14
parents f2ddf640 9b58ab4c
<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
......@@ -54,11 +54,6 @@ const routerMap = {
name: '菜单管理',
component: () => import('@/pages/system/view/menu'),
},
organization_management: {
name: '组织管理',
component: () => import('@/pages/system/view/organization'),
},
user_management: {
name: '用户管理',
component: () => import('@/pages/system/view/user'),
......@@ -67,9 +62,10 @@ const routerMap = {
name: '角色管理',
component: () => import('@/pages/system/view/role'),
},
parameter_management: {
name: '参数管理',
component: () => import('@/pages/system/view/parameter'),
},
// log_management: {
// name: '日志管理',
// component: () => import('@/pages/system/view/log'),
// },
};
export default routerMap;
......@@ -110,7 +110,15 @@ const options = {
{
path: 'parameter_management',
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',
......
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