mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
讲师管理bug
This commit is contained in:
@@ -277,7 +277,7 @@
|
||||
</template>
|
||||
<!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch>
|
||||
</a-input> -->
|
||||
<a-input-number @blur="blurScore" @focus="focusScore" v-model:value="formParam.score" :precision="0" :min="0" :max="100"
|
||||
<a-input-number @blur="blurScore" @focus="focusScore" v-model:value="formParam.score" :precision="0" :min="1" :max="100"
|
||||
style="width:100%; height: 40px; border-radius: 8px ; " placeholder="请输入评分" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -455,7 +455,7 @@ export default {
|
||||
teachingDate: null,
|
||||
teacherId:null,
|
||||
mobile:null,
|
||||
score: 0
|
||||
score: null
|
||||
},
|
||||
searchdate: undefined, //选择时间
|
||||
searchParam: {
|
||||
@@ -894,7 +894,7 @@ export default {
|
||||
name: null,
|
||||
type: null,
|
||||
teaching: null,
|
||||
score: 0,
|
||||
score: null,
|
||||
remark: null,
|
||||
teachingDate: null,
|
||||
teacherId:null
|
||||
@@ -976,10 +976,10 @@ const sendName=()=>{
|
||||
state.formParam.courseName = state.formParam.courseName.replace(/\s/g, '');
|
||||
}
|
||||
const blurScore = () => {
|
||||
!state.formParam.score && (state.formParam.score = '0')
|
||||
// !state.formParam.score && (state.formParam.score = '0')
|
||||
}
|
||||
const focusScore = () => {
|
||||
state.formParam.score == 0 && (state.formParam.score = null)
|
||||
// state.formParam.score == 0 && (state.formParam.score = null)
|
||||
}
|
||||
const sendRemark=()=>{
|
||||
state.formParam.remark = state.formParam.remark.replace(/\s/g, '');
|
||||
|
||||
@@ -340,7 +340,7 @@
|
||||
</template>
|
||||
<!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch>
|
||||
</a-input> -->
|
||||
<a-input-number @blur="blurScore" @focus="focusScore" v-model:value="formParam.score" :precision="0" :min="0" :max="100"
|
||||
<a-input-number @blur="blurScore" @focus="focusScore" v-model:value="formParam.score" :precision="0" :min="1" :max="100"
|
||||
style="width:100%; height: 40px; border-radius: 8px ; " placeholder="请输入评分" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -1165,7 +1165,7 @@ export default {
|
||||
courseName: null,
|
||||
teaching: null,
|
||||
studys: null,
|
||||
score: 0,
|
||||
score: null,
|
||||
type: null,
|
||||
remark: null,
|
||||
trainOrgId: null,
|
||||
@@ -1392,10 +1392,10 @@ export default {
|
||||
state.formParam.score = state.formParam.score.replace(/\D/g, '');
|
||||
}
|
||||
const blurScore = () => {
|
||||
!state.formParam.score && (state.formParam.score = '0')
|
||||
// !state.formParam.score && (state.formParam.score = '0')
|
||||
}
|
||||
const focusScore = () => {
|
||||
state.formParam.score == 0 && (state.formParam.score = null)
|
||||
// state.formParam.score == 0 && (state.formParam.score = null)
|
||||
}
|
||||
const clearstudysNumber = () => {
|
||||
state.formParam.studys = state.formParam.studys.replace(/\D/g, '');
|
||||
|
||||
@@ -316,7 +316,7 @@
|
||||
/>
|
||||
评分
|
||||
</template>
|
||||
<a-input-number class="draitem" v-model:value="formParam.score" :defaultValue="null" :max="100" :controls="false" :min="0" :precision="0" placeholder="请输入评分"
|
||||
<a-input-number class="draitem" v-model:value="formParam.score" :defaultValue="null" :max="100" :controls="false" :min="1" :precision="0" placeholder="请输入评分"
|
||||
allowClear >
|
||||
</a-input-number>
|
||||
</a-form-item>
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
<div :style="{
|
||||
<div v-if="formParam?.status==1||formParam?.status==5" :style="{
|
||||
position: 'absolute',
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
@@ -184,7 +184,7 @@
|
||||
zIndex: 1,
|
||||
}">
|
||||
<a-button class="drabtn" @click="cancelTeachingDialog">取消</a-button>
|
||||
<a-button class="drabtn" type="primary" @click="cancelTeachingDialog" :loading="buttonLoading">确定
|
||||
<a-button class="drabtn" type="primary" @click="cancelTeachingDialog(1)" :loading="buttonLoading">提交
|
||||
</a-button>
|
||||
<!-- <a-button class="drabtn" @click="cancelTeachingDialog" type="primary" danger>拒绝</a-button> -->
|
||||
</div>
|
||||
@@ -481,7 +481,7 @@
|
||||
ellipsis: true,
|
||||
align: "center",
|
||||
width: 120,
|
||||
customCell: (record) => {return{style:{color:['#67C23A','#F56C6C'][record.status]}}},
|
||||
// customCell: (record) => {return{style:{color:['#67C23A','#F56C6C'][record.status]}}},
|
||||
customRender: (value) => {
|
||||
switch (value.record.status) {
|
||||
case 0:
|
||||
@@ -598,9 +598,14 @@
|
||||
})
|
||||
}
|
||||
//取消按钮 清空输入的数据
|
||||
const cancelTeachingDialog = () => {
|
||||
const cancelTeachingDialog = (val) => {
|
||||
if(state.teachingdialog = true )
|
||||
{
|
||||
console.log(val,'valllllll')
|
||||
if(val == 1){
|
||||
submit(state.formParam)
|
||||
return
|
||||
}
|
||||
state.teachingdialog = false
|
||||
cancel()
|
||||
}
|
||||
@@ -705,10 +710,13 @@
|
||||
if(res.data.code == 200){
|
||||
message.success('提交成功')
|
||||
getTableDate();
|
||||
|
||||
cancel()
|
||||
state.teachingdialog = false
|
||||
}
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
cancel()
|
||||
state.teachingdialog = false
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -398,7 +398,7 @@
|
||||
/>
|
||||
评分
|
||||
</template>
|
||||
<a-input-number class="draitem" v-model:value="formParam.score" :defaultValue="null" :max="100" :controls="false" :min="0" :precision="0" placeholder="请输入评分"
|
||||
<a-input-number class="draitem" v-model:value="formParam.score" :defaultValue="null" :max="100" :controls="false" :min="1" :precision="0" placeholder="请输入评分"
|
||||
allowClear @change="scoreNumber">
|
||||
</a-input-number>
|
||||
</a-form-item>
|
||||
@@ -1454,7 +1454,7 @@ getAllLevelList().then((res) => {
|
||||
const clearscoreNumber= () => {
|
||||
state.formParam.score = state.formParam.score?.replace(/\D/g, '');
|
||||
state.formParam.score == 0 && (state.formParam.score = null);
|
||||
state.formParam.score > 10 && (state.formParam.score = '10');
|
||||
// state.formParam.score > 10 && (state.formParam.score = '10');
|
||||
}
|
||||
const payExpense = () => {
|
||||
state.formParam.payableExpense = state.formParam.payableExpense?.replace(/\D/g, '');
|
||||
|
||||
Reference in New Issue
Block a user