Browse Source

fix:修改卡出库导出bug

confidence
杜贤金 3 years ago
parent
commit
0d70f430c0
  1. 2
      src/main.js
  2. 45
      src/views/communicationmanage/outbound/outbound.vue
  3. 37
      src/views/informationmanage/sim/index.vue
  4. 2
      src/views/original/targetpackagemanage/index.vue

2
src/main.js

@ -23,8 +23,6 @@ import avueUeditor from 'avue-plugin-ueditor';
import website from '@/config/website';
import crudCommon from '@/mixins/crud';
import {baseUrl,apis} from '@/config/env';
// import dataV from '@jiaminghi/data-view'
// Vue.use(dataV)
// 注册全局crud驱动
window.$crudCommon = crudCommon;
// 加载Vue拓展

45
src/views/communicationmanage/outbound/outbound.vue

@ -47,9 +47,7 @@
title="您确认要同步实名吗?"
placement="top"
>
<div class="el-icon-refresh" slot="reference">
&nbsp;同步实名
</div>
<div class="el-icon-refresh" slot="reference">&nbsp;同步实名</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("停机失败");
}
});
}

37
src/views/informationmanage/sim/index.vue

@ -37,7 +37,7 @@
>
</el-button> -->
</template>
<template slot-scope="scope" slot="menuBtn">
<template slot-scope="scope" slot="menuBtn">
<el-dropdown-item>
<el-popconfirm
confirm-button-text="确定"
@ -47,9 +47,7 @@
title="您确认要同步实名吗?"
placement="top-start"
>
<div class="el-icon-refresh" slot="reference">
&nbsp;同步实名
</div>
<div class="el-icon-refresh" slot="reference">&nbsp;同步实名</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-start"
>
<div
@ -148,7 +150,10 @@
<script>
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("停机失败");
}
});
}

2
src/views/original/targetpackagemanage/index.vue

@ -420,7 +420,7 @@ export default {
}=${getToken()}`
);
},
},
onLoad(page, params = {}) {
this.loading = true;
getList(

Loading…
Cancel
Save