Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
06d2afa4
Commit
06d2afa4
authored
Sep 14, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
71e24d4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
225 additions
and
27 deletions
+225
-27
base.less
assets/css/base.less
+52
-0
config.js
libs/config.js
+25
-20
index.vue
pages/system/config/index.vue
+148
-7
No files found.
assets/css/base.less
View file @
06d2afa4
...
@@ -12,7 +12,59 @@ html body {
...
@@ -12,7 +12,59 @@ html body {
#__layout {
#__layout {
height: 100%
height: 100%
}
}
/*flex*/
.flex {
display: flex;
//采用flex布局
}
.fc-m {
justify-content: center;
}
.fa-m {
align-items: center;
}
.fc-e {
justify-content: flex-end;
}
.fc-b {
justify-content: space-between;
}
.fc-a {
justify-content: space-around;
}
.fc-ev {
justify-content: space-evenly;
}
.fd {
flex-direction: column;
}
.fg {
flex-grow: 1;
}
.fs {
flex-shrink: 0;
}
.fg2 {
flex-grow: 2;
}
.fos {
order: -1;
}
.foe {
order: 99;
}
/*字体*/
/*字体*/
.ib {
.ib {
display: inline;
display: inline;
...
...
libs/config.js
View file @
06d2afa4
const
config
=
{
const
config
=
{
tenantCode
:
""
,
//租户Id
tenantCode
:
""
,
//租户Id
//站点设置
site
:{
language
:
"zh-cn"
,
//默认语言
password
:
"111111"
,
//系统
passwordRule
:
0
,
//密码规则
loginEditPassword
:
true
,
loginCode
:
false
,
//登陆验证码开启
regCode
:
""
,
//注册邀请码
loginValidHoure
:
24
,
// 登陆有效期设置
bug
:
true
,
exception
:
true
,
exceptionMessage
:
""
,
pageSize
:
20
,
//页面分页大小,
gridType
:
1
,
windowWidth
:
1200
,
//默认页面大小//
windowMove
:
false
,
},
//业务设置
//业务设置
bus
:{
bus
:{
orderStartWarning
:
3
,
//订单开工预警
orderStartWarning
:
24
,
//订单开工预警
orderFinishWarning
:
3
,
//订单完工预警
orderFinishWarning
:
24
,
//订单完工预警
excuteStartWarning
:
3
,
//工单开工预警
excuteStartWarning
:
24
,
//工单开工预警
excuteEndWarning
:
3
,
//工单完工预警
excuteEndWarning
:
24
,
//工单完工预警
storeWarning
:
true
,
//库存预警
storeWarning
:
true
,
//库存预警
multipleHeader
:
true
,
//是否开启多工艺
setHeaderWarning
:
3
,
//工艺设置预警
setHeaderWarning
:
3
,
//工艺设置预警
detailFirst
:
true
,
//工艺设置预警
suportingFinishWarning
:
1
,
//配套完成预警
suportingFinishWarning
:
1
,
//配套完成预警
excuteHandover
:
true
,
//工单交接开关
excuteHandover
:
true
,
//工单交接开关
inenerExcuteHandover
:
false
,
//同车间工单交接开关
inenerExcuteHandover
:
false
,
//同车间工单交接开关
suporting
OverStar
t
:
false
,
//配套完成才能开工
suporting
Firs
t
:
false
,
//配套完成才能开工
},
},
//站点设置
common
:{
language
:
"zh-cn"
,
//默认语言
password
:
"111111"
,
//系统
passwordRule
:
0
,
//密码规则
firstLoginEditPassword
:
true
,
loginValidHoure
:
24
,
// 登陆有效期设置
loginCode
:
0
,
//登陆验证码开启
pageSize
:
20
,
//页面分页大小,
windowWidth
:
1200
,
//默认页面大小//
windowMove
:
false
,
bug
:
false
,
ExceptionWarning
:
true
,
ExceptionMessage
:
""
,
}
}
}
export
default
config
;
export
default
config
;
\ No newline at end of file
pages/system/config/index.vue
View file @
06d2afa4
<
template
>
<
template
>
<div
class=
"config flex
"
>
<div
class=
"config flex"
>
<div
class=
"menu"
>
<div
class=
"menu"
>
<Menu
theme=
"light"
active-name=
"
1-2"
:open-names=
"
site"
>
<Menu
theme=
"light"
active-name=
"site"
>
<MenuItem
name=
"site"
to=
"#site"
>
站点设置
</MenuItem>
<MenuItem
name=
"site"
to=
"#site"
>
站点设置
</MenuItem>
<MenuItem
name=
"bus"
to=
"#bus"
>
业务设置
</MenuItem>
<MenuItem
name=
"bus"
to=
"#bus"
>
业务设置
</MenuItem>
</Menu>
</Menu>
</div>
</div>
<div
class=
"main"
>
<div
class=
"main
fg
"
>
<div
class=
"tool"
>
<div
class=
"tool
tr
"
>
<Button
type=
"primary"
@
click=
"save"
>
保存更改
</Button>
<Button
type=
"primary"
size=
"small"
@
click=
"save"
>
保存
</Button>
<Button
type=
"text"
>
恢复默认
</Button>
<Button
type=
"text"
>
恢复默认
</Button>
</div>
</div>
<Form
ref=
"form"
:model=
"config"
:rules=
"rules"
:label-width=
"1
0
0"
>
<Form
ref=
"form"
:model=
"config"
:rules=
"rules"
:label-width=
"1
2
0"
>
<div
id=
"site"
>
<div
id=
"site"
>
<h3>
站点设置
</h3>
<h3>
站点设置
</h3>
<FormItem
label=
"默认语言"
prop=
"site.language"
>
<Input
v-model=
"config.site.language"
></Input>
</FormItem>
<FormItem
label=
"默认密码"
prop=
"site.password"
>
<Input
v-model=
"config.site.password"
></Input>
</FormItem>
<FormItem
label=
"密码规则"
prop=
"site.password"
>
<RadioGroup
v-model=
"config.site.passwordRule"
>
<Radio
:label=
"0"
>
简易
</Radio>
<Radio
:label=
"1"
>
中级
<span
class=
"tip"
>
密码长度6位以上
</span></Radio>
<Radio
:label=
"2"
>
高级
<span
class=
"tip"
>
密码需要包含数字字母和特殊字符,长度8位以上
</span>
</Radio>
</RadioGroup>
</FormItem>
<FormItem
label=
"密码安全校验"
>
<i-switch
v-model=
"config.site.loginEditPassword"
/>
<span
class=
"tip"
>
开启后,用户密码安全级别低时,登陆后强制修改密码
</span>
</FormItem>
<FormItem
label=
"验证码"
>
<i-switch
v-model=
"config.site.loginCode"
/>
<span
class=
"tip"
>
开启后用户登陆需要输入验证码
</span>
</FormItem>
<FormItem
label=
"注册邀请码"
>
<Input
v-model=
"config.site.regCode"
></Input>
<span
class=
"tip"
>
1.为空时:不对外开放注册;2.设置为“666”时用户免输入注册邀请码就可以进行注册;3.其它情况,注册时需要输入注册邀请码
</span>
</FormItem>
<FormItem
label=
"登陆有效期"
>
<InputNumber
v-model=
"config.site.loginValidHoure"
:min=
"1"
:max=
"2400"
></InputNumber>
<span
class=
"tip"
>
单位为小时,设置后用户登陆此时长后自动过期
</span>
</FormItem>
<FormItem
label=
"Bug反馈"
>
<i-switch
v-model=
"config.site.bug"
/>
<span
class=
"tip"
>
开启后,用户可以提交bug并管理自己的bug
</span>
</FormItem>
<FormItem
label=
"异常管理"
>
<i-switch
v-model=
"config.site.exception"
/>
<span
class=
"tip"
>
开启后可以查看系统异常
</span>
</FormItem>
<FormItem
label=
"异常消息"
>
<Input
v-model=
"config.site.exceptionMessage"
></Input>
<span
class=
"tip"
>
设置后,接口发生异常,统一返回次内容。为空时返回系统异常
</span>
</FormItem>
<FormItem
label=
"列表显示方式"
>
<RadioGroup
v-model=
"config.site.gridType"
>
<Radio
:label=
"0"
>
表格
</Radio>
<Radio
:label=
"1"
>
卡片
</Radio>
<!--
<Radio
label=
"2"
>
无限下拉
</Radio>
-->
</RadioGroup>
</FormItem>
<FormItem
label=
"默认分页大小"
>
<Select
v-model=
"config.site.pageSize"
>
<Option
:value=
"20"
>
每页20条
</Option>
<Option
:value=
"50"
>
每页50条
</Option>
<Option
:value=
"100"
>
每页100条
</Option>
</Select>
</FormItem>
<FormItem
label=
"弹窗宽度"
>
<InputNumber
v-model=
"config.site.windowWidth"
:min=
"1"
:max=
"2400"
></InputNumber>
<span
class=
"tip"
>
设置弹窗页面宽度
</span>
</FormItem>
<FormItem
label=
"弹窗移动"
>
<i-switch
v-model=
"config.site.windowMove"
/>
<span
class=
"tip"
>
开启后弹框可以进行移动
</span>
</FormItem>
</div>
</div>
<div
id=
"bus"
>
<div
id=
"bus"
>
<h3>
业务设置
</h3>
<h3>
业务设置
</h3>
<FormItem
label=
"订单开工预警"
>
<InputNumber
v-model=
"config.bus.orderStartWarning"
:min=
"0"
:max=
"2400"
/>
<span
class=
"tip"
>
单位为小时,为0时不预警;大于0进行预警
</span>
</FormItem>
<FormItem
label=
"订单完工预警"
>
<InputNumber
v-model=
"config.bus.orderFinishWarning"
:min=
"0"
:max=
"2400"
/>
<span
class=
"tip"
>
单位为小时,为0时不预警;大于0进行预警
</span>
</FormItem>
<FormItem
label=
"工单开工预警"
>
<InputNumber
v-model=
"config.bus.excuteStartWarning"
:min=
"0"
:max=
"2400"
/>
<span
class=
"tip"
>
单位为小时,为0时不预警;大于0进行预警
</span>
</FormItem>
<FormItem
label=
"工单完工预警"
>
<InputNumber
v-model=
"config.bus.excuteEndWarning"
:min=
"0"
:max=
"2400"
/>
<span
class=
"tip"
>
单位为小时,为0时不预警;大于0进行预警
</span>
</FormItem>
<FormItem
label=
"库存预警"
>
<i-switch
v-model=
"config.site.storeWarning"
/>
</FormItem>
<FormItem
label=
"多工艺"
>
<i-switch
v-model=
"config.bus.multipleHeader"
/>
<span
class=
"tip"
>
开启后,一个生产计划可以设置多本工艺规程
</span>
</FormItem>
<FormItem
label=
"按序执行"
>
<i-switch
v-model=
"config.bus.detailFirst"
/>
<span
class=
"tip"
>
开启后,工单执行必须按照工序次序先后次序执行;关闭后,工单可以不按工序次序执行。
</span>
</FormItem>
<FormItem
label=
"工艺设置预警"
>
<InputNumber
v-model=
"config.bus.setHeaderWarning"
:min=
"0"
:max=
"2400"
/>
<span
class=
"tip"
>
单位为小时,为0时不预警;大于0进行预警
</span>
</FormItem>
<FormItem
label=
"配套完成预警"
>
<InputNumber
v-model=
"config.bus.setHeaderWarning"
:min=
"0"
:max=
"2400"
/>
<span
class=
"tip"
>
单位为小时,为0时不预警;大于0进行预警
</span>
</FormItem>
<FormItem
label=
"转序交接"
>
<i-switch
v-model=
"config.bus.excuteHandover"
/>
<span
class=
"tip"
>
开启后,工单转序必须进行交接
</span>
</FormItem>
<FormItem
label=
"同车间转序交接"
>
<i-switch
v-model=
"config.bus.inenerExcuteHandover"
/>
<span
class=
"tip"
>
开启后,同车间工单转序必须进行交接
</span>
</FormItem>
<FormItem
label=
"配套前置"
>
<i-switch
v-model=
"config.site.suportingFirst"
/>
<span
class=
"tip"
>
开启配套前置后,工单只有完成配套才可以进行开工
</span>
</FormItem>
</div>
</div>
</Form>
</Form>
</div>
</div>
...
@@ -24,11 +136,12 @@
...
@@ -24,11 +136,12 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
config
from
"~/libs/config"
;
export
default
{
export
default
{
name
:
""
,
name
:
""
,
data
()
{
data
()
{
return
{
return
{
config
:
null
,
config
:
config
,
rules
:
{},
rules
:
{},
};
};
},
},
...
@@ -40,4 +153,32 @@ export default {
...
@@ -40,4 +153,32 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
.config {
height: 100%;
.menu {
width: 240px;
border-right: 1px solid #ddd;
position: relative;
.ivu-menu{
z-index: 10;
position: absolute;
width: 100%;
top:5px;
}
}
.main {
margin: 0px -10px;
padding: 10px 20px;
h3 {
font-size: 16px;
}
.tip{
font-size: 13px;
color: #999;
font-style: italic;
}
height: calc(100vh - 150px);
overflow-y: auto;
}
}
</
style
>
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment