luobisheng
2022-11-16 22b61836c8f6f169c506cc7529f75f2c89f66bc1
图片,视频资源部分
2个文件已修改
15 ■■■■■ 已修改文件
src/views/operate/video/index.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/video/updateInterface/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/video/index.vue
@@ -62,12 +62,12 @@
          </el-table-column>
          <el-table-column prop="category" label="问题类别" min-width="8">
            <template slot-scope="scope">
              <span>{{ getCategory(scope.row.category).label }}</span>
              <span>{{ getCategory(scope.row.category)?.label }}</span>
            </template>
          </el-table-column>
          <el-table-column prop="eventSource" label="事件来源" min-width="8">
            <template slot-scope="scope">
              <span>{{ getEventSource(scope.row.eventSource).label }}</span>
              <span>{{ getEventSource(scope.row.eventSource)?.label }}</span>
            </template>
          </el-table-column>
          <el-table-column prop="regionName" label="社区名称" min-width="8">
@@ -98,7 +98,7 @@
          :visible.sync="isShowDialog"
          width="40%"
          :title="dialogTitle">
          <updateInterface :isUpdate="isUpdate" :dialogData="dialogData" />
          <updateInterface :isUpdate="isUpdate" :dialogData="dialogData" @closeDialog="closeDialog" />
        </el-dialog>
        <div class="tools">
@@ -340,10 +340,7 @@
    // 关闭上传界面
    closeDialog() {
      this.isShowDialog = false;
    },
    // 处理时间
    filterTime(time) {
      return helper(time);
      this.searchVideoList();
    },
    getCategory(value) {
src/views/operate/video/updateInterface/index.vue
@@ -31,7 +31,7 @@
                :show-file-list="false"
                :auto-upload="true"
                :http-request="videoUpload">
              <video v-if="videoData.url" :src="videoData.url" class="avatar" />
              <video controls v-if="videoData.url" :src="videoData.url" />
              <i v-else class="el-icon-plus avatar-uploader-icon"></i>
            </el-upload>
          </el-form-item>
@@ -91,7 +91,7 @@
    onSubmit() {
      this.$refs.user.validate(valid => {
        if (valid) {
          if (this.dialogType === 'create') {
          if (this.isUpdate && !this.dialogData) {
            videoManagement.addVideoResource(this.videoData)
                .then(() => {
                  this.$message.success('操作成功');