Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 22b1b1fb
authored
Apr 26, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新车管理
1 parent
e20d8c13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
45 deletions
src/views/newCarManage/index.vue
src/views/newCarManage/index.vue
View file @
22b1b1f
...
...
@@ -15,7 +15,7 @@
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"
zone
Ref"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"
newCar
Ref"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"logoUrl"
class=
"table-image"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.logoUrl"
/>
...
...
@@ -28,10 +28,6 @@
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.showImageUrl"
/>
</el-popover>
</div>
<!--
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLButton
type=
"text"
fn=
"编辑"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</GLButton>
<el-button
type=
"text"
fn=
"删除"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
</div>
-->
</GLTable>
<!-- 表格区域 end -->
</div>
...
...
@@ -102,51 +98,13 @@ export default {
mounted
()
{
},
methods
:
{
// secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
// this.$confirm(txt, title, {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning',
// callback: action => {
// if (action == 'confirm') {
// this.$apis[apiModule][apiName](apiParams).then(res => {
// this.$message({
// message: res.code == '0' ? '操作成功' : res.message,
// type: res.code == '0' ? 'success' : 'error'
// })
// if (res.code == '0') {
// fn && fn()
// this.handleSearch()
// }
// })
// }
// }
// })
// },
// 1-新增;2-编辑
// handleEdit(addOrEdit, row) {
// var params = {
// addOrEdit: addOrEdit,
// $title: encodeURI(addOrEdit == 1 ? '新建新车' : '编辑新车')
// }
// addOrEdit != 1 && (params.id = row.id)
// this.$router.push({
// path: '/zoneList/editZone',
// query: params
// })
// },
// handleDelete(row) {
// this.secondConfirm('删除', '是否确认删除该新车?', 'zoneList', 'deleteZoneApi', { id: row.id })
// },
setTableFinishFun
()
{
//接收到的数据为空
this
.
$refs
.
zoneRef
.
data
.
length
?
(
this
.
$refs
.
zoneRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
zone
Ref
.
setTableHeightFun
()
this
.
$refs
.
newCarRef
.
data
?
(
this
.
$refs
.
newCarRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
newCar
Ref
.
setTableHeightFun
()
},
handleSearch
()
{
this
.
$refs
.
zone
Ref
.
refreshTable
()
this
.
$refs
.
newCar
Ref
.
refreshTable
()
},
handleReset
()
{
...
...
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