DESKTOP-SVI9JE1\muzen 1 éve
szülő
commit
8a6e0a662a

+ 9 - 1
src/views/content/setting/detail.vue

@@ -200,8 +200,16 @@ const getAudioList = () => {
       audioName: e.name,
       audioType: e.audioType,
       categoryId: e.sceneId,
-      type: e.type
+      type: e.type,
     })
+    if (e.startTime) {
+      let y = new Date().getFullYear()
+      let m = new Date().getMonth() + 1
+      let d = new Date().getDate()
+      let startTime = proxy.parseTime(new Date(`${y}-${m}-${d} ${e.startTime}`).getTime(), '{y}-{m}-{d} {h}:{i}:{s}')
+      let endTime = proxy.parseTime(new Date(`${y}-${m}-${d} ${e.endTime}`).getTime(), '{y}-{m}-{d} {h}:{i}:{s}')
+      data.dateList[0] = [startTime, endTime]
+    }
   }
 }
 getAudioList()

+ 5 - 0
src/views/content/setting/index.vue

@@ -138,6 +138,11 @@ function getRouter(query) {
   })
 }
 
+// 拖动样式
+const chosenClass = () => {
+  return '  background: none !important;color: #3979F9 !important; line-height: 60px;'
+}
+
 </script>
 
 <style lang="scss" scoped>

+ 1 - 1
src/views/store/devices/index.vue

@@ -69,7 +69,7 @@
           <el-button v-if="scope.row.status == 1" type="primary" link
             @click="getChange(scope.row.id, '上架', 0)">上架</el-button>
           <el-button v-else type="primary" link @click="getChange(scope.row.id, '下架', 1)">下架</el-button>
-          <el-button type="danger" link @click="getDelete(item)">删除</el-button>
+          <el-button type="danger" link @click="getDelete(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>