|
|
@@ -19,18 +19,18 @@
|
|
|
<span>{{scope.row.founder == 1 ? '是' : scope.row.status == 2 ? '不是' : '-'}}</span>
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
- <template #slot-column-option="{scope}">
|
|
|
- <template>
|
|
|
- <el-popover placement="top" width="160" :ref="'popover-' + scope.row.id">
|
|
|
- <p>开店申请记录和管理员信息将被删除,确定要删除吗?</p>
|
|
|
- <div style="text-align: right; margin: 0">
|
|
|
- <el-button size="mini" type="text" @click="selfGetCancel(scope.row.id)">取消</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="noSendShipFn(scope.row)">确定</el-button>
|
|
|
- </div>
|
|
|
- <el-button type="text" size="small" slot="reference">删除</el-button>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
- </template>
|
|
|
+ <template #slot-column-option="{scope}">
|
|
|
+ <template>
|
|
|
+ <el-popover placement="top" width="160" :ref="'popover-' + scope.row.id">
|
|
|
+ <p>开店申请记录和管理员信息将被删除,确定要删除吗?</p>
|
|
|
+ <div style="text-align: right; margin: 0">
|
|
|
+ <el-button size="mini" type="text" @click="selfGetCancel(scope.row.id)">取消</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="noSendShipFn(scope.row)">确定</el-button>
|
|
|
+ </div>
|
|
|
+ <el-button type="text" size="small" slot="reference">删除</el-button>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
</x-crud>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -138,18 +138,18 @@ export default {
|
|
|
.done();
|
|
|
app.refresh();
|
|
|
},
|
|
|
- //取消删除
|
|
|
+ //取消删除
|
|
|
selfGetCancel(id) {
|
|
|
this.$refs[`popover-` + id].doClose();
|
|
|
},
|
|
|
- // 确定删除
|
|
|
+ // 确定删除
|
|
|
noSendShipFn(item) {
|
|
|
- console.log('item.id', item.id)
|
|
|
- let param = { id: item.id }
|
|
|
+ console.log('item.id', item.id)
|
|
|
+ let param = { id: item.id }
|
|
|
this.$service.auth.shopAdminDelete(param).then(res => {
|
|
|
this.$message.success('操作成功!');
|
|
|
- this.$refs[`popover-` + item.id].doClose();
|
|
|
- this.app.refresh()
|
|
|
+ this.$refs[`popover-` + item.id].doClose();
|
|
|
+ this.app.refresh()
|
|
|
});
|
|
|
},
|
|
|
}
|