| | |
| | | applyStartTime: '', |
| | | applyEndTime: '' |
| | | }, |
| | | type: '', |
| | | pickerOptions: {}, // 存放picker options的变量 |
| | | price: '', |
| | | company: [], |
| | |
| | | this.tableData = [] |
| | | this.form.id = null |
| | | this.item = null |
| | | if (target.type) { |
| | | this.type = target.type |
| | | } |
| | | this.form.solutionId = '' |
| | | this.form.applyStartTime = '' |
| | | this.form.applyEndTime = '' |
| | |
| | | findList({ applyId: this.form.id }) |
| | | .then(res => { |
| | | res.forEach(item => { |
| | | console.log(item) |
| | | item.idCard = item.idcardNo |
| | | item.fee = '' |
| | | if (this.type === 1) { |
| | | item.duName = '' |
| | | item.duId = '' |
| | | item.worktypeId = '' |
| | | item.workTypeName = '' |
| | | } |
| | | }) |
| | | this.tableData = res |
| | | }) |
| | |
| | | } |
| | | this.seleData.forEach(item => { |
| | | this.tableData.forEach((row, index) => { |
| | | if (item === row.name) { |
| | | if (item === row.idCard) { |
| | | this.tableData.splice(index, 1) |
| | | } |
| | | }) |
| | |
| | | getUser(obj) { |
| | | this.seleData.forEach(id => { |
| | | this.tableData.forEach(row => { |
| | | if (id === row.id) { |
| | | if (id === row.idCard) { |
| | | row.workTypeName = obj.workTypeName |
| | | row.worktypeId = obj.worktypeId |
| | | row.duName = obj.duName |
| | |
| | | return sexAndAge.age |
| | | }, |
| | | handleSelectionChange (e) { |
| | | this.seleData = e.map(item => item.id) |
| | | this.seleData = e.map(item => item.idCard) |
| | | }, |
| | | getValue(list) { |
| | | this.tableData.push(...list) |