修改月主题计划显示所有主题没区分班级类型
This commit is contained in:
parent
8568542cf9
commit
6c9880a58e
@ -262,7 +262,7 @@ export default {
|
|||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getTheme(id).then(response => {
|
getTheme(id).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
console.log(this.form);
|
//console.log(this.form);
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改主题整合";
|
this.title = "修改主题整合";
|
||||||
});
|
});
|
||||||
|
@ -152,6 +152,7 @@ import {
|
|||||||
exportTermplanitem,
|
exportTermplanitem,
|
||||||
} from "@/api/benyi/themetermplanitem";
|
} from "@/api/benyi/themetermplanitem";
|
||||||
|
|
||||||
|
import { listClass } from "@/api/system/class";
|
||||||
import { listTermplan, getTermplan } from "@/api/benyi/themetermplan";
|
import { listTermplan, getTermplan } from "@/api/benyi/themetermplan";
|
||||||
import { listTheme } from "@/api/benyi/theme";
|
import { listTheme } from "@/api/benyi/theme";
|
||||||
|
|
||||||
@ -193,6 +194,12 @@ export default {
|
|||||||
createuserid: undefined,
|
createuserid: undefined,
|
||||||
updateuserid: undefined
|
updateuserid: undefined
|
||||||
},
|
},
|
||||||
|
queryParams_class: {
|
||||||
|
bjbh: undefined
|
||||||
|
},
|
||||||
|
queryParams_classtype: {
|
||||||
|
classid: undefined
|
||||||
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
@ -209,7 +216,9 @@ export default {
|
|||||||
//console.log(themeplanid);
|
//console.log(themeplanid);
|
||||||
this.getThemePlan(themeplanid);
|
this.getThemePlan(themeplanid);
|
||||||
this.getThemePlanList();
|
this.getThemePlanList();
|
||||||
this.getThemeList();
|
this.getClassType();
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 主题--字典状态字典翻译
|
// 主题--字典状态字典翻译
|
||||||
@ -242,13 +251,7 @@ export default {
|
|||||||
});
|
});
|
||||||
this.form.themeconent = text;
|
this.form.themeconent = text;
|
||||||
},
|
},
|
||||||
//主题
|
|
||||||
getThemeList() {
|
|
||||||
listTheme(null).then((response) => {
|
|
||||||
//console.log(response.rows);
|
|
||||||
this.themeOptions = response.rows;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 字典翻译
|
// 字典翻译
|
||||||
themePlanFormat(row, column) {
|
themePlanFormat(row, column) {
|
||||||
// return this.selectDictLabel(this.classOptions, row.classid);
|
// return this.selectDictLabel(this.classOptions, row.classid);
|
||||||
@ -265,9 +268,9 @@ export default {
|
|||||||
//计划详情
|
//计划详情
|
||||||
getThemePlan(themeplanid) {
|
getThemePlan(themeplanid) {
|
||||||
getTermplan(themeplanid).then((response) => {
|
getTermplan(themeplanid).then((response) => {
|
||||||
|
this.queryParams_class.bjbh = response.data.classid;
|
||||||
this.queryParams.tpid = response.data.id;
|
this.queryParams.tpid = response.data.id;
|
||||||
this.defaultThemeType = response.data.id;
|
this.defaultThemeType = response.data.id;
|
||||||
|
|
||||||
if (response.data.status == "0") {
|
if (response.data.status == "0") {
|
||||||
this.isShow = true;
|
this.isShow = true;
|
||||||
} else {
|
} else {
|
||||||
@ -277,6 +280,19 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 获取班级类型
|
||||||
|
getClassType() {
|
||||||
|
listClass(this.queryParams_class).then((response) => {
|
||||||
|
this.queryParams_classtype.classid = response.rows[0].bjtype;
|
||||||
|
this.getThemeList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//主题
|
||||||
|
getThemeList() {
|
||||||
|
listTheme(this.queryParams_classtype).then((response) => {
|
||||||
|
this.themeOptions = response.rows;
|
||||||
|
});
|
||||||
|
},
|
||||||
getThemePlanList() {
|
getThemePlanList() {
|
||||||
listTermplan().then((response) => {
|
listTermplan().then((response) => {
|
||||||
this.themePlanOptions = response.rows;
|
this.themePlanOptions = response.rows;
|
||||||
|
@ -249,7 +249,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isShow(row) {
|
isShow(row) {
|
||||||
console.log(row.status);
|
//console.log(row.status);
|
||||||
if (row.status == "0") {
|
if (row.status == "0") {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -290,6 +290,7 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
listClass(this.queryParams).then(response => {
|
listClass(this.queryParams).then(response => {
|
||||||
this.classList = response.rows;
|
this.classList = response.rows;
|
||||||
|
console.log(this.classList);
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
||||||
<if test="content != null and content != ''">and content = #{content}</if>
|
<if test="content != null and content != ''">and content = #{content}</if>
|
||||||
<if test="communicate != null and communicate != ''">and communicate = #{communicate}</if>
|
<if test="communicate != null and communicate != ''">and communicate = #{communicate}</if>
|
||||||
|
<if test="classid != null and classid != ''">and classid = #{classid}</if>
|
||||||
<if test="parentId != null and parentId != ''">and parent_id = #{parentId}</if>
|
<if test="parentId != null and parentId != ''">and parent_id = #{parentId}</if>
|
||||||
<if test="sort != null ">and sort = #{sort}</if>
|
<if test="sort != null ">and sort = #{sort}</if>
|
||||||
</where>
|
</where>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user