|
|
@ -89,7 +89,7 @@ |
|
|
|
placement="bottom" trigger="manual" :append-to-body="false" :visible-arrow="true" |
|
|
|
popper-class="custom-popover" @show="popshow" > |
|
|
|
<div style="text-align: center"> |
|
|
|
<GuipInput ref="GuipInput" width="252px" v-model="row.edit_sort_id" label="排序" placeholder="请输入数字"></GuipInput> |
|
|
|
<GuipInput ref="GuipInput" width="252px" v-model="row.sort_id" label="排序" placeholder="请输入数字"></GuipInput> |
|
|
|
<p style="width: 252px;margin-left: 40px;text-align: right;color: #8A9099;letter-spacing: 0.08em;">输入>0的数,越小排序越前;重复则新者优先;0则默认排序</p> |
|
|
|
<div class="flex" style="text-align: right; margin-top: 32px;justify-content: flex-end;"> |
|
|
|
<GuipButton size="medium" @click="cancelEdit(row, 'sort')">取消</GuipButton> |
|
|
@ -110,7 +110,7 @@ |
|
|
|
<el-table-column prop="sort_id" label="上首页"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="flex cell_render"> |
|
|
|
<GuipSwitch :modelValue="scope.row.is_index_display" active-value="1" inactive-value="0" @change="onSwitchChange(scope.row)"></GuipSwitch> |
|
|
|
<GuipSwitch v-model="scope.row.is_index_display" active-value="1" inactive-value="0" @change="onSwitchChange(scope.row)"></GuipSwitch> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -405,7 +405,6 @@ export default { |
|
|
|
if(res) row.price_desc = getServicePriceDesc(row.price, row.price_unit, row.price_unit_num); |
|
|
|
}, |
|
|
|
async onSwitchChange(row){ |
|
|
|
console.log(row) |
|
|
|
let obj = {} |
|
|
|
obj.uid = this.uid |
|
|
|
obj.type = row.type |
|
|
@ -420,8 +419,9 @@ export default { |
|
|
|
obj.sort_id = row.sort_id |
|
|
|
const res = await this.saveRequest('/agentnew/ajax_update_service_show', obj) |
|
|
|
if(res) { |
|
|
|
row.sort_id = row.edit_sort_id; |
|
|
|
this.sortServiceList() |
|
|
|
}else{ |
|
|
|
this.getSiteServiceList() |
|
|
|
} |
|
|
|
}, |
|
|
|
sortServiceList() { |
|
|
|