| | |
| | | </template> |
| | | </TableCommonView> |
| | | </div> |
| | | <AddDialog |
| | | ref="add" :editRow="editRow" @refresh="refresh" |
| | | /> |
| | | <div class="btn-pager"> |
| | | <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" /> |
| | | </div> |
| | | <AddDialog |
| | | ref="add" :editRow="editRow" @refresh="refresh" |
| | | /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | tableColumn: [ |
| | | { label: "方案名称", prop: "name",min:110}, |
| | | { label: "工种", prop: "workTypeNames",min:100 }, |
| | | { label: "薪资类型", prop: "salaryType",min:110 }, |
| | | { label: "薪资类型", prop: "salaryTypeName",min:110 }, |
| | | { label: "计费周期", prop: "cycle",min:110 }, |
| | | { label: "计费公式定义", prop: "salaryFormulaValue",min:140 }, |
| | | { label: "添加时间", prop: "createTime",min:130 }, |
| | |
| | | let workTypeNames='' |
| | | if(item.workTypes){ |
| | | for(let i in item.workTypes){ |
| | | workTypeNames=workTypeNames+','+item.workTypeNames[i].name |
| | | workTypeNames=item.workTypes[i].workName+','+workTypeNames |
| | | } |
| | | } |
| | | let salaryFormulaValue='' |
| | | salaryFormulaValue=item.salaryFormula?item.salaryFormula.split(",").join(''):[] |
| | | salaryFormulaValue=item.salaryFormula?item.salaryFormula.split(",").join(''):[] |
| | | return { |
| | | ...item, |
| | | workTypeNames:workTypeNames, |
| | | salaryFormulaValue:salaryFormulaValue, |
| | | salaryTypeName:item.salaryType?item.salaryType.name:'' |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | |
| | | }, |
| | | // 新增 |
| | | addBtnClick() { |
| | | this.editRow = { title:'新建',type:'add' } |
| | | this.editRow = { title:'新建',type: 'add' } |
| | | this.$refs.add.islook = true; |
| | | }, |
| | | // 搜索 |
| | |
| | | // 编辑 |
| | | handleClick(row) { |
| | | let config=JSON.parse(JSON.stringify(row)); |
| | | let arr=config.workTypes?config.workTypes:[] |
| | | let workTypes=[] |
| | | if(arr&&arr.length>0){ |
| | | for(let i in arr){ |
| | | workTypes.push({ |
| | | value:arr[i].ID, |
| | | label: arr[i].workName |
| | | }) |
| | | } |
| | | } |
| | | this.editRow = { |
| | | ...config, |
| | | title:'编辑', |
| | | type:'edit', |
| | | id:config.ID, |
| | | workTypeObj:{ |
| | | value:config.workTypeId, |
| | | label:config.workType, |
| | | } |
| | | workTypes:workTypes |
| | | } |
| | | this.$refs.add.islook = true; |
| | | }, |