yangys
2025-09-04 8499181e9d717bfc5a689d6a5f61c3b182f2f28e
提示改为alert
已修改4个文件
55 ■■■■■ 文件已修改
src/axios.js 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basesetting/produceplan.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/flowmgr/taskassign.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/flowmgr/taskassigntemp.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/axios.js
@@ -202,13 +202,16 @@
    }
    // 如果请求为非200则默认统一处理
    if (status !== 200 && status != 2 && status == 400) {
    if (status !== 200 && status == 400) {
      ElMessage({
        message: message,
        type: 'error',
        center:true,
        showClose:true,
        duration:0,
      });
      //this.$alert(message,{confirmButtonText:'关闭'});
      return Promise.reject(new Error(message));
    }
    return res;
src/views/basesetting/produceplan.vue
@@ -249,6 +249,13 @@
                dialogClickModal: false,
                column: [
                    {
                        label: '产品型号',
                        prop: 'cph',
                        type: 'input',
                        display: true,
                        span: 24,
                    },
                    {
                        label: '零组件号',
                        prop: 'ljh',
                        type: 'input',
@@ -257,14 +264,6 @@
                        disabled:true,
                        span: 24,
                    },
                    {
                        label: '产品号',
                        prop: 'cph',
                        type: 'input',
                        display: true,
                        span: 24,
                    },
                    {
                        label: '主管工艺',
                        prop: 'zggy',
src/views/flowmgr/taskassign.vue
@@ -296,12 +296,18 @@
        data: form,
      }).then(
        res => {
          this.$message({
            type: 'success',
            message: '操作成功!',
          });
          this.$refs.form.resetForm();
          this.attachForm = this.defaultForm;
          if(res.data.code == 200){
            this.$message({
              type: 'success',
              message: '操作成功!',
            });
            this.$refs.form.resetForm();
            this.attachForm = this.defaultForm;
          }else{
            this.$alert(res.data.msg, '发起任务失败',{type:'error',confirmButtonText:'关闭'});
          }
          done();
        },
        error => {
src/views/flowmgr/taskassigntemp.vue
@@ -271,12 +271,17 @@
        data: form,
      }).then(
        res => {
          this.$message({
            type: 'success',
            message: '操作成功!',
          });
          this.$refs.form.resetForm();
          this.attachForm = this.defaultForm;
          if(res.data.code == 200){
            this.$message({
              type: 'success',
              message: '操作成功!',
            });
            this.$refs.form.resetForm();
            this.attachForm = this.defaultForm;
          }else{
            this.$alert(res.data.msg, '发起任务失败',{type:'error',confirmButtonText:'关闭'});
          }
          done();
        },
        error => {