Browse Source

feat:更新代码

jinx 3 năm trước cách đây
mục cha
commit
07f525016d

+ 40 - 38
components/upload-pointClound/index.js

@@ -101,54 +101,56 @@
             },
             openUpload() {
                 // 
-
-                this.$parent.showLoading('上传中...')
-                let res = this.hasList.filter(i => {
-                    console.log(i.sceneNum)
-                    if (this.value == i.sceneNum) {
-                        return i
-                    }
-                })
-                if (res.length > 0) {
-                    this.$parent.hideLoading()
-                    this.$message({
-                        message: '请勿重复添加数据集',
-                        type: 'error',
-                        duration: 2000,
-                    });
-                    return
-
-                }
-
-                axios.post(`/indoor/${sceneNum}/api/merge/${this.value}`).then(res => {
-                    this.$parent.hideLoading()
-                    this.value = ''
-                    if (res.data.code == 0) {
-                        this.getHasSceneList()
+                if (this.value!='') {
+                    this.$parent.showLoading('上传中...')
+                    let res = this.hasList.filter(i => {
+                        console.log(i.sceneNum)
+                        if (this.value == i.sceneNum) {
+                            return i
+                        }
+                    })
+                    if (res.length > 0) {
+                        this.$parent.hideLoading()
                         this.$message({
-                            message: '数据集添加成功,请点击左侧【数据集】查看',
-                            type: 'success',
+                            message: '请勿重复添加数据集',
+                            type: 'error',
                             duration: 2000,
                         });
-                        IV.api.AuthenticationService.sendAuthenticationChanged()
-                    } else {
+                        return
+
+                    }
+
+                    axios.post(`/indoor/${sceneNum}/api/merge/${this.value}`).then(res => {
+                        this.$parent.hideLoading()
+                        this.value = ''
+                        if (res.data.code == 0) {
+                            this.getHasSceneList()
+                            this.$message({
+                                message: '数据集添加成功,请点击左侧【数据集】查看',
+                                type: 'success',
+                                duration: 2000,
+                            });
+                            IV.api.AuthenticationService.sendAuthenticationChanged()
+                        } else {
+                            this.$message({
+                                message: '数据集添加失败,请重试',
+                                type: 'error',
+                                duration: 2000,
+                            });
+                        }
+
+                    }).catch(err => {
+                        this.value = ''
+                        this.$parent.hideLoading()
                         this.$message({
                             message: '数据集添加失败,请重试',
                             type: 'error',
                             duration: 2000,
                         });
-                    }
 
-                }).catch(err => {
-                    this.value = ''
-                    this.$parent.hideLoading()
-                    this.$message({
-                        message: '数据集添加失败,请重试',
-                        type: 'error',
-                        duration: 2000,
-                    });
+                    })
+                }
 
-                })
 
 
             },

+ 3 - 0
css/style.css

@@ -2143,4 +2143,7 @@ dataset .dataset-title {
 }
 #swap-scenes-mobile{
     display: none;
+}
+.result-info .result-search-description{
+    display: none ;
 }

+ 3 - 3
dependencies/ckeditor_plugins/youtube/lang/zh.js

@@ -1,8 +1,8 @@
 CKEDITOR.plugins.setLang('youtube', 'zh', {
-    button: '嵌入 Youtube 影片',
-    title: '嵌入 Youtube 影片',
+    button: '嵌入影片',
+    title: '嵌入影片',
     txtEmbed: '貼上嵌入碼',
-    txtUrl: '貼上 Youtube 影片 URL',
+    txtUrl: '貼上影片 URL',
     txtWidth: '寬',
     txtHeight: '高',
     txtResponsive: '使用自適應縮放模式 (忽略設定的長寬, 以寬為基準縮放)',