|
|
|
@ -47,9 +47,7 @@
|
|
|
|
|
title="您确认要同步实名吗?" |
|
|
|
|
placement="top" |
|
|
|
|
> |
|
|
|
|
<div class="el-icon-refresh" slot="reference"> |
|
|
|
|
同步实名 |
|
|
|
|
</div> |
|
|
|
|
<div class="el-icon-refresh" slot="reference"> 同步实名</div> |
|
|
|
|
</el-popconfirm> |
|
|
|
|
</el-dropdown-item> |
|
|
|
|
<el-dropdown-item> |
|
|
|
@ -58,7 +56,11 @@
|
|
|
|
|
cancel-button-text="取消" |
|
|
|
|
@confirm="handleSimStatus(scope.row.id, scope.row.lifecycleStatus)" |
|
|
|
|
icon-color="red" |
|
|
|
|
:title="scope.row.lifecycleStatus != 4?'您确认要停机吗?':'您确认要复机吗?'" |
|
|
|
|
:title=" |
|
|
|
|
scope.row.lifecycleStatus != 4 |
|
|
|
|
? '您确认要停机吗?' |
|
|
|
|
: '您确认要复机吗?' |
|
|
|
|
" |
|
|
|
|
placement="top" |
|
|
|
|
> |
|
|
|
|
<div |
|
|
|
@ -105,7 +107,7 @@
|
|
|
|
|
v-for="(item, index) in tenantlist" |
|
|
|
|
:label="item.tenantName" |
|
|
|
|
:value="item.tenantId" |
|
|
|
|
:key="item.tenantId" |
|
|
|
|
:key="index" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -120,7 +122,7 @@
|
|
|
|
|
v-for="(item, index) in exportTypelist" |
|
|
|
|
:label="item.dictValue" |
|
|
|
|
:value="item.dictKey" |
|
|
|
|
:key="item.dictKey" |
|
|
|
|
:key="index" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -291,7 +293,7 @@ export default {
|
|
|
|
|
prop: "userId", |
|
|
|
|
type: "select", |
|
|
|
|
dicUrl: "/api/iot-system/user/fillData", |
|
|
|
|
formatter: (val, value, label) => { |
|
|
|
|
formatter: (val, value, label) => { |
|
|
|
|
if (value == -1) { |
|
|
|
|
return "-"; |
|
|
|
|
} else { |
|
|
|
@ -433,6 +435,13 @@ export default {
|
|
|
|
|
label: "dictValue", |
|
|
|
|
value: "dictKey", |
|
|
|
|
}, |
|
|
|
|
formatter: (val, value, label) => { |
|
|
|
|
if (value == -1) { |
|
|
|
|
return "-"; |
|
|
|
|
} else { |
|
|
|
|
return `${label}`; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
dataType: "number", |
|
|
|
|
span: 12, |
|
|
|
|
labelWidth: 130, |
|
|
|
@ -802,7 +811,9 @@ export default {
|
|
|
|
|
this.website.tokenHeader |
|
|
|
|
}=${getToken()}&tenantId=${this.distribution.tenantId}&numStart=${ |
|
|
|
|
this.distribution.numStart |
|
|
|
|
}&numEnd=${this.distribution.numEnd}` |
|
|
|
|
}&numEnd=${this.distribution.numEnd}&exportType=${ |
|
|
|
|
this.distribution.exportType |
|
|
|
|
}` |
|
|
|
|
); |
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
this.$refs.distribution.resetFields(); |
|
|
|
@ -857,23 +868,23 @@ export default {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//停机复机 |
|
|
|
|
handleSimStatus(id,type) { |
|
|
|
|
handleSimStatus(id, type) { |
|
|
|
|
if (type == 4) { |
|
|
|
|
updateSimStatus({id:id,operType:1}).then((res) => { |
|
|
|
|
updateSimStatus({ id: id, operType: 1 }).then((res) => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.$message.success("复机成功"); |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}else{ |
|
|
|
|
this.$message.error("复机失败"); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("复机失败"); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
updateSimStatus({id:id,operType:0}).then((res) => { |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
updateSimStatus({ id: id, operType: 0 }).then((res) => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.$message.success("停机成功"); |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}else{ |
|
|
|
|
this.$message.error("停机失败"); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("停机失败"); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|