yuanrunwei 4 anos atrás
pai
commit
50c4a00508
1 arquivos alterados com 13 adições e 11 exclusões
  1. 13 11
      src/views/companyManage/procedureManage.vue

+ 13 - 11
src/views/companyManage/procedureManage.vue

@@ -26,7 +26,8 @@
                 <div v-if="state!=2">
                     <div class="flex">
                         <el-input v-model.trim="item.questionName" placeholder="请输入面试问题" maxlength="128" show-word-limit></el-input>
-                        <el-button type="danger" v-if="index !== 0 " @click.prevent="index === 0 || removeDomain(item)">删除</el-button>
+                        <el-button v-if="index==0" @click="addDomain" type="success">新增</el-button>
+                        <el-button type="danger" v-else @click.prevent="index === 0 || removeDomain(item)">删除</el-button>
                     </div>
                     <el-select v-model="item.videoIdList" multiple filterable :disabled="state === 2" default-first-option placeholder="请选择面试视频">
                         <el-option v-for="item in downList" :key="item.key || item.id" :label="item.videoName" :value="item.id">
@@ -71,7 +72,6 @@
         </el-form>
         <div slot="footer" class="dialog-footer">
             <el-button @click="close">取 消</el-button>
-            <el-button v-if="state!==2" @click="addDomain" type="success">新增</el-button>
             <el-button type="primary" v-if="state!==2" @click="branch">确 定</el-button>
         </div>
     </el-dialog>
@@ -317,15 +317,17 @@ export default {
     },
     close () {
       this.dialogFormVisible = false
-      this.form = {
-        processName: '',
-        questionList: []
-      }
-      this.form.questionList.push({
-        key: 1,
-        questionName: ''
-      })
-      this.$forceUpdate()
+      setTimeout(() => {
+        this.form = {
+          processName: '',
+          questionList: []
+        }
+        this.form.questionList.push({
+          key: 1,
+          questionName: ''
+        })
+      }, 200)
+      // this.$forceUpdate()
       console.log(this.form)
     },
     addDomain () {