|
@@ -1,4 +1,3 @@
|
|
|
-
|
|
|
<template>
|
|
|
<div>
|
|
|
<div>
|
|
@@ -46,49 +45,30 @@
|
|
|
</el-form-item>
|
|
|
</save-form> -->
|
|
|
<div class="btnWraps">
|
|
|
- <el-button @click="addNo" type="primary" v-if="
|
|
|
- $helpers.permission(
|
|
|
- 'musicGroupPlanMaking/add'
|
|
|
- )
|
|
|
- ">新建编制</el-button>
|
|
|
+ <el-button
|
|
|
+ @click="addNo"
|
|
|
+ type="primary"
|
|
|
+ v-if="$helpers.permission('musicGroupPlanMaking/add')"
|
|
|
+ >新建编制</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="tableWrap">
|
|
|
<el-table
|
|
|
:data="tableList"
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- prop="id"
|
|
|
- label="编号"
|
|
|
- width="200px"
|
|
|
- >
|
|
|
+ <el-table-column align="center" prop="id" label="编号" width="200px">
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- width="200px"
|
|
|
- prop="name"
|
|
|
- label="编制名称"
|
|
|
- >
|
|
|
+ <el-table-column align="center" width="200px" prop="name" label="编制名称">
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="subjectName" label="默认声部">
|
|
|
-
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- label="操作"
|
|
|
- fixed="right"
|
|
|
- width="200px"
|
|
|
- >
|
|
|
+ <el-table-column align="center" label="操作" fixed="right" width="200px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
@click="resetTeamNo(scope.row)"
|
|
|
type="text"
|
|
|
- v-if="
|
|
|
- $helpers.permission(
|
|
|
- 'musicGroupPlanMaking/update'
|
|
|
- )
|
|
|
- "
|
|
|
+ v-if="$helpers.permission('musicGroupPlanMaking/update')"
|
|
|
>
|
|
|
修改
|
|
|
</el-button>
|
|
@@ -171,6 +151,7 @@ export default {
|
|
|
...this.searchForm,
|
|
|
};
|
|
|
getMusicGroupPlanMakingList().then((res) => {
|
|
|
+ console.log(res);
|
|
|
if (res.code == 200) {
|
|
|
let result = res.data.map((item) => {
|
|
|
let subjectNameArr = [];
|
|
@@ -183,6 +164,7 @@ export default {
|
|
|
return item;
|
|
|
});
|
|
|
this.tableList = result;
|
|
|
+ console.log(this.tableList, " this.tableList");
|
|
|
// this.pageInfo.total = result.total;
|
|
|
}
|
|
|
});
|
|
@@ -191,9 +173,9 @@ export default {
|
|
|
addNo() {
|
|
|
this.$refs.eidtTeamNo.openDialog();
|
|
|
},
|
|
|
- resetTeamNo(row){
|
|
|
+ resetTeamNo(row) {
|
|
|
this.$refs.eidtTeamNo.openDialog(row);
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|