修改教学计划-按钮

This commit is contained in:
sk1551 2020-11-23 11:38:19 +08:00
parent 6291a869d3
commit 2b20e74930
5 changed files with 29 additions and 28 deletions

View File

@ -40,7 +40,7 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@ -50,7 +50,7 @@
v-show="isShow" v-show="isShow"
>新增</el-button >新增</el-button
> >
</el-col> </el-col> -->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="success" type="success"
@ -60,7 +60,7 @@
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['benyi:mathtermplan:edit']" v-hasPermi="['benyi:mathtermplan:edit']"
v-show="isShow" v-show="isShow"
>修改</el-button >填充</el-button
> >
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -105,7 +105,7 @@
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['benyi:mathtermplan:edit']" v-hasPermi="['benyi:mathtermplan:edit']"
v-show="isShow" v-show="isShow"
>修改</el-button >填充</el-button
> >
<el-button <el-button
size="mini" size="mini"
@ -409,14 +409,14 @@ export default {
this.title = "添加游戏数学学期计划明细"; this.title = "添加游戏数学学期计划明细";
this.form.tpid = this.queryParams.tpid; this.form.tpid = this.queryParams.tpid;
}, },
/** 修改按钮操作 */ /**填充按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.id || this.ids;
getMathtermplanitem(id).then((response) => { getMathtermplanitem(id).then((response) => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改游戏数学学期计划明细"; this.title = "填充游戏数学学期计划明细";
var mathconent = response.data.mathconent.split(";"); var mathconent = response.data.mathconent.split(";");
var array = []; var array = [];
mathconent.forEach(function (value, key, arr) { mathconent.forEach(function (value, key, arr) {
@ -434,7 +434,7 @@ export default {
if (this.form.id != undefined) { if (this.form.id != undefined) {
updateMathtermplanitem(this.form).then((response) => { updateMathtermplanitem(this.form).then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("修改成功"); this.msgSuccess("填充成功");
this.open = false; this.open = false;
this.getList(); this.getList();
} }

View File

@ -348,6 +348,7 @@ export default {
getClassList() { getClassList() {
listClass(null).then(response => { listClass(null).then(response => {
this.classOptions = response.rows; this.classOptions = response.rows;
console.log(this.classOptions);
}); });
}, },

View File

@ -27,7 +27,7 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@ -36,7 +36,7 @@
v-hasPermi="['benyi:thememonthplan:add']" v-hasPermi="['benyi:thememonthplan:add']"
v-show="isShow" v-show="isShow"
>新增</el-button> >新增</el-button>
</el-col> </el-col> -->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="success" type="success"
@ -46,7 +46,7 @@
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['benyi:thememonthplan:edit']" v-hasPermi="['benyi:thememonthplan:edit']"
v-show="isShow" v-show="isShow"
>修改</el-button> >填充</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -92,7 +92,7 @@
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['benyi:thememonthplan:edit']" v-hasPermi="['benyi:thememonthplan:edit']"
v-show="isShow" v-show="isShow"
>修改</el-button> >填充</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -387,14 +387,14 @@ export default {
this.title = "添加主题整合周计划"; this.title = "添加主题整合周计划";
this.form.mpid = this.queryParams.mpid; this.form.mpid = this.queryParams.mpid;
}, },
/** 修改按钮操作 */ /** 填充按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.id || this.ids;
getMonthplanitem(id).then((response) => { getMonthplanitem(id).then((response) => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改主题整合周计划明细"; this.title = "填充主题整合周计划明细";
var activityid = response.data.activityid.split(";"); var activityid = response.data.activityid.split(";");
var array = []; var array = [];
//console.log(arr); //console.log(arr);
@ -414,7 +414,7 @@ export default {
if (this.form.id != undefined) { if (this.form.id != undefined) {
updateMonthplanitem(this.form).then((response) => { updateMonthplanitem(this.form).then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("修改成功"); this.msgSuccess("填充成功");
this.open = false; this.open = false;
this.getList(); this.getList();
} }

View File

@ -28,7 +28,7 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@ -37,7 +37,7 @@
v-hasPermi="['benyi:themetermplan:add']" v-hasPermi="['benyi:themetermplan:add']"
v-show="isShow" v-show="isShow"
>新增</el-button> >新增</el-button>
</el-col> </el-col> -->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="success" type="success"
@ -47,7 +47,7 @@
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['benyi:themetermplan:edit']" v-hasPermi="['benyi:themetermplan:edit']"
v-show="isShow" v-show="isShow"
>修改</el-button> >填充</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -82,7 +82,7 @@
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['benyi:themetermplan:edit']" v-hasPermi="['benyi:themetermplan:edit']"
v-show="isShow" v-show="isShow"
>修改</el-button> >填充</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -351,14 +351,14 @@ export default {
this.title = "添加主题整合学期计划明细"; this.title = "添加主题整合学期计划明细";
this.form.tpid = this.queryParams.tpid; this.form.tpid = this.queryParams.tpid;
}, },
/** 修改按钮操作 */ /**填充按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.id || this.ids;
getTermplanitem(id).then((response) => { getTermplanitem(id).then((response) => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改主题整合学期计划明细"; this.title = "填充主题整合学期计划明细";
var themeconent = response.data.themeconent.split(";"); var themeconent = response.data.themeconent.split(";");
var array = []; var array = [];
//console.log(arr); //console.log(arr);
@ -378,7 +378,7 @@ export default {
if (this.form.id != undefined) { if (this.form.id != undefined) {
updateTermplanitem(this.form).then((response) => { updateTermplanitem(this.form).then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("修改成功"); this.msgSuccess("填充成功");
this.open = false; this.open = false;
this.getList(); this.getList();
} }

View File

@ -57,7 +57,7 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@ -66,7 +66,7 @@
v-hasPermi="['benyi:themeweekplan:add']" v-hasPermi="['benyi:themeweekplan:add']"
v-show="isShow" v-show="isShow"
>新增</el-button> >新增</el-button>
</el-col> </el-col> -->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="success" type="success"
@ -76,7 +76,7 @@
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['benyi:themeweekplan:edit']" v-hasPermi="['benyi:themeweekplan:edit']"
v-show="isShow" v-show="isShow"
>修改</el-button> >填充</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -122,7 +122,7 @@
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['benyi:themeweekplan:edit']" v-hasPermi="['benyi:themeweekplan:edit']"
v-show="isShow" v-show="isShow"
>修改</el-button> >填充</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -461,14 +461,14 @@ export default {
this.form.wpid = this.queryParams.wpid; this.form.wpid = this.queryParams.wpid;
this.disabled = false; this.disabled = false;
}, },
/** 修改按钮操作 */ /** 填充按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.id || this.ids;
getWeekplanitem(id).then((response) => { getWeekplanitem(id).then((response) => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改主题整合周计划明细"; this.title = "填充主题整合周计划明细";
this.disabled = true; this.disabled = true;
var activityid = response.data.activityid.split(";"); var activityid = response.data.activityid.split(";");
var array = []; var array = [];
@ -489,7 +489,7 @@ export default {
if (this.form.id != undefined) { if (this.form.id != undefined) {
updateWeekplanitem(this.form).then((response) => { updateWeekplanitem(this.form).then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("修改成功"); this.msgSuccess("填充成功");
this.open = false; this.open = false;
this.getList(); this.getList();
} }