@@ -70,7 +70,8 @@ export default {
_freshing: false,
sn:'',
thirdSn:'',
- snTitle:'编号'
+ snTitle:'编号',
+ t:null
}
},
watch:{
@@ -86,12 +87,15 @@ export default {
if(this.mt == 'yes'){
this.snTitle = '美团编号'
-
+ //有新制作单时自动刷新
let that = this
- setInterval(function () {
+ this.t = setInterval(function () {
that.getWorkInfoList(1)
},5000)
+ destroyed(){
+ clearInterval(this.t)
+ },
methods:{
refreshList(){
this.resetList()