Browse Source

修复算法修改 发布bug

wangyi 3 years ago
parent
commit
f8b997e3f6

+ 2 - 2
src/views/modules/alg/alg-publish.vue

@@ -160,8 +160,8 @@ export default {
               }else{
                 Message.error(data.msg);
               }
-
-                this.$parent.getDataList();
+              this.visible=false;
+              this.$parent.getDataList();
         });
         /* this.visible=false
         MessageBox.confirm(`是否发布该算法?`, '提示', {

+ 2 - 2
src/views/modules/alg/alg-update.vue

@@ -100,7 +100,7 @@ export default {
       this.$refs["dataForm"].validate((valid) => {
         if (valid) {
           this.visible=false;
-          MessageBox.confirm(`是否下载该数据集?`, '提示', {
+          MessageBox.confirm(`是否修改算法信息?`, '提示', {
           confirmButtonText: '确定',
           cancelButtonText: '取消',
           type: 'warning'
@@ -113,7 +113,7 @@ export default {
           formData.append('uid',this.$store.state.user.id);
           this.$http({
             url: this.$http.adornUrl(
-              `/algs/${!this.dataForm.id ? "save" : "update"}`
+              `/algs/update`
             ),
             method: "post",
             data:formData,

+ 1 - 1
src/views/modules/visi/create2.vue

@@ -772,7 +772,7 @@ export default {
             sign: 1
           }
 
-          MessageBox.confirm(`是否下载该数据集?`, '提示', {
+          MessageBox.confirm(`是否新建动态数据集?`, '提示', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
             type: 'warning'