Преглед на файлове

解决缺陷 app端布撤防时间跨行;app端教育培训登记,选择知识库文件zip无法预览,所有模块涉及zip文件无法预览的,均需要给出提示。如“该文件请到网页端查看”

zhulu преди 9 месеца
родител
ревизия
fb939e51f1
променени са 3 файла, в които са добавени 8 реда и са изтрити 4 реда
  1. 2 2
      src/components/timeCell/index.vue
  2. 4 0
      src/utils/globalMixins.js
  3. 2 2
      src/views/menu/iot/subsystem/components/dialog.stateChange.vue

+ 2 - 2
src/components/timeCell/index.vue

@@ -210,11 +210,11 @@ export default {
   background-color: #fff;
 }
 .date-cell-title{
-  max-width:35%;
+  max-width:20%;
 }
 
 .date-cell-value{
-  width:65%;
+  width:80%;
 }
 .date-cell::after {
   position: absolute;

+ 4 - 0
src/utils/globalMixins.js

@@ -94,6 +94,10 @@ export default {
     },
     //调用预览和pdf(内网银行)
     openFilePreview(file) {
+      if(file.url.indexOf('zip') > -1 || file.url.indexOf('rar') > -1 || file.url.indexOf('7z') > -1)
+      {
+        return this.$toast('zip、rar、7z 格式文件不支持预览,可在网页端下载查看')
+      }
       const parms = {
         url: file.url.indexOf('http') > -1 ?   file.url : imgUrl(file.url),
         name: file.name

+ 2 - 2
src/views/menu/iot/subsystem/components/dialog.stateChange.vue

@@ -2,13 +2,13 @@
   <van-dialog @confirm="onConfirm" v-model="show" show-cancel-button>
     <div style="margin: 10px">
       <div>
-        <div>是否更新{{ stateText }}时间?</div>
+        <div>是否登记{{ stateText }}时间?</div>
       </div>
       <time-cell
         v-if="show"
         required
         is-row
-        title="更新时间"
+        title="时间"
         v-model="time"
         dateType="datetime"
         textFormatter="YYYY年M月D日H时m分"