fix: bug修改

This commit is contained in:
jxj_yjl 2023-07-05 19:19:19 +08:00
parent ff6e91ca29
commit bec62601e2
8 changed files with 79 additions and 10 deletions

View File

@ -0,0 +1,19 @@
/**
* api接口统一管理 大屏显示器
*/
import {post,get} from '../http'
export const getLEDList = data => get('xmgl/led/ledBigScreen/queryDetail', data);
export const saveLEDList = data => post('xmgl/led/ledBigScreen/saveDetail', data);
export const getWorkList = data => post('xmgl/workerInfo/countWorkerNumGroupByWorkerType', data);
export const getClassGroupList = data => post('xmgl/workerInfo/selectWorkerTeamStatistics', data);
export const getChockingList = data => post('xmgl/workerInfo/selectPersonTypeAndEduStatistics', data);
// 查询接口xmgl/led/ledBigScreen/queryDetail get
// 保存接口xmgl/led/ledBigScreen/saveDetail post
// 工种xmgl/projectOperationsAnalysis/getAnalysisByTypeOfWork参数projectSnpost
// 班组xmgl/workerInfo/selectWorkerTeamStatistics参数projectSn post
// 考勤xmgl/workerInfo/selectPersonTypeAndEduStatistics参数projectSnpost

View File

@ -395,7 +395,7 @@ export default {
);
},
changeUpload(file, fileList) {
// console.log("file", file, fileList);
console.log("file", file, fileList);
// this.addBuildForm.modelUrl = file;
},
uploadMapSuccess(response) {

View File

@ -132,7 +132,7 @@
<el-input
type="number"
v-model="addEditForm.evaluationScore"
oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = '';"
oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = ''; if(value.length>3)value=value.slice(0,3);"
placeholder="请输入数字类型"
></el-input>
<div>:满分100</div>

View File

@ -166,6 +166,7 @@
v-model="scope.row.warningValue"
onkeyup="if(isNaN(value))execCommand('undo')"
onafterpaste="if(isNaN(value))execCommand('undo')"
oninput="if(value.length>3)value=value.slice(0,3)"
></el-input>
</template>
</el-table-column>
@ -180,6 +181,7 @@
v-model="scope.row.alarmValue"
onkeyup="if(isNaN(value))execCommand('undo')"
onafterpaste="if(isNaN(value))execCommand('undo')"
oninput="if(value.length>3)value=value.slice(0,3)"
></el-input>
</template>
</el-table-column>

View File

@ -401,6 +401,10 @@
<script>
import vueSeamlessScroll from "vue-seamless-scroll";
import {
getLEDList,getClassGroupList,
saveLEDList,getWorkList,getChockingList
} from "@/assets/js/api/largeScreen";
export default {
components: {},
data() {
@ -471,8 +475,52 @@ export default {
created() {
//
// this.initLED()
// this.getChockList()
// this.getWorkTypeList()
// this.getClassGroupList()
this.getLargeScreenList()
},
methods: {
getLargeScreenList() {
let data = {}
getLEDList(data).then((res) => {
console.log('LED',res)
});
},
saveLargeScreenList() {
saveLEDList(data).then((res) => {
console.log('LED',res)
});
},
getChockList() {
let data = {
projectSn: '',
}
getChockingList(data).then((res) => {
console.log('考勤',res)
});
},
getWorkTypeList() {
let data = {
projectSn: '',
}
getWorkList(data).then((res) => {
console.log('工种',res)
});
},
getClassGroupList() {
let data = {
projectSn: '',
}
getClassGroupList(data).then((res) => {
console.log('班组',res)
});
},
initLED() {
let data = [
{

View File

@ -81,16 +81,16 @@
onafterpaste="if(isNaN(value))execCommand('undo')"></el-input>
</el-form-item>
<el-form-item label="安全得分" prop="safeScore" label-width="120px">
<el-input v-model="submitForm.safeScore" placeholder="请输入" onkeyup="if(isNaN(value))execCommand('undo')"
onafterpaste="if(isNaN(value))execCommand('undo')" oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = '';"></el-input>
<el-input v-model="submitForm.safeScore" placeholder="请输入" onkeyup="if(isNaN(value))execCommand('undo')" :maxlength="3"
onafterpaste="if(isNaN(value))execCommand('undo')" oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = ''; if(value.length>3)value=value.slice(0,3);"></el-input>
</el-form-item>
<el-form-item label="质量问题数" prop="qualityProblemNum" label-width="120px">
<el-input v-model="submitForm.qualityProblemNum" placeholder="请输入" onkeyup="if(isNaN(value))execCommand('undo')"
onafterpaste="if(isNaN(value))execCommand('undo')"></el-input>
onafterpaste="if(isNaN(value))execCommand('undo')" :maxlength="3"></el-input>
</el-form-item>
<el-form-item label="质量得分" prop="qualityScore" label-width="120px">
<el-input v-model="submitForm.qualityScore" placeholder="请输入" onkeyup="if(isNaN(value))execCommand('undo')"
onafterpaste="if(isNaN(value))execCommand('undo')" oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = '';"></el-input>
<el-input v-model="submitForm.qualityScore" placeholder="请输入" onkeyup="if(isNaN(value))execCommand('undo')" :maxlength="3"
onafterpaste="if(isNaN(value))execCommand('undo')" oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = ''; if(value.length>3)value=value.slice(0,3);"></el-input>
</el-form-item>
</el-form>
<div class="dialog_footer">

View File

@ -68,7 +68,7 @@
<el-input v-model="submitForm.safeScore" placeholder="请输入"
onkeyup="if(isNaN(value))execCommand('undo')"
onafterpaste="if(isNaN(value))execCommand('undo')"
oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = '';"
oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = ''; if(value.length>3)value=value.slice(0,3);"
></el-input>
</el-form-item>
<el-form-item label="质量问题数" prop="qualityProblemNum" label-width="120px">
@ -80,7 +80,7 @@
<el-input v-model="submitForm.qualityScore" placeholder="请输入"
onkeyup="if(isNaN(value))execCommand('undo')"
onafterpaste="if(isNaN(value))execCommand('undo')"
oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = '';"></el-input>
oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = ''; if(value.length>3)value=value.slice(0,3);"></el-input>
</el-form-item>
</el-form>
<div class="dialog_footer">

View File

@ -116,7 +116,7 @@
v-model="submitForm[item.value]"
placeholder="请输入"
type="number"
oninput="if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = 0;"
oninput="if(value.length>3)value=value.slice(0,3); if(value > 100) value = 100; if(value < 0 || value == '' || value == null) value = '';"
>
<i slot="suffix" style="font-size:16px">%</i>
</el-input>