修改测试用例1
This commit is contained in:
@@ -646,7 +646,8 @@
|
||||
:controls="false"
|
||||
:min="1"
|
||||
style="width: 48%"
|
||||
v-model="lineItem.ptRatio"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
v-model.number="lineItem.ptRatio"
|
||||
:disabled="
|
||||
!(
|
||||
(nodeLevel == 4 && pageStatus == 3) ||
|
||||
@@ -670,7 +671,8 @@
|
||||
:controls="false"
|
||||
:min="1"
|
||||
style="width: 48%"
|
||||
v-model="lineItem.pt2Ratio"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
v-model.number="lineItem.pt2Ratio"
|
||||
:disabled="
|
||||
!(
|
||||
(nodeLevel == 4 && pageStatus == 3) ||
|
||||
@@ -694,7 +696,8 @@
|
||||
:controls="false"
|
||||
:min="1"
|
||||
style="width: 48%"
|
||||
v-model="lineItem.ctRatio"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
v-model.number="lineItem.ctRatio"
|
||||
:disabled="
|
||||
!(
|
||||
(nodeLevel == 4 && pageStatus == 3) ||
|
||||
@@ -718,7 +721,8 @@
|
||||
:controls="false"
|
||||
:min="1"
|
||||
style="width: 48%"
|
||||
v-model="lineItem.ct2Ratio"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
v-model.number="lineItem.ct2Ratio"
|
||||
:disabled="
|
||||
!(
|
||||
(nodeLevel == 4 && pageStatus == 3) ||
|
||||
@@ -1037,8 +1041,8 @@
|
||||
<Loading />
|
||||
</el-icon>
|
||||
<p style="margin-top: 15px; font-size: 16px">正在推送台账信息,请稍候...</p>
|
||||
<p style="margin-top: 10px; color: #999">预计需要30秒左右</p>
|
||||
<p style="margin-top: 10px; color: #999">已等待: {{ countdown }}秒</p>
|
||||
<!-- <p style="margin-top: 10px; color: #999">预计需要30秒左右</p>
|
||||
<p style="margin-top: 10px; color: #999">已等待: {{ countdown }}秒</p> -->
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
@@ -1360,7 +1364,7 @@ const onAdd = async () => {
|
||||
if (timer.value) clearInterval(timer.value)
|
||||
timer.value = window.setInterval(() => {
|
||||
countdown.value++
|
||||
if (countdown.value >= 30) {
|
||||
if (countdown.value >= 5) {
|
||||
clearInterval(timer.value!)
|
||||
timer.value = null
|
||||
}
|
||||
@@ -1388,7 +1392,7 @@ const onAdd = async () => {
|
||||
// 如果data不是"暂无需要推送的数据",则继续执行
|
||||
if (pushLogResponse.data === '成功') {
|
||||
// 等待30秒
|
||||
await new Promise(resolve => setTimeout(resolve, 30000))
|
||||
await new Promise(resolve => setTimeout(resolve, 5000))
|
||||
|
||||
// 30秒后调用查询推送结果接口
|
||||
const result = await queryPushResult()
|
||||
|
||||
Reference in New Issue
Block a user