Commit d7207d7f by 王志慧

Merge branch 'yc_v1.0.0' of http://192.168.3.233:8090/saas/scrm-micro-charge into yc_v1.0.0

2 parents 5b6aed29 ffbacab0
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</div> </div>
<div slot="bindingStatus" slot-scope="scope"> <div slot="bindingStatus" slot-scope="scope">
<span class="status-class" :style="{ 'background-color': bindingStatusEnum[scope.scope.bindingStatus] }"></span> <span class="status-class" :style="{ 'background-color': bindingStatusEnum[scope.scope.bindingStatus] }"></span>
<span>{{ scope.scope.bindingStatusStr}}</span> <span>{{ scope.scope.bindingStatusStr }}</span>
</div> </div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
...@@ -265,11 +265,6 @@ export default { ...@@ -265,11 +265,6 @@ export default {
this.$apis.radar this.$apis.radar
.createMessageInfo(params) .createMessageInfo(params)
.then(res => { .then(res => {
this.$message({
message: res.code == '0' ? '导入成功' : res.message,
type: res.code == '0' ? 'success' : 'error',
customClass: 'message-class'
})
if (res.code == 0) { if (res.code == 0) {
this.batchForm.isUpload = true this.batchForm.isUpload = true
this.batchForm.successCount = res?.data?.successCount this.batchForm.successCount = res?.data?.successCount
......
...@@ -457,11 +457,6 @@ export default { ...@@ -457,11 +457,6 @@ export default {
this.$apis.parkingSpace this.$apis.parkingSpace
.importParkingSpaceApi(params) .importParkingSpaceApi(params)
.then(res => { .then(res => {
this.$message({
message: res.code == '0' ? '导入成功' : res.message,
type: res.code == '0' ? 'success' : 'error',
customClass: 'message-class'
})
if (res.code == 0) { if (res.code == 0) {
const data = res?.data || {} const data = res?.data || {}
this.batchForm.isUpload = true this.batchForm.isUpload = true
...@@ -642,13 +637,12 @@ export default { ...@@ -642,13 +637,12 @@ export default {
} }
}) })
}, },
getRadarList(radarId) { getRadarList(radarObj) {
let params = { pageNum: '1', pageSize: '1000', bindingStatus: 0 } let params = { pageNum: '1', pageSize: '1000', bindingStatus: 0 }
if (radarId) params.radarId = radarId
this.$apis.parkingSpace.getRadarListApi(params).then(res => { this.$apis.parkingSpace.getRadarListApi(params).then(res => {
if (res?.list?.length) { if (res?.list?.length) {
const _target = this.basicFormData.find(item => item.name == 'radarId') const _target = this.basicFormData.find(item => item.name == 'radarId')
_target.optionList = res.list _target.optionList = [radarObj, ...res.list]
} }
}) })
}, },
...@@ -657,7 +651,8 @@ export default { ...@@ -657,7 +651,8 @@ export default {
this.openParkingDialog() this.openParkingDialog()
}, },
async updateParkingPlaceFn(row) { async updateParkingPlaceFn(row) {
await this.getRadarList(row.radarId) let radarObj = { radarNumber: row.radarNumber, id: row.radarId }
await this.getRadarList(radarObj)
for (const key in this.basicForm) { for (const key in this.basicForm) {
this.basicForm[key] = row[key] this.basicForm[key] = row[key]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!