bug修复

This commit is contained in:
张乐
2020-08-17 18:32:53 +08:00
parent 506d04346b
commit 097eed991e
19 changed files with 111 additions and 87 deletions

View File

@@ -57,7 +57,7 @@
</el-table-column>
<el-table-column label="最后登录时间" prop="lastTime">
<template slot-scope="scope">
<span>{{ scope.row.lastTime | filterEmpty }}</span>
<span>{{ scope.row.updateTime | filterEmpty }}</span>
</template>
</el-table-column>
<el-table-column label="最后登录IP" prop="lastIp">

View File

@@ -35,20 +35,20 @@
<el-link :underline="false" @click="cityDetail(scope.row)">{{ scope.row.name }}</el-link>
</template>
</el-table-column>
<el-table-column
label="状态"
min-width="100"
>
<template slot-scope="scope">
<el-switch
v-model="scope.row.isShow"
class="demo"
active-text="开启"
inactive-text="关闭"
@change="cityStatus(scope.row)"
/>
</template>
</el-table-column>
<!--<el-table-column-->
<!--label="状态"-->
<!--min-width="100"-->
<!--&gt;-->
<!--<template slot-scope="scope">-->
<!--<el-switch-->
<!--v-model="scope.row.isShow"-->
<!--class="demo"-->
<!--active-text="开启"-->
<!--inactive-text="关闭"-->
<!--@change="cityStatus(scope.row)"-->
<!--/>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column
fixed="right"
min-width="80"
@@ -128,7 +128,8 @@ export default {
// 状态
cityStatus(e) {
logistics.updateStatus({
id: e.cityId,
id: e.id,
cityId: e.cityId,
status: e.isShow
}).then(res => {
this.$message.success('操作成功')