|
|
@@ -84,7 +84,7 @@
|
|
|
>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
- type="primary"
|
|
|
+ :type="selectIds.length < 1 ? 'danger' : 'primary'"
|
|
|
@click="batchOperation"
|
|
|
:disabled="selectIds.length < 1"
|
|
|
>批量设置</el-button
|
|
|
@@ -111,9 +111,6 @@
|
|
|
:select="true"
|
|
|
@selectionChange="selectionChange"
|
|
|
>
|
|
|
- <template slot="scope">
|
|
|
- {{ 123 }}
|
|
|
- </template>
|
|
|
</kt-common-table>
|
|
|
</SplitArea>
|
|
|
<!-- 右侧列表页面End -->
|
|
|
@@ -840,19 +837,24 @@ export default {
|
|
|
handleTableBatchDelete(data) {},
|
|
|
// 删除单个人员
|
|
|
handleTableDeleteFlag(data) {
|
|
|
- this.$api.retail.retailIdDelete(data.row.id).then((res) => {
|
|
|
- if (res.code == "200") {
|
|
|
- this.findPage();
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: res.msg,
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: "error",
|
|
|
- message: res.msg,
|
|
|
- });
|
|
|
- }
|
|
|
+ console.log(data);
|
|
|
+ this.$confirm("确认删除该条数据吗?", "提示", {
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ this.$api.retail.retailIdDelete(data.row.id).then((res) => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ this.findPage();
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: res.msg,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: res.msg,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
// 右侧列表的方法End
|