|
|
@ -22,8 +22,9 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import TimeC from "./time" |
|
|
|
|
|
export default { |
|
|
|
|
|
|
|
|
import TimeC from "./time" |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
name: "productOutBoard", |
|
|
name: "productOutBoard", |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
@ -54,7 +55,7 @@ export default { |
|
|
let jumpTime = Number(data.rows); |
|
|
let jumpTime = Number(data.rows); |
|
|
if (jumpTime > 0) { |
|
|
if (jumpTime > 0) { |
|
|
that.countTimer = window.setTimeout(() => { |
|
|
that.countTimer = window.setTimeout(() => { |
|
|
that.jump() |
|
|
|
|
|
|
|
|
that.jump(); |
|
|
}, 1000 * jumpTime); |
|
|
}, 1000 * jumpTime); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
@ -96,12 +97,12 @@ export default { |
|
|
let refreshTime = Number(data.rows); |
|
|
let refreshTime = Number(data.rows); |
|
|
if (refreshTime > 0) { |
|
|
if (refreshTime > 0) { |
|
|
that.loader = window.setInterval(() => { |
|
|
that.loader = window.setInterval(() => { |
|
|
that.refresh() |
|
|
|
|
|
|
|
|
that.refresh(); |
|
|
}, 1000 * refreshTime); |
|
|
}, 1000 * refreshTime); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
that.loader = window.setInterval(() => { |
|
|
that.loader = window.setInterval(() => { |
|
|
that.refresh() |
|
|
|
|
|
|
|
|
that.refresh(); |
|
|
}, 10000); |
|
|
}, 10000); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -116,12 +117,20 @@ export default { |
|
|
data: {}, |
|
|
data: {}, |
|
|
dataType: "json", |
|
|
dataType: "json", |
|
|
success: function (data) { |
|
|
success: function (data) { |
|
|
|
|
|
if (data.success) { |
|
|
that.data1 = {"total": data.rows1.length, "rows": data.rows1}; |
|
|
that.data1 = {"total": data.rows1.length, "rows": data.rows1}; |
|
|
that.data2 = {"total": data.rows2.length, "rows": data.rows2}; |
|
|
that.data2 = {"total": data.rows2.length, "rows": data.rows2}; |
|
|
$('#table1').bootstrapTable('load', that.data1); |
|
|
$('#table1').bootstrapTable('load', that.data1); |
|
|
$('#table2').bootstrapTable('load', that.data2); |
|
|
$('#table2').bootstrapTable('load', that.data2); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.jump(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
error: () => { |
|
|
|
|
|
this.jump(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
@ -258,11 +267,11 @@ export default { |
|
|
beforeDestroy() { |
|
|
beforeDestroy() { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
.container { |
|
|
|
|
|
|
|
|
.container { |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |