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 website from '@/config/website';
import crudCommon from '@/mixins/crud'; import crudCommon from '@/mixins/crud';
import {baseUrl,apis} from '@/config/env'; import {baseUrl,apis} from '@/config/env';
// import dataV from '@jiaminghi/data-view'
// Vue.use(dataV)
// 注册全局crud驱动 // 注册全局crud驱动
window.$crudCommon = crudCommon; window.$crudCommon = crudCommon;
// 加载Vue拓展 // 加载Vue拓展

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

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

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

@ -37,7 +37,7 @@
> >
</el-button> --> </el-button> -->
</template> </template>
<template slot-scope="scope" slot="menuBtn"> <template slot-scope="scope" slot="menuBtn">
<el-dropdown-item> <el-dropdown-item>
<el-popconfirm <el-popconfirm
confirm-button-text="确定" confirm-button-text="确定"
@ -47,9 +47,7 @@
title="您确认要同步实名吗?" title="您确认要同步实名吗?"
placement="top-start" placement="top-start"
> >
<div class="el-icon-refresh" slot="reference"> <div class="el-icon-refresh" slot="reference">&nbsp;同步实名</div>
&nbsp;同步实名
</div>
</el-popconfirm> </el-popconfirm>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item> <el-dropdown-item>
@ -58,7 +56,11 @@
cancel-button-text="取消" cancel-button-text="取消"
@confirm="handleSimStatus(scope.row.id, scope.row.lifecycleStatus)" @confirm="handleSimStatus(scope.row.id, scope.row.lifecycleStatus)"
icon-color="red" icon-color="red"
:title="scope.row.lifecycleStatus != 4?'您确认要停机吗?':'您确认要复机吗?'" :title="
scope.row.lifecycleStatus != 4
? '您确认要停机吗?'
: '您确认要复机吗?'
"
placement="top-start" placement="top-start"
> >
<div <div
@ -148,7 +150,10 @@
<script> <script>
import { getList, getDetail, exporttype } from "@/api/informationmanage/sim.js"; 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 { mapGetters } from "vuex";
import { getToken } from "@/util/auth"; import { getToken } from "@/util/auth";
export default { export default {
@ -222,7 +227,7 @@ export default {
selection: false, selection: false,
dialogClickModal: false, dialogClickModal: false,
dialogWidth: "60%", dialogWidth: "60%",
menuType: "menu", menuType: "menu",
menuWidth: "120", menuWidth: "120",
column: [ column: [
{ {
@ -699,23 +704,23 @@ export default {
}); });
}, },
// //
handleSimStatus(id,type) { handleSimStatus(id, type) {
if (type == 4) { if (type == 4) {
updateSimStatus({id:id,operType:1}).then((res) => { updateSimStatus({ id: id, operType: 1 }).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.$message.success("复机成功"); this.$message.success("复机成功");
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}else{ } else {
this.$message.error("复机失败"); this.$message.error("复机失败");
} }
}) });
}else{ } else {
updateSimStatus({id:id,operType:0}).then((res) => { updateSimStatus({ id: id, operType: 0 }).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.$message.success("停机成功"); this.$message.success("停机成功");
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}else{ } else {
this.$message.error("停机失败"); this.$message.error("停机失败");
} }
}); });
} }

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

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

Loading…
Cancel
Save