| | |
| | | this.$message.error('获取已选程序失败'); |
| | | return; |
| | | } else { |
| | | this.tableData = res.data.data || []; |
| | | this.tableData = this.sortTable(res.data.data || []); |
| | | } |
| | | // this.$emit('selection-change',this.tableData) |
| | | }) |
| | | }, |
| | | sortTable(data) { |
| | | data.sort(function(a,b){ |
| | | if(a.program === b.program){//如果program相同,按照name的降序 |
| | | //return a.name - b.name |
| | | return a.name.localeCompare(b.name) |
| | | }else{ |
| | | return b.program - a.program |
| | | } |
| | | }); |
| | | return data; |
| | | }, |
| | | addApp() { |
| | | this.appDialog = true; |
| | | }, |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped="scoped" lang="scss"> |
| | | .box-drawer { |
| | | &:deep(.el-drawer.remark-drawer) { |
| | | width: 30vw !important; |
| | | <style lang="scss"> |
| | | .remark-drawer { |
| | | .el-drawer__header { |
| | | margin-bottom: 0px !important; |
| | | padding: 1vh 1vw !important; |
| | | } |
| | | .el-drawer__body { |
| | | padding: 0px 1vw !important; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | <style scoped="scoped" lang="scss"> |
| | | |
| | | .approve-box { |
| | | display: flex; |
| | | |