@@ -120,7 +122,7 @@
v-for="(item, index) in exportTypelist"
:label="item.dictValue"
:value="item.dictKey"
- :key="item.dictKey"
+ :key="index"
>
@@ -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("停机失败");
}
});
}
diff --git a/src/views/informationmanage/sim/index.vue b/src/views/informationmanage/sim/index.vue
index 4070270..23189e8 100644
--- a/src/views/informationmanage/sim/index.vue
+++ b/src/views/informationmanage/sim/index.vue
@@ -37,7 +37,7 @@
>删 除
-->
-
+
-
- 同步实名
-
+ 同步实名
@@ -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-start"
>
import { getList, getDetail, exporttype } from "@/api/informationmanage/sim.js";
-import { syncRealNameStatus, updateSimStatus} from "@/api/communication/outbound";
+import {
+ syncRealNameStatus,
+ updateSimStatus,
+} from "@/api/communication/outbound";
import { mapGetters } from "vuex";
import { getToken } from "@/util/auth";
export default {
@@ -222,7 +227,7 @@ export default {
selection: false,
dialogClickModal: false,
dialogWidth: "60%",
- menuType: "menu",
+ menuType: "menu",
menuWidth: "120",
column: [
{
@@ -699,23 +704,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("停机失败");
}
});
}
diff --git a/src/views/original/targetpackagemanage/index.vue b/src/views/original/targetpackagemanage/index.vue
index 4eee998..feea025 100644
--- a/src/views/original/targetpackagemanage/index.vue
+++ b/src/views/original/targetpackagemanage/index.vue
@@ -420,7 +420,7 @@ export default {
}=${getToken()}`
);
- },
+ },
onLoad(page, params = {}) {
this.loading = true;
getList(