mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 14:26:43 +08:00
修改正式环境bug
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<el-form-item label="回答内容">
|
<el-form-item label="回答内容">
|
||||||
<el-input
|
<el-input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
v-model="editData.content"
|
v-model.trim="editData.content"
|
||||||
placeholder="请输入详细描述"
|
placeholder="请输入详细描述"
|
||||||
rows="8"
|
rows="8"
|
||||||
minlength="1"
|
minlength="1"
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
methods:{
|
methods:{
|
||||||
//确认修改回答
|
//确认修改回答
|
||||||
enSure() {
|
enSure() {
|
||||||
if (!this.editData.content) {
|
if (!this.editData.content.trim()) {
|
||||||
return this.$message({
|
return this.$message({
|
||||||
message: '回复内容不能为空',
|
message: '回复内容不能为空',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-tabs v-model="tabName" @tab-click="handleTabClick">
|
<el-tabs v-model="tabName" @tab-click="handleTabClick">
|
||||||
<el-tab-pane label="报名管理" name="second">
|
<el-tab-pane label="报名管理" name="second">
|
||||||
<div>已报名{{study.list.length}}人,共有0人报名未成功,共有{{study.list.length}}人通过审核</div>
|
<!-- <div>已报名{{study.list.length}}人,共有0人报名未成功,共有{{study.list.length}}人通过审核</div> -->
|
||||||
<el-row style="margin: 20px 0;" :gutter="20">
|
<el-row style="margin: 20px 0;" :gutter="20">
|
||||||
<!-- <el-col :span="4">
|
<!-- <el-col :span="4">
|
||||||
<div class="grid-content bg-purple"><el-input v-model="input" placeholder="手动添加:姓名/工号" /></div>
|
<div class="grid-content bg-purple"><el-input v-model="input" placeholder="手动添加:姓名/工号" /></div>
|
||||||
@@ -390,6 +390,22 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
manageStudyData(val){
|
||||||
|
if(val){
|
||||||
|
this.tabName = 'second';
|
||||||
|
this.study.list = [];
|
||||||
|
if (this.tabName === "second") {
|
||||||
|
this.getSignupList();
|
||||||
|
} else if (this.tabName === "third") {
|
||||||
|
this.getStudyRecords();
|
||||||
|
} else {
|
||||||
|
// 资源
|
||||||
|
this.getDetail();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getSignupList();
|
this.getSignupList();
|
||||||
this.getResOwnerTree().then(rs=>{
|
this.getResOwnerTree().then(rs=>{
|
||||||
@@ -626,9 +642,9 @@ export default {
|
|||||||
|
|
||||||
apicourseStudy.findSignup(params).then(res => {
|
apicourseStudy.findSignup(params).then(res => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
|
|
||||||
let ids = [];
|
let ids = [];
|
||||||
res.result.list.forEach(item => {
|
res.result.list.forEach(item => {
|
||||||
|
item.code = '';
|
||||||
ids.push(item.aid);
|
ids.push(item.aid);
|
||||||
});
|
});
|
||||||
this.getQaUserData(res.result.list, ids);
|
this.getQaUserData(res.result.list, ids);
|
||||||
|
|||||||
Reference in New Issue
Block a user