Commit a11bfdfc by 冒粤蓉

fix

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