Merge branch 'master' of https://e.coding.net/ctcdevteam/ehs/ehs_web
This commit is contained in:
commit
7af7efad94
|
@ -35,6 +35,16 @@ const routes = [
|
||||||
},
|
},
|
||||||
component: "home/testx",
|
component: "home/testx",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "blank",
|
||||||
|
path: "/blank",
|
||||||
|
meta: {
|
||||||
|
title: "控制台",
|
||||||
|
// icon: "el-icon-monitor",
|
||||||
|
perms: ["home_blank"],
|
||||||
|
},
|
||||||
|
component: "home/blank",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "dashboard",
|
name: "dashboard",
|
||||||
path: "/dashboard",
|
path: "/dashboard",
|
||||||
|
@ -53,7 +63,7 @@ const routes = [
|
||||||
title: "控制台",
|
title: "控制台",
|
||||||
// icon: "el-icon-monitor",
|
// icon: "el-icon-monitor",
|
||||||
affix: true,
|
affix: true,
|
||||||
perms: ["enm"],
|
perms: ["enmdashboard"],
|
||||||
},
|
},
|
||||||
component: "home/enm_home",
|
component: "home/enm_home",
|
||||||
},
|
},
|
||||||
|
@ -2697,6 +2707,39 @@ const routes = [
|
||||||
},
|
},
|
||||||
component: "enm_base/search",
|
component: "enm_base/search",
|
||||||
},
|
},
|
||||||
|
//计算中心
|
||||||
|
{
|
||||||
|
name: "fac_cal",
|
||||||
|
path: "/fac_cal",
|
||||||
|
meta: {
|
||||||
|
title: "计算中心",
|
||||||
|
icon: "el-icon-menu",
|
||||||
|
type: "menu",
|
||||||
|
perms: ["fac_cal"],
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: "/fac_cal/mpointstat",
|
||||||
|
meta: {
|
||||||
|
title: "计算数据",
|
||||||
|
// icon: "el-icon-postcard",
|
||||||
|
type: "menu",
|
||||||
|
perms: ["mpointstat"],
|
||||||
|
},
|
||||||
|
component: "fac_cal/mpointstat",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/fac_cal/caltask",
|
||||||
|
meta: {
|
||||||
|
title: "计算任务",
|
||||||
|
// icon: "el-icon-postcard",
|
||||||
|
type: "menu",
|
||||||
|
perms: ["caltask"],
|
||||||
|
},
|
||||||
|
component: "fac_cal/caltask",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
//基础配置
|
//基础配置
|
||||||
{
|
{
|
||||||
name: "enm_base",
|
name: "enm_base",
|
||||||
|
@ -2720,7 +2763,7 @@ const routes = [
|
||||||
component: "enm_base/team",
|
component: "enm_base/team",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "mgruop",
|
name: "mgroup",
|
||||||
path: "/enm_base/mgruop",
|
path: "/enm_base/mgruop",
|
||||||
meta: {
|
meta: {
|
||||||
title: "工段",
|
title: "工段",
|
||||||
|
@ -2869,6 +2912,16 @@ const routes = [
|
||||||
},
|
},
|
||||||
component: "sys/role",
|
component: "sys/role",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/sys/myschedule",
|
||||||
|
name: "myschedule",
|
||||||
|
meta: {
|
||||||
|
title: "定时策略",
|
||||||
|
type: "menu",
|
||||||
|
perms: ["myschedule"],
|
||||||
|
},
|
||||||
|
component: "sys/myschedule"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/sys/dict",
|
path: "/sys/dict",
|
||||||
name: "dict",
|
name: "dict",
|
||||||
|
|
|
@ -53,9 +53,9 @@
|
||||||
<el-form :model="addForm" :rules="rules" ref="addForm" label-width="100px" label-position="right">
|
<el-form :model="addForm" :rules="rules" ref="addForm" label-width="100px" label-position="right">
|
||||||
<el-form-item label="类型" prop="type">
|
<el-form-item label="类型" prop="type">
|
||||||
<el-radio-group v-model="addForm.type">
|
<el-radio-group v-model="addForm.type">
|
||||||
<el-radio :label="10">模块</el-radio>
|
<el-radio :value="10">模块</el-radio>
|
||||||
<el-radio :label="20">页面</el-radio>
|
<el-radio :value="20">页面</el-radio>
|
||||||
<el-radio :label="30">接口</el-radio>
|
<el-radio :value="30">接口</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="名称" prop="name">
|
<el-form-item label="名称" prop="name">
|
||||||
|
@ -86,6 +86,11 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { genTree } from "@/utils/verificate";
|
import { genTree } from "@/utils/verificate";
|
||||||
|
const dForm = {
|
||||||
|
codes: [],
|
||||||
|
type: 10,
|
||||||
|
sort: 1,
|
||||||
|
};
|
||||||
export default {
|
export default {
|
||||||
name: "dept",
|
name: "dept",
|
||||||
data() {
|
data() {
|
||||||
|
@ -109,14 +114,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
//表单数据
|
//表单数据
|
||||||
addForm: {
|
addForm: this.dForm,
|
||||||
id: "",
|
|
||||||
name: "",
|
|
||||||
codes: [],
|
|
||||||
type: 10,
|
|
||||||
sort: 1,
|
|
||||||
parent: null,
|
|
||||||
},
|
|
||||||
//验证规则
|
//验证规则
|
||||||
rules: {
|
rules: {
|
||||||
name: [{ required: true, message: "请输入名称" }],
|
name: [{ required: true, message: "请输入名称" }],
|
||||||
|
@ -154,7 +152,7 @@ export default {
|
||||||
this.type = "add";
|
this.type = "add";
|
||||||
this.limitedVisible = true;
|
this.limitedVisible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.addForm.resetFields();
|
this.addForm = Object.assign({}, dForm);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//编辑
|
//编辑
|
||||||
|
@ -182,7 +180,6 @@ export default {
|
||||||
// debugger;
|
// debugger;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSaveing = true;
|
this.isSaveing = true;
|
||||||
var res;
|
|
||||||
if (this.type === "add") {
|
if (this.type === "add") {
|
||||||
this.$API.system.permission.create
|
this.$API.system.permission.create
|
||||||
.req(that.addForm)
|
.req(that.addForm)
|
||||||
|
|
Loading…
Reference in New Issue