Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
tFIMS
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f3377ffa
authored
Sep 27, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
组件修改
1 parent
3a8f8ef9
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
630 additions
and
609 deletions
src/components/d2-table/index.vue
src/views/deviceManagement/index.vue
src/views/maintainManagement/index.vue
src/views/materiaOrderManagement/index.vue
src/views/materialList/index.vue
src/views/reportingLogs/index.vue
src/views/subSysManagement/index.vue
src/views/systemMonitor/index.vue
src/views/trafficManagement/index.vue
src/views/userManage/loginLogs/index.vue
src/views/userManage/role/index.vue
src/views/userManage/user/index.vue
src/components/d2-table/index.vue
View file @
f3377ff
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<
template
>
<
template
>
<div>
<div>
<el-table
<el-table
:data=
"tableData"
:data=
"
getListApi ? data :
tableData"
v-loading=
"$store.state.d2admin.loading.value"
v-loading=
"$store.state.d2admin.loading.value"
border
border
:highlight-current-row=
"true"
:highlight-current-row=
"true"
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
:index=
"index=>index+(page.pageSize - 1) * page.pageCount + 1"
:index=
"index=>index+(page.pageSize - 1) * page.pageCount + 1"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
v-for=
"(item, index) in tableColumns"
v-for=
"(item, index) in table
Params.table
Columns"
:key=
"index"
:key=
"index"
:label=
"item.label"
:label=
"item.label"
:prop=
"item.prop"
:prop=
"item.prop"
...
@@ -26,23 +26,31 @@
...
@@ -26,23 +26,31 @@
>
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<template
v-if=
"item.tagLabel"
>
<template
v-if=
"item.tagLabel"
>
<el-tag
<el-tag
v-if=
"!item.tagName"
:type=
"tag.type[scope.row[item.prop]]"
:type=
"tableParams.tag.type[scope.row[item.prop]]"
>
{{
tag
.
label
[
scope
.
row
[
item
.
prop
]]
}}
</el-tag>
>
{{
tableParams
.
tag
.
label
[
scope
.
row
[
item
.
prop
]]
}}
</el-tag>
<el-tag
v-else
:type=
"tableParams[item.tagName].type[scope.row[item.prop]]"
>
{{
tableParams
[
item
.
tagName
].
label
[
scope
.
row
[
item
.
prop
]]
}}
</el-tag>
</
template
>
</
template
>
<
template
v-else-if=
"item.formatter"
>
<
template
v-else-if=
"item.formatter"
>
{{
item
.
formatter
(
scope
.
row
)
}}
{{
item
.
formatter
(
scope
.
row
)
}}
</
template
>
</
template
>
<
template
v-else-if=
"getListApi"
>
{{
data
[
scope
.
$index
][
item
.
prop
]
}}
</
template
>
<
template
v-else
>
<
template
v-else
>
{{
tableData
[
scope
.
$index
][
item
.
prop
]
}}
{{
tableData
[
scope
.
$index
][
item
.
prop
]
}}
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
v-if=
"tableOption"
v-if=
"table
Params.table
Option"
label=
"操作"
label=
"操作"
:align=
"tableOption.align||'center'"
:align=
"table
Params.table
Option.align||'center'"
:width=
"tableOption.width||'200'"
:width=
"table
Params.table
Option.width||'200'"
fixed=
"right"
fixed=
"right"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -58,7 +66,7 @@
...
@@ -58,7 +66,7 @@
:current-page=
"page.pageSize"
:current-page=
"page.pageSize"
:page-sizes=
"[10,20,30,40]"
:page-sizes=
"[10,20,30,40]"
:page-size=
"page.pageCount"
:page-size=
"page.pageCount"
:total=
"
t
otal"
:total=
"
getListApi ? total : tableT
otal"
layout=
"sizes,total,->,prev,pager,next,jumper"
layout=
"sizes,total,->,prev,pager,next,jumper"
>
>
</el-pagination>
</el-pagination>
...
@@ -71,43 +79,35 @@ export default {
...
@@ -71,43 +79,35 @@ export default {
name
:
'd2-table'
,
name
:
'd2-table'
,
data
()
{
data
()
{
return
{
return
{
searchParams
:
{},
oldValue
:
{},
tableD
ata
:
[],
d
ata
:
[],
// 页码
// 页码
page
:
{
page
:
{
pageCount
:
10
,
pageCount
:
10
,
pageSize
:
1
pageSize
:
1
},
},
// currentPage: 1,
// pageSize: 10,
total
:
10
total
:
10
}
}
},
},
props
:
{
props
:
{
// 后端返回列表参数名
listName
:
{
type
:
String
,
default
:
''
},
// 标签
tag
:
{
type
:
Array
,
default
:
()
=>
[]
},
// 搜索条件
// 搜索条件
searchForm
:
{
searchForm
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
// 表格
栏
// 表格
数据-外部传入
table
Columns
:
{
table
Data
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
// 表格操作,默认没有
tableTotal
:
{
tableOption
:
{
type
:
Number
,
type
:
Object
,
default
:
10
},
// 获取列表接口
getListApi
:
{
type
:
Function
,
default
:
null
default
:
null
},
},
// 分页,默认有
// 分页,默认有
...
@@ -115,32 +115,68 @@ export default {
...
@@ -115,32 +115,68 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
},
// 获取列表接口
tableParams
:
{
getListApi
:
{
type
:
Object
,
type
:
Function
,
default
:
()
=>
{
default
:
null
return
{
// 搜索按钮id;new Date().getTime() + parseInt(Math.random() * 1000)
// btnId: {
// type: String,
// default: ''
// },
// 后端返回列表参数名
listName
:
{
type
:
String
,
default
:
''
},
// 标签-默认标签名为tag;若有多个,那么需要在表格栏的列中加“tagName”
// tag: {
// type: Array,
// default: () => []
// },
// 表格操作,默认没有
// tableOption: {
// type: Object,
// default: null
// },
// 表格栏
tableColumns
:
{
type
:
Array
,
default
:
()
=>
[]
}
}
}
}
}
},
},
watch
:
{
watch
:
{
searchForm
(
val
)
{
searchForm
:
{
this
.
searchParams
=
val
handler
(
val
)
{
const
attr
=
Object
.
keys
(
val
).
find
(
item
=>
val
[
item
]
!==
this
.
oldValue
[
item
])
!
val
[
attr
]
&&
this
.
oldValue
[
attr
]
&&
this
.
refreshTable
()
this
.
oldValue
=
_
.
cloneDeep
(
val
)
},
deep
:
true
}
}
},
},
mounted
()
{
mounted
()
{
this
.
searchParams
=
this
.
searchForm
const
btn
=
document
.
getElementById
(
this
.
tableParams
.
btnId
)
this
.
refreshTable
()
btn
&&
btn
.
addEventListener
(
'click'
,
this
.
refreshTable
)
this
.
getListApi
&&
this
.
refreshTable
()
},
},
methods
:
{
methods
:
{
refreshTable
()
{
refreshTable
()
{
const
params
=
{
const
params
=
{
...
this
.
page
,
...
this
.
page
,
...
this
.
search
Params
...
this
.
search
Form
}
}
console
.
log
(
'刷新--'
)
// console.log(params)
this
.
getListApi
(
params
).
then
(
res
=>
{
this
.
getListApi
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
[
thi
s
.
listName
]
this
.
data
=
res
[
this
.
tableParam
s
.
listName
]
res
.
pagination
&&
(
this
.
total
=
res
.
pagination
.
totalCount
)
res
.
pagination
&&
(
this
.
total
=
res
.
pagination
.
totalCount
)
}).
catch
(()
=>
{
}).
catch
(()
=>
{
notice
.
errorTips
()
notice
.
errorTips
()
...
@@ -150,12 +186,12 @@ export default {
...
@@ -150,12 +186,12 @@ export default {
// 页码
// 页码
handleSizeChange
(
value
)
{
handleSizeChange
(
value
)
{
this
.
page
.
pageCount
=
value
this
.
page
.
pageCount
=
value
this
.
refreshTable
(
)
this
.
getListApi
?
this
.
refreshTable
()
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
},
},
handleCurrentChange
(
value
)
{
handleCurrentChange
(
value
)
{
this
.
page
.
pageSize
=
value
this
.
page
.
pageSize
=
value
this
.
refreshTable
(
)
this
.
getListApi
?
this
.
refreshTable
()
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
}
}
}
}
}
}
...
...
src/views/deviceManagement/index.vue
View file @
f3377ff
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
<el-input
<el-input
v-model=
"searchForm.keyWord"
v-model=
"searchForm.keyWord"
placeholder=
"请输入物料代码/编码/名称"
placeholder=
"请输入物料代码/编码/名称"
@
clear=
"getList"
clearable
clearable
></el-input>
></el-input>
</el-form-item>
</el-form-item>
...
@@ -19,7 +18,6 @@
...
@@ -19,7 +18,6 @@
<el-select
<el-select
v-model=
"searchForm.stationCode"
v-model=
"searchForm.stationCode"
placeholder=
"请选择所在地"
placeholder=
"请选择所在地"
@
clear=
"getList"
clearable
clearable
filterable
filterable
>
>
...
@@ -35,7 +33,7 @@
...
@@ -35,7 +33,7 @@
<el-button
<el-button
type=
"primary"
type=
"primary"
icon=
"el-icon-search"
icon=
"el-icon-search"
@
click=
"handleSearch
"
:id=
"tableParams.btnId
"
>
查询
</el-button>
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -57,9 +55,7 @@
...
@@ -57,9 +55,7 @@
<d2-table
<d2-table
ref=
"table"
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
tableOption=
true
listName=
'deviceList'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
>
>
<auth-button
<auth-button
...
@@ -119,54 +115,60 @@ export default {
...
@@ -119,54 +115,60 @@ export default {
stationCode
:
''
stationCode
:
''
},
},
// 表格
// 表格
tableData
:
[],
// tableData: [],
tableColumns
:
[
// 表格参数
{
tableParams
:
{
label
:
'物料代码'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
prop
:
'deviceNum'
,
listName
:
'deviceList'
,
width
:
'170'
tableOption
:
true
,
},
tableColumns
:
[
{
{
label
:
'物料编码'
,
label
:
'物料代码'
,
prop
:
'deviceCode'
,
prop
:
'deviceNum'
,
width
:
'170'
width
:
'170'
},
},
{
{
label
:
'CRC物料号'
,
label
:
'物料编码'
,
prop
:
'crcCode'
,
prop
:
'deviceCode'
,
width
:
'170'
width
:
'170'
},
},
{
{
label
:
'图号'
,
label
:
'CRC物料号'
,
prop
:
'drawNum'
,
prop
:
'crcCode'
,
width
:
'170'
width
:
'170'
},
},
{
{
label
:
'物料名称'
,
label
:
'图号'
,
prop
:
'deviceName'
,
prop
:
'drawNum'
,
minWidth
:
'200'
width
:
'170'
},
},
{
{
label
:
'规格'
,
label
:
'物料名称'
,
prop
:
'specifications'
,
prop
:
'deviceName'
,
width
:
'140'
minWidth
:
'200'
},
},
{
{
label
:
'所在地'
,
label
:
'规格'
,
prop
:
'stationName'
,
prop
:
'specifications'
,
width
:
'120'
width
:
'140'
},
},
{
{
label
:
'库存'
,
label
:
'所在地'
,
prop
:
'stockCount'
,
prop
:
'stationName'
,
width
:
'100'
width
:
'120'
},
},
{
{
label
:
'责任人'
,
label
:
'库存'
,
prop
:
'responsible'
,
prop
:
'stockCount'
,
width
:
'120'
width
:
'100'
}
},
],
{
label
:
'责任人'
,
prop
:
'responsible'
,
width
:
'120'
}
]
},
baseData
:
{
baseData
:
{
station
:
[]
station
:
[]
},
},
...
@@ -293,10 +295,6 @@ export default {
...
@@ -293,10 +295,6 @@ export default {
})
})
},
},
/* 接口请求-end */
/* 接口请求-end */
// 搜索
handleSearch
()
{
this
.
getList
()
},
handleEditClose
()
{
handleEditClose
()
{
this
.
editVisible
=
false
this
.
editVisible
=
false
...
...
src/views/maintainManagement/index.vue
View file @
f3377ff
...
@@ -16,14 +16,12 @@
...
@@ -16,14 +16,12 @@
v-if=
"item.type == 'input'"
v-if=
"item.type == 'input'"
v-model=
"searchForm[item.model]"
v-model=
"searchForm[item.model]"
:placeholder=
"'请输入' + item.label"
:placeholder=
"'请输入' + item.label"
@
clear=
"getList"
clearable
>
clearable
>
</el-input>
</el-input>
<el-select
<el-select
v-else-if=
"item.type == 'select'"
v-else-if=
"item.type == 'select'"
v-model=
"searchForm[item.model]"
v-model=
"searchForm[item.model]"
:placeholder=
"'请选择' + item.label"
:placeholder=
"'请选择' + item.label"
@
clear=
"getList"
clearable
clearable
filterable
>
filterable
>
<el-option
<el-option
...
@@ -43,17 +41,14 @@
...
@@ -43,17 +41,14 @@
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch
"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
:id=
"tableParams.btnId
"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<d2-table-header
title=
"作业单列表"
><auth-button
category=
"Button"
></auth-button></d2-table-header>
<d2-table-header
title=
"作业单列表"
><auth-button
category=
"Button"
></auth-button></d2-table-header>
<d2-table
<d2-table
ref=
"table"
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
:tableOption=
"tableOption"
:tag=
"tag"
listName=
'maintainList'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
>
>
<auth-button
<auth-button
...
@@ -154,104 +149,109 @@ export default {
...
@@ -154,104 +149,109 @@ export default {
// singleVal: 'creatTime',
// singleVal: 'creatTime',
model
:
'creatTime'
model
:
'creatTime'
}],
}],
// 表格
// 表格参数
tableOption
:
{
tableParams
:
{
width
:
100
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
},
listName
:
'maintainList'
,
tableColumns
:
[{
tableOption
:
{
label
:
'订单编号'
,
width
:
100
prop
:
'taskCode'
},
},
{
tableColumns
:
[{
label
:
'创建时间'
,
label
:
'订单编号'
,
prop
:
'createTime'
prop
:
'taskCode'
},
{
},
{
label
:
'类型'
,
label
:
'创建时间'
,
prop
:
'taskType'
,
prop
:
'createTime'
formatter
:
(
cellValue
)
=>
{
},
{
if
(
cellValue
.
taskType
)
{
label
:
'类型'
,
return
{
prop
:
'taskType'
,
1
:
'系统'
,
formatter
:
(
cellValue
)
=>
{
2
:
'人工'
if
(
cellValue
.
taskType
)
{
}[
cellValue
.
taskType
]
return
{
1
:
'系统'
,
2
:
'人工'
}[
cellValue
.
taskType
]
}
}
}
}
}
,
{
},
{
label
:
'车辆编号'
,
label
:
'车辆编号'
,
prop
:
'trafficCode'
prop
:
'trafficCode'
},
{
},
{
label
:
'车辆站点'
,
label
:
'车辆站点'
,
prop
:
'stationName'
prop
:
'stationName'
},
{
},
{
label
:
'子系统编号'
,
label
:
'子系统编号'
,
prop
:
'subsystemCode'
prop
:
'subsystemCode'
},
{
},
{
label
:
'子系统类型'
,
label
:
'子系统类型'
,
prop
:
'subsystemType'
prop
:
'subsystemType'
},
{
},
{
label
:
'故障类型'
,
label
:
'故障类型
'
,
prop
:
'downType
'
,
prop
:
'downType'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
if
(
cellValue
.
downType
)
{
if
(
cellValue
.
downType
)
{
return
{
return
{
1
:
'临时维修'
,
1
:
'临时维修
'
,
2
:
'车辆整改
'
,
2
:
'车辆整改
'
,
3
:
'重点车次
'
,
3
:
'重点车次'
,
4
:
'181故障'
4
:
'181故障'
}[
cellValue
.
downType
]
}
[
cellValue
.
downType
]
}
}
}
}
}
,
{
},
{
label
:
'故障描述'
,
label
:
'故障描述
'
,
prop
:
'downDescription
'
,
prop
:
'downDescription'
,
width
:
'300'
width
:
'300'
},
{
},
{
label
:
'处理方式'
,
label
:
'处理方式
'
,
prop
:
'treatment
'
,
prop
:
'treatment'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
if
(
cellValue
.
treatment
)
{
if
(
cellValue
.
treatment
)
{
return
{
return
{
1
:
'现场维修'
,
1
:
'现场维修'
,
2
:
'更换'
2
:
'更换'
}[
cellValue
.
treatment
]
}
[
cellValue
.
treatment
]
}
}
}
}
}
,
{
},
{
label
:
'故障物料代码'
,
label
:
'故障物料代码'
,
prop
:
'downDeviceNum'
prop
:
'downDeviceNum'
},
{
},
{
label
:
'故障物料编码'
,
label
:
'故障物料编码'
,
prop
:
'downDeviceCode'
prop
:
'downDeviceCode'
},
{
},
{
label
:
'故障物料处理'
,
label
:
'故障物料处理
'
,
prop
:
'downDeviceTreatment
'
,
prop
:
'downDeviceTreatment'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
if
(
cellValue
.
downDeviceTreatment
)
{
if
(
cellValue
.
downDeviceTreatment
)
{
return
{
return
{
1
:
'返厂维修'
,
1
:
'返厂维修'
,
2
:
'报废'
2
:
'报废'
}[
cellValue
.
downDeviceTreatment
]
}
[
cellValue
.
downDeviceTreatment
]
}
}
}
}
}
,
{
},
{
label
:
'更换物料物料代码'
,
label
:
'更换物料物料代码'
,
prop
:
'replaceDeviceNum'
prop
:
'replaceDeviceNum'
},
{
},
{
label
:
'更换物料物料编码'
,
label
:
'更换物料物料编码'
,
prop
:
'replaceDeviceCode'
prop
:
'replaceDeviceCode'
},
{
},
{
label
:
'使用数量'
,
label
:
'使用数量'
,
prop
:
'usedCount'
prop
:
'usedCount'
},
{
},
{
label
:
'处理人'
,
label
:
'处理人'
,
prop
:
'userName'
prop
:
'userName'
}]
}
]
,
},
getListApi
:
getListApi
getListApi
:
getListApi
}
}
},
},
watch
:
{
watch
:
{
'creatTime'
(
value
)
{
'creatTime'
(
value
)
{
!
value
&&
this
.
getList
()
// !value && this.getList()
Object
.
assign
(
this
.
searchForm
,
util
.
formatTime
(
this
.
creatTime
))
}
}
},
},
...
@@ -281,8 +281,8 @@ export default {
...
@@ -281,8 +281,8 @@ export default {
this
.
$refs
.
table
.
refreshTable
()
this
.
$refs
.
table
.
refreshTable
()
},
},
exportOrder
()
{
exportOrder
()
{
const
params
=
this
.
getParams
()
//
const params = this.getParams()
exportApi
(
params
).
then
(
res
=>
{
exportApi
(
this
.
searchForm
).
then
(
res
=>
{
this
.
$open
(
res
.
url
)
this
.
$open
(
res
.
url
)
notice
.
okTips
()
notice
.
okTips
()
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
@@ -290,11 +290,6 @@ export default {
...
@@ -290,11 +290,6 @@ export default {
})
})
},
},
/* 接口请求-end */
/* 接口请求-end */
// 搜索
handleSearch
()
{
this
.
getList
()
},
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'确认删除?'
,
'删除'
,
{
this
.
$confirm
(
'确认删除?'
,
'删除'
,
{
comfirmButtonText
:
'确认'
,
comfirmButtonText
:
'确认'
,
...
...
src/views/materiaOrderManagement/index.vue
View file @
f3377ff
...
@@ -8,19 +8,19 @@
...
@@ -8,19 +8,19 @@
slot=
"header"
slot=
"header"
>
>
<el-form-item
label=
"订单编号"
>
<el-form-item
label=
"订单编号"
>
<el-input
v-model=
"searchForm.orderCode"
placeholder=
"请输入订单编号"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.orderCode"
placeholder=
"请输入订单编号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单类型"
>
<el-form-item
label=
"订单类型"
>
<el-select
v-model=
"searchForm.orderType"
placeholder=
"请选择订单类型"
@
clear=
"getList"
clearable
filterable
>
<el-select
v-model=
"searchForm.orderType"
placeholder=
"请选择订单类型"
clearable
filterable
>
<el-option
label=
"物料申请"
value=
"1"
></el-option>
<el-option
label=
"物料申请"
value=
"1"
></el-option>
<el-option
label=
"物料报废"
value=
"2"
></el-option>
<el-option
label=
"物料报废"
value=
"2"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"申请人"
>
<el-form-item
label=
"申请人"
>
<el-input
v-model=
"searchForm.userName"
placeholder=
"请输入申请人"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.userName"
placeholder=
"请输入申请人"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单状态"
>
<el-form-item
label=
"订单状态"
>
<el-select
v-model=
"searchForm.status"
placeholder=
"请选择订单状态"
@
clear=
"getList"
clearable
filterable
>
<el-select
v-model=
"searchForm.status"
placeholder=
"请选择订单状态"
clearable
filterable
>
<el-option
<el-option
v-for=
"(item, index) in statusArr"
v-for=
"(item, index) in statusArr"
:key=
"index"
:key=
"index"
...
@@ -39,17 +39,13 @@
...
@@ -39,17 +39,13 @@
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch
"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
:id=
"tableParams.btnId
"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<d2-table-header
title=
"订单列表"
><auth-button
category=
"Button"
></auth-button></d2-table-header>
<d2-table-header
title=
"订单列表"
><auth-button
category=
"Button"
></auth-button></d2-table-header>
<d2-table
<d2-table
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
tableOption=
true
:tag=
"tag"
listName=
'orderList'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
>
>
<auth-button
<auth-button
...
@@ -108,74 +104,63 @@ export default {
...
@@ -108,74 +104,63 @@ export default {
value
:
5
,
value
:
5
,
label
:
'已完成'
label
:
'已完成'
}],
}],
// 表格
// 表格参数
tag
:
Object
.
freeze
({
tableParams
:
{
type
:
[
''
,
''
,
'info'
,
'danger'
,
'warning'
,
'success'
],
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
label
:
[
''
,
'审批中'
,
'审批完成'
,
'已驳回'
,
'待签收'
,
'已完成'
]
listName
:
'orderList'
,
}),
tag
:
Object
.
freeze
({
// tableData: [],
type
:
[
''
,
''
,
'info'
,
'danger'
,
'warning'
,
'success'
],
tableColumns
:
[{
label
:
[
''
,
'审批中'
,
'审批完成'
,
'已驳回'
,
'待签收'
,
'已完成'
]
label
:
'订单编号'
,
}),
prop
:
'orderCode'
,
tableOption
:
true
,
minWidth
:
'200'
tableColumns
:
[{
},
{
label
:
'订单编号'
,
label
:
'创建时间'
,
prop
:
'orderCode'
,
prop
:
'createTime'
,
minWidth
:
'200'
minWidth
:
'180'
},
{
},
{
label
:
'创建时间'
,
label
:
'类型'
,
prop
:
'createTime'
,
prop
:
'orderType'
,
minWidth
:
'180'
width
:
'120'
,
},
{
formatter
:
(
cellValue
)
=>
{
label
:
'类型'
,
if
(
cellValue
.
orderType
)
{
prop
:
'orderType'
,
return
{
width
:
'120'
,
1
:
'物料申请'
,
formatter
:
(
cellValue
)
=>
{
2
:
'物料报废'
if
(
cellValue
.
orderType
)
{
}[
cellValue
.
orderType
]
return
{
1
:
'物料申请'
,
2
:
'物料报废'
}[
cellValue
.
orderType
]
}
}
}
}
}
,
{
},
{
label
:
'申请人'
,
label
:
'申请人
'
,
prop
:
'userName
'
,
prop
:
'userName'
,
width
:
'140'
width
:
'140'
},
{
},
{
label
:
'状态'
,
label
:
'状态
'
,
prop
:
'status
'
,
prop
:
'status'
,
tagLabel
:
true
,
tagLabel
:
true
,
width
:
'140'
width
:
'140'
}]
}
]
,
},
getListApi
:
getListApi
getListApi
:
getListApi
}
}
},
},
watch
:
{
watch
:
{
'createTime'
(
value
)
{
'createTime'
(
value
)
{
!
value
&&
this
.
getList
(
)
Object
.
assign
(
this
.
searchForm
,
util
.
formatTime
(
this
.
createTime
)
)
}
}
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
// test() {
// console.log('test---')
// },
// changePage() {
// this.getList()
// },
/* 接口请求-start */
/* 接口请求-start */
getParams
()
{
return
Object
.
assign
(
this
.
searchForm
,
util
.
formatTime
(
this
.
createTime
))
},
getList
()
{
this
.
getParams
()
this
.
$refs
.
table
.
refreshTable
()
},
exportFile
()
{
exportFile
()
{
const
params
=
this
.
getParams
(
)
const
params
=
_
.
cloneDeep
(
this
.
searchForm
)
!
params
.
orderCode
&&
delete
params
.
orderCode
!
params
.
orderCode
&&
delete
params
.
orderCode
exportApi
(
params
).
then
(
res
=>
{
exportApi
(
params
).
then
(
res
=>
{
this
.
$open
(
res
.
url
)
this
.
$open
(
res
.
url
)
...
@@ -185,10 +170,6 @@ export default {
...
@@ -185,10 +170,6 @@ export default {
})
})
},
},
/* 接口请求-end */
/* 接口请求-end */
// 搜索
handleSearch
()
{
this
.
getList
()
},
handleDetailClose
()
{
handleDetailClose
()
{
this
.
pdfUrl
=
''
this
.
pdfUrl
=
''
...
...
src/views/materialList/index.vue
View file @
f3377ff
...
@@ -8,20 +8,25 @@
...
@@ -8,20 +8,25 @@
slot=
"header"
slot=
"header"
>
>
<el-form-item
label=
"物料"
>
<el-form-item
label=
"物料"
>
<el-input
v-model=
"searchForm.keyWord"
placeholder=
"请输入物料代码/编码/名称"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.keyWord"
placeholder=
"请输入物料代码/编码/名称"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList
"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
:id=
"tableParams.btnId
"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<d2-table-header
title=
"物料列表"
></d2-table-header>
<d2-table-header
title=
"物料列表"
></d2-table-header>
<d2-table
<d2-table
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
listName=
'deviceList'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
></d2-table>
></d2-table>
<!--
<d2-table
ref=
"table"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
></d2-table>
-->
</d2-container>
</d2-container>
</
template
>
</
template
>
...
@@ -37,45 +42,59 @@ export default {
...
@@ -37,45 +42,59 @@ export default {
},
},
getListApi
:
getListApi
,
getListApi
:
getListApi
,
// 表格
// 表格
tableData
:
[],
// tableData: [],
tableColumns
:
[{
// tableTotal: 10,
label
:
'物料代码'
,
tableParams
:
{
prop
:
'deviceNum'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
width
:
'170'
listName
:
'deviceList'
,
},
{
tableColumns
:
[{
label
:
'物料编码'
,
label
:
'物料代码'
,
prop
:
'deviceCode'
,
prop
:
'deviceNum'
,
width
:
'170'
width
:
'170'
},
{
},
{
label
:
'CRC物料号'
,
label
:
'物料编码'
,
prop
:
'crcCode'
,
prop
:
'deviceCode'
,
width
:
'170'
width
:
'170'
},
{
},
{
label
:
'图号'
,
label
:
'CRC物料号'
,
prop
:
'drawNum'
,
prop
:
'crcCode'
,
width
:
'170'
width
:
'170'
},
{
},
{
label
:
'物料名称'
,
label
:
'图号'
,
prop
:
'deviceName'
,
prop
:
'drawNum'
,
minWidth
:
'200'
width
:
'170'
},
{
},
{
label
:
'规格'
,
label
:
'物料名称'
,
prop
:
'specifications'
,
prop
:
'deviceName'
,
width
:
'140'
minWidth
:
'200'
},
{
},
{
label
:
'责任人'
,
label
:
'规格'
,
prop
:
'responsible'
,
prop
:
'specifications'
,
width
:
'120'
width
:
'140'
}]
},
{
label
:
'责任人'
,
prop
:
'responsible'
,
width
:
'120'
}]
}
}
}
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getList
()
{
// getList(page) {
this
.
$refs
.
table
.
refreshTable
()
// const params = {
}
// ...(page || { pageCount: 10, pageSize: 1 }),
// ...this.searchForm
// }
// getListApi(params).then(res => {
// this.tableData = res.deviceList
// this.tableTotal = res.pagination.totalCount
// }).catch(() => {
// notice.errorTips()
// })
// }
}
}
}
}
...
...
src/views/reportingLogs/index.vue
View file @
f3377ff
...
@@ -18,10 +18,10 @@
...
@@ -18,10 +18,10 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"车辆编号"
>
<el-form-item
label=
"车辆编号"
>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
clearable
@
clear=
"getList"
></el-input>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"归属车辆段"
>
<el-form-item
label=
"归属车辆段"
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择"
clearable
filterable
@
clear=
"getList"
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择"
clearable
filterable
>
<el-option
v-for=
"(item, index) in baseData.station"
<el-option
v-for=
"(item, index) in baseData.station"
:key=
"index"
:key=
"index"
:value=
"item.confCode"
:value=
"item.confCode"
...
@@ -30,18 +30,16 @@
...
@@ -30,18 +30,16 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"子系统编号"
>
<el-form-item
label=
"子系统编号"
>
<el-input
v-model=
"searchForm.subSystemCode"
placeholder=
"请输入子系统编号"
clearable
@
clear=
"getList"
></el-input>
<el-input
v-model=
"searchForm.subSystemCode"
placeholder=
"请输入子系统编号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch
"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
:id=
"tableParams.btnId
"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<d2-table-header
title=
"上报日志列表"
></d2-table-header>
<d2-table-header
title=
"上报日志列表"
></d2-table-header>
<d2-table
<d2-table
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
listName=
'loges'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
></d2-table>
></d2-table>
</d2-container>
</d2-container>
...
@@ -65,36 +63,40 @@ export default {
...
@@ -65,36 +63,40 @@ export default {
stationCode
:
''
,
stationCode
:
''
,
subSystemCode
:
''
subSystemCode
:
''
},
},
tableData
:
[],
// 表格参数
tableColumns
:
[{
tableParams
:
{
label
:
'上报时间'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
prop
:
'reportTime'
,
listName
:
'loges'
,
minWidth
:
'200'
tableColumns
:
[{
},
{
label
:
'上报时间'
,
label
:
'车辆编号'
,
prop
:
'reportTime'
,
prop
:
'trafficCode'
,
minWidth
:
'200'
width
:
'120'
},
{
},
{
label
:
'车辆编号'
,
label
:
'归属车辆段'
,
prop
:
'trafficCode'
,
prop
:
'stationName'
,
width
:
'120'
minWidth
:
'100'
},
{
},
{
label
:
'归属车辆段'
,
label
:
'子系统编号'
,
prop
:
'stationName'
,
prop
:
'subSystemCode'
,
minWidth
:
'100'
width
:
'160'
},
{
},
{
label
:
'子系统编号'
,
label
:
'子系统类型'
,
prop
:
'subSystemCode'
,
prop
:
'subSystemType'
,
width
:
'160'
width
:
'100'
},
{
},
{
label
:
'子系统类型'
,
label
:
'子系统厂家'
,
prop
:
'subSystemType'
,
prop
:
'merchantName'
,
width
:
'100'
minWidth
:
'200'
},
{
},
{
label
:
'子系统厂家'
,
label
:
'上报内容'
,
prop
:
'merchantName'
,
prop
:
'reportValue'
,
minWidth
:
'200'
minWidth
:
'200'
},
{
}],
label
:
'上报内容'
,
prop
:
'reportValue'
,
minWidth
:
'200'
}]
},
baseData
:
{
baseData
:
{
station
:
[]
station
:
[]
}
}
...
@@ -103,7 +105,7 @@ export default {
...
@@ -103,7 +105,7 @@ export default {
watch
:
{
watch
:
{
'reportTime'
(
value
)
{
'reportTime'
(
value
)
{
!
value
&&
this
.
getList
(
)
Object
.
assign
(
this
.
searchForm
,
util
.
formatTime
(
this
.
reportTime
)
)
}
}
},
},
...
@@ -115,29 +117,17 @@ export default {
...
@@ -115,29 +117,17 @@ export default {
async
loadBaseData
()
{
async
loadBaseData
()
{
const
data
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
STATION
.
KEY
)
const
data
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
STATION
.
KEY
)
this
.
baseData
.
station
=
data
this
.
baseData
.
station
=
data
},
getList
()
{
Object
.
assign
(
this
.
searchForm
,
util
.
formatTime
(
this
.
reportTime
))
this
.
$refs
.
table
.
refreshTable
()
},
handleExport
()
{
Object
.
assign
(
this
.
searchForm
,
util
.
formatTime
(
this
.
reportTime
))
exportApi
(
this
.
searchForm
).
then
(
res
=>
{
// console.log(res)
// window.location.href = res.url
this
.
$open
(
res
.
url
)
notice
.
okTips
()
}).
catch
(()
=>
{
notice
.
errorTips
()
})
},
// 搜索
handleSearch
()
{
this
.
getList
()
}
}
// 需求变更
// handleExport() {
// exportApi(this.searchForm).then(res => {
// this.$open(res.url)
// notice.okTips()
// }).catch(() => {
// notice.errorTips()
// })
// }
}
}
}
}
...
...
src/views/subSysManagement/index.vue
View file @
f3377ff
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
slot=
"header"
slot=
"header"
>
>
<el-form-item
label=
"子系统编号"
>
<el-form-item
label=
"子系统编号"
>
<el-input
v-model=
"searchForm.subsystemCode"
placeholder=
"请输入子系统编号"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.subsystemCode"
placeholder=
"请输入子系统编号"
clearable
></el-input>
<!--
<el-select
<!--
<el-select
v-model=
"searchForm.subsystemCode"
v-model=
"searchForm.subsystemCode"
placeholder=
"请输入子系统编号"
placeholder=
"请输入子系统编号"
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</el-select>
-->
</el-select>
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"类型"
>
<el-form-item
label=
"类型"
>
<el-select
v-model=
"searchForm.subsystemTypeCode"
placeholder=
"请选择类型"
@
clear=
"getList"
clearable
filterable
>
<el-select
v-model=
"searchForm.subsystemTypeCode"
placeholder=
"请选择类型"
clearable
filterable
>
<el-option
v-for=
"(item, index) in baseData.subsys"
<el-option
v-for=
"(item, index) in baseData.subsys"
:key=
"index"
:key=
"index"
:value=
"item.confCode"
:value=
"item.confCode"
...
@@ -36,22 +36,20 @@
...
@@ -36,22 +36,20 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"车辆编号"
>
<el-form-item
label=
"车辆编号"
>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"生产厂家"
>
<el-form-item
label=
"生产厂家"
>
<el-input
v-model=
"searchForm.merchantName"
placeholder=
"请输入生产厂家"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.merchantName"
placeholder=
"请输入生产厂家"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList
"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
:id=
"tableParams.btnId
"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<d2-table-header
title=
"子系统列表"
><auth-button
category=
"Button"
:data=
"editFormReset"
></auth-button></d2-table-header>
<d2-table-header
title=
"子系统列表"
><auth-button
category=
"Button"
:data=
"editFormReset"
></auth-button></d2-table-header>
<d2-table
<d2-table
ref=
"table"
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
tableOption=
true
listName=
'subsystemList'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
>
>
<auth-button
<auth-button
...
@@ -119,40 +117,46 @@ export default {
...
@@ -119,40 +117,46 @@ export default {
trafficCode
:
''
,
trafficCode
:
''
,
merchantName
:
''
merchantName
:
''
},
},
tableData
:
[],
// tableData: [],
tableColumns
:
[{
// 表格参数
label
:
'子系统编号'
,
tableParams
:
{
prop
:
'subsystemCode'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
width
:
'220'
listName
:
'subsystemList'
,
},
{
tableOption
:
true
,
label
:
'类型'
,
tableColumns
:
[{
prop
:
'subsystemType'
,
label
:
'子系统编号'
,
width
:
'120'
prop
:
'subsystemCode'
,
},
{
width
:
'220'
label
:
'车辆编号'
,
},
{
prop
:
'trafficCode'
,
label
:
'类型'
,
width
:
'120'
prop
:
'subsystemType'
,
},
{
width
:
'120'
label
:
'生产厂家'
,
},
{
prop
:
'merchantName'
,
label
:
'车辆编号'
,
minWidth
:
'220'
prop
:
'trafficCode'
,
},
{
width
:
'120'
label
:
'发送结点序列'
,
},
{
prop
:
'sendSequence'
,
label
:
'生产厂家'
,
width
:
'120'
prop
:
'merchantName'
,
},
{
minWidth
:
'220'
label
:
'发送结点接口'
,
},
{
prop
:
'sendPort'
,
label
:
'发送结点序列'
,
width
:
'120'
prop
:
'sendSequence'
,
},
{
width
:
'120'
label
:
'网关地址'
,
},
{
prop
:
'gatewayUrl'
,
label
:
'发送结点接口'
,
width
:
'220'
prop
:
'sendPort'
,
},
{
width
:
'120'
label
:
'网关端口'
,
},
{
prop
:
'gatewayPort'
,
label
:
'网关地址'
,
width
:
'120'
prop
:
'gatewayUrl'
,
}],
width
:
'220'
},
{
label
:
'网关端口'
,
prop
:
'gatewayPort'
,
width
:
'120'
}]
},
// 页码
// 页码
baseData
:
{
baseData
:
{
subsys
:
[]
subsys
:
[]
...
@@ -217,10 +221,6 @@ export default {
...
@@ -217,10 +221,6 @@ export default {
})
})
},
},
/* 接口请求-end */
/* 接口请求-end */
// 搜索
// handleSearch() {
// this.getList()
// },
handleEditClose
()
{
handleEditClose
()
{
this
.
editVisible
=
!
this
.
editVisible
this
.
editVisible
=
!
this
.
editVisible
...
...
src/views/systemMonitor/index.vue
View file @
f3377ff
...
@@ -27,10 +27,10 @@
...
@@ -27,10 +27,10 @@
label-width=
"100px"
label-width=
"100px"
>
>
<el-form-item
label=
"车辆编号"
>
<el-form-item
label=
"车辆编号"
>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"归属车辆段"
>
<el-form-item
label=
"归属车辆段"
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择归属车辆段"
@
clear=
"getList"
filterable
clearable
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择归属车辆段"
filterable
clearable
>
<el-option
v-for=
"(item, index) in baseData.station"
<el-option
v-for=
"(item, index) in baseData.station"
:key=
"index"
:key=
"index"
:value=
"item.confCode"
:value=
"item.confCode"
...
@@ -39,25 +39,22 @@
...
@@ -39,25 +39,22 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"子系统编号"
>
<el-form-item
label=
"子系统编号"
>
<el-input
v-model=
"searchForm.subsystemCode"
placeholder=
"请输入子系统编号"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.subsystemCode"
placeholder=
"请输入子系统编号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"子系统状态"
>
<el-form-item
label=
"子系统状态"
>
<el-select
v-model=
"searchForm.onlineStatus"
placeholder=
"请选择子系统状态"
@
clear=
"getList"
filterable
clearable
>
<el-select
v-model=
"searchForm.onlineStatus"
placeholder=
"请选择子系统状态"
filterable
clearable
>
<el-option
value=
"1"
label=
"在网"
></el-option>
<el-option
value=
"1"
label=
"在网"
></el-option>
<el-option
value=
"2"
label=
"离网"
></el-option>
<el-option
value=
"2"
label=
"离网"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList
"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
:id=
"tableParams.btnId
"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<d2-table-header
title=
"子系统状态列表"
><auth-button
category=
"Button"
></auth-button></d2-table-header>
<d2-table-header
title=
"子系统状态列表"
><auth-button
category=
"Button"
></auth-button></d2-table-header>
<d2-table
<d2-table
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
:tag=
"tag"
listName=
'subsystemList'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
></d2-table>
></d2-table>
</div>
</div>
...
@@ -73,10 +70,6 @@ export default {
...
@@ -73,10 +70,6 @@ export default {
data
()
{
data
()
{
return
{
return
{
subSystemRadio
:
'全部'
,
subSystemRadio
:
'全部'
,
tag
:
Object
.
freeze
({
type
:
[
''
,
'success'
,
'info'
],
label
:
[
''
,
'在网'
,
'离网'
]
}),
// 绘图
// 绘图
totalECharts
:
''
,
totalECharts
:
''
,
totalOptions
:
{
totalOptions
:
{
...
@@ -152,31 +145,40 @@ export default {
...
@@ -152,31 +145,40 @@ export default {
onlineStatus
:
''
onlineStatus
:
''
},
},
// 表格
// 表格
tableData
:
[],
// tableData: [],
tableColumns
:
[{
// 表格参数
label
:
'子系统编号'
,
tableParams
:
{
prop
:
'subsystemCode'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
width
:
'160'
listName
:
'subsystemList'
,
},
{
tag
:
Object
.
freeze
({
label
:
'子系统类型'
,
type
:
[
''
,
'success'
,
'info'
],
prop
:
'subsystemType'
,
label
:
[
''
,
'在网'
,
'离网'
]
width
:
'120'
}),
},
{
tableColumns
:
[{
label
:
'子系统状态'
,
label
:
'子系统编号'
,
prop
:
'onlineStatus'
,
prop
:
'subsystemCode'
,
width
:
'160'
,
width
:
'160'
tagLabel
:
true
},
{
},
{
label
:
'子系统类型'
,
label
:
'车辆编号'
,
prop
:
'subsystemType'
,
prop
:
'trafficCode'
,
width
:
'120'
width
:
'120'
},
{
},
{
label
:
'子系统状态'
,
label
:
'归属车辆段'
,
prop
:
'onlineStatus'
,
prop
:
'stationName'
width
:
'160'
,
},
{
tagLabel
:
true
label
:
'故障内容'
,
},
{
prop
:
'errorCode'
label
:
'车辆编号'
,
}],
prop
:
'trafficCode'
,
width
:
'120'
},
{
label
:
'归属车辆段'
,
prop
:
'stationName'
},
{
label
:
'故障内容'
,
prop
:
'errorCode'
}]
},
baseData
:
{
baseData
:
{
station
:
[],
station
:
[],
subsys
:
[]
subsys
:
[]
...
@@ -203,9 +205,6 @@ export default {
...
@@ -203,9 +205,6 @@ export default {
this
.
baseData
.
subsys
.
unshift
({
confCode
:
''
,
confValue
:
'全部'
})
this
.
baseData
.
subsys
.
unshift
({
confCode
:
''
,
confValue
:
'全部'
})
},
},
getList
()
{
this
.
$refs
.
table
.
refreshTable
()
},
getPie
(
label
=
''
)
{
getPie
(
label
=
''
)
{
const
params
=
{
const
params
=
{
subsystemTypeCode
:
label
?
this
.
baseData
.
subsys
.
find
(
item
=>
item
.
confValue
===
label
).
confCode
:
''
subsystemTypeCode
:
label
?
this
.
baseData
.
subsys
.
find
(
item
=>
item
.
confValue
===
label
).
confCode
:
''
...
...
src/views/trafficManagement/index.vue
View file @
f3377ff
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
slot=
"header"
slot=
"header"
>
>
<el-form-item
label=
"车辆编号"
>
<el-form-item
label=
"车辆编号"
>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"归属车辆段"
>
<el-form-item
label=
"归属车辆段"
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择归属车辆段"
@
clear=
"getList"
clearable
filterable
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择归属车辆段"
clearable
filterable
>
<el-option
v-for=
"(item, index) in baseData.station"
<el-option
v-for=
"(item, index) in baseData.station"
:key=
"index"
:key=
"index"
:value=
"item.confCode"
:value=
"item.confCode"
...
@@ -20,19 +20,17 @@
...
@@ -20,19 +20,17 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"维修承包商"
>
<el-form-item
label=
"维修承包商"
>
<el-input
v-model=
"searchForm.merchantName"
placeholder=
"请输入维修承包商"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.merchantName"
placeholder=
"请输入维修承包商"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch
"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
:id=
"tableParams.btnId
"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<d2-table-header
title=
"车辆列表"
><auth-button
category=
"Button"
:data=
"editFormReset"
></auth-button></d2-table-header>
<d2-table-header
title=
"车辆列表"
><auth-button
category=
"Button"
:data=
"editFormReset"
></auth-button></d2-table-header>
<d2-table
<d2-table
ref=
"table"
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
tableOption=
true
listName=
'trafficList'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
>
>
<auth-button
<auth-button
...
@@ -89,32 +87,36 @@ export default {
...
@@ -89,32 +87,36 @@ export default {
openType
:
''
openType
:
''
},
},
// 表格
// 表格
tableData
:
[],
tableParams
:
{
tableColumns
:
[{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
label
:
'车辆编号'
,
listName
:
'trafficList'
,
prop
:
'trafficCode'
,
tableOption
:
true
,
width
:
'120'
tableColumns
:
[{
},
{
label
:
'车辆编号'
,
label
:
'归属车辆段'
,
prop
:
'trafficCode'
,
prop
:
'stationName'
,
width
:
'120'
minWidth
:
'220'
},
{
},
{
label
:
'归属车辆段'
,
label
:
'维修承包商'
,
prop
:
'stationName'
,
prop
:
'merchantName'
,
minWidth
:
'220'
minWidth
:
'220'
},
{
},
{
label
:
'维修承包商'
,
label
:
'接口开放'
,
prop
:
'merchantName'
,
prop
:
'openType'
,
minWidth
:
'220'
width
:
'80px'
,
},
{
formatter
:
(
cellValue
)
=>
{
label
:
'接口开放'
,
if
(
cellValue
.
openType
)
{
prop
:
'openType'
,
return
{
width
:
'80px'
,
1
:
'是'
,
formatter
:
(
cellValue
)
=>
{
2
:
'否'
if
(
cellValue
.
openType
)
{
}[
cellValue
.
openType
]
return
{
1
:
'是'
,
2
:
'否'
}[
cellValue
.
openType
]
}
}
}
}
}
]
}
]
,
},
baseData
:
{
baseData
:
{
station
:
[]
station
:
[]
},
},
...
@@ -153,10 +155,6 @@ export default {
...
@@ -153,10 +155,6 @@ export default {
})
})
},
},
/* 接口请求-end */
/* 接口请求-end */
// 搜索
handleSearch
()
{
this
.
getList
()
},
handleEditClose
()
{
handleEditClose
()
{
this
.
editVisible
=
!
this
.
editVisible
this
.
editVisible
=
!
this
.
editVisible
...
...
src/views/userManage/loginLogs/index.vue
View file @
f3377ff
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
slot=
"header"
slot=
"header"
>
>
<el-form-item
label=
"用户"
>
<el-form-item
label=
"用户"
>
<el-input
v-model=
"searchForm.userName"
placeholder=
"请输入用户名/姓名/联系电话"
@
clear=
"getList"
clearable
></el-input>
<el-input
v-model=
"searchForm.userName"
placeholder=
"请输入用户名/姓名/联系电话"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"登录方式"
>
<el-form-item
label=
"登录方式"
>
<el-select
v-model=
"searchForm.loginType"
placeholder=
"请选择"
@
clear=
"getList"
clearable
filterable
>
<el-select
v-model=
"searchForm.loginType"
placeholder=
"请选择"
clearable
filterable
>
<el-option
label=
"PC"
value=
"1"
></el-option>
<el-option
label=
"PC"
value=
"1"
></el-option>
<el-option
label=
"小程序"
value=
"2"
></el-option>
<el-option
label=
"小程序"
value=
"2"
></el-option>
</el-select>
</el-select>
...
@@ -27,15 +27,14 @@
...
@@ -27,15 +27,14 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList
"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
:id=
"tableParams.btnId
"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<d2-table-header
title=
"登录日志列表"
></d2-table-header>
<d2-table-header
title=
"登录日志列表"
></d2-table-header>
<d2-table
<d2-table
ref=
"table"
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
listName=
'loges'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
></d2-table>
></d2-table>
</d2-container>
</d2-container>
...
@@ -56,46 +55,45 @@ export default {
...
@@ -56,46 +55,45 @@ export default {
userName
:
''
,
userName
:
''
,
loginType
:
''
loginType
:
''
},
},
tableData
:
[],
// 表格参数
tableColumns
:
[{
tableParams
:
{
label
:
'登录时间'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
prop
:
'loginTime'
,
listName
:
'loges'
,
width
:
'200px'
tableColumns
:
[{
},
{
label
:
'登录时间'
,
label
:
'登录用户'
,
prop
:
'loginTime'
,
prop
:
'loginName'
width
:
'200px'
},
{
},
{
label
:
'姓名'
,
label
:
'登录用户'
,
prop
:
'userName'
prop
:
'loginName'
},
{
},
{
label
:
'联系电话'
,
label
:
'姓名'
,
prop
:
'mobile'
,
prop
:
'userName'
width
:
'180px'
},
{
},
{
label
:
'联系电话'
,
label
:
'登录方式'
,
prop
:
'mobile'
,
prop
:
'loginTypeValue'
width
:
'180px'
},
{
},
{
label
:
'登录设备'
,
label
:
'登录方式'
,
prop
:
'deviceCode'
,
prop
:
'loginTypeValue'
width
:
'300px'
},
{
}]
label
:
'登录设备'
,
prop
:
'deviceCode'
,
width
:
'300px'
}]
}
}
}
},
},
watch
:
{
watch
:
{
'loginTime'
(
value
)
{
'loginTime'
(
value
)
{
!
value
&&
this
.
getList
(
)
Object
.
assign
(
this
.
searchForm
,
util
.
formatTime
(
this
.
loginTime
)
)
}
}
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{}
getList
()
{
Object
.
assign
(
this
.
searchForm
,
util
.
formatTime
(
this
.
loginTime
))
this
.
$refs
.
table
.
refreshTable
()
}
}
}
}
</
script
>
</
script
>
...
...
src/views/userManage/role/index.vue
View file @
f3377ff
<!-- 权限管理 -->
<!-- 权限管理 -->
<
template
>
<
template
>
<d2-container
class=
"role"
>
<d2-container
class=
"role"
>
<d2-table-header
title=
"角色列表"
><auth-button
category=
"action"
label=
"创建角色"
></auth-button></d2-table-header>
<d2-table-header
title=
"角色列表"
><auth-button
category=
"action"
label=
"创建角色"
></auth-button></d2-table-header>
<d2-table
<d2-table
ref=
"table"
ref=
"table"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
tableOption=
true
listName=
'roles'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
>
>
<auth-button
<auth-button
...
@@ -39,20 +37,26 @@ export default {
...
@@ -39,20 +37,26 @@ export default {
editVisible
:
false
,
editVisible
:
false
,
// 表格
// 表格
pagination
:
false
,
pagination
:
false
,
tableColumns
:
Object
.
freeze
([
// 表格参数
{
tableParams
:
{
label
:
'角色名称'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
prop
:
'roleName'
listName
:
'roles'
,
},
tableOption
:
true
,
{
tableColumns
:
Object
.
freeze
([
label
:
'描述'
,
{
prop
:
'description'
label
:
'角色名称'
,
},
prop
:
'roleName'
{
},
label
:
'创建时间'
,
{
prop
:
'createTime'
label
:
'描述'
,
}
prop
:
'description'
])
},
{
label
:
'创建时间'
,
prop
:
'createTime'
}
])
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/userManage/user/index.vue
View file @
f3377ff
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
<d2-container
class=
"user"
>
<d2-container
class=
"user"
>
<el-form
:inline=
"true"
:model=
"searchForm"
label-width=
"85px"
slot=
"header"
>
<el-form
:inline=
"true"
:model=
"searchForm"
label-width=
"85px"
slot=
"header"
>
<el-form-item
label=
"用户:"
>
<el-form-item
label=
"用户:"
>
<el-input
v-model=
"searchForm.userName"
placeholder=
"请输入用户名/姓名/联系电话"
@
clear=
"getUserList"
clearable
></el-input>
<el-input
v-model=
"searchForm.userName"
placeholder=
"请输入用户名/姓名/联系电话"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所属公司:"
>
<el-form-item
label=
"所属公司:"
>
<el-input
v-model=
"searchForm.companyName"
placeholder=
"请输入公司名"
@
clear=
"getUserList"
clearable
></el-input>
<el-input
v-model=
"searchForm.companyName"
placeholder=
"请输入公司名"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"角色:"
>
<el-form-item
label=
"角色:"
>
<el-select
v-model=
"searchForm.roleId"
clearable
placeholder=
"请选择"
@
clear=
"getUserList"
>
<el-select
v-model=
"searchForm.roleId"
clearable
placeholder=
"请选择"
>
<el-option
<el-option
:label=
"role.roleName"
:label=
"role.roleName"
:value=
"role.roleId"
:value=
"role.roleId"
...
@@ -19,13 +19,13 @@
...
@@ -19,13 +19,13 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态:"
>
<el-form-item
label=
"状态:"
>
<el-select
v-model=
"searchForm.usedStatus"
clearable
placeholder=
"请选择状态"
@
clear=
"getUserList"
>
<el-select
v-model=
"searchForm.usedStatus"
clearable
placeholder=
"请选择状态"
>
<el-option
label=
"可用"
value=
"1"
></el-option>
<el-option
label=
"可用"
value=
"1"
></el-option>
<el-option
label=
"不可用/删除"
value=
"2"
></el-option>
<el-option
label=
"不可用/删除"
value=
"2"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所属站点:"
>
<el-form-item
label=
"所属站点:"
>
<el-select
v-model=
"searchForm.stationCode"
clearable
placeholder=
"请选择"
@
clear=
"getUserList"
>
<el-select
v-model=
"searchForm.stationCode"
clearable
placeholder=
"请选择"
>
<el-option
<el-option
:label=
"station.confValue"
:label=
"station.confValue"
:value=
"station.confCode"
:value=
"station.confCode"
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"职务:"
>
<el-form-item
label=
"职务:"
>
<el-select
v-model=
"searchForm.postCode"
clearable
placeholder=
"请选择"
@
clear=
"getUserList"
>
<el-select
v-model=
"searchForm.postCode"
clearable
placeholder=
"请选择"
>
<el-option
<el-option
:label=
"post.confValue"
:label=
"post.confValue"
:value=
"post.confCode"
:value=
"post.confCode"
...
@@ -55,17 +55,14 @@
...
@@ -55,17 +55,14 @@
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch
"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
:id=
"tableParams.btnId
"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<d2-table-header
title=
"用户列表"
><auth-button
category=
"action"
label=
"创建用户"
></auth-button></d2-table-header>
<d2-table-header
title=
"用户列表"
><auth-button
category=
"action"
label=
"创建用户"
></auth-button></d2-table-header>
<d2-table
<d2-table
ref=
"table"
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableColumns=
"tableColumns"
:tableParams=
"tableParams"
tableOption=
true
:tag=
"tag"
listName=
'userList'
:getListApi=
"getListApi"
:getListApi=
"getListApi"
>
>
<auth-button
<auth-button
...
@@ -102,11 +99,6 @@ export default {
...
@@ -102,11 +99,6 @@ export default {
return
{
return
{
getListApi
:
UserList
,
getListApi
:
UserList
,
key
:
new
Date
(),
key
:
new
Date
(),
tag
:
Object
.
freeze
({
effect
:
'dark'
,
type
:
[
''
,
'success'
,
'info'
,
'danger'
,
'warning'
],
label
:
[
'未知'
,
'正常'
,
'已过期'
,
'禁用'
,
'待审核'
]
}),
mapping
:
Object
.
freeze
({
mapping
:
Object
.
freeze
({
field
:
'status'
,
field
:
'status'
,
'1'
:
[
'重置密码'
,
'编辑'
,
'延期'
,
'禁用'
],
'1'
:
[
'重置密码'
,
'编辑'
,
'延期'
,
'禁用'
],
...
@@ -129,57 +121,68 @@ export default {
...
@@ -129,57 +121,68 @@ export default {
companyName
:
''
,
companyName
:
''
,
status
:
''
,
status
:
''
,
stationCode
:
''
,
stationCode
:
''
,
postCode
:
''
postCode
:
''
,
startTime
:
''
,
endTime
:
''
},
},
searchTimes
:
[],
searchTimes
:
[],
// 表格
// 表格
// tableData: [],
// 表格参数
tableColumns
:
[{
tableParams
:
{
label
:
'用户名'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
prop
:
'loginName'
,
listName
:
'userList'
,
width
:
'200'
tag
:
Object
.
freeze
({
},
{
type
:
[
''
,
'success'
,
'info'
,
'danger'
,
'warning'
],
label
:
'角色'
,
label
:
[
'未知'
,
'正常'
,
'已过期'
,
'禁用'
,
'待审核'
]
prop
:
'roleName'
,
}),
width
:
'140'
tableOption
:
true
,
},
{
tableColumns
:
[{
label
:
'注册时间'
,
label
:
'用户名'
,
prop
:
'registerTime'
,
prop
:
'loginName'
,
width
:
'200'
width
:
'200'
},
{
},
{
label
:
'有效期'
,
label
:
'角色'
,
prop
:
'validTime'
,
prop
:
'roleName'
,
width
:
'200'
width
:
'140'
},
{
},
{
label
:
'状态'
,
label
:
'注册时间'
,
prop
:
'status'
,
prop
:
'registerTime'
,
width
:
'100'
,
width
:
'200'
tagLabel
:
true
},
{
},
{
label
:
'有效期'
,
label
:
'姓名'
,
prop
:
'validTime'
,
prop
:
'userName'
,
width
:
'200'
width
:
'120'
},
{
},
{
label
:
'状态'
,
label
:
'联系电话'
,
prop
:
'status'
,
prop
:
'mobile'
,
width
:
'100'
,
width
:
'200'
tagLabel
:
true
},
{
},
{
label
:
'所属公司'
,
label
:
'姓名'
,
prop
:
'companyName'
,
prop
:
'userName'
,
width
:
'200'
width
:
'120'
},
{
},
{
label
:
'部门'
,
label
:
'联系电话'
,
prop
:
'departName'
,
prop
:
'mobile'
,
width
:
'200'
width
:
'200'
},
{
},
{
label
:
'职务'
,
label
:
'所属公司'
,
prop
:
'postName'
,
prop
:
'companyName'
,
width
:
'200'
width
:
'200'
},
{
},
{
label
:
'所属站点'
,
label
:
'部门'
,
prop
:
'stationName'
,
prop
:
'departName'
,
width
:
'200'
width
:
'200'
}],
},
{
label
:
'职务'
,
prop
:
'postName'
,
width
:
'200'
},
{
label
:
'所属站点'
,
prop
:
'stationName'
,
width
:
'200'
}]
},
/* -----------------------基础数据---------------------- */
/* -----------------------基础数据---------------------- */
baseData
:
{
baseData
:
{
// 所属站点
// 所属站点
...
@@ -194,7 +197,7 @@ export default {
...
@@ -194,7 +197,7 @@ export default {
watch
:
{
watch
:
{
'searchTimes'
(
value
)
{
'searchTimes'
(
value
)
{
!
value
&&
this
.
getUserList
(
)
Object
.
assign
(
this
.
searchForm
,
util
.
formatTime
(
this
.
searchTimes
)
)
},
},
'$store.state.d2admin.base.role'
(
value
)
{
'$store.state.d2admin.base.role'
(
value
)
{
this
.
baseData
.
roles
=
value
this
.
baseData
.
roles
=
value
...
@@ -226,7 +229,7 @@ export default {
...
@@ -226,7 +229,7 @@ export default {
},
},
/* 接口请求-start */
/* 接口请求-start */
getUserList
()
{
getUserList
()
{
Object
.
assign
(
this
.
searchForm
,
util
.
formatTime
(
this
.
searchTimes
))
//
Object.assign(this.searchForm, util.formatTime(this.searchTimes))
this
.
$refs
.
table
.
refreshTable
()
this
.
$refs
.
table
.
refreshTable
()
},
},
filterTag
(
value
,
row
)
{
filterTag
(
value
,
row
)
{
...
@@ -241,9 +244,9 @@ export default {
...
@@ -241,9 +244,9 @@ export default {
}
}
this
.
openDialog
(
row
)
this
.
openDialog
(
row
)
},
},
async
handleSearch
()
{
//
async handleSearch() {
this
.
getUserList
()
//
this.getUserList()
},
//
},
handleEdit
(
row
)
{
handleEdit
(
row
)
{
row
=
util
.
deepClone
(
row
)
row
=
util
.
deepClone
(
row
)
row
.
data
=
{
row
.
data
=
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment