课程等修复

dev_2022-03-03
yujialong 3 years ago
parent 672422b412
commit ac8d3bba5c
  1. 4
      src/utils/api.js
  2. 54
      src/views/order/AddOrder.vue
  3. 9
      src/views/serve/backstage/modelType.vue
  4. 22
      src/views/serve/projectAdd.vue
  5. 6
      src/views/system/manageLog.vue
  6. 17
      src/views/system/staff.vue

@ -227,8 +227,8 @@ export default {
saveStaff: `nakadai/backstageStaff/saveStaff`, saveStaff: `nakadai/backstageStaff/saveStaff`,
staffDetail: `nakadai/backstageStaff/staffDetail`, staffDetail: `nakadai/backstageStaff/staffDetail`,
staffList: `nakadai/backstageStaff/staffList`, staffList: `nakadai/backstageStaff/staffList`,
importStaff: `nakadai/backstageStaff/importStaff`, importStaff: `${Setting.host}nakadai/backstageStaff/importStaff`,
exportFailure: `nakadai/backstageStaff/exportFailure`, exportFailure: `${Setting.host}nakadai/backstageStaff/exportFailure`,
// 角色管理 // 角色管理
batchRemove: `users/role/batchRemove`, //批量删除角色 batchRemove: `users/role/batchRemove`, //批量删除角色

@ -120,11 +120,10 @@
<div class="small"> <div class="small">
<el-input <el-input
class="time-input" class="time-input"
onkeyup="value=this.value.replace(/\D+/g,'')"
:class="!scope.row.periodOfUse&&whetherSubmit?'red':''" :class="!scope.row.periodOfUse&&whetherSubmit?'red':''"
:disabled="viewDisabled||editDisabled" maxlength="4" :disabled="viewDisabled||editDisabled" maxlength="4"
@change="deadLine(scope.row.periodOfUse,scope.row,scope.row.options)" @change="deadLine(scope.row.periodOfUse,scope.row,scope.row.options)"
oninput="value=value.replace(/[^0-9.]/g,'')" @input="scope.row.periodOfUse = scope.row.periodOfUse.replace(/[^0-9.]/g,'')"
v-model="scope.row.periodOfUse" placeholder="输入时间"></el-input> v-model="scope.row.periodOfUse" placeholder="输入时间"></el-input>
<el-select class="time-select" v-model="scope.row.options" :disabled="viewDisabled||editDisabled" placeholder="请选择" @change="deadLine(scope.row.periodOfUse,scope.row,scope.row.options)"> <el-select class="time-select" v-model="scope.row.options" :disabled="viewDisabled||editDisabled" placeholder="请选择" @change="deadLine(scope.row.periodOfUse,scope.row,scope.row.options)">
<el-option label="日" :value="0"></el-option> <el-option label="日" :value="0"></el-option>
@ -181,7 +180,7 @@
<div class="small"> <div class="small">
<el-input :class="scope.row.finalPrice === '' && whetherSubmit?'red':''" <el-input :class="scope.row.finalPrice === '' && whetherSubmit?'red':''"
:disabled="viewDisabled" :disabled="viewDisabled"
oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" @input="scope.row.finalPrice = scope.row.finalPrice.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
@change="[allAmount($event,scope.row),calculateDiscount($event,scope.row)]" @change="[allAmount($event,scope.row),calculateDiscount($event,scope.row)]"
v-model="scope.row.finalPrice" v-model="scope.row.finalPrice"
type="text"></el-input> type="text"></el-input>
@ -256,12 +255,12 @@
<el-table-column label="使用期限" align="center" min-width="190"> <el-table-column label="使用期限" align="center" min-width="190">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="small"> <div class="small">
<el-input onkeyup="value=this.value.replace(/\D+/g,'')" <el-input
class="time-input" class="time-input"
:class="!scope.row.periodOfUse&&whetherSubmit?'red':''" :class="!scope.row.periodOfUse&&whetherSubmit?'red':''"
:disabled="viewDisabled||editDisabled" maxlength="4" :disabled="viewDisabled||editDisabled" maxlength="4"
@change="deadLine(scope.row.periodOfUse,scope.row,scope.row.options)" @change="deadLine(scope.row.periodOfUse,scope.row,scope.row.options)"
oninput="value=value.replace(/[^0-9.]/g,'')" @input="scope.row.periodOfUse = scope.row.periodOfUse.replace(/[^0-9.]/g,'')"
v-model="scope.row.periodOfUse" placeholder="输入时间"></el-input> v-model="scope.row.periodOfUse" placeholder="输入时间"></el-input>
<span style="margin-left:5px"> <span style="margin-left:5px">
<el-select class="time-select" v-model="scope.row.options" :disabled="viewDisabled||editDisabled" placeholder="请选择" @change="deadLine(scope.row.periodOfUse,scope.row,scope.row.options)"> <el-select class="time-select" v-model="scope.row.options" :disabled="viewDisabled||editDisabled" placeholder="请选择" @change="deadLine(scope.row.periodOfUse,scope.row,scope.row.options)">
@ -320,7 +319,7 @@
<div class="small"> <div class="small">
<el-input :class="scope.row.finalPrice === '' && whetherSubmit?'red':''" <el-input :class="scope.row.finalPrice === '' && whetherSubmit?'red':''"
:disabled="viewDisabled" :disabled="viewDisabled"
oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" @input="scope.row.finalPrice = scope.row.finalPrice.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
@change="[dealComputers($event,scope.row),calculateDiscount($event,scope.row),userAmount($event,scope.row)]" @change="[dealComputers($event,scope.row),calculateDiscount($event,scope.row),userAmount($event,scope.row)]"
v-model="scope.row.finalPrice" v-model="scope.row.finalPrice"
type="text"></el-input> type="text"></el-input>
@ -342,8 +341,7 @@
<div class="small"> <div class="small">
<el-input :class="!scope.row.accountNum&&whetherSubmit?'red':''" <el-input :class="!scope.row.accountNum&&whetherSubmit?'red':''"
:disabled="viewDisabled" :disabled="viewDisabled"
onkeyup="value=this.value.replace(/\D+/g,'')" @input="scope.row.accountNum = scope.row.accountNum.replace(/[^0-9.]/g,'')"
oninput="value=value.replace(/[^0-9.]/g,'')"
v-model="scope.row.accountNum" v-model="scope.row.accountNum"
@change="[dealComputers($event,scope.row),dealBargain($event,scope.row),calculateDiscount($event,scope.row)]" @change="[dealComputers($event,scope.row),dealBargain($event,scope.row),calculateDiscount($event,scope.row)]"
type="text"></el-input> type="text"></el-input>
@ -357,7 +355,7 @@
<el-input :class="scope.row.totalAmount === '' && whetherSubmit?'red':''" <el-input :class="scope.row.totalAmount === '' && whetherSubmit?'red':''"
:disabled="viewDisabled||editDisabled" :disabled="viewDisabled||editDisabled"
@blur="[allAmount($event,scope.row),allAmountChange($event,scope.row),calculateDiscount($event,scope.row)]" @blur="[allAmount($event,scope.row),allAmountChange($event,scope.row),calculateDiscount($event,scope.row)]"
oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" @input="scope.row.totalAmount = scope.row.totalAmount.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
v-model="scope.row.totalAmount" v-model="scope.row.totalAmount"
type="text"></el-input> type="text"></el-input>
</div> </div>
@ -1336,25 +1334,25 @@ export default {
// 使 // 使
deadLine(e,row,options, isDate) { deadLine(e,row,options, isDate) {
// +1 // +1
// if (isDate) { if (isDate) {
// const date = row.startTime const date = row.startTime
// const orderRepeat = this.orderRepeat const orderRepeat = this.orderRepeat
// this.$post(this.api.getOrderOtherTime, { this.$post(this.api.getOrderOtherTime, {
// customerId: this.form.customerId, customerId: this.form.customerId,
// id: row.dataOrCourseId, id: row.dataOrCourseId,
// startTime: date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() startTime: date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
// }).then(res => { }).then(res => {
// if (res.endTime) { if (res.endTime) {
// orderRepeat.includes(row.id) && orderRepeat.splice(orderRepeat.findIndex(e => e === row.id), 1) orderRepeat.includes(row.id) && orderRepeat.splice(orderRepeat.findIndex(e => e === row.id), 1)
// let time = new Date(res.endTime) let time = new Date(res.endTime)
// time = new Date(time.setDate(time.getDate() + 1)) time = new Date(time.setDate(time.getDate() + 1))
// row.startTime = `${time.getFullYear()}-${time.getMonth() + 1}-${time.getDate()}` row.startTime = `${time.getFullYear()}-${time.getMonth() + 1}-${time.getDate()}`
// } }
// }).catch(res => { }).catch(res => {
// this.repeatMsg = res.message this.repeatMsg = res.message
// orderRepeat.includes(row.id) || orderRepeat.push(row.id) orderRepeat.includes(row.id) || orderRepeat.push(row.id)
// }) })
// } }
let optionsData = '' let optionsData = ''
if(e > 0){ if(e > 0){
if (options == 1){ if (options == 1){

@ -123,7 +123,14 @@ export default {
// //
this.$post(`${this.api.delModelInfoBySystemId}?systemId=${this.systemId}`).then(res => { this.$post(`${this.api.delModelInfoBySystemId}?systemId=${this.systemId}`).then(res => {
this.$post(`${this.api.synchronizationMdel}?systemId=${this.systemId}`).then(res => { this.$post(`${this.api.synchronizationMdel}?systemId=${this.systemId}`).then(res => {
this.getType() this.$router.push({
path: 'backstage',
query: {
...this.$route.query,
categoryId: ''
}
})
this.getType()
}) })
}).catch(() => {}) }).catch(() => {})
}, },

@ -287,7 +287,7 @@ export default {
return 0; return 0;
} }
if (score > 100) { if (score > 100) {
this.$message.warning("分配的数值已超过100"); this.$message.error("分配的数值已超过100");
} }
return score; return score;
} }
@ -392,36 +392,36 @@ export default {
hintOpen hintOpen
} = this.projectManage; } = this.projectManage;
if (!projectName) { if (!projectName) {
this.$message.warning("请输入项目名称"); this.$message.error("请输入项目名称");
return false; return false;
} }
if (this.projectNameRepeat) { if (this.projectNameRepeat) {
this.$message.warning("该项目名称已存在"); this.$message.error("项目名称重复!");
return false; return false;
} }
if (state) { if (state) {
if (!experimentTarget || !this.removeTag(experimentTarget)) { if (!experimentTarget || !this.removeTag(experimentTarget)) {
this.$message.warning("请输入实验目标"); this.$message.error("请输入实验目标");
return false; return false;
} }
if (!experimentDescription || !this.removeTag(experimentDescription)) { if (!experimentDescription || !this.removeTag(experimentDescription)) {
this.$message.warning("请输入案例描述"); this.$message.error("请输入案例描述");
return false; return false;
} }
if (this.projectJudgmentData.length == 0) { if (this.projectJudgmentData.length == 0) {
this.$message.warning("请添加判分点"); this.$message.error("请添加判分点");
return false; return false;
} }
if (this.handDistributionScore < 100) { if (this.handDistributionScore < 100) {
this.$message.warning("判分点分数未满100"); this.$message.error("判分点分数未满100");
return false; return false;
} }
if (this.handDistributionScore > 100) { if (this.handDistributionScore > 100) {
this.$message.warning("判分点分数已超过100"); this.$message.error("判分点分数已超过100");
return false; return false;
} }
if ((!experimentHint || !this.removeTag(experimentHint)) && hintOpen == 0) { if ((!experimentHint || !this.removeTag(experimentHint)) && hintOpen == 0) {
this.$message.warning("请输入实验提示"); this.$message.error("请输入实验提示");
return false; return false;
} }
} }
@ -551,7 +551,7 @@ export default {
}).catch(() => { }).catch(() => {
}); });
} else { } else {
this.$message.warning("请选择判分点"); this.$message.error("请选择判分点");
} }
}, },
handleAddJudgment() { // handleAddJudgment() { //
@ -639,7 +639,7 @@ export default {
this.$refs.projectJudgementTable.clearSelection(); this.$refs.projectJudgementTable.clearSelection();
}); });
} else { } else {
this.$message.warning("请选择判分点"); this.$message.error("请选择判分点");
} }
}, },
// //

@ -5,7 +5,7 @@
<div class="per_title" v-preventReClick @click="$router.back()"> <div class="per_title" v-preventReClick @click="$router.back()">
<i class="el-icon-arrow-left"></i> <i class="el-icon-arrow-left"></i>
<span class="per_back">返回</span> <span class="per_back">返回</span>
<span class="per_school">职站日志管理</span> <span class="per_school">{{ platformName }}日志管理</span>
</div> </div>
</div> </div>
</el-card> </el-card>
@ -95,11 +95,11 @@ export default {
getData() { getData() {
this.$get(`${this.api.platformLogList}?platformId=${this.platformId}&versionName=${this.versionName}`).then(res => { this.$get(`${this.api.platformLogList}?platformId=${this.platformId}&versionName=${this.versionName}`).then(res => {
const { logList } = res const { logList } = res
if (logList.length) { this.listData = logList
if (logList.length) {
const vers = [] const vers = []
const platformName = Setting.platformList.find(e => e.id === logList[0].platformId).name const platformName = Setting.platformList.find(e => e.id === logList[0].platformId).name
this.platformName = platformName this.platformName = platformName
this.listData = logList
logList.map((e, i) => { logList.map((e, i) => {
e.logContents.map(n => { e.logContents.map(n => {
n.content = n.content.split('\n') n.content = n.content.split('\n')

@ -186,7 +186,6 @@
:action="this.api.importStaff" :action="this.api.importStaff"
:file-list="uploadList" :file-list="uploadList"
:headers="headers" :headers="headers"
:auto-upload="false"
> >
<el-button type="primary" class="ml20">上传文件<i class="el-icon-upload2 el-icon--right"></i></el-button> <el-button type="primary" class="ml20">上传文件<i class="el-icon-upload2 el-icon--right"></i></el-button>
</el-upload> </el-upload>
@ -706,14 +705,6 @@ export default {
showFaild() { showFaild() {
location.href = `${this.api.exportFailure}?exportCode=${this.exportCode}` location.href = `${this.api.exportFailure}?exportCode=${this.exportCode}`
}, },
//
importSuccess() {
this.importVisible = false
this.studentType = 1
this.keyWord = ''
this.$refs.orgTree.setCurrentKey(null)
this.getOrg()
},
uploadSuccess(res, file, fileList) { uploadSuccess(res, file, fileList) {
this.uploadFaild = false this.uploadFaild = false
if (res.status === 200) { if (res.status === 200) {
@ -721,8 +712,6 @@ export default {
this.exportCode = res.data.exportCode this.exportCode = res.data.exportCode
this.uploadFaild = true this.uploadFaild = true
util.errorMsg(`本次上传有${res.data.failureNum}个错误信息录入`) util.errorMsg(`本次上传有${res.data.failureNum}个错误信息录入`)
} else {
this.importSuccess()
} }
} else { } else {
res.message ? util.errorMsg(res.message) : util.errorMsg("上传失败,请检查数据") res.message ? util.errorMsg(res.message) : util.errorMsg("上传失败,请检查数据")
@ -743,7 +732,11 @@ export default {
this.uploadFaild = false this.uploadFaild = false
}, },
uploadSure() { uploadSure() {
this.uploadFaild ? this.importSuccess() : this.$refs.importStaff.submit() this.importVisible = false
this.studentType = 1
this.keyWord = ''
this.$refs.orgTree.setCurrentKey(null)
this.getOrg()
} }
} }
}; };

Loading…
Cancel
Save