l 3.22
This commit is contained in:
parent
cfb4fe70a1
commit
08f785f516
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -469,7 +469,7 @@ export default {
|
|||
// console.log(item.component_id, 'component_id');
|
||||
if (ele.trigger.length == 10) {
|
||||
ele.trigger.pop();
|
||||
} else {
|
||||
}
|
||||
if(this.$route.query.type=='离线视频'){
|
||||
var timeNew = item.time.split('.')[0]
|
||||
var dateLength = timeNew.length;
|
||||
|
@ -514,7 +514,7 @@ export default {
|
|||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -526,7 +526,7 @@ export default {
|
|||
cycleTimeData: {
|
||||
handler(newVal) {
|
||||
// 监听到打印周期时刻数据
|
||||
console.log(newVal, '周期时刻数据');
|
||||
// console.log(newVal, '周期时刻数据');
|
||||
|
||||
if (newVal != undefined && newVal.length != 0 && this.sectionData) {
|
||||
var thatN = this;
|
||||
|
@ -535,9 +535,11 @@ export default {
|
|||
newVal.forEach(item => {
|
||||
|
||||
if (ele.analogAreaComponentId == item.component_id && ele.timeMode == '周期时刻') {
|
||||
|
||||
if (ele.cycleTimeData.length == 10) {
|
||||
ele.cycleTimeData.pop();
|
||||
} else {
|
||||
|
||||
}
|
||||
// item.time = item.time.split('.')[0];
|
||||
// if(this.$route.query.type=='离线视频'){
|
||||
// var timeNew = item.time.split('.')[0]
|
||||
|
@ -552,6 +554,7 @@ export default {
|
|||
thatN.typeCycleTimeData = item;
|
||||
}
|
||||
ele.cycleTimeData.unshift(item);
|
||||
|
||||
// thatN.$nextTick(() => {
|
||||
if (thatN.$refs.typeChartRef1 != undefined) {
|
||||
// console.log("thatN.$refs.typeChartRef1",thatN.$refs.typeChartRef1)
|
||||
|
@ -583,7 +586,7 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// });
|
||||
}
|
||||
|
@ -598,7 +601,7 @@ export default {
|
|||
if (ele.timeMode == '周期时刻') {
|
||||
if (ele.cycleTimeData.length == 10) {
|
||||
ele.cycleTimeData.pop();
|
||||
} else {
|
||||
}
|
||||
// item.time = item.time.split('.')[0];
|
||||
// if (item.type_data != null) {
|
||||
// // 周期时刻的类型数据
|
||||
|
@ -634,7 +637,7 @@ export default {
|
|||
if (itemTypeChartRef1.componentName.includes('OD') && itemTypeChartRef1.$refs.ODChartRef != undefined && itemTypeChartRef1.dataArr[0].ob_data.length != 0) {
|
||||
itemTypeChartRef1.$refs.ODChartRef.drawThermalChart(itemTypeChartRef1.dataArr[0].ob_data, itemTypeChartRef1.startEndData)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -650,7 +653,7 @@ export default {
|
|||
//周期统计
|
||||
cycleStatisticsData: {
|
||||
handler(newVal) {
|
||||
console.log("newVal", newVal)
|
||||
console.log("周期统计", newVal)
|
||||
if (newVal != undefined && newVal.length != 0 && this.sectionData) {
|
||||
var that = this;
|
||||
that.classify.forEach((ele, index) => {
|
||||
|
@ -658,7 +661,7 @@ export default {
|
|||
if (ele.analogAreaComponentId == item.component_id && ele.timeMode == '周期统计') {
|
||||
if (ele.cycleStatisticsData.length == 10) {
|
||||
ele.cycleStatisticsData.pop();
|
||||
} else {
|
||||
}
|
||||
|
||||
if(this.$route.query.type=='离线视频'){
|
||||
var timeNew = item.time.split('.')[0]
|
||||
|
@ -702,7 +705,7 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -717,7 +720,7 @@ export default {
|
|||
if (ele.timeMode == '周期统计') {
|
||||
if (ele.cycleStatisticsData.length == 10) {
|
||||
ele.cycleStatisticsData.pop();
|
||||
} else {
|
||||
}
|
||||
// item.time = item.time.split('.')[0];
|
||||
// if (item.type_data != null) {
|
||||
// _that.typeCycleStatistics = item;
|
||||
|
@ -754,7 +757,7 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { getHostInfoApi, initData, update,configRestore, ResetFactory,RestartComputer } from '../../api/aboutMachine';
|
||||
import { getHostInfoApi, initData, configBackup,configRestore, ResetFactory,RestartComputer } from '../../api/aboutMachine';
|
||||
import { getQuanjszData } from '../../api/index';
|
||||
import serverUrl from '../../config/apiurl.js';
|
||||
import { setQuanjsz } from '@/api/index';
|
||||
|
@ -186,7 +186,7 @@ export default {
|
|||
});
|
||||
});
|
||||
},
|
||||
// 备份事件
|
||||
// 备份服务器事件
|
||||
backupHandle() {
|
||||
this.$confirm('此操作将备份操作, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
|
@ -194,7 +194,7 @@ export default {
|
|||
type: 'warning'
|
||||
})
|
||||
.then(() => {
|
||||
ConfigBackup().then(res => {
|
||||
configBackup().then(res => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '备份' + res.data.msg
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<el-dialog title="修改密码" :visible.sync="dialogVisible" width="30%" @close="dialogClosed">
|
||||
<el-form label-width="auto" :model="userData">
|
||||
<el-form-item label="账号" aria-disabled="true">
|
||||
<el-input type="test" :disabled="true" v-model="userData.Account"></el-input>
|
||||
<el-input type="test" :disabled="true" v-model="userData.Account"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="原密码">
|
||||
<el-input type="password" v-model="userData.oldPassword"></el-input>
|
||||
|
@ -36,7 +36,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { getUserApi,updatePassword } from '@/api/myld.js';
|
||||
import { getUserApi, updatePassword } from '@/api/myld.js';
|
||||
import serverUrl from '@/config/apiurl.js';
|
||||
import axios from 'axios';
|
||||
export default {
|
||||
|
@ -55,13 +55,14 @@ export default {
|
|||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getUser();
|
||||
},
|
||||
methods: {
|
||||
dialogClosed() {
|
||||
this.password = '';
|
||||
},
|
||||
mounted() {
|
||||
this.getUser();
|
||||
},
|
||||
|
||||
//保存密码
|
||||
savePassword() {
|
||||
// console.log(serverUrl);
|
||||
|
@ -70,11 +71,11 @@ export default {
|
|||
formData.append('Account', this.userData.Account);
|
||||
formData.append('OldPassword', this.userData.oldPassword);
|
||||
formData.append('NewPassword', this.userData.newPassword);
|
||||
console.log(formData,'数据');
|
||||
console.log(formData, '数据');
|
||||
|
||||
updatePassword(formData).then(res=>{
|
||||
console.log(res,'修改状态');
|
||||
if(res.data.code==200){
|
||||
updatePassword(formData).then(res => {
|
||||
console.log(res, '修改状态');
|
||||
if (res.data.code == 200) {
|
||||
this.$message({
|
||||
message: res.data.msg,
|
||||
type: 'success'
|
||||
|
@ -82,16 +83,16 @@ export default {
|
|||
this.dialogVisible = false;
|
||||
this.$router.push('/Login');
|
||||
// this.getUser();
|
||||
}else{
|
||||
} else {
|
||||
this.$message({
|
||||
message: res.data.msg,
|
||||
type: 'warning'
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// formData.append('IsEnable', 1);
|
||||
// formData.append('passWord', this.password);
|
||||
// formData.append('userId', this.formLabelAlign.userId);
|
||||
|
@ -142,7 +143,7 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue