resetSound.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <div>
  3. <el-table :data='tableList'
  4. :header-cell-style="{background:'#EDEEF0',color:'#444'}">
  5. <el-table-column align='center'
  6. width="180px;"
  7. prop="subName"
  8. label="声部名称">
  9. </el-table-column>
  10. <el-table-column align='left'
  11. prop="fee"
  12. label="预计收费">
  13. <template slot-scope="scope">
  14. <div>
  15. <el-input style="width:100px"
  16. v-model="scope.row.fee"></el-input>
  17. </div>
  18. </template>
  19. </el-table-column>
  20. </el-table>
  21. <div class="btnWrap"
  22. style="margin-top:30px">
  23. <div class="closeBtn"
  24. @click="getSound">取消</div>
  25. <div class="okBtn"
  26. @click="saveInfo">保存</div>
  27. </div>
  28. </div>
  29. </template>
  30. <script>
  31. import { findMusicGroupSubjectInfo, resetSubjectPlan } from '@/api/buildTeam'
  32. export default {
  33. data () {
  34. return {
  35. tableList: [],
  36. teamid: ''
  37. }
  38. },
  39. mounted () {
  40. // 获取声部信息
  41. this.teamid = this.$route.query.id
  42. this.getSound();
  43. sessionStorage.setItem('resetCode', '2')
  44. },
  45. methods: {
  46. getSound () {
  47. findMusicGroupSubjectInfo({ musicGroupId: this.teamid }).then(res => {
  48. if (res.code == 200) {
  49. this.tableList = res.data.musicGroupSubjectPlans;
  50. }
  51. })
  52. },
  53. saveInfo () {
  54. resetSubjectPlan(this.tableList).then(res => {
  55. if (res.code == 200) {
  56. }
  57. })
  58. }
  59. },
  60. }
  61. </script>
  62. <style lang="scss">
  63. </style>