优化
This commit is contained in:
parent
9e079060cf
commit
8ecd50f01c
@ -35,7 +35,7 @@ export default {
|
|||||||
if (typeof val !== 'string') return
|
if (typeof val !== 'string') return
|
||||||
const themeCluster = this.getThemeCluster(val.replace('#', ''))
|
const themeCluster = this.getThemeCluster(val.replace('#', ''))
|
||||||
const originalCluster = this.getThemeCluster(oldVal.replace('#', ''))
|
const originalCluster = this.getThemeCluster(oldVal.replace('#', ''))
|
||||||
console.log(themeCluster, originalCluster)
|
//console.log(themeCluster, originalCluster)
|
||||||
|
|
||||||
const $message = this.$message({
|
const $message = this.$message({
|
||||||
message: ' Compiling the theme',
|
message: ' Compiling the theme',
|
||||||
|
@ -7,7 +7,7 @@ const mutations = {
|
|||||||
ADD_VISITED_VIEW: (state, view) => {
|
ADD_VISITED_VIEW: (state, view) => {
|
||||||
if (state.visitedViews.some(v => v.path === view.path)) return
|
if (state.visitedViews.some(v => v.path === view.path)) return
|
||||||
let title = view.meta.title || 'no-name';
|
let title = view.meta.title || 'no-name';
|
||||||
console.log(view)
|
//console.log(view)
|
||||||
if(view && view.query && view.query.dayflowassessmentteacherdetails) {
|
if(view && view.query && view.query.dayflowassessmentteacherdetails) {
|
||||||
title = view.query.dayflowassessmentteacherdetails;
|
title = view.query.dayflowassessmentteacherdetails;
|
||||||
}
|
}
|
||||||
|
@ -344,7 +344,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//控制按钮可用
|
//控制按钮可用
|
||||||
checkRemoveable(row) {
|
checkRemoveable(row) {
|
||||||
console.log(row.remark);
|
//console.log(row.remark);
|
||||||
var remark = row.remark;
|
var remark = row.remark;
|
||||||
if (remark == "" || remark == null) {
|
if (remark == "" || remark == null) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -387,7 +387,7 @@ export default {
|
|||||||
this.reset();
|
this.reset();
|
||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getFiles(id).then((response) => {
|
getFiles(id).then((response) => {
|
||||||
console.log(response);
|
//console.log(response);
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
var roleArr = [];
|
var roleArr = [];
|
||||||
if (response.roles != null) {
|
if (response.roles != null) {
|
||||||
|
@ -276,7 +276,7 @@ export default {
|
|||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getMath(id).then(response => {
|
getMath(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 = "修改游戏数学";
|
||||||
});
|
});
|
||||||
|
@ -96,7 +96,7 @@ export default {
|
|||||||
// 节点单击事件
|
// 节点单击事件
|
||||||
handleNodeClick(data) {
|
handleNodeClick(data) {
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
console.log(data.id);
|
//console.log(data.id);
|
||||||
if (data.id >= 9999) {
|
if (data.id >= 9999) {
|
||||||
} else {
|
} else {
|
||||||
this.title = data.label;
|
this.title = data.label;
|
||||||
|
@ -293,7 +293,7 @@ export default {
|
|||||||
getDeptList() {
|
getDeptList() {
|
||||||
listDept(null).then((response) => {
|
listDept(null).then((response) => {
|
||||||
this.deptOptions = response.data;
|
this.deptOptions = response.data;
|
||||||
console.log(response.data);
|
//console.log(response.data);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 用户列表
|
// 用户列表
|
||||||
|
@ -418,9 +418,9 @@ export default {
|
|||||||
this.queryParams.wpid = response.data.id;
|
this.queryParams.wpid = response.data.id;
|
||||||
this.defaultThemeweekType = response.data.id;
|
this.defaultThemeweekType = response.data.id;
|
||||||
|
|
||||||
console.log(
|
// console.log(
|
||||||
"月份:" + response.data.month + " " + "周次:" + response.data.zc
|
// "月份:" + response.data.month + " " + "周次:" + response.data.zc
|
||||||
);
|
// );
|
||||||
|
|
||||||
//查找活动id
|
//查找活动id
|
||||||
this.queryParams_MonPlan.month = response.data.month;
|
this.queryParams_MonPlan.month = response.data.month;
|
||||||
@ -431,7 +431,7 @@ export default {
|
|||||||
this.queryParams_MonPlanItem.zc = response.data.zc;
|
this.queryParams_MonPlanItem.zc = response.data.zc;
|
||||||
listMonthplanitem(this.queryParams_MonPlanItem).then(
|
listMonthplanitem(this.queryParams_MonPlanItem).then(
|
||||||
(resMonPlanItem) => {
|
(resMonPlanItem) => {
|
||||||
console.log(resMonPlanItem.rows);
|
//console.log(resMonPlanItem.rows);
|
||||||
var activityids = resMonPlanItem.rows[0].activityid.split(";");
|
var activityids = resMonPlanItem.rows[0].activityid.split(";");
|
||||||
var array = [];
|
var array = [];
|
||||||
//console.log(arr);
|
//console.log(arr);
|
||||||
|
@ -223,7 +223,7 @@ export default {
|
|||||||
//获取周教学计划详情
|
//获取周教学计划详情
|
||||||
getThemeWeekPlan(themeweekplanid) {
|
getThemeWeekPlan(themeweekplanid) {
|
||||||
getWeekplan(themeweekplanid).then((response) => {
|
getWeekplan(themeweekplanid).then((response) => {
|
||||||
console.log(response.data.classid);
|
//console.log(response.data.classid);
|
||||||
this.queryParams.wpid = response.data.id;
|
this.queryParams.wpid = response.data.id;
|
||||||
this.title = response.data.name;
|
this.title = response.data.name;
|
||||||
this.zc = response.data.zc;
|
this.zc = response.data.zc;
|
||||||
@ -238,7 +238,7 @@ export default {
|
|||||||
this.queryParams_MonPlan.xnxq = response.data.xnxq;
|
this.queryParams_MonPlan.xnxq = response.data.xnxq;
|
||||||
this.queryParams_MonPlan.classid=response.data.classid;
|
this.queryParams_MonPlan.classid=response.data.classid;
|
||||||
listMonthplan(this.queryParams_MonPlan).then((resMonPlan) => {
|
listMonthplan(this.queryParams_MonPlan).then((resMonPlan) => {
|
||||||
console.log(resMonPlan.rows);
|
//console.log(resMonPlan.rows);
|
||||||
//获取的月主题
|
//获取的月主题
|
||||||
var monththemeids = resMonPlan.rows[0].themes;
|
var monththemeids = resMonPlan.rows[0].themes;
|
||||||
|
|
||||||
|
@ -224,7 +224,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleAvatarSuccess(res, file) {
|
handleAvatarSuccess(res, file) {
|
||||||
this.imageUrl = URL.createObjectURL(file.raw);
|
this.imageUrl = URL.createObjectURL(file.raw);
|
||||||
console.log(res);
|
//console.log(res);
|
||||||
if (res.code == "200") {
|
if (res.code == "200") {
|
||||||
this.form.imgurl = res.fileName;
|
this.form.imgurl = res.fileName;
|
||||||
} else {
|
} else {
|
||||||
@ -311,7 +311,7 @@ export default {
|
|||||||
submitForm: function() {
|
submitForm: function() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
console.log(this.form.imgurl);
|
//console.log(this.form.imgurl);
|
||||||
if (this.form.id != undefined) {
|
if (this.form.id != undefined) {
|
||||||
updateLecturer(this.form).then(response => {
|
updateLecturer(this.form).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user