Răsfoiți Sursa

活动数据

hmp 4 ani în urmă
părinte
comite
c4dd30cab2
1 a modificat fișierele cu 14 adăugiri și 9 ștergeri
  1. 14 9
      src/views/production/production.vue

+ 14 - 9
src/views/production/production.vue

@@ -46,20 +46,20 @@
           {{scope.row.loginWebVO.rank}}
         </el-tag>
       </template>
+      
+      <template slot="urlsType" slot-scope="scope">
+        <div v-if="scope.row.urlsType==0">图文</div>
+        <div v-if="scope.row.urlsType==1">视频</div>
+      </template>
+      
+      
 
       <template  slot="urls" slot-scope="scope">
-        <el-button @click="viewUrls(scope.row.urls)" type="primary" size="mini" plain>查看</el-button>
+        <el-image v-if="scope.row.urlsType==0" :preview-src-list="[scope.row.urls]" style="width: 50px;height: 50px;" :src="scope.row.urls"></el-image>
+        <video style="width: 50px;height: 50px;" :src="scope.row.urls" v-if="scope.row.urlsType==1" :controls="false" :autoplay="true"></video>
       </template>
     </avue-crud>
 
-    <el-dialog  title="浏览" :visible.sync="maskshow" :append-to-body="true">
-      <el-carousel :interval="5000" arrow="always" style="margin:20px 0">
-          <el-carousel-item style="display: flex;justify-content: center;align-items: center;" v-for="item in urls" :key="item">
-            <el-image :src="item.url" v-if="item.type==0"></el-image>
-            <video :src="item.url" v-if="item.type==1" :controls="true" :autoplay="true"></video>
-          </el-carousel-item>
-        </el-carousel>
-    </el-dialog>
   </basic-container>
 </template>
 
@@ -174,6 +174,11 @@
                 trigger: "blur"
               }]
             },
+            {
+              label: "资源类型",
+              prop: "urlsType",
+              slot:true
+            },
             {
               label: "作品热力值",
               prop: "hotValue",