dev_review
yujialong 7 months ago
parent d5d594b967
commit 267dd86ac0
  1. 18
      src/views/course/AddCurriculum.vue
  2. 12
      src/views/customer/AddCustomer.vue
  3. 5
      src/views/match/manage/matchInfo.vue
  4. 2
      src/views/match/manage/matchSignup.vue
  5. 2
      src/views/order/AddOrder.vue

@ -85,7 +85,8 @@
<el-col :span="6" <el-col :span="6"
:offset="2"> :offset="2">
<el-form-item label="课程类别"> <el-form-item label="课程类别"
prop="curriculumType">
<el-select v-model="form.curriculumType" <el-select v-model="form.curriculumType"
clearable clearable
placeholder="请选择课程类型"> placeholder="请选择课程类型">
@ -497,6 +498,7 @@ export default {
form: { form: {
cid: this.$route.query.cid, cid: this.$route.query.cid,
curriculumName: "", curriculumName: "",
curriculumType: '',
courseType: "", courseType: "",
categoryId: 1, categoryId: 1,
professionalCategoryId: 1, professionalCategoryId: 1,
@ -524,6 +526,9 @@ export default {
expectedCourse: [ expectedCourse: [
{ required: true, message: "请选择预计课时", trigger: "change" } { required: true, message: "请选择预计课时", trigger: "change" }
], ],
curriculumType: [
{ required: true, message: "请选择课程类别", trigger: "change" }
],
professionalCategoryId: [ professionalCategoryId: [
{ required: true, message: "请选择专业类", trigger: "change" } { required: true, message: "请选择专业类", trigger: "change" }
], ],
@ -974,7 +979,7 @@ export default {
this.$message.info("已取消移除"); this.$message.info("已取消移除");
}); });
}, },
saveAdd (fromBack) { saveAdd () {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
if (this.submiting) return false if (this.submiting) return false
@ -1039,16 +1044,17 @@ export default {
}); });
} else { } else {
this.$post(this.api.createCurriculum, form).then((res) => { this.$post(this.api.createCurriculum, form).then((res) => {
!fromBack ? this.$confirm("课程创建成功,是否马上进行课程内容设置?", "提示", { this.loadIns.close()
this.$confirm("课程创建成功,是否马上进行课程内容设置?", "提示", {
type: "success", type: "success",
confirmButtonText: "马上设置", confirmButtonText: "马上设置",
cancelButtonText: "稍后操作", cancelButtonText: "稍后操作",
closeOnClickModal: false closeOnClickModal: false
}).then(() => { }).then(() => {
this.$router.push(`/contentSettings?cid=${res.cid}`); this.$router.push(`/contentSettings?cid=${res.cid}&name=${form.curriculumName}`);
}).catch(() => { }).catch(() => {
this.$router.push('/curriculum') this.$router.push('/curriculum')
}) : this.$router.push('/curriculum') })
}).catch((res) => { }).catch((res) => {
this.submiting = false this.submiting = false
this.loadIns.close() this.loadIns.close()
@ -1068,7 +1074,7 @@ export default {
type: 'warning', type: 'warning',
closeOnClickModal: false closeOnClickModal: false
}).then(() => { }).then(() => {
this.saveAdd(1) this.saveAdd()
}).catch(() => { }).catch(() => {
this.backPage() this.backPage()
}) })

@ -1212,16 +1212,12 @@ export default {
this.handlePageOrder() this.handlePageOrder()
}).catch(res => { }) }).catch(res => { })
}, },
//
filterOrder () {
const { keyword } = this.form3
const { orders } = this
this.orders = keyword ? this.orderAll.filter(e => e.orderNumber.includes(keyword) || e.orderContent.includes(keyword)) : orders
},
// //
handlePageOrder () { handlePageOrder () {
this.orders = this.orderAll.slice((this.pageOrder - 1) * this.pageSizeOrder, this.pageOrder * this.pageSizeOrder) const { keyword } = this.form3
this.filterOrder() const list = keyword ? this.orderAll.filter(e => e.orderNumber.includes(keyword) || e.orderContent.includes(keyword)) : this.orderAll
this.totalOrder = list.length
this.orders = list.slice((this.pageOrder - 1) * this.pageSizeOrder, this.pageOrder * this.pageSizeOrder)
}, },
handleCurrentChangeOrder (val) { handleCurrentChangeOrder (val) {
this.pageOrder = val this.pageOrder = val

@ -3,7 +3,7 @@
<el-card shadow="hover" <el-card shadow="hover"
class="m-b-20 head-card"> class="m-b-20 head-card">
<div class="flex-between"> <div class="flex-between">
<el-page-header @back="$router.back()" <el-page-header @back="back"
content="参赛信息与成绩"></el-page-header> content="参赛信息与成绩"></el-page-header>
</div> </div>
</el-card> </el-card>
@ -647,6 +647,9 @@ export default {
toReport (row) { toReport (row) {
this.$router.push(`/matchReport?reportId=${row.reportId}`) this.$router.push(`/matchReport?reportId=${row.reportId}`)
}, },
back () {
this.$router.push(this.$store.state.innerReferrer)
}
} }
}; };
</script> </script>

@ -813,7 +813,7 @@ export default {
}, },
// //
toInfo (row) { toInfo (row) {
this.$store.commit('setInnerReferrer', `${this.$route.fullPath}&keyword=${this.keyword}&page=${this.page}&isDisable=${this.isDisable}`) this.$store.commit('setInnerReferrer', `${this.$route.path}?id=${this.id}&tab=tab5&name=${this.$route.query.name}&keyword=${this.keyword}&page=${this.page}&isDisable=${this.isDisable}`)
this.$router.push(`/matchInfo?id=${this.id}&accountId=${row.accountId}`) this.$router.push(`/matchInfo?id=${this.id}&accountId=${row.accountId}`)
}, },
exportAll () { exportAll () {

@ -2358,7 +2358,7 @@ export default {
this.refreshCache() this.refreshCache()
this.$message.success("添加订单成功"); this.$message.success("添加订单成功");
this.loading = false; this.loading = false;
this.renewDisabled ? this.$router.push('/order') : this.back(); this.$router.push('/order')
}).catch(err => { }).catch(err => {
this.loading = false; this.loading = false;
}); });

Loading…
Cancel
Save