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
a2c243e4
Commit
a2c243e4
authored
Apr 21, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product-rjt
parents
bfb1ee38
39328ab1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
478 additions
and
304 deletions
+478
-304
dataGrid.vue
components/page/dataGrid.vue
+3
-4
index.vue
pages/account/login/index.vue
+2
-2
dispatch.less
pages/aps/dispatch/dispatch.less
+7
-0
index.vue
pages/aps/dispatch/index.vue
+307
-291
api.js
pages/resourceManagement/productionResources/api.js
+3
-0
index.vue
pages/resourceManagement/productionResources/index.vue
+105
-6
index.js
plugins/request/index.js
+1
-1
Dockerfile
static/Dockerfile
+7
-0
nginx.conf
static/nginx.conf
+43
-0
No files found.
components/page/dataGrid.vue
View file @
a2c243e4
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
<slot
name=
"batch"
></slot>
<slot
name=
"batch"
></slot>
</div>
</div>
<Button
@
click=
"cancelFooterToolbar"
>
取消
</Button>
<Button
@
click=
"cancelFooterToolbar"
class=
"btn"
>
取消
</Button>
</FooterToolbar>
</FooterToolbar>
</div>
</div>
</
template
>
</
template
>
...
@@ -477,10 +477,9 @@ export default {
...
@@ -477,10 +477,9 @@ export default {
selectAll
(
status
)
{
selectAll
(
status
)
{
this
.
$refs
.
table
.
selectAll
(
status
);
this
.
$refs
.
table
.
selectAll
(
status
);
},
},
cancelFooterToolbar
()
cancelFooterToolbar
()
{
{
this
.
$refs
.
table
.
selectAll
(
false
);
this
.
$refs
.
table
.
selectAll
(
false
);
this
.
footerToolbar
=
false
this
.
footerToolbar
=
false
;
}
}
},
},
computed
:
{
computed
:
{
...
...
pages/account/login/index.vue
View file @
a2c243e4
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
<div
class=
"bg bg3"
>
1
</div>
<div
class=
"bg bg3"
>
1
</div>
</CarouselItem>
</CarouselItem>
</Carousel>
</Carousel>
<div
v-if=
"showI18n"
class=
"page-account-header"
>
<
!--
<
div
v-if=
"showI18n"
class=
"page-account-header"
>
<i-header-i18n
/>
<i-header-i18n
/>
</div>
</div>
-->
<div
class=
"main"
>
<div
class=
"main"
>
<div
class=
"ad"
>
<div
class=
"ad"
>
<img
src=
"@/assets/images/login/ad.png"
/>
<img
src=
"@/assets/images/login/ad.png"
/>
...
...
pages/aps/dispatch/dispatch.less
View file @
a2c243e4
...
@@ -31,6 +31,13 @@
...
@@ -31,6 +31,13 @@
.dispatch_part_body{
.dispatch_part_body{
padding: 10px;
padding: 10px;
overflow-y: auto;
overflow-y: auto;
.h3_bg{
background: #a5adbf;
padding: 0 0 0 10px;
.h3_tag{
margin-left: 15px!important;
}
}
.dispatch_card{
.dispatch_card{
margin: 10px 0;
margin: 10px 0;
.card{
.card{
...
...
pages/aps/dispatch/index.vue
View file @
a2c243e4
This diff is collapsed.
Click to expand it.
pages/resourceManagement/productionResources/api.js
View file @
a2c243e4
...
@@ -17,6 +17,9 @@ export default {
...
@@ -17,6 +17,9 @@ export default {
update
(
params
)
{
update
(
params
)
{
return
Api
.
post
(
`
${
systemUrl
}
/equipcalendarwork/createorupdate`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/equipcalendarwork/createorupdate`
,
params
);
},
},
set
(
params
)
{
return
Api
.
post
(
`
${
systemUrl
}
/planresource/setplanresource`
,
params
);
},
//删除:
//删除:
delete
(
params
)
{
delete
(
params
)
{
return
Api
.
delete
(
`
${
systemUrl
}
/planresource/delete`
,
{
params
:
params
});
return
Api
.
delete
(
`
${
systemUrl
}
/planresource/delete`
,
{
params
:
params
});
...
...
pages/resourceManagement/productionResources/index.vue
View file @
a2c243e4
<
template
>
<
template
>
<div>
<div
class=
"resources-p"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:high=
"false"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:high=
"false"
@
on-selection-change=
"onSelect"
>
<template
slot=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入
关键字资源名称/资源编号/资源
类型/部门"
v-model=
"easySearch.keys.value"
/>
<Input
placeholder=
"请输入
资源名称/编号/
类型/部门"
v-model=
"easySearch.keys.value"
/>
</FormItem>
</FormItem>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
</
template
>
</
template
>
<
template
slot=
"batch"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
class=
"form-row"
>
<Row>
<Col
span=
"8"
>
<FormItem
:label=
"l('isimportant')"
prop=
"isimportant"
>
<RadioGroup
v-model=
"entity.isimportant"
>
<Radio
label=
"0"
>
是
</Radio>
<Radio
label=
"1"
>
否
</Radio>
</RadioGroup>
</FormItem>
</Col>
<Col
span=
"12"
>
<FormItem
:label=
"l('capabilityValue')"
>
<InputNumber
v-model=
"entity.capabilityValue"
></InputNumber>
</FormItem>
</Col>
<Col
span=
"4"
>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
</FormItem>
</Col>
</Row>
</Form>
</
template
>
</DataGrid>
</DataGrid>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
>
...
@@ -38,14 +68,23 @@ export default {
...
@@ -38,14 +68,23 @@ export default {
easySearch
:
{
easySearch
:
{
keys
:
{
op
:
"title,code,type,departTitle"
,
value
:
null
}
keys
:
{
op
:
"title,code,type,departTitle"
,
value
:
null
}
},
},
entity
:
{},
disabled
:
false
,
ids
:
[],
editModal
:
false
,
editModal
:
false
,
deletelModal
:
false
,
deletelModal
:
false
,
curId
:
0
,
curId
:
0
,
rules
:
{
isimportant
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
capabilityValue
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
},
columns
:
[
columns
:
[
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
type
:
"selection"
,
width
:
70
,
align
:
"center"
},
// {
// {
// key: "deleterUserId",
// key: "deleterUserId",
// title: this.l("deleterUserId"),
// title: this.l("deleterUserId"),
...
@@ -194,6 +233,46 @@ export default {
...
@@ -194,6 +233,46 @@ export default {
this
.
editModal
=
false
;
this
.
editModal
=
false
;
this
.
deletedlModal
=
false
;
this
.
deletedlModal
=
false
;
},
},
onSelect
(
a
,
b
)
{
console
.
log
(
a
);
//批量选择
let
selectRows
=
a
;
this
.
ids
=
[];
selectRows
.
forEach
(
e
=>
{
this
.
ids
.
push
(
e
.
id
);
});
},
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
let
data
=
{
ids
:
this
.
ids
,
isimportant
:
this
.
entity
.
isimportant
,
capabilityValue
:
this
.
entity
.
capabilityValue
};
Api
.
set
(
data
)
.
then
(
r
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
})
.
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
});
}
});
},
handleClose
()
{
this
.
footer
=
false
;
this
.
handleSelectAll
(
false
);
},
l
(
key
)
{
l
(
key
)
{
let
vkey
=
"plan_resource"
+
"."
+
key
;
let
vkey
=
"plan_resource"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
return
this
.
$t
(
vkey
)
||
key
;
...
@@ -202,4 +281,24 @@ export default {
...
@@ -202,4 +281,24 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
.resources-p {
.form-row {
width: 600px;
margin-left: 50px;
margin-top: -45px;
.ivu-form-item-label {
color: #fff !important;
}
}
.ivu-footer-toolbar-right {
width: 1100px;
position: relative !important;
}
.btn {
position: absolute !important;
top: 12px !important;
right: 40px !important;
}
}
</
style
>
</
style
>
\ No newline at end of file
plugins/request/index.js
View file @
a2c243e4
import
axios
from
'axios'
;
import
axios
from
'axios'
;
import
util
from
'@/libs/util'
;
import
util
from
'@/libs/util'
;
import
Setting
from
'@/setting'
;
import
Setting
from
'@/setting'
;
import
QS
from
'querystring'
;
import
QS
from
'querystring'
;
import
{
Message
,
Notice
}
from
'view-design'
;
import
{
Message
,
Notice
}
from
'view-design'
;
...
...
static/Dockerfile
0 → 100644
View file @
a2c243e4
FROM
nginx
WORKDIR
/usr/share/nginx/html
COPY
dist/ .
COPY
nginx.conf /etc/nginx/nginx.conf
RUN
cp
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
EXPOSE
3006
ENTRYPOINT
["nginx", "-g","daemon off;"]
static/nginx.conf
0 → 100644
View file @
a2c243e4
user
nginx
;
worker_processes
auto
;
error_log
/var/log/nginx/error.log
;
pid
/run/nginx.pid
;
include
/usr/share/nginx/modules/*.conf
;
events
{
worker_connections
1024
;
}
http
{
log_format
main
'
$remote_addr
-
$remote_user
[
$time_local
]
"
$request
"
'
'
$status
$body_bytes_sent
"
$http_referer
"
'
'"
$http_user_agent
"
"
$http_x_forwarded_for
"'
;
access_log
/var/log/nginx/access.log
main
;
sendfile
on
;
tcp_nopush
on
;
tcp_nodelay
on
;
keepalive_timeout
65
;
types_hash_max_size
2048
;
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
include
/etc/nginx/conf.d/*.conf
;
server
{
listen
3006
;
root
/usr/share/nginx/html
;
location
/
{
try_files
$uri
$uri
/
@router
;
index
index.html
index.htm
;
}
location
@router
{
rewrite
^.*
$
.index.html
last
;
}
}
}
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