This commit is contained in:
2024-05-14 16:20:36 +08:00
parent 6638f02de6
commit f36f396813
3 changed files with 267 additions and 108 deletions

View File

@@ -106,24 +106,13 @@
>
</el-table-column>
<el-table-column
prop="sort"
prop="toSociologySort"
header-align="center"
align="center"
label="排序"
width="180"
>
<template slot-scope="scope">
<el-input
v-focus
v-if="scope.row[scope.column.property + 'Show']"
clearable
v-model="scope.row.sort"
@keyup.enter.native="onBlurFirst(scope.row, scope.column)"
@blur="onBlurFirst(scope.row, scope.column)"
>
</el-input>
<span v-else>{{ scope.row.sort }}</span>
</template>
</el-table-column>
<!-- <el-table-column
prop="product.price"
@@ -172,9 +161,16 @@
header-align="center"
align="center"
label="操作"
width="80"
width="140"
>
<template slot-scope="scope">
<el-button
type="text"
@click="shopEdit(scope.row)"
size="mini"
>修改排序</el-button
>
<el-button
type="text"
style="color: red;"
@@ -312,6 +308,9 @@ export default {
shopDelete(row) {
this.$emit("delete", row);
},
shopEdit(row) {
this.$emit("edit", row);
},
// 获取商品类型
getGoodsTypeList() {
this.$http({