yaowanxin
5 天以前 a8a13515268a04e05af3f36d6b40b694d34b5622
src/views/collaborativeApproval/rpaManagement/index.vue
@@ -247,7 +247,7 @@
const openForm = (type, row) => {
  dialogType.value = type;
  dialogVisible.value = true;
  if (type === "add") {
    dialogTitle.value = "添加RPA";
  } else {
@@ -259,10 +259,10 @@
// 提交表单
const submitForm = async () => {
  if (!formRef.value) return;
  try {
    await formRef.value.validate();
    if (dialogType.value === "add") {
      // 添加新RPA
      addRpa({...form.value}).then(res => {
@@ -342,9 +342,13 @@
   })
   .then(() => {
      delRpa(ids).then((res) => {
            proxy.$modal.msgSuccess("删除成功");
            getList();
         })
            if(res.code == 200){
               ElMessage.success("删除成功");
               getList();
            }
         }).catch(err => {
            ElMessage.error(err.msg);
         })
   })
   .catch(() => {
      proxy.$modal.msg("已取消");