Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
王刘锁
/
jianlin-tms-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
090f0c88
authored
Oct 17, 2022
by
郑艺斌
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://git.xmmakeit.com/wangls/jianlin-tms-view
parents
12035a0c
c13a86b6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
60 deletions
src/views/modules/siteAdmin/factoryAdmin/index.vue
src/views/modules/siteAdmin/positionAdmin/index.vue
src/views/modules/siteAdmin/siteConfig/index.vue
src/views/modules/sys/login/login.vue
src/views/modules/taskPlan/taskChainList/index.vue
src/views/modules/taskPlan/taskPlanTemplate/index.vue
src/views/modules/siteAdmin/factoryAdmin/index.vue
View file @
090f0c88
...
...
@@ -22,10 +22,10 @@
</el-select>
</el-form-item>
<el-form-item
label=
"MIR调度IP:"
prop=
"mirIp"
>
<el-input
size=
"small"
v-model=
"searchForm.mirIp"
placeholder=
"请输入
厂区ID
"
clearable
></el-input>
<el-input
size=
"small"
v-model=
"searchForm.mirIp"
placeholder=
"请输入
MIR调度IP
"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"蓝芯调度IP:"
prop=
"lxIp"
>
<el-input
size=
"small"
v-model=
"searchForm.lxIp"
placeholder=
"请输入
厂区ID
"
clearable
></el-input>
<el-input
size=
"small"
v-model=
"searchForm.lxIp"
placeholder=
"请输入
蓝芯调度IP
"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"getFactoryPage()"
size=
"small"
icon=
"el-icon-search"
>
搜索
</el-button>
...
...
@@ -218,4 +218,4 @@ export default {
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
\ No newline at end of file
</
style
>
src/views/modules/siteAdmin/positionAdmin/index.vue
View file @
090f0c88
...
...
@@ -281,7 +281,7 @@ export default {
const
formBody
=
new
FormData
()
formBody
.
append
(
'file'
,
file
)
this
.
PositionAdmin
.
importExcel
(
formBody
).
then
(
result
=>
{
this
.
$message
.
success
(
result
)
this
.
$message
.
success
(
result
.
data
)
})
},
},
...
...
src/views/modules/siteAdmin/siteConfig/index.vue
View file @
090f0c88
...
...
@@ -9,13 +9,13 @@
</el-select>
</el-form-item>
<el-form-item
label=
"厂区:"
prop=
"factoryId"
>
<el-select
v-model=
"searchForm.factoryId"
placeholder=
"请选择
模板状态
"
clearable
>
<el-select
v-model=
"searchForm.factoryId"
placeholder=
"请选择
厂区
"
clearable
>
<el-option
v-for=
"item in factoryOptions"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"站点类型:"
prop=
"siteType"
>
<el-select
v-model=
"searchForm.siteType"
placeholder=
"请选择
模板状态
"
clearable
>
<el-select
v-model=
"searchForm.siteType"
placeholder=
"请选择
站点类型
"
clearable
>
<el-option
v-for=
"item in $dictUtils.getDictList('tms_site_type')"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
...
...
@@ -28,7 +28,7 @@
<el-input
v-model=
"searchForm.command"
placeholder=
"请输入指令标识"
></el-input>
</el-form-item>
<el-form-item
label=
"站点配置模板:"
prop=
"tempId"
>
<el-select
v-model=
"searchForm.tempId"
placeholder=
"请选择站点
状态
"
clearable
>
<el-select
v-model=
"searchForm.tempId"
placeholder=
"请选择站点
配置模板
"
clearable
>
<el-option
v-for=
"item in configTempList"
:key=
"item.id"
:label=
"item.tempName"
:value=
"item.id"
>
</el-option>
</el-select>
...
...
@@ -77,17 +77,17 @@
remote: true}">
<!--
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
-->
<vxe-column
type=
"checkbox"
width=
"40px"
align=
"center"
></vxe-column>
<vxe-column
field=
"company_dictText"
title=
"公司"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"factoryId_dictText"
title=
"厂区"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"floorNum"
title=
"楼层"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"company_dictText"
title=
"公司"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"factoryId_dictText"
title=
"厂区"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
sortable
field=
"floorNum"
title=
"楼层"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"siteType_dictText"
title=
"站点类型"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"name"
title=
"站点名称"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"command"
title=
"指令标识"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"tempId_dictText"
title=
"站点配置模板"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"pointName"
title=
"关联点位"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"pointAlias"
title=
"点位别名"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"pointTypeName"
title=
"任务类型"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"pointStatus"
title=
"空闲状态"
align=
"center"
width=
"130px"
>
<vxe-column
sortable
field=
"name"
title=
"站点名称"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
sortable
field=
"command"
title=
"指令标识"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
sortable
field=
"tempId_dictText"
title=
"站点配置模板"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
sortable
field=
"pointName"
title=
"关联点位"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
sortable
field=
"pointAlias"
title=
"点位别名"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
sortable
field=
"pointTypeName"
title=
"任务类型"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
sortable
field=
"pointStatus"
title=
"空闲状态"
align=
"center"
width=
"130px"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.pointStatus === '1'"
style=
"color: #249601"
>
占用
<i
class=
"pointStatus el-icon-refresh"
@
click=
"changePointStatus(scope.row)"
></i>
...
...
@@ -98,15 +98,15 @@
</vxe-column>
<!-- <vxe-column field="equipmentGroup" title="设备分组" align="center" width="130px"></vxe-column> -->
<vxe-column
field=
"remark"
title=
"备注"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"status"
title=
"状态"
align=
"center"
width=
"130px"
>
<vxe-column
sortable
field=
"status"
title=
"状态"
align=
"center"
width=
"130px"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.status === '1'"
style=
"color: #249601;font-weight: bold;"
>
启用
</span>
<span
v-else-if=
"scope.row.status === '0'"
style=
"color: #FF0000;font-weight: bold;"
>
禁用
</span>
</
template
>
</vxe-column>
<vxe-column
field=
"sort"
title=
"排序"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"createDate"
title=
"创建时间"
align=
"center"
width=
"180px"
></vxe-column>
<vxe-column
field=
"updateDate"
title=
"更新时间"
align=
"center"
width=
"180px"
></vxe-column>
<vxe-column
sortable
field=
"sort"
title=
"排序"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
sortable
field=
"createDate"
title=
"创建时间"
align=
"center"
width=
"180px"
></vxe-column>
<vxe-column
sortable
field=
"updateDate"
title=
"更新时间"
align=
"center"
width=
"180px"
></vxe-column>
<vxe-column
title=
"操作"
width=
"180"
align=
"center"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"hasPermission('siteConfig:view')"
type=
"text"
size=
"mini"
...
...
@@ -332,8 +332,8 @@ export default {
changePointStatus
(
row
)
{
console
.
log
(
row
);
const
can
=
{
id
:
row
.
i
d
,
status
:
row
.
s
tatus
id
:
row
.
configPointI
d
,
status
:
row
.
pointS
tatus
}
this
.
SiteConfig
.
updateStatus
(
can
).
then
((
res
)
=>
{
console
.
log
(
res
);
...
...
@@ -450,4 +450,4 @@ export default {
color
:
#606266
;
cursor
:
pointer
;
}
</
style
>
\ No newline at end of file
</
style
>
src/views/modules/sys/login/login.vue
View file @
090f0c88
...
...
@@ -37,18 +37,18 @@
<i
slot=
"prefix"
class=
"el-input__icon el-icon-female"
></i>
</el-input>
</el-form-item>
<el-form-item
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"8"
>
<el-image
@
click=
"getCaptcha"
:src=
"captchaImg"
style=
"height:34px"
></el-image
>
</el-col
>
<el-col
:span=
"16"
>
<el-form-item
prop=
"code"
>
<el-input
placeholder=
"请输入验证码"
v-model=
"inputForm.code"
></el-input
>
</el-form-item
>
</el-col
>
</el-row
>
</el-form-item
>
<!--
<el-form-item>
--
>
<!--
<el-row
:gutter=
"10"
>
--
>
<!--
<el-col
:span=
"8"
>
--
>
<!--
<el-image
@
click=
"getCaptcha"
:src=
"captchaImg"
style=
"height:34px"
></el-image>
--
>
<!--
</el-col>
--
>
<!--
<el-col
:span=
"16"
>
--
>
<!--
<el-form-item
prop=
"code"
>
--
>
<!--
<el-input
placeholder=
"请输入验证码"
v-model=
"inputForm.code"
></el-input>
--
>
<!--
</el-form-item>
--
>
<!--
</el-col>
--
>
<!--
</el-row>
--
>
<!--
</el-form-item>
--
>
<el-form-item>
<el-button
type=
"primary"
:loading=
"loading"
class=
"login-submit"
@
click=
"login"
>
登录
</el-button>
</el-form-item>
...
...
@@ -102,9 +102,9 @@ export default {
password
:
[
{
required
:
true
,
message
:
'密码不能为空'
,
trigger
:
'blur'
}
],
code
:
[
{
required
:
true
,
message
:
'验证码不能为空'
,
trigger
:
'blur'
}
]
//
code: [
//
{ required: true, message: '验证码不能为空', trigger: 'blur' }
//
]
},
captchaPath
:
''
}
...
...
@@ -125,7 +125,7 @@ export default {
this
.
configService
.
getConfig
().
then
(({
data
})
=>
{
this
.
productName
=
data
.
productName
})
this
.
getCaptcha
()
//
this.getCaptcha()
},
methods
:
{
// 提交表单
...
...
@@ -152,25 +152,24 @@ export default {
})
}).
catch
(
e
=>
{
this
.
loading
=
false
this
.
getCaptcha
()
})
}
})
},
getTime
()
{
this
.
time
=
this
.
moment
(
new
Date
()).
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
// 获取验证码
getCaptcha
()
{
this
.
loginService
.
getCode
().
then
(({
data
})
=>
{
this
.
captchaImg
=
'data:image/gif;base64,'
+
data
.
codeImg
this
.
inputForm
.
uuid
=
data
.
uuid
})
}
// 获取验证码
// getCaptcha () {
// this.loginService.getCode().then(({ data }) => {
// this.captchaImg = 'data:image/gif;base64,' + data.codeImg
// this.inputForm.uuid = data.uuid
// })
// }
}
}
</
script
>
<
style
lang=
"scss"
>
@import
'~@/assets/scss/login.scss'
;
</
style
>
\ No newline at end of file
</
style
>
src/views/modules/taskPlan/taskChainList/index.vue
View file @
090f0c88
...
...
@@ -12,7 +12,7 @@
<el-input
size=
"small"
v-model=
"searchForm.taskId"
clearable
placeholder=
"请选输入任务编号"
></el-input>
</el-form-item>
<el-form-item
prop=
"task_name"
label=
"任务名称:"
>
<el-input
size=
"small"
v-model=
"searchForm.task_name"
clearable
placeholder=
"请选输入任务
编号
"
></el-input>
<el-input
size=
"small"
v-model=
"searchForm.task_name"
clearable
placeholder=
"请选输入任务
名称
"
></el-input>
</el-form-item>
<el-form-item
prop=
"beginAt"
label=
"执行开始时间:"
>
<el-date-picker
v-model=
"searchForm.beginAt"
type=
"datetime"
placeholder=
"选择执行开始时间"
...
...
@@ -253,4 +253,4 @@ export default {
border-bottom
:
none
;
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/modules/taskPlan/taskPlanTemplate/index.vue
View file @
090f0c88
...
...
@@ -2,7 +2,7 @@
<div
class=
"page"
>
<el-form
size=
"small"
:inline=
"true"
class=
"query-form"
ref=
"searchForm"
:model=
"searchForm"
>
<el-form-item
prop=
"createdByName"
label=
"设备类型:"
>
<el-select
v-model=
"searchForm.createdByName"
placeholder=
"请选择
任务状态
"
clearable
>
<el-select
v-model=
"searchForm.createdByName"
placeholder=
"请选择
设备类型
"
clearable
>
<el-option
v-for=
"item in $dictUtils.getDictList('tms_task_equipment_type')"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
...
...
@@ -12,10 +12,10 @@
<el-input
size=
"small"
v-model=
"searchForm.taskId"
clearable
placeholder=
"请选输入任务编号"
></el-input>
</el-form-item>
<el-form-item
prop=
"takeName"
label=
"任务名称:"
>
<el-input
size=
"small"
v-model=
"searchForm.takeName"
clearable
placeholder=
"请选输入任务
编号
"
></el-input>
<el-input
size=
"small"
v-model=
"searchForm.takeName"
clearable
placeholder=
"请选输入任务
名称
"
></el-input>
</el-form-item>
<el-form-item
prop=
"variate"
label=
"包含变量:"
>
<el-select
v-model=
"searchForm.variate"
placeholder=
"请选择
任务状态
"
clearable
>
<el-select
v-model=
"searchForm.variate"
placeholder=
"请选择
是否包含变量
"
clearable
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
...
...
@@ -264,4 +264,4 @@ export default {
text-align
:
right
;
padding-bottom
:
10px
;
}
</
style
>
\ No newline at end of file
</
style
>
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