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
c9c39049
authored
Sep 02, 2022
by
郑艺斌
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 优化表格宽度
parent
9ad87360
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
23 additions
and
22 deletions
.env.development
.env.production
src/views/modules/equipmentAdmin/equipmentAccount/index.vue
src/views/modules/siteAdmin/factoryAdmin/index.vue
src/views/modules/siteAdmin/mapAdmin/index.vue
src/views/modules/siteAdmin/positionAdmin/index.vue
src/views/modules/siteAdmin/siteConfig/add.vue
src/views/modules/siteAdmin/siteConfig/index.vue
src/views/modules/siteAdmin/siteConfigTemplate/add.vue
src/views/modules/siteAdmin/siteConfigTemplate/index.vue
src/views/modules/siteAdmin/siteTaskType/index.vue
src/views/modules/taskPlan/taskChainList/index.vue
src/views/modules/taskPlan/taskChainTemplate/index.vue
src/views/modules/taskPlan/taskPlanTemplate/index.vue
.env.development
View file @
c9c39049
...
@@ -5,8 +5,8 @@ ENV = 'development'
...
@@ -5,8 +5,8 @@ ENV = 'development'
VUE_APP_BASE_API = '/api'
VUE_APP_BASE_API = '/api'
# Jeeplus快速开发平台/后台地址
# Jeeplus快速开发平台/后台地址
VUE_APP_SERVER_URL
= 'http://10.10.10.123
:8080/jianlin-tms/'
VUE_APP_SERVER_URL
1 = 'http://10.10.10.44
:8080/jianlin-tms/'
VUE_APP_SERVER_URL
1
= 'http://jltms.meiqicloud.com/api/'
VUE_APP_SERVER_URL = 'http://jltms.meiqicloud.com/api/'
#单点登录设置
#单点登录设置
VUE_APP_SSO_LOGIN = 'false'
VUE_APP_SSO_LOGIN = 'false'
...
...
.env.production
View file @
c9c39049
...
@@ -3,11 +3,11 @@ ENV = 'production'
...
@@ -3,11 +3,11 @@ ENV = 'production'
#Jeeplus快速开发平台/后台地址
#Jeeplus快速开发平台/后台地址
# 建霖内外地址
# 建霖内外地址
VUE_APP_SERVER_URL = 'http://192.168.202.93:3000/api'
VUE_APP_SERVER_URL
1
= 'http://192.168.202.93:3000/api'
# 美契公司地址
# 美契公司地址
VUE_APP_SERVER_URL
1
= 'http://jltms.meiqicloud.com/api'
VUE_APP_SERVER_URL = 'http://jltms.meiqicloud.com/api'
#单点登录设置
#单点登录设置
VUE_APP_SSO_LOGIN = 'false'
VUE_APP_SSO_LOGIN = 'false'
VUE_APP_CAS_SERVER = 'https://www.cainiao.com:8443/cas'
VUE_APP_CAS_SERVER = 'https://www.cainiao.com:8443/cas'
VUE_APP_CLIENT_HOST = 'http://localhost:3000'
VUE_APP_CLIENT_HOST = 'http://localhost:3000'
src/views/modules/equipmentAdmin/equipmentAccount/index.vue
View file @
c9c39049
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</el-row>
</el-row>
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
:tree-config=
"
{ transform: true, rowField: 'id', parentField: 'parentId' }" :data="tableData"
:tree-config=
"
{ transform: true, rowField: 'id', parentField: 'parentId' }" :data="tableData"
header-align="center">
header-align="center"
:column-config="{ width: '130px' }"
>
<vxe-column
field=
"equipmentType_dictText"
title=
"设备类型"
align=
"center"
width=
"100px"
></vxe-column>
<vxe-column
field=
"equipmentType_dictText"
title=
"设备类型"
align=
"center"
width=
"100px"
></vxe-column>
<vxe-column
field=
"equipmentNo"
title=
"设备ID"
align=
"center"
width=
"100px"
></vxe-column>
<vxe-column
field=
"equipmentNo"
title=
"设备ID"
align=
"center"
width=
"100px"
></vxe-column>
<vxe-column
field=
"name"
title=
"设备名称"
align=
"center"
width=
"180px"
></vxe-column>
<vxe-column
field=
"name"
title=
"设备名称"
align=
"center"
width=
"180px"
></vxe-column>
...
...
src/views/modules/siteAdmin/factoryAdmin/index.vue
View file @
c9c39049
...
@@ -42,7 +42,8 @@
...
@@ -42,7 +42,8 @@
</vxe-toolbar>
</vxe-toolbar>
<div
style=
"height: calc(100% - 80px);"
>
<div
style=
"height: calc(100% - 80px);"
>
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
:tree-config=
"{ key: 'id', children: 'child' }"
:data=
"tableData"
header-align=
"center"
>
:tree-config=
"{ key: 'id', children: 'child' }"
:data=
"tableData"
header-align=
"center"
:column-config=
"{ width: '130px' }"
>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
field=
"company_dictText"
title=
"公司名称"
align=
"center"
></vxe-column>
<vxe-column
field=
"company_dictText"
title=
"公司名称"
align=
"center"
></vxe-column>
<vxe-column
field=
"name"
title=
"厂区名称"
align=
"center"
></vxe-column>
<vxe-column
field=
"name"
title=
"厂区名称"
align=
"center"
></vxe-column>
...
...
src/views/modules/siteAdmin/mapAdmin/index.vue
View file @
c9c39049
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</vxe-toolbar>
</vxe-toolbar>
<div
style=
"height: calc(100% - 80px);"
>
<div
style=
"height: calc(100% - 80px);"
>
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
:data=
"tableData"
header-align=
"center"
>
:data=
"tableData"
header-align=
"center"
:column-config=
"{ width: '130px' }"
>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
field=
"equipmentType_dictText"
title=
"设备类型"
align=
"center"
></vxe-column>
<vxe-column
field=
"equipmentType_dictText"
title=
"设备类型"
align=
"center"
></vxe-column>
<vxe-column
field=
"name"
title=
"地图名称"
align=
"center"
></vxe-column>
<vxe-column
field=
"name"
title=
"地图名称"
align=
"center"
></vxe-column>
...
...
src/views/modules/siteAdmin/positionAdmin/index.vue
View file @
c9c39049
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
</el-row>
</el-row>
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
:tree-config=
"
{ transform: true, rowField: 'id', parentField: 'parentId' }" :data="tableData"
:tree-config=
"
{ transform: true, rowField: 'id', parentField: 'parentId' }" :data="tableData"
header-align="center">
header-align="center"
:column-config="{ width: '130px' }"
>
<vxe-column
field=
"equipmentType_dictText"
title=
"设备类型"
align=
"center"
></vxe-column>
<vxe-column
field=
"equipmentType_dictText"
title=
"设备类型"
align=
"center"
></vxe-column>
<vxe-column
field=
"mapId_dictText"
title=
"地图名称"
align=
"center"
></vxe-column>
<vxe-column
field=
"mapId_dictText"
title=
"地图名称"
align=
"center"
></vxe-column>
<vxe-column
field=
"name"
title=
"点位编号"
align=
"center"
></vxe-column>
<vxe-column
field=
"name"
title=
"点位编号"
align=
"center"
></vxe-column>
...
...
src/views/modules/siteAdmin/siteConfig/add.vue
View file @
c9c39049
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<el-form-item
:prop=
"`entities[$
{$rowIndex}].pointId`"
<el-form-item
:prop=
"`entities[$
{$rowIndex}].pointId`"
:rules="[{ required: true, message: '请选择点位类型', trigger: 'change' },]"
:rules="[{ required: true, message: '请选择点位类型', trigger: 'change' },]"
v-if="row.configMap
&&
row.configMap !== ''" :inline-message="true">
v-if="row.configMap
&&
row.configMap !== ''" :inline-message="true">
<el-select
v-model=
"row.pointId"
placeholder=
"点位"
>
<el-select
v-model=
"row.pointId"
filterable
placeholder=
"点位"
>
<el-option
v-for=
"item in row.pointOptions"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
<el-option
v-for=
"item in row.pointOptions"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-option>
</el-select>
</el-select>
...
...
src/views/modules/siteAdmin/siteConfig/index.vue
View file @
c9c39049
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<div
v-for=
"item in $dictUtils.getDictList('tms_site_type')"
<div
v-for=
"item in $dictUtils.getDictList('tms_site_type')"
:class=
"
{ rowItem: true, rowActive: item.value == tabsActive }" :key="item.value"
:class=
"
{ rowItem: true, rowActive: item.value == tabsActive }" :key="item.value"
@click="clickTabsItem(item)">
{{
@click="clickTabsItem(item)">
{{
item
.
label
item
.
label
}}
</div>
}}
</div>
</el-col>
</el-col>
<el-col
:span=
"2"
class=
"rowBtn"
>
<el-col
:span=
"2"
class=
"rowBtn"
>
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</el-row>
</el-row>
<vxe-table
border=
"full"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
<vxe-table
border=
"full"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
:scroll-y=
"
{ enabled: false }" :span-method="mergeRowMethod" :data="tableData" header-align="center"
:scroll-y=
"
{ enabled: false }" :span-method="mergeRowMethod" :data="tableData" header-align="center"
:seq-config="{ seqMethod: seqMethod }">
:seq-config="{ seqMethod: seqMethod }"
:column-config="{ width: '130px' }"
>
<!--
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
-->
<!--
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
-->
<vxe-column
field=
"company_dictText"
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
field=
"factoryId_dictText"
title=
"厂区"
align=
"center"
width=
"130px"
></vxe-column>
...
...
src/views/modules/siteAdmin/siteConfigTemplate/add.vue
View file @
c9c39049
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
:rules="[
:rules="[
{ required: true, message: '请选择设备类型', trigger: 'change' },
{ required: true, message: '请选择设备类型', trigger: 'change' },
]" :inline-message="true">
]" :inline-message="true">
<el-select
v-model=
"row.deviceType"
placeholder=
"
请选择
"
style=
"width: 100%;"
<el-select
v-model=
"row.deviceType"
placeholder=
"
设备类型
"
style=
"width: 100%;"
@
change=
"(value) =>
{ getTaskDeviceType(value, row) }">
@
change=
"(value) =>
{ getTaskDeviceType(value, row) }">
<el-option
v-for=
"item in $dictUtils.getDictList('tms_equipment_type')"
:key=
"item.value"
<el-option
v-for=
"item in $dictUtils.getDictList('tms_equipment_type')"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
:label=
"item.label"
:value=
"item.value"
>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
:rules="[
:rules="[
{ required: true, message: '请选择任务名称', trigger: 'change' },
{ required: true, message: '请选择任务名称', trigger: 'change' },
]" :inline-message="true">
]" :inline-message="true">
<el-select
v-model=
"row.taskTempId"
placeholder=
"
请选择"
style=
"width: 100%;"
<el-select
v-model=
"row.taskTempId"
placeholder=
"
任务名称"
filterable
style=
"width: 100%;"
@
change=
"(value) =>
{ getTaskTempId(value, row) }">
@
change=
"(value) =>
{ getTaskTempId(value, row) }">
<el-option
v-for=
"item in row.options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
<el-option
v-for=
"item in row.options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-option>
...
...
src/views/modules/siteAdmin/siteConfigTemplate/index.vue
View file @
c9c39049
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<div
style=
"height: calc(100% - 80px);"
>
<div
style=
"height: calc(100% - 80px);"
>
<vxe-table
border=
"full"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
<vxe-table
border=
"full"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
:scroll-y=
"{ enabled: false }"
:span-method=
"mergeRowMethod"
:data=
"tableData"
header-align=
"center"
:scroll-y=
"{ enabled: false }"
:span-method=
"mergeRowMethod"
:data=
"tableData"
header-align=
"center"
:seq-config=
"{ seqMethod: seqMethod }"
>
:seq-config=
"{ seqMethod: seqMethod }"
:column-config=
"{ width: '150px' }"
>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
field=
"tempName"
title=
"模板名称"
align=
"center"
></vxe-column>
<vxe-column
field=
"tempName"
title=
"模板名称"
align=
"center"
></vxe-column>
<vxe-column
field=
"typeName"
title=
"任务类型"
align=
"center"
></vxe-column>
<vxe-column
field=
"typeName"
title=
"任务类型"
align=
"center"
></vxe-column>
...
...
src/views/modules/siteAdmin/siteTaskType/index.vue
View file @
c9c39049
...
@@ -39,15 +39,15 @@
...
@@ -39,15 +39,15 @@
<vxe-column
field=
"typeName"
title=
"类型名称"
tree-node
align=
"center"
width=
"160px"
></vxe-column>
<vxe-column
field=
"typeName"
title=
"类型名称"
tree-node
align=
"center"
width=
"160px"
></vxe-column>
<vxe-column
field=
"command"
title=
"指令标识"
align=
"center"
width=
"160px"
></vxe-column>
<vxe-column
field=
"command"
title=
"指令标识"
align=
"center"
width=
"160px"
></vxe-column>
<vxe-column
field=
"company"
title=
"公司"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"company"
title=
"公司"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"factoryName"
title=
"厂区"
align=
"center"
></vxe-column>
<vxe-column
field=
"factoryName"
title=
"厂区"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"remark"
title=
"备注"
align=
"center"
></vxe-column>
<vxe-column
field=
"remark"
title=
"备注"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"status"
title=
"状态"
align=
"center"
>
<vxe-column
field=
"status"
title=
"状态"
align=
"center"
width=
"130px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.status === '1'"
style=
"color: #249601;"
>
启用
</span>
<span
v-if=
"scope.row.status === '1'"
style=
"color: #249601;"
>
启用
</span>
<span
v-else-if=
"scope.row.status === '0'"
style=
"color: #FF0000;"
>
禁用
</span>
<span
v-else-if=
"scope.row.status === '0'"
style=
"color: #FF0000;"
>
禁用
</span>
</
template
>
</
template
>
</vxe-column>
</vxe-column>
<vxe-column
field=
"sort"
title=
"排序"
align=
"center"
>
<vxe-column
field=
"sort"
title=
"排序"
align=
"center"
width=
"130px"
>
</vxe-column>
</vxe-column>
<vxe-column
field=
"createDate"
title=
"创建时间"
align=
"center"
width=
"180px"
></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
field=
"updateDate"
title=
"更新时间"
align=
"center"
width=
"180px"
></vxe-column>
...
...
src/views/modules/taskPlan/taskChainList/index.vue
View file @
c9c39049
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</el-row>
</el-row>
<vxe-table
border=
"inner"
show-overflow
ref=
"xTable"
auto-resize
resizable
height=
"auto"
:loading=
"loading"
<vxe-table
border=
"inner"
show-overflow
ref=
"xTable"
auto-resize
resizable
height=
"auto"
:loading=
"loading"
:tree-config=
"
{ transform: true, rowField: 'id', parentField: 'parentId' }" :data="tableData"
:tree-config=
"
{ transform: true, rowField: 'id', parentField: 'parentId' }" :data="tableData"
header-align="center">
header-align="center"
:column-config="{ width: '130px' }"
>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
field=
"taskId"
title=
"任务编号"
align=
"center"
></vxe-column>
<vxe-column
field=
"taskId"
title=
"任务编号"
align=
"center"
></vxe-column>
<vxe-column
field=
"taskName"
title=
"任务名称"
align=
"center"
></vxe-column>
<vxe-column
field=
"taskName"
title=
"任务名称"
align=
"center"
></vxe-column>
...
...
src/views/modules/taskPlan/taskChainTemplate/index.vue
View file @
c9c39049
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<div
style=
"height: calc(100% - 80px);"
>
<div
style=
"height: calc(100% - 80px);"
>
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
:tree-config=
"{ transform: true, rowField: 'id', parentField: 'parentId' }"
:data=
"tableData"
:tree-config=
"{ transform: true, rowField: 'id', parentField: 'parentId' }"
:data=
"tableData"
header-align=
"center"
>
header-align=
"center"
:column-config=
"{ width: '140px' }"
>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
field=
"number"
title=
"任务链编号"
align=
"center"
></vxe-column>
<vxe-column
field=
"number"
title=
"任务链编号"
align=
"center"
></vxe-column>
<vxe-column
field=
"name"
title=
"任务链名称"
align=
"center"
></vxe-column>
<vxe-column
field=
"name"
title=
"任务链名称"
align=
"center"
></vxe-column>
...
...
src/views/modules/taskPlan/taskPlanTemplate/index.vue
View file @
c9c39049
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</el-row>
</el-row>
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
<vxe-table
border=
"inner"
ref=
"xTable"
show-overflow
auto-resize
resizable
height=
"auto"
:loading=
"loading"
:tree-config=
"
{ transform: true, rowField: 'id', parentField: 'parentId' }" :data="tableData"
:tree-config=
"
{ transform: true, rowField: 'id', parentField: 'parentId' }" :data="tableData"
header-align="center">
header-align="center"
:column-config="{ width: '130px' }"
>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
type=
"seq"
width=
"60"
title=
"序号"
align=
"center"
></vxe-column>
<vxe-column
field=
"createdByName_dictText"
title=
"设备类型"
align=
"center"
></vxe-column>
<vxe-column
field=
"createdByName_dictText"
title=
"设备类型"
align=
"center"
></vxe-column>
<vxe-column
field=
"taskId"
title=
"任务编号"
align=
"center"
></vxe-column>
<vxe-column
field=
"taskId"
title=
"任务编号"
align=
"center"
></vxe-column>
...
...
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