Commit 22b1b1fb by chenwq

新车管理

1 parent e20d8c13
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="zoneRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="newCarRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="logoUrl" class="table-image" slot-scope="scope"> <div slot="logoUrl" class="table-image" slot-scope="scope">
<el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block"> <el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
<img class="table-popover-img" :src="scope.scope.logoUrl" /> <img class="table-popover-img" :src="scope.scope.logoUrl" />
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
<img class="img-60 pointer" slot="reference" :src="scope.scope.showImageUrl" /> <img class="img-60 pointer" slot="reference" :src="scope.scope.showImageUrl" />
</el-popover> </el-popover>
</div> </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> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
...@@ -102,51 +98,13 @@ export default { ...@@ -102,51 +98,13 @@ export default {
mounted() { }, mounted() { },
methods: { 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() { setTableFinishFun() {
//接收到的数据为空 //接收到的数据为空
this.$refs.zoneRef.data.length ? (this.$refs.zoneRef.tableHeightValues = '') : this.$refs.zoneRef.setTableHeightFun() this.$refs.newCarRef.data ? (this.$refs.newCarRef.tableHeightValues = '') : this.$refs.newCarRef.setTableHeightFun()
}, },
handleSearch() { handleSearch() {
this.$refs.zoneRef.refreshTable() this.$refs.newCarRef.refreshTable()
}, },
handleReset() { handleReset() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!