bug
This commit is contained in:
		| @@ -187,6 +187,7 @@ export default { | |||||||
|             ...this.form |             ...this.form | ||||||
|           }).then(res => { |           }).then(res => { | ||||||
|             if (res.code == 0) { |             if (res.code == 0) { | ||||||
|  |               this.getTableData() | ||||||
|               this.$message.success('提交成功!') |               this.$message.success('提交成功!') | ||||||
|               this.isShow = false |               this.isShow = false | ||||||
|  |  | ||||||
|   | |||||||
| @@ -28,11 +28,12 @@ | |||||||
|         :current.sync="search.current" |         :current.sync="search.current" | ||||||
|         :size.sync="search.size" |         :size.sync="search.size" | ||||||
|         @getList="getList"> |         @getList="getList"> | ||||||
|         <el-table-column slot="options" label="操作" align="center" fixed="right" width="180"> |         <el-table-column slot="options" label="操作" align="center" fixed="right" width="240"> | ||||||
|           <template slot-scope="{ row }"> |           <template slot-scope="{ row }"> | ||||||
|             <div class="table-options"> |             <div class="table-options"> | ||||||
|               <el-button type="text" @click="toEdit(row)">编辑</el-button> |               <el-button type="text" @click="toEdit(row)">编辑</el-button> | ||||||
|               <el-button type="text" @click="remove(row.id)">删除</el-button> |               <el-button type="text" @click="remove(row.id)">删除</el-button> | ||||||
|  |               <el-button type="text" @click="sync(row.appId)">同步数据</el-button> | ||||||
|               <el-button type="text" @click="change(row)">结算金额</el-button> |               <el-button type="text" @click="change(row)">结算金额</el-button> | ||||||
|             </div> |             </div> | ||||||
|           </template> |           </template> | ||||||
| @@ -138,6 +139,15 @@ | |||||||
|         }) |         }) | ||||||
|       }, |       }, | ||||||
|  |  | ||||||
|  |       sync (id) { | ||||||
|  |         this.instance.post(`/api/wxmppublisheradposgeneral/sync?appid=${id}`).then(res => { | ||||||
|  |           if (res.code == 0) { | ||||||
|  |             this.getList() | ||||||
|  |             this.$message.success('数据同步成功') | ||||||
|  |           } | ||||||
|  |         }) | ||||||
|  |       }, | ||||||
|  |  | ||||||
|       toEdit (e) { |       toEdit (e) { | ||||||
|         this.id = e.id |         this.id = e.id | ||||||
|         this.form.notes = e.notes |         this.form.notes = e.notes | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user