Commit 9af1618b by xuyl

修改定时器,修复样式

1 parent 3b823d46
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
}) })
}, },
verifyQRCodeIsInvalid() { verifyQRCodeIsInvalid() {
this.qrCodeInterval = setInterval(() => { this.qrCodeInterval = setTimeout(() => {
this.$apis.collocation.getQcCodeDetail({ id: this.qrcodeId }).then(res => { this.$apis.collocation.getQcCodeDetail({ id: this.qrcodeId }).then(res => {
if (res == true) { if (res == true) {
this.$message({ this.$message({
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
message: '二维码已失效,请刷新' message: '二维码已失效,请刷新'
}) })
this.verifyQRCodeFailsToOpen = false this.verifyQRCodeFailsToOpen = false
clearInterval(this.qrCodeInterval) clearTimeout(this.qrCodeInterval)
return return
} }
}) })
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
if (val.qrCodeVisible == true && val.verifyQRCodeFailsToOpen == true) { if (val.qrCodeVisible == true && val.verifyQRCodeFailsToOpen == true) {
this.verifyQRCodeIsInvalid() this.verifyQRCodeIsInvalid()
} else { } else {
clearInterval(this.qrCodeInterval) clearTimeout(this.qrCodeInterval)
} }
} }
} }
...@@ -184,6 +184,9 @@ export default { ...@@ -184,6 +184,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.el-table--border .el-table__cell:first-child .cell, .el-table .cell{
padding-right: 10px;
}
.container { .container {
padding: 20px; padding: 20px;
background-color: #fff; background-color: #fff;
......
...@@ -125,27 +125,32 @@ export default { ...@@ -125,27 +125,32 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '群发名称', label: '群发名称',
prop: 'msgName' prop: 'msgName',
width: 170,
line: 1
}, },
{ {
label: '群发门店', label: '群发门店',
prop: 'msgMerchant' prop: 'msgMerchant',
width: 170,
line: 1
}, },
{ {
label: '客户数', label: '客户数',
prop: 'customerCount' prop: 'customerCount',
width: 80
}, },
{ {
label: '标签/人群', label: '标签/人群',
prop: 'labelCrowdName', prop: 'labelCrowdName',
width: 170, width: 220,
line: 1 line: 1
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createTime', prop: 'createTime',
width: 170, width: 300,
line:1 line: 1
}, },
{ {
label: '发送状态', label: '发送状态',
...@@ -154,13 +159,11 @@ export default { ...@@ -154,13 +159,11 @@ export default {
}, },
{ {
label: '发送成功', label: '发送成功',
prop: 'successCompletion', prop: 'successCompletion'
width: '200'
}, },
{ {
label: '发送失败', label: '发送失败',
prop: 'failCompletion', prop: 'failCompletion'
width: '200'
}, },
{ {
label: '操作', label: '操作',
...@@ -224,6 +227,9 @@ export default { ...@@ -224,6 +227,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.el-table--border .el-table__cell:first-child .cell, .el-table .cell{
padding-right: 10px;
}
.loginStatus { .loginStatus {
display: flex; display: flex;
align-items: center; align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!