修改游戏数学学期计划

This commit is contained in:
sk1551 2020-11-01 21:20:46 +08:00
parent b9942bb4d4
commit ee479f68ee

View File

@ -90,7 +90,7 @@
:formatter="mathPlanFormat" :formatter="mathPlanFormat"
/> />
<el-table-column label="月份" align="center" prop="month" /> <el-table-column label="月份" align="center" prop="month" />
<el-table-column label="游戏数学内容" align="center" prop="mathconent" /> <el-table-column label="游戏数学内容" align="center" prop="mathconent" :formatter="mathFaFormat" />
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="备注" align="center" prop="remark" />
<el-table-column <el-table-column
label="操作" label="操作"
@ -299,12 +299,9 @@ export default {
}, },
//checkbox //checkbox
getMathFaContentValue() { getMathFaContentValue() {
//console.log(this.themeList);
var text = ";"; var text = ";";
this.mathFaList.forEach(function (value, key, arr) { this.mathFaList.forEach(function (value, key, arr) {
//console.log(value); // 123
text = text + value + ";"; text = text + value + ";";
//console.log(text);
}); });
this.form.mathconent = text; this.form.mathconent = text;
}, },
@ -327,7 +324,6 @@ export default {
getMathFa() { getMathFa() {
listPlan(this.queryParams_mathfa).then((response) => { listPlan(this.queryParams_mathfa).then((response) => {
this.mathFaOptions = response.rows; this.mathFaOptions = response.rows;
console.log(this.mathFaOptions);
}); });
}, },
// //
@ -349,6 +345,25 @@ export default {
}); });
return actions.join(""); return actions.join("");
}, },
// --
mathFaFormat(row, column) {
if (row.mathconent != null) {
var ilength = row.mathconent.split(";").length - 1;
var names = "";
for (var i = 1; i < ilength; i++) {
names =
names +
this.selectMoeDictLabel(
this.mathFaOptions,
row.mathconent.split(";")[i]
) +
"";
}
//this.selectDictLabel(this.scopeOptions, row.xnxq);
return names;
}
return "";
},
// //
cancel() { cancel() {
this.open = false; this.open = false;