|
@@ -182,10 +182,17 @@
|
|
|
align="center"
|
|
|
label="操作"
|
|
|
>
|
|
|
- <!-- -->
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
type="text"
|
|
|
+ v-if="
|
|
|
+ permission('classGroup/update')
|
|
|
+ "
|
|
|
+ @click="resetClassName(scope.row)"
|
|
|
+ >班级名称调整</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
@click="addCompound(scope.row)"
|
|
|
v-if="
|
|
|
scope.row.type != 'MUSIC_NETWORK' &&
|
|
@@ -238,6 +245,20 @@
|
|
|
@getList="getList"
|
|
|
@cancleCompound="cancleCompound"
|
|
|
/>
|
|
|
+ <!-- 修改班级名称 -->
|
|
|
+ <el-dialog
|
|
|
+ title="班级名称调整"
|
|
|
+ width="400px"
|
|
|
+ :visible.sync="classNameVisible"
|
|
|
+ v-if="classNameVisible"
|
|
|
+ >
|
|
|
+ <changeClassName
|
|
|
+ :classGroupId="activeClass"
|
|
|
+ :detail="classDetail"
|
|
|
+ @submited="submitedResetClassName"
|
|
|
+ @close="classNameVisible = false"
|
|
|
+ />
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -256,9 +277,11 @@ import {
|
|
|
import { permission } from "@/utils/directivePage";
|
|
|
import classCompound from "./componentClass/classCompound";
|
|
|
import { Export } from "@/utils/downLoadFile";
|
|
|
+import changeClassName from "@/views/teamDetail/components/modals/class-resetclass-name.vue";
|
|
|
+import {resetClassName} from '@/views/teamDetail/api'
|
|
|
import qs from "qs";
|
|
|
export default {
|
|
|
- components: { pagination, classCompound },
|
|
|
+ components: { pagination, classCompound,changeClassName },
|
|
|
data() {
|
|
|
return {
|
|
|
searchForm: {
|
|
@@ -280,6 +303,11 @@ export default {
|
|
|
total: 0, // 总条数
|
|
|
page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
|
},
|
|
|
+ classNameVisible:false,
|
|
|
+ classDetail:null,
|
|
|
+ activeClass:''
|
|
|
+
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -305,10 +333,9 @@ export default {
|
|
|
try {
|
|
|
const res = await getAgreement();
|
|
|
if (!res.data) {
|
|
|
- this.$bus.$emit("showguide", ['agreement']);
|
|
|
+ this.$bus.$emit("showguide", ["agreement"]);
|
|
|
}
|
|
|
} catch (e) {}
|
|
|
-
|
|
|
},
|
|
|
reloadSearch() {
|
|
|
this.rules.page = 1;
|
|
@@ -316,7 +343,7 @@ export default {
|
|
|
},
|
|
|
init() {
|
|
|
this.getList();
|
|
|
- this.getAgreement()
|
|
|
+ this.getAgreement();
|
|
|
},
|
|
|
async getList() {
|
|
|
try {
|
|
@@ -433,6 +460,20 @@ export default {
|
|
|
"是否确认导出报表?"
|
|
|
);
|
|
|
},
|
|
|
+ resetClassName(row) {
|
|
|
+ this.classDetail = row;
|
|
|
+ this.classNameVisible = true;
|
|
|
+ },
|
|
|
+ async submitedResetClassName(data) {
|
|
|
+ const obj = {...data};
|
|
|
+ resetClassName(obj).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ this.classNameVisible = false;
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|