Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhongtong-avi-web
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
中通客车项目
zhongtong-avi-web
Commits
1bc4198c
Commit
1bc4198c
authored
Sep 25, 2019
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fea(设备基础数据): 设备基础数据模块联调完成
parent
5f7b853a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
279 additions
and
3 deletions
+279
-3
AddDeviceDialog.vue
src/views/Basic/DeviceBasic/components/AddDeviceDialog.vue
+2
-0
EditDeviceDialog.vue
src/views/Basic/DeviceBasic/components/EditDeviceDialog.vue
+251
-0
list.vue
src/views/Basic/DeviceBasic/list.vue
+26
-3
No files found.
src/views/Basic/DeviceBasic/components/AddDeviceDialog.vue
View file @
1bc4198c
...
@@ -214,6 +214,8 @@
...
@@ -214,6 +214,8 @@
for
(
let
key
in
this
.
formData
)
{
for
(
let
key
in
this
.
formData
)
{
this
.
formData
[
key
]
=
''
this
.
formData
[
key
]
=
''
}
}
}).
catch
(()
=>
{
this
.
loadingToggle
=
false
})
})
}
}
})
})
...
...
src/views/Basic/DeviceBasic/components/EditDeviceDialog.vue
0 → 100644
View file @
1bc4198c
This diff is collapsed.
Click to expand it.
src/views/Basic/DeviceBasic/list.vue
View file @
1bc4198c
...
@@ -39,7 +39,8 @@
...
@@ -39,7 +39,8 @@
label=
"操作"
>
label=
"操作"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<el-button
type=
"text"
>
type=
"text"
@
click=
"doEditClick(scope.row)"
>
编辑
编辑
</el-button>
</el-button>
<el-button
<el-button
...
@@ -60,6 +61,13 @@
...
@@ -60,6 +61,13 @@
ref=
"AddDeviceDialog"
ref=
"AddDeviceDialog"
@
doConfirmClick=
"doAddDeviceDialogConfirm"
>
@
doConfirmClick=
"doAddDeviceDialogConfirm"
>
</AddDeviceDialog>
</AddDeviceDialog>
<!-- 编辑设备对话框 -->
<EditDeviceDialog
ref=
"EditDeviceDialog"
:editDeviceBasicValue=
"editDeviceBasicValue"
@
doConfirmClick=
"doEditDeviceDialogConfirm"
>
</EditDeviceDialog>
</div>
</div>
</template>
</template>
...
@@ -67,16 +75,20 @@
...
@@ -67,16 +75,20 @@
import
Table
from
'@/components/Table/index.vue'
import
Table
from
'@/components/Table/index.vue'
import
Search
from
'@/components/Search'
import
Search
from
'@/components/Search'
import
AddDeviceDialog
from
'./components/AddDeviceDialog'
import
AddDeviceDialog
from
'./components/AddDeviceDialog'
import
EditDeviceDialog
from
'./components/EditDeviceDialog'
export
default
{
export
default
{
name
:
'DeviceBasic'
,
name
:
'DeviceBasic'
,
components
:
{
components
:
{
Search
,
Search
,
Table
,
Table
,
AddDeviceDialog
AddDeviceDialog
,
EditDeviceDialog
},
},
data
()
{
data
()
{
return
{
return
{
// 编辑设备基础数据
editDeviceBasicValue
:
{},
// 精准搜索关键字列表
// 精准搜索关键字列表
searchList
:
{},
searchList
:
{},
// 表格配置项
// 表格配置项
...
@@ -111,7 +123,7 @@
...
@@ -111,7 +123,7 @@
},
},
// 点击搜索组件重置按钮
// 点击搜索组件重置按钮
doResetClick
(
searchValue
)
{
doResetClick
(
searchValue
)
{
this
.
searchList
=
{
...
search
List
,
filters
:
[]
}
this
.
searchList
=
{
...
search
Value
,
filters
:
[]
}
this
.
tableConfig
.
paginationConfig
.
currentPage
=
1
this
.
tableConfig
.
paginationConfig
.
currentPage
=
1
this
.
tableConfig
.
paginationConfig
.
pageSize
=
20
this
.
tableConfig
.
paginationConfig
.
pageSize
=
20
// 获取表格数据
// 获取表格数据
...
@@ -178,6 +190,16 @@
...
@@ -178,6 +190,16 @@
doAddDeviceDialogConfirm
()
{
doAddDeviceDialogConfirm
()
{
// 获取表格数据
// 获取表格数据
this
.
getTableList
()
this
.
getTableList
()
},
// 点击编辑按钮
doEditClick
(
deviceValue
)
{
this
.
editDeviceBasicValue
=
_
.
cloneDeep
(
deviceValue
)
this
.
$refs
.
EditDeviceDialog
.
dialogToggle
=
true
},
// 点击编辑设备对话框确认按钮
doEditDeviceDialogConfirm
()
{
// 获取表格数据
this
.
getTableList
()
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -197,6 +219,7 @@
...
@@ -197,6 +219,7 @@
width
:
100%
;
width
:
100%
;
border
:
1px
solid
#d2d3d5
;
border
:
1px
solid
#d2d3d5
;
background-color
:
#fff
;
background-color
:
#fff
;
overflow-y
:
auto
;
.title-pack
{
.title-pack
{
height
:
38px
;
height
:
38px
;
...
...
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