|
@@ -24,7 +24,7 @@
|
|
<p id="p2" class="p2" :style="{display:showOrNo}">如:广东省广州市xx广场301型x号机</p>
|
|
<p id="p2" class="p2" :style="{display:showOrNo}">如:广东省广州市xx广场301型x号机</p>
|
|
</view>
|
|
</view>
|
|
<view class="">
|
|
<view class="">
|
|
- <button type="primary" @click="updata()" class="button">
|
|
|
|
|
|
+ <button type="primary" @click="updata1()" class="button">
|
|
<p class="p">更改</p>
|
|
<p class="p">更改</p>
|
|
</button>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
@@ -36,7 +36,11 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import {mapState,mapActions,mapMutations} from 'vuex'
|
|
|
|
|
|
+ import {
|
|
|
|
+ mapState,
|
|
|
|
+ mapActions,
|
|
|
|
+ mapMutations
|
|
|
|
+ } from 'vuex'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -45,9 +49,9 @@
|
|
listName: [],
|
|
listName: [],
|
|
value: null,
|
|
value: null,
|
|
id: null,
|
|
id: null,
|
|
- parm:{
|
|
|
|
- name:null,
|
|
|
|
- id:null
|
|
|
|
|
|
+ parm: {
|
|
|
|
+ name: null,
|
|
|
|
+ id: null
|
|
},
|
|
},
|
|
showOrNo: null
|
|
showOrNo: null
|
|
};
|
|
};
|
|
@@ -117,13 +121,20 @@
|
|
this.parm.id = id;
|
|
this.parm.id = id;
|
|
},
|
|
},
|
|
...mapActions('chart', ['updata']),
|
|
...mapActions('chart', ['updata']),
|
|
- updata(){
|
|
|
|
- debugger;
|
|
|
|
- this.updata(this.parm)
|
|
|
|
- .then(data => {
|
|
|
|
- var merchantList = data;
|
|
|
|
|
|
+ updata1() {
|
|
|
|
+ if (this.parm != null) {
|
|
|
|
+ this.updata(this.parm)
|
|
|
|
+ .then(res => {
|
|
|
|
+ debugger;
|
|
|
|
+ var merchantList = res;
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '名称:' + this.parm.name + res.message,
|
|
|
|
+ });
|
|
|
|
+ }, _ => void uni.stopPullDownRefresh());
|
|
}
|
|
}
|
|
- , _ => void uni.stopPullDownRefresh());
|
|
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|