修改对象类型

pull/371/head
wuyibo 2 years ago
parent 5ca4985cd7
commit 8adcaa26f8

@ -81,7 +81,7 @@ public class WxBuildingInfo extends BaseEntity
/** 是否支持在线 */ /** 是否支持在线 */
@Excel(name = "支持在线") @Excel(name = "支持在线")
private String isSupportlive; private Boolean isSupportlive;
/** 球馆状态 */ /** 球馆状态 */
@Excel(name = "球馆状态") @Excel(name = "球馆状态")
@ -246,12 +246,12 @@ public class WxBuildingInfo extends BaseEntity
{ {
return defaultPicture; return defaultPicture;
} }
public void setIsSupportlive(String isSupportlive) public void setIsSupportlive(Boolean isSupportlive)
{ {
this.isSupportlive = isSupportlive; this.isSupportlive = isSupportlive;
} }
public String getIsSupportlive() public Boolean getIsSupportlive()
{ {
return isSupportlive; return isSupportlive;
} }

@ -39,7 +39,7 @@
<el-form-item label="支持在线" prop="isSupportlive"> <el-form-item label="支持在线" prop="isSupportlive">
<el-select v-model="queryParams.isSupportlive"> <el-select v-model="queryParams.isSupportlive">
<el-option <el-option
v-for="item in isLiveOptions" v-for="item in booleanOptions"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value">
@ -145,7 +145,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
disabled disabled
v-model="scope.row.isSupportlive==1?true:false" v-model="scope.row.isSupportlive"
></el-switch> ></el-switch>
</template> </template>
</el-table-column> </el-table-column>
@ -527,13 +527,6 @@ export default {
value: false, value: false,
label: '否' label: '否'
}], }],
isLiveOptions:[{
value: "1",
label: '是'
},{
value: "0",
label: '否'
}],
options: [{ options: [{
value: 1, value: 1,
label: '待审核' label: '待审核'
@ -602,6 +595,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
listWxBuilding(this.queryParams).then(response => { listWxBuilding(this.queryParams).then(response => {
this.WxBuildingList = [];
response.rows.forEach((item) => { response.rows.forEach((item) => {
let obj = item; let obj = item;
obj.codeImgUrl = item.defaultPicture; obj.codeImgUrl = item.defaultPicture;
@ -790,7 +784,6 @@ export default {
imgs.push(item.url); imgs.push(item.url);
}); });
this.form.defaultPicture = imgs.join(',') this.form.defaultPicture = imgs.join(',')
this.form.isSupportlive = this.form.isSupportlive?1:0;
if (this.form.id != null) { if (this.form.id != null) {
updateWxBuilding(this.form).then(response => { updateWxBuilding(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");

Loading…
Cancel
Save