|
@@ -207,28 +207,34 @@ export default {
|
|
"一旦准备印刷,题卡将不可再编辑,确定要提交印刷吗?",
|
|
"一旦准备印刷,题卡将不可再编辑,确定要提交印刷吗?",
|
|
"警告",
|
|
"警告",
|
|
{
|
|
{
|
|
- callback: async action => {
|
|
|
|
- if (action !== "confirm") return;
|
|
|
|
- await changeCardStatus({
|
|
|
|
- cardId: row.id,
|
|
|
|
- cardStatus: 1
|
|
|
|
- });
|
|
|
|
- this.getList();
|
|
|
|
- this.$message.success("提交成功!");
|
|
|
|
- }
|
|
|
|
|
|
+ cancelButtonClass: "el-button--primary",
|
|
|
|
+ confirmButtonClass: "el-button--default-act",
|
|
|
|
+ type: "warning"
|
|
}
|
|
}
|
|
- );
|
|
|
|
|
|
+ )
|
|
|
|
+ .then(async () => {
|
|
|
|
+ await changeCardStatus({
|
|
|
|
+ cardId: row.id,
|
|
|
|
+ cardStatus: 1
|
|
|
|
+ });
|
|
|
|
+ this.getList();
|
|
|
|
+ this.$message.success("提交成功!");
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
},
|
|
},
|
|
toDelete(row) {
|
|
toDelete(row) {
|
|
this.$confirm("确定要删除当前题卡吗?", "删除警告", {
|
|
this.$confirm("确定要删除当前题卡吗?", "删除警告", {
|
|
- callback: async action => {
|
|
|
|
- if (action !== "confirm") return;
|
|
|
|
|
|
+ cancelButtonClass: "el-button--primary",
|
|
|
|
+ confirmButtonClass: "el-button--default-act",
|
|
|
|
+ type: "warning"
|
|
|
|
+ })
|
|
|
|
+ .then(async () => {
|
|
await deleteCard(row.id);
|
|
await deleteCard(row.id);
|
|
this.$message.success("删除成功!");
|
|
this.$message.success("删除成功!");
|
|
// 解决最后一项删除后的问题
|
|
// 解决最后一项删除后的问题
|
|
this.deletePageLastItem();
|
|
this.deletePageLastItem();
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|