Commit 682abdae by liimin

Merge branch 'master' of http://192.168.3.233:8090/glsx-web/tFIMS

2 parents f1bad5d6 da376319
......@@ -24,7 +24,8 @@ export const home = {
meta: {
title: '系统监控',
authId: '101',
parentId: '0'
parentId: '0',
cache: true
},
component: _import('systemMonitor'),
auth: [{
......@@ -70,11 +71,12 @@ export const resources = {
'102': {
path: '/trafficManagement',
icon: 'truck',
name: '车辆管理',
name: 'fimsTrafficManagement',
meta: {
title: '车辆管理',
authId: '102',
parentId: '0'
parentId: '0',
cache: true
},
component: _import('trafficManagement'),
auth: [{
......@@ -100,11 +102,12 @@ export const resources = {
'103': {
path: '/subSysManagement',
icon: 'cpu',
name: '子系统管理',
name: 'fimsSubSysManagement',
meta: {
title: '子系统管理',
authId: '103',
parentId: '0'
parentId: '0',
cache: true
},
component: _import('subSysManagement'),
auth: [{
......@@ -130,11 +133,12 @@ export const resources = {
'104': {
path: '/deviceManagement',
icon: 'takeaway-box',
name: '物料管理',
name: 'fimsDeviceManagement',
meta: {
title: '物料管理',
authId: '104',
parentId: '0'
parentId: '0',
cache: true
},
component: _import('deviceManagement'),
auth: [{
......@@ -167,11 +171,12 @@ export const resources = {
'105': {
path: 'materialList',
icon: 'tickets',
name: '物料列表',
name: 'fimsMaterialList',
meta: {
title: '物料列表',
authId: '105',
parentId: '0'
parentId: '0',
cache: true
},
component: _import('materialList')
},
......@@ -188,11 +193,12 @@ export const resources = {
'10601': {
path: '/materiaOrderManagement',
icon: 'document-copy',
name: '物料订单管理',
name: 'fimsMateriaOrderManagement',
meta: {
title: '物料订单管理',
authId: '10601',
parentId: '106'
parentId: '106',
cache: true
},
component: _import('materiaOrderManagement'),
auth: [{
......@@ -218,11 +224,12 @@ export const resources = {
'10602': {
path: '/maintainManagement',
icon: 'finished',
name: '作业单管理',
name: 'fimsMaintainManagement',
meta: {
title: '作业单管理',
authId: '10602',
parentId: '106'
parentId: '106',
cache: true
},
component: _import('maintainManagement'),
auth: [{
......
......@@ -154,7 +154,7 @@ export default {
methods: {
async isCodeExist (rule, value, callback) {
if (this.deviceNum === value && this.deviceName === this.editForm.deviceName) {
if (this.deviceNum !== value && this.deviceName !== this.editForm.deviceName) {
const res = await isExistApi({ deviceNum: value, deviceName: this.editForm.deviceName, stationCode: this.editForm.stationCode })
// console.log(res)
res.deviceNum ? callback(new Error(rule.message)) : callback()
......
......@@ -121,7 +121,7 @@ import notice from '@/common/notice'
import qs from 'qs'
import sign from '@api/sign'
export default {
name: 'deviceManagement',
name: 'fimsDeviceManagement',
components: {
EditDialog
},
......
......@@ -118,7 +118,7 @@ import { getListApi, removeApi, exportApi } from '@api/maintainManagement'
import { mapActions } from 'vuex'
import notice from '@/common/notice'
export default {
name: 'maintainManagement',
name: 'fimsMaintainManagement',
data () {
return {
// 搜索
......
......@@ -120,7 +120,7 @@ import DetailDialog from './detailDialog'
import { getListApi, detailApi, removeApi, exportApi, downloadApi } from '@api/materiaOrderManagement'
import notice from '@/common/notice'
export default {
name: 'materiaOrderManagement',
name: 'fimsMateriaOrderManagement',
components: {
DetailDialog
},
......@@ -295,7 +295,7 @@ export default {
orderCode: row.orderCode
}).then(res => {
// console.log(res)
this.dialogTitle = row.orderType == 1 ? '物料申请' : '物料报废'
this.dialogTitle = row.orderType === 1 ? '物料申请' : '物料报废'
this.pdfUrl = res.url
this.detailVisible = !this.detailVisible
}).catch(() => {
......
......@@ -65,7 +65,7 @@
import { getListApi } from '@api/materialList'
import notice from '@/common/notice'
export default {
name: 'materialList',
name: 'fimsMaterialList',
data () {
return {
searchForm: {
......
......@@ -113,7 +113,7 @@ import { BaseData } from '@/common/constants'
import { getListApi, methods, editApi, removeApi } from '@api/subSysManagement'
import notice from '@/common/notice'
export default {
name: 'subSysManagement',
name: 'fimsSubSysManagement',
components: {
EditDialog
},
......
......@@ -128,7 +128,7 @@ import { cloneDeep } from 'lodash'
// let echarts = require('echarts/lib/echarts')
export default {
name: 'systemMonitor',
name: 'index',
data () {
return {
subSystemRadio: '全部',
......
......@@ -116,7 +116,7 @@ import { BaseData } from '@/common/constants'
import { getListApi, methods, editApi, removeApi } from '@api/trafficManagement'
import notice from '@/common/notice'
export default {
name: 'trafficManagement',
name: 'fimsTrafficManagement',
components: {
EditDialog
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!