|  |  | 
 |  |  |         @confirm="confirm" | 
 |  |  |     > | 
 |  |  |         <el-form class="demo-form-inline"> | 
 |  |  |             <el-form-item label="派遣单位" required> | 
 |  |  |             <el-form-item label="派遣单位" required v-if="type !== 2"> | 
 |  |  |                 <el-select v-model="dw" @change="selectChange" placeholder="请选择"> | 
 |  |  |                     <el-option | 
 |  |  |                         v-for="item in dispatching" | 
 |  |  | 
 |  |  |                 form: { | 
 |  |  |                     solutionId: '' | 
 |  |  |                 }, | 
 |  |  |                 type: null, | 
 |  |  |                 data: [], | 
 |  |  |                 dw: [], | 
 |  |  |                 gz: [], | 
 |  |  | 
 |  |  |                 this.gz = '' | 
 |  |  |                 this.form.solutionId = arr.solutionId | 
 |  |  |                 this.data = arr.seleData | 
 |  |  |                 this.type = arr.type | 
 |  |  |                 this.visible = true | 
 |  |  |                 this.getFindListByDTO() | 
 |  |  |                 this.options=[] | 
 |  |  |                 if (arr.type === 2) { | 
 |  |  |                   worktype({ id: arr.solutionId, queryType: 0 }) | 
 |  |  |                     .then(res => { | 
 |  |  |                       this.options = res | 
 |  |  |                     }) | 
 |  |  |                 } else { | 
 |  |  |                   this.getFindListByDTO() | 
 |  |  |                 } | 
 |  |  |             }, | 
 |  |  |             getFindListByDTO () { | 
 |  |  |                 findListByDTO({ | 
 |  |  |                     solutionId: this.form.solutionId, | 
 |  |  |                     dataType: 0 | 
 |  |  |                     // dataType: 0 | 
 |  |  |                 }).then(res => { | 
 |  |  |                     this.dispatching = res | 
 |  |  |                 }) | 
 |  |  | 
 |  |  |                     }) | 
 |  |  |             }, | 
 |  |  |             confirm() { | 
 |  |  |               if (this.type === 2) { | 
 |  |  |                 if(!this.gz){ | 
 |  |  |                   this.$message.error("请先选择工种!") | 
 |  |  |                   return; | 
 |  |  |                 } | 
 |  |  |               } else { | 
 |  |  |                 if(!this.dw || !this.gz){ | 
 |  |  |                   this.$message.error("请先选择派遣单位和工种!") | 
 |  |  |                   return; | 
 |  |  |                 } | 
 |  |  |               } | 
 |  |  |                 let obj = { | 
 |  |  |                     workTypeName: '', | 
 |  |  |                     worktypeId: '', |