Commit 9af1618b by xuyl

修改定时器,修复样式

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