瀏覽代碼

修改视频带入名称

noob 4 年之前
父節點
當前提交
8b075da9da
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      src/views/companyManage/procedureManage.vue

+ 9 - 2
src/views/companyManage/procedureManage.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 16:00:46
  * @LastEditors  : yuanrunwei
- * @LastEditTime : 2021-02-25 14:51:40
+ * @LastEditTime : 2021-03-10 16:35:07
 -->
 <template>
 <div class="indexPage">
@@ -59,7 +59,7 @@
               required: true, message: '请选择结束视频', trigger: 'blur'
             }">
                 <div v-if="state!=2">
-                    <el-select v-model="form.endVideoId" filterable :disabled="state === 2" default-first-option placeholder="请选择结束视频" clearable>
+                    <el-select v-model="form.endVideoId" filterable :disabled="state === 2" default-first-option placeholder="请选择结束视频" clearable @change="param => handleSetting(param)">
                         <el-option v-for="item in downList" :key="item.key || item.id" :label="item.videoName" :value="item.id">
                         </el-option>
                     </el-select>
@@ -343,6 +343,13 @@ export default {
         item.questionName = array[0].videoName
         this.$forceUpdate()
       }
+    },
+    handleSetting (param) {
+      if (!this.form.ending) {
+        const array = this.downList.filter(item => item.id === param)
+        this.form.ending = array[0].videoName
+        this.$forceUpdate()
+      }
     }
   },
   watch: {