shaogen1995 4 سال پیش
والد
کامیت
5768edc1e9
6فایلهای تغییر یافته به همراه16 افزوده شده و 16 حذف شده
  1. 1 1
      src/views/tab1/tab1_add.vue
  2. 11 8
      src/views/tab1/tab1_edit.vue
  3. 1 4
      src/views/tab1/tab1_look.vue
  4. 1 1
      src/views/tab3/index.vue
  5. 1 1
      src/views/tab4/index.vue
  6. 1 1
      src/views/tab5/index.vue

+ 1 - 1
src/views/tab1/tab1_add.vue

@@ -535,7 +535,7 @@ export default {
       let tempBoo2 = false
       let tempBoo3 = false
       this.tab2Arr.forEach((v, i) => {
-        scenes[v.name] = v.href
+        if (v.href !== '' && v.name !== '') scenes[v.name] = v.href
         if (i !== this.tab2Arr.length - 1) {
           if (v.name.trim() === '' || v.href.trim() === '') tempBoo2 = true
         }

+ 11 - 8
src/views/tab1/tab1_edit.vue

@@ -739,13 +739,15 @@ export default {
         let tempBoo2 = false
         let tempBoo3 = false
         this.tab2Arr.forEach((v, i) => {
-          temp.push({
-            id: v.id,
-            name: v.name,
-            projectId: Number(this.$route.query.id),
-            type: 'scene',
-            url: v.url
-          })
+          if (v.name !== '' && v.url !== '') {
+            temp.push({
+              id: v.id,
+              name: v.name,
+              projectId: Number(this.$route.query.id),
+              type: 'scene',
+              url: v.url
+            })
+          }
           if (i !== this.tab2Arr.length - 1) {
             if (v.name.trim() === '' || v.url.trim() === '') tempBoo2 = true
           }
@@ -818,7 +820,8 @@ export default {
       this.titleName = res.data.entity.name
       this.ruleForm = res.data.entity
       this.tab1Arr = res.data.website
-      this.tab2Arr = res.data.scene
+      if (res.data.scene.length) this.tab2Arr = res.data.scene
+      else this.tab2Arr = [{ name: '', url: '' }]
       this.fuJianArr = res.data.doc
       this.saveAntiqueArr = res.data.goods
     },

+ 1 - 4
src/views/tab1/tab1_look.vue

@@ -87,10 +87,7 @@
           <div
             class="noData"
             v-if="
-              tab2Data.length === 1 &&
-              tab2Data[0].name === '' &&
-              tab2Data[0].url === ''
-            "
+              tab2Data.length === 0"
           >
             暂无数据
           </div>

+ 1 - 1
src/views/tab3/index.vue

@@ -114,7 +114,7 @@ export default {
       const res = await getSceneList(data)
       this.tableData = res.data.list
       // console.log(999, res)
-      this.tableData.forEach(v => {
+      this.tableData.forEach((v, i) => {
         v.level = this.myLevel(v.level)
       })
       this.total = res.data.total

+ 1 - 1
src/views/tab4/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="template">
     <div class="top">
-      <div class="location">数据管理 / <span>用户管理</span></div>
+      <div class="location">系统管理 / <span>用户管理</span></div>
     </div>
     <div class="conten">
       <div class="search">

+ 1 - 1
src/views/tab5/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="template">
     <div class="top">
-      <div class="location">数据管理 / <span>操作日志</span></div>
+      <div class="location">系统管理 / <span>操作日志</span></div>
     </div>
     <div class="conten">
       <div class="search">