|
|
@ -79,6 +79,20 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-popconfirm> |
|
|
|
</el-popconfirm> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
|
|
|
|
<el-dropdown-item> |
|
|
|
|
|
|
|
<el-popconfirm |
|
|
|
|
|
|
|
confirm-button-text="确定" |
|
|
|
|
|
|
|
cancel-button-text="取消" |
|
|
|
|
|
|
|
@confirm="handleFlow(scope.row.id)" |
|
|
|
|
|
|
|
icon-color="red" |
|
|
|
|
|
|
|
title="您确认要同步流量吗?" |
|
|
|
|
|
|
|
placement="top-start" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div class="el-icon-refresh-right" slot="reference"> |
|
|
|
|
|
|
|
同步流量 |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-popconfirm> |
|
|
|
|
|
|
|
</el-dropdown-item> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
|
|
|
|
|
|
|
@ -149,7 +163,12 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { getList, getDetail, exporttype } from "@/api/informationmanage/sim.js"; |
|
|
|
import { |
|
|
|
|
|
|
|
getList, |
|
|
|
|
|
|
|
getDetail, |
|
|
|
|
|
|
|
exporttype, |
|
|
|
|
|
|
|
syncUsage, |
|
|
|
|
|
|
|
} from "@/api/informationmanage/sim.js"; |
|
|
|
import { |
|
|
|
import { |
|
|
|
syncRealNameStatus, |
|
|
|
syncRealNameStatus, |
|
|
|
updateSimStatus, |
|
|
|
updateSimStatus, |
|
|
@ -441,7 +460,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "总量(M)", |
|
|
|
label: "总量(M)", |
|
|
|
prop: "total", |
|
|
|
prop: "totalM", |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
labelWidth: 130, |
|
|
|
labelWidth: 130, |
|
|
|
type: "number", |
|
|
|
type: "number", |
|
|
@ -457,7 +476,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "剩余流量(M)", |
|
|
|
label: "剩余流量(M)", |
|
|
|
prop: "surplus", |
|
|
|
prop: "surplusM", |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
type: "number", |
|
|
|
type: "number", |
|
|
|
labelWidth: 130, |
|
|
|
labelWidth: 130, |
|
|
@ -473,7 +492,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "使用量(M)", |
|
|
|
label: "使用量(M)", |
|
|
|
prop: "usage", |
|
|
|
prop: "usageM", |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
labelWidth: 130, |
|
|
|
labelWidth: 130, |
|
|
|
type: "number", |
|
|
|
type: "number", |
|
|
@ -708,6 +727,17 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//同步流量 |
|
|
|
|
|
|
|
handleFlow(id) { |
|
|
|
|
|
|
|
syncUsage(id).then((res) => { |
|
|
|
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
|
|
|
this.$message.success("同步成功"); |
|
|
|
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.error("同步失败"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
onLoad(page, params = {}) { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
getList( |
|
|
|
getList( |
|
|
|