|
|
@@ -17,8 +17,8 @@
|
|
|
</template>
|
|
|
|
|
|
<template #table-column-location="{scope}">
|
|
|
- <span v-if="scope.row.location == 1">本地</span>
|
|
|
- <span v-else style="color:blue;font-weight:bold;">上游</span>
|
|
|
+ <span v-if="scope.row.location == 1" style="cursor: pointer;" @click="modifyLocation(scope.row)">本地</span>
|
|
|
+ <span v-else style="color:blue;font-weight:bold;cursor: pointer;" @click="modifyLocation(scope.row)">上游</span>
|
|
|
</template>
|
|
|
|
|
|
<template #table-column-buyAmount="{scope}">
|
|
|
@@ -80,6 +80,15 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['getLevel']),
|
|
|
+ modifyLocation(info){
|
|
|
+ let that = this
|
|
|
+ that.$confirm('确认修改类型?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
|
|
+ that.$service.ghs.changeLocation({id:info.id}).then(res => {
|
|
|
+ that.$message.success('修改成功')
|
|
|
+ that.app.refresh({ type: that.tabIndex,name:that.name })
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
changeText(){
|
|
|
this.app.refresh({ type: this.tabIndex,name:this.name })
|
|
|
},
|