|
|
|
|
2974
|
if (response.data.state === 1) {
|
2974
|
if (response.data.state === 1) {
|
2975
|
var addmacher = response.data.data.addmacher
|
2975
|
var addmacher = response.data.data.addmacher
|
2976
|
console.log('addmacher----', addmacher)
|
2976
|
console.log('addmacher----', addmacher)
|
2977
|
-
|
|
|
|
|
2977
|
+
|
2978
|
this.$message.success('修改成功')
|
2978
|
this.$message.success('修改成功')
|
2979
|
// this.$router.push({ path: '/device/home?index=' + this.tabIndex })
|
2979
|
// this.$router.push({ path: '/device/home?index=' + this.tabIndex })
|
2980
|
// this.getAllMachine()
|
2980
|
// this.getAllMachine()
|
|
|
|
|
4263
|
getTimeWarning(id) {
|
4263
|
getTimeWarning(id) {
|
4264
|
getTimeWarning(id).then(response => {
|
4264
|
getTimeWarning(id).then(response => {
|
4265
|
if (response.data.state === 1) {
|
4265
|
if (response.data.state === 1) {
|
4266
|
- var information = response.data.data.informations
|
|
|
4267
|
- // console.log('码字', information)
|
|
|
4268
|
- // console.log('当前时间', this.getTimestamp(this.userform.date))
|
|
|
4269
|
- // console.log('存入时间', information.stime)
|
|
|
|
|
4266
|
+ var information = response.data.data.information
|
4270
|
var time = this.getTimestamp(this.userform.date) - information.stime
|
4267
|
var time = this.getTimestamp(this.userform.date) - information.stime
|
4271
|
console.log('时间', time)
|
4268
|
console.log('时间', time)
|
4272
|
// if (time < 2678400) {
|
4269
|
// if (time < 2678400) {
|