|
@@ -687,39 +687,39 @@ const config = computed(() => {
|
|
|
// 渲染 el-button,一般用在最后一列。
|
|
|
renderHTML(row) {
|
|
|
return [
|
|
|
- // {
|
|
|
- // attrs: {
|
|
|
- // label: "删除",
|
|
|
- // type: "primary",
|
|
|
- // text: true,
|
|
|
- // disabled: false,
|
|
|
- // },
|
|
|
- // el: "button",
|
|
|
- // click() {
|
|
|
- // ElMessageBox.confirm(
|
|
|
- // "此操作将永久作废该数据, 是否继续?",
|
|
|
- // "提示",
|
|
|
- // {
|
|
|
- // confirmButtonText: "确定",
|
|
|
- // cancelButtonText: "取消",
|
|
|
- // type: "warning",
|
|
|
- // }
|
|
|
- // ).then(() => {
|
|
|
- // // 删除
|
|
|
- // proxy
|
|
|
- // .post("/pack/delete", {
|
|
|
- // id: row.packId,
|
|
|
- // })
|
|
|
- // .then((res) => {
|
|
|
- // ElMessage({
|
|
|
- // message: "作废成功",
|
|
|
- // type: "success",
|
|
|
- // });
|
|
|
- // getList();
|
|
|
- // });
|
|
|
- // });
|
|
|
- // },
|
|
|
- // },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "删除",
|
|
|
+ type: "primary",
|
|
|
+ text: true,
|
|
|
+ disabled: false,
|
|
|
+ },
|
|
|
+ el: "button",
|
|
|
+ click() {
|
|
|
+ ElMessageBox.confirm(
|
|
|
+ "此操作将永久作废该数据, 是否继续?",
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }
|
|
|
+ ).then(() => {
|
|
|
+ // 删除
|
|
|
+ proxy
|
|
|
+ .post("/pack/delete", {
|
|
|
+ id: row.packId,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ ElMessage({
|
|
|
+ message: "作废成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
];
|
|
|
},
|
|
|
},
|