Commit a11bfdfc by 冒粤蓉

fix

1 parent 65001ed2
...@@ -25,7 +25,8 @@ const SPECIALSHOP_API = { ...@@ -25,7 +25,8 @@ const SPECIALSHOP_API = {
GET_FENCE_DETAIL: '/trialdrive/specialshop/info', GET_FENCE_DETAIL: '/trialdrive/specialshop/info',
SAVE_FENCE: '/trialdrive/specialshop/add', SAVE_FENCE: '/trialdrive/specialshop/add',
UPDATE_FENCE: '/trialdrive/specialshop/edit', UPDATE_FENCE: '/trialdrive/specialshop/edit',
EXPORT_TABLE: '/trialdrive/specialshop/export' EXPORT_TABLE: '/trialdrive/specialshop/export',
DELETE_SPECIAL_SHOP: '/trialdrive/specialshop/delete'
} }
// 试驾报表 // 试驾报表
const REPORT_API = { const REPORT_API = {
......
...@@ -22,4 +22,9 @@ function updateFence (params) { ...@@ -22,4 +22,9 @@ function updateFence (params) {
return request(params, url, 'post') return request(params, url, 'post')
} }
export { getList, getFenceDetailById, saveFence, updateFence } function deleteSpecialShop (params) {
const url = SPECIALSHOP_API.DELETE_SPECIAL_SHOP
return request(params, url, 'get')
}
export { getList, getFenceDetailById, saveFence, updateFence, deleteSpecialShop }
...@@ -532,5 +532,5 @@ export default { ...@@ -532,5 +532,5 @@ export default {
background-color: #fdfdfd; background-color: #fdfdfd;
margin-left: 220px; margin-left: 220px;
padding-right: 260px; padding-right: 260px;
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
>{{item.name}}</el-button> >{{item.name}}</el-button>
</h3> </h3>
<basic-table <basic-table
ref="roleTable" ref="shopTable"
:tableParams="shopTableParams" :tableParams="shopTableParams"
:getListApi="getListApi" :getListApi="getListApi"
:searchForm="searchForm" :searchForm="searchForm"
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
</template> </template>
<script> <script>
import { getList } from 'services/specialshop' import { getList, deleteSpecialShop } from 'services/specialshop'
import { getSimpleRoot, getSimpleList } from 'services/common' import { getSimpleRoot, getSimpleList } from 'services/common'
import { SPECIALSHOP_API } from '@/config/config' import { SPECIALSHOP_API } from '@/config/config'
import store from '@/store' import store from '@/store'
...@@ -239,6 +239,19 @@ export default { ...@@ -239,6 +239,19 @@ export default {
query: { id: shopId, readonlyStatus: true } query: { id: shopId, readonlyStatus: true }
}) })
break break
case 'delete':
deleteSpecialShop({shopId}).then(res => {
const { code, message } = res;
if(code == 200) {
this.$refs.shopTable.refreshTable()
} else {
this.$message({
message,
type: 'error'
});
}
})
break
} }
}, },
change(name, val) { change(name, val) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!