fix: BUG修改

This commit is contained in:
cjp 2023-07-26 11:07:33 +08:00
parent e9862f5245
commit 913dc74cb6
7 changed files with 15 additions and 13 deletions

View File

@ -321,6 +321,7 @@
>
<el-input
type="number"
oninput="if(value.length>5)value=value.slice(0,5)"
v-model="item.temperatureThreshold"
style="width: 120px"
:placeholder="$t('message.safeManage.placeholder')"

View File

@ -211,7 +211,7 @@
>
<div class="dialog_content">
<div class="filterBox">
<el-select
<!-- <el-select
size="medium"
:placeholder="$t('message.highModulus.realData')"
v-model="filterForm.alarmState"
@ -224,7 +224,7 @@
:value="index + 1"
:label="item"
></el-option>
</el-select>
</el-select> -->
<el-date-picker
size="medium"
v-model="daterange"

View File

@ -830,14 +830,14 @@ export default {
return;
}
this.cardForm.workernum = this.cardForm.list.length;
var json = this.cardForm;
var arr = [];
let json = this.cardForm;
let arr = [];
console.log(json.list);
json.list.forEach((element) => {
var item = {
let item = {
isQualified: element.isQualified,
score: element.score,
workerId: this.isAdd ? element.id : element.workerId,
workerId: element.id,
projectSn: this.$store.state.projectSn,
};
if (!this.isAdd) {
@ -848,7 +848,7 @@ export default {
});
json.list = arr;
if (this.isAdd) {
console.log(json);
console.log(json,"新增");
workerSafeEducationAddApi(json).then((res) => {
this.cardDialog = false;
this.loadCardData();
@ -858,7 +858,8 @@ export default {
});
} else {
// console.log(this.cardForm)
workerSafeEducationEditApi(this.cardForm).then((res) => {
console.log(json,"修改")
workerSafeEducationEditApi(json).then((res) => {
this.cardDialog = false;
this.loadCardData();
this.$message.success(

View File

@ -346,7 +346,7 @@ export default {
pageSize: 10,
total: 0,
moment: moment,
valueTime: '',
valueTime: null,
selectAlarmType: '',
// 123456,7,8,9,10
alarmTypeList: [
@ -404,7 +404,7 @@ export default {
created() {
this.projectSn = this.sn ? this.sn : this.$store.state.projectSn;
this.queryDev()
this.selectNowDate()
// this.selectNowDate()
this.queryTowerAlarmList()
},
computed: {

View File

@ -425,7 +425,7 @@ export default {
this.projectSn = this.sn ? this.sn:this.$store.state.projectSn;
this.startTime = this.endTime = moment(new Date()).format('YYYY-MM-DD')
console.log(this.startTime, this.endTime)
this.selectNowDate()
// this.selectNowDate()
this.queryDev()
this.queryTowerCurrentDataList()
},

View File

@ -157,7 +157,7 @@ export default {
created() {
this.projectSn = this.sn ? this.sn : this.$store.state.projectSn
this.queryDev()
this.selectNowDate()
// this.selectNowDate()
this.queryTowerWorkCycle()
},
computed: {

View File

@ -458,7 +458,7 @@ export default {
created() {
this.projectSn = this.sn ? this.sn : this.$store.state.projectSn
this.queryDev()
this.selectNowDate()
// this.selectNowDate()
this.queryTowerWorkCycle()
},
computed: {