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
240e35bc
Commit
240e35bc
authored
Jul 28, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
4f9a288a
ac0167c7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
379 additions
and
82 deletions
+379
-82
index.vue
pages/account/login/index.vue
+3
-0
index.vue
pages/aps/ai/index.vue
+75
-72
api.js
pages/aps/aps/api.js
+9
-4
index.vue
pages/demo/operate/index.vue
+18
-0
index.vue
pages/demo/plan/index.vue
+13
-3
index.vue
pages/resourceManagement/train/index.vue
+255
-0
index.js
plugins/request/index.js
+4
-2
account.js
store/admin/account.js
+2
-1
No files found.
pages/account/login/index.vue
View file @
240e35bc
...
...
@@ -82,6 +82,9 @@ export default {
}
else
{
this
.
$Message
.
error
(
"登录失败!"
);
}
}).
catch
(
e
=>
{
console
.
log
(
e
)
// this.$Message.error(e.message)
});
}
},
...
...
pages/aps/ai/index.vue
View file @
240e35bc
This diff is collapsed.
Click to expand it.
pages/aps/aps/api.js
View file @
240e35bc
...
...
@@ -121,16 +121,21 @@ export default {
},
//保存外协任务工期
saveoutsidetime
(
params
)
{
return
Api
.
post
(
`
${
apsUrl
}
/apspoolappservices/saveoutsidetime
`
,
params
)
return
Api
.
post
(
`
${
apsUrl
}
/apspoolappservices/saveoutsidetime`
,
params
)
},
//保存插单任务
saveinsertorder
(
params
)
{
return
Api
.
post
(
`
${
apsUrl
}
/apspoolappservices/saveinsertorder
`
,
params
)
return
Api
.
post
(
`
${
apsUrl
}
/apspoolappservices/saveinsertorder`
,
params
)
},
//取消插单任务
cancelinsertorder
(
params
)
{
return
Api
.
post
(
`
${
apsUrl
}
/apspoolappservices/cancelinsertorder
`
,
params
)
return
Api
.
post
(
`
${
apsUrl
}
/apspoolappservices/cancelinsertorder`
,
params
)
},
//修改外协工期相关end-----
//智能排产start----
aischedule
(
params
)
{
return
Api
.
post
(
`
${
apsUrl
}
/aps/aischedule`
,
params
)
},
//智能排产end----
}
pages/demo/operate/index.vue
View file @
240e35bc
...
...
@@ -98,6 +98,13 @@
<Option
value=
"shenzhen"
>
贵阳客运段
</Option>
</Select>
</FormItem>
<FormItem
label=
"来源类型"
>
<RadioGroup
v-model=
"formItem.radio3"
>
<Radio
label=
"1"
>
调图电报
</Radio>
<Radio
label=
"2"
>
临时调度
</Radio>
<Radio
label=
"3"
>
其他
</Radio>
</RadioGroup>
</FormItem>
<FormItem
label=
"编组"
>
<RadioGroup
v-model=
"formItem.radio"
>
<Radio
label=
"male"
>
重编
</Radio>
...
...
@@ -105,6 +112,7 @@
<Radio
label=
"female"
>
长编
</Radio>
</RadioGroup>
</FormItem>
<FormItem
label=
"车次类型"
>
<RadioGroup
v-model=
"formItem.radio1"
>
<Radio
label=
"male"
>
日常
</Radio>
...
...
@@ -153,6 +161,7 @@ export default {
time
:
""
,
slider
:
[
20
,
50
],
textarea
:
""
,
radio3
:
"1"
,
},
modal
:
false
,
modal1
:
false
,
...
...
@@ -192,6 +201,10 @@ export default {
title
:
"运营里程(公里)"
,
key
:
"a4"
,
},
{
title
:
"来源类型"
,
key
:
"a10"
,
},
{
title
:
"编组"
,
key
:
"a5"
,
...
...
@@ -275,6 +288,7 @@ export default {
"5.10、5.11、5.15、5.16、5.17、5.18、5.22、5.23、5.24、5.25、5.29、5.30、5.31"
,
a8
:
"否"
,
a9
:
""
,
a10
:
"调图电报"
,
},
{
name
:
"D8592"
,
...
...
@@ -290,6 +304,7 @@ export default {
"5.10、5.11、5.15、5.16、5.17、5.18、5.22、5.23、5.24、5.25、5.29、5.30、5.31"
,
a8
:
"有"
,
a9
:
""
,
a10
:
"调图电报"
,
},
{
name
:
"D8591"
,
...
...
@@ -305,6 +320,7 @@ export default {
"5.10、5.11、5.15、5.16、5.17、5.18、5.22、5.23、5.24、5.25、5.29、5.30、5.31"
,
a8
:
"有"
,
a9
:
""
,
a10
:
"临时调度"
,
},
{
name
:
"C6691"
,
...
...
@@ -319,6 +335,7 @@ export default {
a7
:
"长期"
,
a8
:
"否"
,
a9
:
""
,
a10
:
"其他"
,
},
{
name
:
"G8641"
,
...
...
@@ -334,6 +351,7 @@ export default {
"5.10、5.11、5.15、5.16、5.17、5.18、5.22、5.23、5.24、5.25、5.29、5.30、5.31"
,
a8
:
"否"
,
a9
:
"临时"
,
a10
:
"调图电报"
,
},
],
};
...
...
pages/demo/plan/index.vue
View file @
240e35bc
...
...
@@ -7,7 +7,7 @@
<Input
type=
"text"
v-model=
"formInline.name"
placeholder=
"请输入车次"
></Input>
</FormItem>
</Col>
<Col
span=
"4"
>
<Col
span=
"4"
>
<FormItem
prop=
"company"
label=
"始发站"
>
<Select
v-model=
"formInline.company"
style=
"width:200px"
>
<Option
value=
"beijing"
>
贵阳北
</Option>
...
...
@@ -54,7 +54,7 @@
<FormItem
label=
"车次"
>
<Input
v-model=
"formItem.input"
placeholder=
"请输入车次"
></Input>
</FormItem>
<FormItem
prop=
"company"
label=
"始发站"
>
<FormItem
prop=
"company"
label=
"始发站"
>
<Select
v-model=
"formItem.company"
style=
"width:200px"
>
<Option
value=
"beijing"
>
贵阳北
</Option>
<Option
value=
"shanghai"
>
重庆西
</Option>
...
...
@@ -92,7 +92,7 @@
</FormItem>
<FormItem
prop=
"company1"
label=
"担当车辆段"
>
<Select
v-model=
"formItem.company3"
>
<Option
value=
"beijing"
>
贵阳客运段
</Option>
<Option
value=
"beijing"
>
贵阳客运段
</Option>
<Option
value=
"shanghai"
>
贵阳车辆段
</Option>
<Option
value=
"shenzhen"
>
贵阳客运段
</Option>
</Select>
...
...
@@ -166,6 +166,11 @@ export default {
title
:
"车次"
,
key
:
"name"
,
},
{
title
:
"列车号"
,
key
:
"name1"
,
width
:
130
,
},
{
title
:
"始发站"
,
key
:
"a2"
,
...
...
@@ -262,6 +267,7 @@ export default {
data
:
[
{
name
:
"G8642"
,
name1
:
"CR200J30001"
,
startTime
:
"17:26"
,
a2
:
"贵阳北"
,
a
:
"成都东"
,
...
...
@@ -277,6 +283,7 @@ export default {
},
{
name
:
"D8592"
,
name1
:
"CR200J30013"
,
startTime
:
"11:40"
,
a2
:
"贵阳北"
,
a
:
"重庆西"
,
...
...
@@ -292,6 +299,7 @@ export default {
},
{
name
:
"D8591"
,
name1
:
"CR200J30009"
,
startTime
:
"14:16"
,
a2
:
"重庆西"
,
a
:
"贵阳北"
,
...
...
@@ -307,6 +315,7 @@ export default {
},
{
name
:
"C6691"
,
name1
:
"CR200J30008"
,
startTime
:
"13:32"
,
a2
:
"广元"
,
a
:
"成都东"
,
...
...
@@ -321,6 +330,7 @@ export default {
},
{
name
:
"G8641"
,
name1
:
"CR200J30012"
,
startTime
:
"17:26"
,
a2
:
"成都东"
,
a
:
"贵阳北"
,
...
...
pages/resourceManagement/train/index.vue
0 → 100644
View file @
240e35bc
<
template
>
<div
class=
"train"
>
<Row
:gutter=
"16"
style=
"margin-bottom:10px"
>
<Col
span=
"4"
>
<Input
v-model=
"keys"
search
placeholder=
"请输入车辆编号"
clearable
/>
</Col>
<Col
span=
"20"
style=
"text-align:right"
>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</Col>
</Row>
<Table
border
:columns=
"columns"
:data=
"projectList"
></Table>
<Modal
v-model=
"modal"
:title=
"title"
@
on-ok=
"ok"
@
on-cancel=
"cancel"
width=
"600"
>
<Form
:model=
"formItem"
:label-width=
"100"
>
<FormItem
label=
"车辆编号"
>
<Input
v-model=
"formItem.name"
placeholder=
"请输入车辆编号"
></Input>
</FormItem>
<FormItem
label=
"车辆类型"
>
<Select
v-model=
"formItem.name1"
style=
"width:200px"
>
<Option
value=
"1"
>
CR2001
</Option>
<Option
value=
"2"
>
CR200J
</Option>
<Option
value=
"3"
>
CR2008
</Option>
</Select>
</FormItem>
<FormItem
label=
"类型编号"
>
<Input
v-model=
"formItem.a2"
placeholder=
"请输入类型编号"
></Input>
</FormItem>
<FormItem
label=
"生产厂家"
>
<Select
v-model=
"formItem.a"
style=
"width:200px"
>
<Option
value=
"1"
>
长客
</Option>
<Option
value=
"2"
>
唐厂
</Option>
</Select>
</FormItem>
<FormItem
label=
"出厂时间"
>
<DatePicker
type=
"date"
placeholder=
"Select startTime"
v-model=
"formItem.startTime"
style=
"width: 408px"
></DatePicker>
</FormItem>
<FormItem
label=
"配属时间"
>
<DatePicker
type=
"date"
placeholder=
"Select startTime"
v-model=
"formItem.a1"
style=
"width: 408px"
></DatePicker>
</FormItem>
</Form>
</Modal>
</div>
</
template
>
<
script
>
export
default
{
name
:
""
,
data
()
{
return
{
title
:
""
,
formInline
:
{
name
:
""
,
},
keys
:
""
,
formItem
:
{
name
:
""
,
name1
:
""
,
startTime
:
""
,
a2
:
""
,
a
:
""
,
a1
:
""
,
},
modal
:
false
,
modal1
:
false
,
columns
:
[
{
title
:
"序号"
,
type
:
"index"
,
width
:
60
,
align
:
"center"
,
},
{
title
:
"车辆编号"
,
key
:
"name"
,
},
{
title
:
"车辆类型"
,
key
:
"name1"
,
},
{
title
:
"类型编号"
,
key
:
"a2"
,
},
{
title
:
"生产厂家"
,
key
:
"a"
,
},
{
title
:
"出厂时间"
,
key
:
"startTime"
,
},
{
title
:
"配属时间"
,
key
:
"a1"
,
},
{
title
:
"操作"
,
key
:
"action"
,
width
:
120
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
h
(
"op"
,
{
props
:
{
type
:
"detail"
,
size
:
"small"
,
},
style
:
{
marginRight
:
"5px"
,
},
on
:
{
click
:
()
=>
{
this
.
edit
(
params
.
row
);
},
},
},
"编辑"
),
h
(
"op"
,
{
props
:
{
type
:
"detail"
,
size
:
"small"
,
},
style
:
{
marginRight
:
"5px"
,
},
on
:
{
click
:
()
=>
{
this
.
remover
(
params
.
index
);
},
},
},
"删除"
),
]);
},
},
],
data
:
[
{
name
:
"CR200J3001"
,
name1
:
"CR200J"
,
startTime
:
"2017-02-05"
,
a2
:
"003"
,
a
:
"长客"
,
a1
:
"2018-03-01"
,
},
{
name
:
"CR200J3003"
,
name1
:
"CR200J"
,
startTime
:
"2017-02-15"
,
a2
:
"003"
,
a
:
"长客"
,
a1
:
"2018-03-01"
,
},
{
name
:
"CR200J1009"
,
name1
:
"CR200J"
,
startTime
:
"2017-02-15"
,
a2
:
"001"
,
a
:
"唐厂"
,
a1
:
"2018-03-01"
,
},
{
name
:
"CR200J1021"
,
name1
:
"CR200J"
,
startTime
:
"2017-02-09"
,
a2
:
"001"
,
a
:
"唐厂"
,
a1
:
"2018-03-01"
,
},
],
};
},
computed
:
{
projectList
()
{
return
this
.
data
.
filter
((
u
)
=>
{
return
u
.
name
.
indexOf
(
this
.
keys
)
>
-
1
;
});
},
},
methods
:
{
handleSubmit
(
name
)
{
this
.
$refs
[
name
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$Message
.
success
(
"Success!"
);
}
else
{
this
.
$Message
.
error
(
"Fail!"
);
}
});
},
reset
()
{},
add
()
{
this
.
title
=
"新建"
;
this
.
modal
=
true
;
},
edit
(
row
)
{
console
.
log
(
row
);
this
.
title
=
"编辑"
;
this
.
modal
=
true
;
this
.
formItem
.
name
=
row
.
name
;
this
.
formItem
.
startTime
=
row
.
startTime
;
this
.
formItem
.
a2
=
row
.
a2
;
this
.
formItem
.
a1
=
row
.
a1
;
this
.
formItem
.
name1
=
"2"
;
if
(
row
.
a
==
"唐厂"
)
{
this
.
formItem
.
a
=
"2"
;
}
else
{
this
.
formItem
.
a
=
"1"
;
}
},
remover
()
{
this
.
$Modal
.
confirm
({
title
:
"删除"
,
content
:
"<p>您确定删除此信息?</p>"
,
onOk
:
()
=>
{
this
.
$Message
.
info
(
"Clicked ok"
);
},
onCancel
:
()
=>
{
this
.
$Message
.
info
(
"Clicked cancel"
);
},
});
},
ok
()
{
this
.
$Message
.
info
(
"Clicked ok"
);
},
cancel
()
{
this
.
$Message
.
info
(
"Clicked cancel"
);
},
},
};
</
script
>
<
style
lang=
"less"
>
.train {
padding-top: 10px;
.ivu-form-item-content {
float: left;
}
}
</
style
>
\ No newline at end of file
plugins/request/index.js
View file @
240e35bc
...
...
@@ -134,12 +134,13 @@ service.interceptors.response.use(
},
error
=>
{
const
token
=
sessionStorage
.
getItem
(
'token'
);
if
(
!
token
)
{
if
(
!
token
&&!
error
&&
!
error
.
response
)
{
window
.
location
.
href
=
'/account/login'
;
return
;
}
if
(
error
&&
error
.
response
)
{
// return;
if
(
error
.
response
.
status
==
"401"
)
{
window
.
location
.
href
=
'/account/login'
;
return
;
...
...
@@ -183,6 +184,7 @@ service.interceptors.response.use(
}
}
errorLog
(
error
);
return
Promise
.
reject
(
error
);
}
...
...
store/admin/account.js
View file @
240e35bc
...
...
@@ -57,7 +57,8 @@ export const actions = {
})
.
catch
(
err
=>
{
// console.log('err: ', err);
//console.log('erraaa: ', err);
reject
(
err
);
})
})
...
...
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