Commit 72005162 authored by 黄奎's avatar 黄奎

页面修改

parent 51031779
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<q-btn size="10px" @click="addChild()" round color="primary" icon="iconfont icon-img_haha" /> <q-btn size="10px" @click="addChild()" round color="primary" icon="iconfont icon-img_haha" />
</div> </div>
</div> </div>
<div v-for="(item,index) in addMsg.SubtypeList" class="row wrap childConfig"> <div v-for="(item,index) in addMsg.SubtypeList" class="row wrap childConfig" :key="index">
<q-btn size="10px" @click="delChild(item,index)" class="SubChild" round color="red" <q-btn size="10px" @click="delChild(item,index)" class="SubChild" round color="red"
icon="iconfont icon-guanbi1" /> icon="iconfont icon-guanbi1" />
<div class="col-12 q-pr-lg q-pb-lg"> <div class="col-12 q-pr-lg q-pb-lg">
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<div class="q-pb-lg"> <div class="q-pb-lg">
<q-btn size="10px" @click="addSun(index)" round color="primary" icon="iconfont icon-img_haha" /> <q-btn size="10px" @click="addSun(index)" round color="primary" icon="iconfont icon-img_haha" />
</div> </div>
<div class="row wrap" style="position:relative;" v-for="(subItem,subIndex) in item.OptionList"> <div class="row wrap" style="position:relative;" v-for="(subItem,subIndex) in item.OptionList" :key="subIndex">
<div class="col-4 q-pr-lg q-pb-lg"> <div class="col-4 q-pr-lg q-pb-lg">
<q-input filled v-model="subItem.LevelTitle" dense ref="SubTypeName" label="标题"></q-input> <q-input filled v-model="subItem.LevelTitle" dense ref="SubTypeName" label="标题"></q-input>
</div> </div>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" @click="showForm(props.row,2)" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" @click="showForm(props.row,2)"
label="建议" /> --> label="建议" /> -->
<q-btn v-if="isHaveEdit" flat size="xs" icon="edit" color="accent" style="font-weight:400" <q-btn v-if="isHaveEdit" flat size="xs" icon="edit" color="accent" style="font-weight:400"
@click="goAssessTable(props.row)" label="修改" /> @click="goAssessTable(props.row)" label="编辑" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" @click="gotoDetail(props.row)" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" @click="gotoDetail(props.row)"
label="详情" /> label="详情" />
</q-td> </q-td>
...@@ -164,12 +164,12 @@ ...@@ -164,12 +164,12 @@
this.msg.MonthStr = (today.getMonth() + 1).toString(); this.msg.MonthStr = (today.getMonth() + 1).toString();
this.queryDate = this.msg.YearStr + '-' + this.msg.MonthStr; this.queryDate = this.msg.YearStr + '-' + this.msg.MonthStr;
this.findData(); this.findData();
},
mounted() {
if (!this.isHaveEdit) { if (!this.isHaveEdit) {
let userinfo = this.getLocalStorage(); let userinfo = this.getLocalStorage();
this.msg.TeacherAccountId = userinfo.Id; this.msg.TeacherAccountId = userinfo.Id;
} }
},
mounted() {
this.getTeacherAssessmentPage() this.getTeacherAssessmentPage()
}, },
methods: { methods: {
...@@ -211,6 +211,7 @@ ...@@ -211,6 +211,7 @@
var qObj = {}; var qObj = {};
if (item) { if (item) {
qObj.Id = item.Id; qObj.Id = item.Id;
qObj.TeacherAccountId = item.TeacherAccountId;
} }
this.OpenNewUrl('/teacher/jobEvaluation', qObj); this.OpenNewUrl('/teacher/jobEvaluation', qObj);
}, },
......
...@@ -123,8 +123,13 @@ ...@@ -123,8 +123,13 @@
this.GetTeacherList(); this.GetTeacherList();
}, },
mounted() { mounted() {
if (this.$route.query && this.$route.query.Id) { if (this.$route.query) {
this.saveObj.Id = this.$route.query.Id; if (this.$route.query.Id) {
this.saveObj.Id = this.$route.query.Id;
}
if (this.$route.query.TeacherAccountId) {
this.saveObj.TeacherAccountId = this.$route.query.TeacherAccountId
}
this.getInfo(); this.getInfo();
} }
}, },
...@@ -165,7 +170,7 @@ ...@@ -165,7 +170,7 @@
TeacherAccountId: this.saveObj.TeacherAccountId, TeacherAccountId: this.saveObj.TeacherAccountId,
YearStr: this.saveObj.YearStr, YearStr: this.saveObj.YearStr,
MonthStr: this.saveObj.MonthStr, MonthStr: this.saveObj.MonthStr,
Id:this.saveObj.Id, Id: this.saveObj.Id,
}; };
queryTeacherAssessmentInfo(qMsg).then(res => { queryTeacherAssessmentInfo(qMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -208,7 +213,19 @@ ...@@ -208,7 +213,19 @@
color: 'accent', color: 'accent',
timeout: 2000, timeout: 2000,
message: '数据保存成功!', message: '数据保存成功!',
position: 'top' position: 'top',
actions: [{
label: "点击查看",
color: "primary",
handler: () => {
this.$router.push({
path: "/teacher/appraisalList",
query: {
}
});
}
}],
}) })
} }
}).catch(() => { }).catch(() => {
......
...@@ -347,7 +347,6 @@ ...@@ -347,7 +347,6 @@
} from '../../api/course/index' } from '../../api/course/index'
import { import {
queryEmployee, queryEmployee,
} from "../../api/users/user"; } from "../../api/users/user";
import { import {
queryGuestStateList, queryGuestStateList,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment