master
xy 12 months ago
parent e581cf91df
commit db10250ae6

@ -3,15 +3,19 @@
<div id="map"> <div id="map">
</div> </div>
<div class="switch-btn"> <div class="switch-btn">
<div class="switch-btn__item"> <RadioGroup v-model="dataType" type="button" button-style="solid" @on-change="authChange">
<div>全集团</div> <Radio label="0">全集团</Radio>
<input type="radio" name="type" value="0" @input="authChange"> <Radio label="1">本部</Radio>
</div> </RadioGroup>
<div class="switch-btn__item"> <!-- <div class="switch-btn__item">-->
<div>本部</div> <!-- <div>全集团</div>-->
<input type="radio" name="type" value="1" checked @input="authChange"> <!-- <input type="radio" name="type" value="0" @input="authChange">-->
</div> <!-- </div>-->
<div class="switch-btn__bkg"></div> <!-- <div class="switch-btn__item">-->
<!-- <div>本部</div>-->
<!-- <input type="radio" name="type" value="1" checked @input="authChange">-->
<!-- </div>-->
<!-- <div class="switch-btn__bkg"></div>-->
</div> </div>
<!-- <div class="department-statics">--> <!-- <div class="department-statics">-->
<!-- <dv-border-box-12 style="min-width: 200px;" :key="departmentStaticsId">--> <!-- <dv-border-box-12 style="min-width: 200px;" :key="departmentStaticsId">-->
@ -53,6 +57,7 @@ export default {
}, },
data() { data() {
return { return {
dataType: "1",
infoHouse: [], infoHouse: [],
areaName: "", areaName: "",
wxAreas: ["宜兴市", "惠山区", "新吴区", "梁溪区", "江阴市", "滨湖区", "锡山区"], wxAreas: ["宜兴市", "惠山区", "新吴区", "梁溪区", "江阴市", "滨湖区", "锡山区"],
@ -135,7 +140,7 @@ export default {
} }
}, },
authChange (e) { authChange (e) {
this.$store.commit('bigdata/SET_AUTH', e.target.value) this.$store.commit('bigdata/SET_AUTH', e)
this.$store.dispatch('bigdata/getAssets') this.$store.dispatch('bigdata/getAssets')
}, },
initMap () { initMap () {
@ -328,7 +333,25 @@ export default {
align-items: center; align-items: center;
border-radius: 40px; border-radius: 40px;
border: 2px solid #73f3df; border: 2px solid #73f3df;
overflow: hidden;
::v-deep .ivu-radio-group-item {
width: 160px;
height: 60px;
line-height: 60px;
text-align: center;
padding: 0;
font-size: 20px;
letter-spacing: 1px;
font-weight: bold;
color: #73f3df;
background: transparent;
border: none;
}
::v-deep .ivu-radio-wrapper-checked {
background: #4fa497;
color: #fff;
}
&__item { &__item {
cursor: pointer; cursor: pointer;
z-index: 2; z-index: 2;

@ -774,7 +774,11 @@ export default {
if (i.edit_input === "file") { if (i.edit_input === "file") {
} }
if (i.edit_input === "files") { if (i.edit_input === "files") {
this.file[i.field] = res[`${i.field}_upload_details`]; this.file[i.field] = res[`${i.field}_upload_details`] ? res[`${i.field}_upload_details`].map(i => ({
name: i.original_name,
url: i.url,
response: i
})) : []
} }
}); });
this.form = Object.assign({}, this.form); this.form = Object.assign({}, this.form);

Loading…
Cancel
Save