移动 关停原因

lijinlongNew
许宏杰 4 weeks ago
parent 067fa64835
commit 2148b59183

@ -4934,6 +4934,42 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="display: flex">
<el-col :span="12">
<el-form-item
label="是否涉及个人信息"
required
:prop="`sjzcSjzycd`"
:rules="{
required: true,
message: '请输入',
trigger: 'blur',
}"
>
<el-select v-model="ruleForm.sfsjgrxx" placeholder="请填写">
<el-option
v-for="dict in dict.type.is_no"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-left: 10px">
<el-form-item
label="个人信息数据量"
required
:prop="`sjzcSmsj`"
>
<el-input
type="number"
v-model="ruleForm.grxxsjl"
placeholder="请填写"
></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- 业务系统拓扑图 --> <!-- 业务系统拓扑图 -->
<el-row style="margin: 10px 0"> <el-row style="margin: 10px 0">
<!-- <span class="top-title-box">业务系统拓扑图</span> --> <!-- <span class="top-title-box">业务系统拓扑图</span> -->

@ -210,10 +210,11 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="移动应用系统状态" prop="appState" required> <el-form-item label="移动应用系统状态" prop="appState">
<el-select <el-select
v-model="ruleForm.appState" v-model="ruleForm.appState"
placeholder="请选择移动应用系统状态" placeholder="请选择移动应用系统状态"
@change="changeState"
> >
<el-option <el-option
v-for="dict in dict.type.gzh_state" v-for="dict in dict.type.gzh_state"
@ -225,6 +226,23 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row v-show="ruleForm.appState == 7">
<el-col :span="24">
<el-form-item
label="关停原因"
prop="bfyy"
:required="ruleForm.appState == 7"
>
<el-input
type="textarea"
resize="none"
placeholder="请输入关停原因"
:rows="5"
v-model="ruleForm.bfyy"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="简介" prop="jj"> <el-form-item label="简介" prop="jj">
@ -331,9 +349,17 @@ export default {
...mapGetters(["nickName"]), ...mapGetters(["nickName"]),
}, },
data() { data() {
const changeSateTetx = (rule, value, callback) => {
if (this.ruleForm.appState == 7 && !value) {
callback(new Error("请填写"));
} else {
callback();
}
};
return { return {
ruleForm: {}, ruleForm: {},
rules: { rules: {
bfyy: [{ validator: changeSateTetx, trigger: "blur" }],
ssdw: [ ssdw: [
{ required: true, message: "所属单位不能为空", trigger: "blur" }, { required: true, message: "所属单位不能为空", trigger: "blur" },
], ],
@ -466,6 +492,12 @@ export default {
} }
}, },
methods: { methods: {
changeState(e) {
if (e != 7) {
this.ruleForm.bfyy = "";
}
},
getInfo(id) { getInfo(id) {
assetAppInfo(id).then((res) => { assetAppInfo(id).then((res) => {
this.ruleForm = res.data; this.ruleForm = res.data;

@ -3,26 +3,45 @@
<div class="L-main" id="L-size-main"> <div class="L-main" id="L-size-main">
<div class="content-search" id="L-header"> <div class="content-search" id="L-header">
<div class="search-title">查询条件</div> <div class="search-title">查询条件</div>
<el-form :inline="true" ref="formInlineRef" :model="pagination" size="small" class="demo-form-inline"> <el-form
:inline="true"
ref="formInlineRef"
:model="pagination"
size="small"
class="demo-form-inline"
>
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="资产名称:" prop="name"> <el-form-item label="资产名称:" prop="name">
<el-input v-model="pagination.name" placeholder="请输入"></el-input> <el-input
v-model="pagination.name"
placeholder="请输入"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="审核状态:" prop="auditState"> <el-form-item label="审核状态:" prop="auditState">
<el-select v-model="pagination.auditState" placeholder="请选择审核状态"> <el-select
v-model="pagination.auditState"
placeholder="请选择审核状态"
>
<el-option label="待审核" value="1" /> <el-option label="待审核" value="1" />
<el-option label="审核通过" value="2" /> <el-option label="审核通过" value="2" />
<el-option label="审核驳回" value="3" /> <el-option label="审核驳回" value="3" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" style="text-align: left;"> <el-col :span="6" style="text-align: left">
<el-form-item class="unit-form"> <el-form-item class="unit-form">
<el-button size="mini" @click="resetQuery('queryFrom')"></el-button> <el-button size="mini" @click="resetQuery('queryFrom')"
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')"></el-button> >重置</el-button
>
<el-button
size="mini"
type="primary"
@click="handleQuery('queryFrom')"
>查询</el-button
>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -33,10 +52,12 @@
<el-row class="mb8"> <el-row class="mb8">
<el-col> <el-col>
<div class="exportBtn"> <div class="exportBtn">
<div class="mybuttom" <div
:class="btnShow == item.value ? 'mybuttomshow' : ''" class="mybuttom"
v-for="(item, index) in btnArr" :class="btnShow == item.value ? 'mybuttomshow' : ''"
@click="xuanzelist(item)"> v-for="(item, index) in btnArr"
@click="xuanzelist(item)"
>
{{ item.label }} {{ item.label }}
</div> </div>
</div> </div>
@ -44,62 +65,182 @@
</el-row> </el-row>
</div> </div>
<section> <section>
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader" <el-table
:row-class-name="tableRowClassName"> v-loading="loading"
<el-table-column type="index" width="50" label="序号" align="center" /> :data="tableData"
<el-table-column label="资产名称" key="xtmc" prop="xtmc" align="center" v-if="btnShow == 'web'" /> :height="tabHeader"
<el-table-column label="所属单位" key="dwmc" prop="dwmc" align="center" v-if="btnShow == 'web'" /> :max-height="tabHeader"
<el-table-column label="资产名称" key="xcxmc" prop="xcxmc" align="center" v-if="btnShow == 'xcx'" /> :row-class-name="tableRowClassName"
<el-table-column label="资产名称" key="gzhmc" prop="gzhmc" align="center" v-if="btnShow == 'gzh'" /> >
<el-table-column label="资产名称" key="dzyxhz" prop="dzyxhz" align="center" v-if="btnShow == 'emil'" /> <el-table-column
<el-table-column label="资产名称" key="appName" prop="appName" align="center" v-if="btnShow == 'app'" /> type="index"
<el-table-column label="所属单位" key="ssdw" prop="ssdw" align="center" v-if="btnShow !== 'web'" /> width="50"
<el-table-column label="平台类型" key="ptlx" prop="ptlx" align="center" v-if="btnShow == 'gzh'"> label="序号"
align="center"
/>
<el-table-column
label="资产名称"
key="xtmc"
prop="xtmc"
align="center"
v-if="btnShow == 'web'"
/>
<el-table-column
label="所属单位"
key="dwmc"
prop="dwmc"
align="center"
v-if="btnShow == 'web'"
/>
<el-table-column
label="资产名称"
key="xcxmc"
prop="xcxmc"
align="center"
v-if="btnShow == 'xcx'"
/>
<el-table-column
label="资产名称"
key="gzhmc"
prop="gzhmc"
align="center"
v-if="btnShow == 'gzh'"
/>
<el-table-column
label="资产名称"
key="dzyxhz"
prop="dzyxhz"
align="center"
v-if="btnShow == 'emil'"
/>
<el-table-column
label="资产名称"
key="appName"
prop="appName"
align="center"
v-if="btnShow == 'app'"
/>
<el-table-column
label="所属单位"
key="ssdw"
prop="ssdw"
align="center"
v-if="btnShow !== 'web'"
/>
<el-table-column
label="平台类型"
key="ptlx"
prop="ptlx"
align="center"
v-if="btnShow == 'gzh'"
>
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.sys_ptlx_type" :value="scope.row.ptlx"/> <dict-tag
:options="dict.type.sys_ptlx_type"
:value="scope.row.ptlx"
/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="审核状态" key="auditState" width="200px" prop="auditState" class-name="table-status" <el-table-column
align="center"> label="审核状态"
key="auditState"
width="200px"
prop="auditState"
class-name="table-status"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.auditState == 1" style="color: #F58A0C;"> <span v-if="scope.row.auditState == 1" style="color: #f58a0c">
待审核 待审核
</span> </span>
<span v-if="scope.row.auditState == 2" style="color: #16B771;"> <span v-if="scope.row.auditState == 2" style="color: #16b771">
审批通过 审批通过
</span> </span>
<span v-if="scope.row.auditState == 3" style="color: #F50C0C;"> <span v-if="scope.row.auditState == 3" style="color: #f50c0c">
审批驳回 审批驳回
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" prop="userId" class-name="table-operation" align="center"> <el-table-column
label="操作"
prop="userId"
class-name="table-operation"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display: flex;align-items: center;justify-content: center;"> <div
<div style="display: flex;align-items: center;cursor: pointer;" @click="goInfo(scope.row)"> style="
<img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;"> display: flex;
<span class="look-info" style="color: #1485EF;">查看</span> align-items: center;
justify-content: center;
"
>
<div
style="display: flex; align-items: center; cursor: pointer"
@click="goInfo(scope.row)"
>
<img
src="@/assets/images/icon-ck@2x.png"
alt=""
style="width: 20px; margin-right: 5px"
/>
<span class="look-info" style="color: #1485ef">查看</span>
</div> </div>
<!-- --> <!-- -->
<div v-if="scope.row.auditState == 3" style="display: flex;align-items: center;cursor: pointer;margin-left: 10px;" <div
@click="delInfo(scope.row)"> v-if="scope.row.auditState == 3"
<img src="@/assets/images/edit.png" alt="" style="width: 15px;margin-right: 5px;"> style="
<span class="del-info" style="color: #1485EF;">编辑</span> display: flex;
align-items: center;
cursor: pointer;
margin-left: 10px;
"
@click="delInfo(scope.row)"
>
<img
src="@/assets/images/edit.png"
alt=""
style="width: 15px; margin-right: 5px"
/>
<span class="del-info" style="color: #1485ef">编辑</span>
</div> </div>
<div v-if="scope.row.auditState == 3" style="display: flex;align-items: center;cursor: pointer;margin-left: 10px;" <div
@click="lookInfo(scope.row)"> v-if="scope.row.auditState == 3"
<img src="@/assets/images/icon-shenhe@2x.png" alt="" style="width: 15px;margin-right: 5px;"> style="
<span class="del-info" style="color: #1485EF;">驳回原因</span> display: flex;
align-items: center;
cursor: pointer;
margin-left: 10px;
"
@click="lookInfo(scope.row)"
>
<img
src="@/assets/images/icon-shenhe@2x.png"
alt=""
style="width: 15px; margin-right: 5px"
/>
<span class="del-info" style="color: #1485ef">驳回原因</span>
</div> </div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</section> </section>
<my-pagination id="L-pagination" :total="total" :page="pagination.current" :limit="pagination.size" <my-pagination
@pagination="getPagination" :current-page.sync="pagination.current"></my-pagination> id="L-pagination"
:total="total"
:page="pagination.current"
:limit="pagination.size"
@pagination="getPagination"
:current-page.sync="pagination.current"
></my-pagination>
</main> </main>
<my-dialog title="查看原因" ref="liebiaoDialog" class="taskDialogBox" width="40%"> <my-dialog
title="查看原因"
ref="liebiaoDialog"
class="taskDialogBox"
width="40%"
>
<el-descriptions> <el-descriptions>
<el-descriptions-item label="不通过原因"> <el-descriptions-item label="不通过原因">
{{ chakanyuanyin }} {{ chakanyuanyin }}
@ -109,14 +250,25 @@
</div> </div>
</template> </template>
<script> <script>
import myPagination from "@/views/components/Pagination/index.vue" import myPagination from "@/views/components/Pagination/index.vue";
import myDialog from "@/views/components/myDialog/index.vue" import myDialog from "@/views/components/myDialog/index.vue";
import danweiList from "@/views/system/user/danweiList.vue" import danweiList from "@/views/system/user/danweiList.vue";
import { addassetTaskadd, getassetTask, getassetTaskid, assetTaskclose } from "@/api/renwuApi/index.js" import {
import { getAuditList, miniProgramsGetAuditList, gzhGetAuditList, EmailList, AppList } from "@/api/auditPagesApi/index.js" addassetTaskadd,
getassetTask,
getassetTaskid,
assetTaskclose,
} from "@/api/renwuApi/index.js";
import {
getAuditList,
miniProgramsGetAuditList,
gzhGetAuditList,
EmailList,
AppList,
} from "@/api/auditPagesApi/index.js";
import { mapGetters } from "vuex";
export default { export default {
dicts: ['sys_ptlx_type'], dicts: ["sys_ptlx_type"],
components: { myPagination, myDialog, danweiList }, components: { myPagination, myDialog, danweiList },
data() { data() {
return { return {
@ -125,100 +277,106 @@ export default {
pagination: { pagination: {
current: 1, current: 1,
size: 10, size: 10,
dwmc:'', dwmc: "",
auditState:'', auditState: "",
name:'', name: "",
}, },
tableData: [ tableData: [],
],
loading: false, loading: false,
tabHeader: undefined, tabHeader: undefined,
btnArr: [ btnArr: [
{ {
label: 'web资产', label: "web资产",
value: "web" value: "web",
}, { },
label: '小程序', {
value: 'xcx' label: "小程序",
}, { value: "xcx",
label: '公众号', },
value: 'gzh' {
}, { label: "公众号",
label: '电子邮件', value: "gzh",
value: 'emil' },
}, { {
label: '移动应用系统', label: "电子邮件",
value: 'app' value: "emil",
} },
{
label: "移动应用系统",
value: "app",
},
], ],
btnShow:"web", btnShow: "web",
chakanyuanyin:'', chakanyuanyin: "",
} };
},
computed: {
...mapGetters(["nickName"]),
}, },
mounted() { mounted() {
// this.getInfo(1); // this.getInfo(1);
this.cancalDebounce(); this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce); window.addEventListener("resize", this.cancalDebounce);
}, },
destroyed() { destroyed() {
window.removeEventListener('resize', this.cancalDebounce); window.removeEventListener("resize", this.cancalDebounce);
}, },
methods: { methods: {
// //
getInfo(id) { getInfo(id) {
this.loading = true; this.loading = true;
this.pagination.dwmc = this.nickName;
// getassetTask(this.pagination).then(res => { // getassetTask(this.pagination).then(res => {
// this.loading = false; // this.loading = false;
// this.total = res.data.total; // this.total = res.data.total;
// this.tableData = res.data.records; // this.tableData = res.data.records;
// }) // })
if(id == 1) { if (id == 1) {
getAuditList(this.pagination).then(res=>{ getAuditList(this.pagination).then((res) => {
this.loading = false; this.loading = false;
this.total = res.data.total; this.total = res.data.total;
this.tableData = res.data.records; this.tableData = res.data.records;
}) });
} else if(id == 2) { } else if (id == 2) {
miniProgramsGetAuditList(this.pagination).then(res=>{ miniProgramsGetAuditList(this.pagination).then((res) => {
this.loading = false; this.loading = false;
this.total = res.data.total; this.total = res.data.total;
this.tableData = res.data.records; this.tableData = res.data.records;
}) });
} else if(id == 3) { } else if (id == 3) {
gzhGetAuditList(this.pagination).then(res=>{ gzhGetAuditList(this.pagination).then((res) => {
this.loading = false; this.loading = false;
this.total = res.data.total; this.total = res.data.total;
this.tableData = res.data.records; this.tableData = res.data.records;
}) });
} else if(id == 4) { } else if (id == 4) {
EmailList(this.pagination).then(res=>{ EmailList(this.pagination).then((res) => {
this.loading = false; this.loading = false;
this.total = res.data.total; this.total = res.data.total;
this.tableData = res.data.records; this.tableData = res.data.records;
}) });
} else if(id == 5) { } else if (id == 5) {
AppList(this.pagination).then(res=>{ AppList(this.pagination).then((res) => {
this.loading = false; this.loading = false;
this.total = res.data.total; this.total = res.data.total;
this.tableData = res.data.records; this.tableData = res.data.records;
}) });
} }
}, },
// //
resetQuery() { resetQuery() {
this.resetForm("formInlineRef"); this.resetForm("formInlineRef");
this.pagination.current = 1; this.pagination.current = 1;
if(this.btnShow == 'web') { if (this.btnShow == "web") {
this.getInfo(1); this.getInfo(1);
} else if(this.btnShow == 'xcx') { } else if (this.btnShow == "xcx") {
this.getInfo(2); this.getInfo(2);
} else if(this.btnShow == 'gzh') { } else if (this.btnShow == "gzh") {
this.getInfo(3); this.getInfo(3);
} else if(this.btnShow == 'emil') { } else if (this.btnShow == "emil") {
this.getInfo(4); this.getInfo(4);
} else if(this.btnShow == 'app') { } else if (this.btnShow == "app") {
this.getInfo(5); this.getInfo(5);
} }
this.getInfo(); this.getInfo();
@ -226,84 +384,129 @@ export default {
// //
handleQuery() { handleQuery() {
this.pagination.current = 1; this.pagination.current = 1;
if(this.btnShow == 'web') { if (this.btnShow == "web") {
this.getInfo(1); this.getInfo(1);
} else if(this.btnShow == 'xcx') { } else if (this.btnShow == "xcx") {
this.getInfo(2); this.getInfo(2);
} else if(this.btnShow == 'gzh') { } else if (this.btnShow == "gzh") {
this.getInfo(3); this.getInfo(3);
} else if(this.btnShow == 'emil') { } else if (this.btnShow == "emil") {
this.getInfo(4); this.getInfo(4);
} else if(this.btnShow == 'app') { } else if (this.btnShow == "app") {
this.getInfo(5); this.getInfo(5);
} }
}, },
// //
getPagination(pages) { getPagination(pages) {
this.pagination.current = pages.page; this.pagination.current = pages.page;
this.pagination.size = pages.limit; this.pagination.size = pages.limit;
if(this.btnShow == 'web') { if (this.btnShow == "web") {
this.getInfo(1); this.getInfo(1);
} else if(this.btnShow == 'xcx') { } else if (this.btnShow == "xcx") {
this.getInfo(2); this.getInfo(2);
} else if(this.btnShow == 'gzh') { } else if (this.btnShow == "gzh") {
this.getInfo(3); this.getInfo(3);
} else if(this.btnShow == 'emil') { } else if (this.btnShow == "emil") {
this.getInfo(4); this.getInfo(4);
} else if(this.btnShow == 'app') { } else if (this.btnShow == "app") {
this.getInfo(5); this.getInfo(5);
} }
}, },
// //
goInfo(row) { goInfo(row) {
this.$router.push({ this.$router.push({
name: 'assetsAuthRecord', query: { name: "assetsAuthRecord",
type: this.btnShow == 'web' ? 0 : this.btnShow == 'xcx' ? 1 : this.btnShow == 'gzh' ? 2 : this.btnShow == 'emil' ? 3 : this.btnShow == 'app' ? 4 : 5, query: {
type:
this.btnShow == "web"
? 0
: this.btnShow == "xcx"
? 1
: this.btnShow == "gzh"
? 2
: this.btnShow == "emil"
? 3
: this.btnShow == "app"
? 4
: 5,
pageType: "look", pageType: "look",
btnShow: this.btnShow, btnShow: this.btnShow,
id: this.btnShow == 'web' ? row.currentId : this.btnShow == 'xcx' ? row.miniId : this.btnShow == 'gzh' ? row.accountId : this.btnShow == 'emil' ? row.emailId : this.btnShow == 'app' ? row.appId : null, id:
this.btnShow == "web"
? row.currentId
: this.btnShow == "xcx"
? row.miniId
: this.btnShow == "gzh"
? row.accountId
: this.btnShow == "emil"
? row.emailId
: this.btnShow == "app"
? row.appId
: null,
name: "AssetRecord", name: "AssetRecord",
queryData:this.pagination queryData: this.pagination,
} },
}) });
}, },
// //
delInfo(row) { delInfo(row) {
//taskAudit //taskAudit
this.$router.push({ this.$router.push({
name: 'assetsAuthRecord', query: { name: "assetsAuthRecord",
type: this.btnShow == 'web' ? 0 : this.btnShow == 'xcx' ? 1 : this.btnShow == 'gzh' ? 2 : this.btnShow == 'emil' ? 3 : this.btnShow == 'app' ? 4 : 5, query: {
type:
this.btnShow == "web"
? 0
: this.btnShow == "xcx"
? 1
: this.btnShow == "gzh"
? 2
: this.btnShow == "emil"
? 3
: this.btnShow == "app"
? 4
: 5,
pageType: "change", pageType: "change",
btnShow: this.btnShow, btnShow: this.btnShow,
id: this.btnShow == 'web' ? row.currentId : this.btnShow == 'xcx' ? row.miniId : this.btnShow == 'gzh' ? row.accountId : this.btnShow == 'emil' ? row.emailId : this.btnShow == 'app' ? row.appId : null, id:
this.btnShow == "web"
? row.currentId
: this.btnShow == "xcx"
? row.miniId
: this.btnShow == "gzh"
? row.accountId
: this.btnShow == "emil"
? row.emailId
: this.btnShow == "app"
? row.appId
: null,
name: "AssetRecord", name: "AssetRecord",
queryData:this.pagination queryData: this.pagination,
} },
}) });
}, },
// //
lookInfo(row){ lookInfo(row) {
this.chakanyuanyin = row.auditYy this.chakanyuanyin = row.auditYy;
this.$refs.liebiaoDialog.open() this.$refs.liebiaoDialog.open();
}, },
// tab // tab
xuanzelist(item) { xuanzelist(item) {
this.btnShow = item.value this.btnShow = item.value;
switch (item.value) { switch (item.value) {
case 'web': case "web":
this.getInfo(1); this.getInfo(1);
break; break;
case 'xcx': case "xcx":
this.getInfo(2); this.getInfo(2);
break; break;
case 'gzh': case "gzh":
this.getInfo(3); this.getInfo(3);
break; break;
case 'emil': case "emil":
this.getInfo(4); this.getInfo(4);
break; break;
case 'app': case "app":
this.getInfo(5); this.getInfo(5);
break; break;
default: default:
@ -314,45 +517,45 @@ export default {
// table // table
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 !== 0) { if (rowIndex % 2 !== 0) {
return 'evenNumber-row'; return "evenNumber-row";
} }
return ''; return "";
}, },
// //
cancalDebounce() { cancalDebounce() {
const element = document.getElementById('L-size-main'); // ID const element = document.getElementById("L-size-main"); // ID
const header = document.getElementById('L-header'); // ID const header = document.getElementById("L-header"); // ID
const pagination = document.getElementById('L-pagination'); // ID const pagination = document.getElementById("L-pagination"); // ID
const elementHeight = element.offsetHeight; const elementHeight = element.offsetHeight;
const headerHeight = header.offsetHeight; const headerHeight = header.offsetHeight;
const paginationtHeight = pagination.offsetHeight; const paginationtHeight = pagination.offsetHeight;
this.tabHeader = elementHeight - headerHeight - paginationtHeight - 140; this.tabHeader = elementHeight - headerHeight - paginationtHeight - 140;
} },
}, },
beforeRouteEnter(to, from, next){ beforeRouteEnter(to, from, next) {
next(vm => { next((vm) => {
if(from.path == "/assetsAuthRecord") { if (from.path == "/assetsAuthRecord") {
vm.btnShow = from.query.btnShow vm.btnShow = from.query.btnShow;
if(from.query.queryData) { if (from.query.queryData) {
vm.pagination = from.query.queryData; vm.pagination = from.query.queryData;
} }
if(vm.btnShow == 'web') { if (vm.btnShow == "web") {
vm.getInfo(1); vm.getInfo(1);
} else if(vm.btnShow == 'xcx') { } else if (vm.btnShow == "xcx") {
vm.getInfo(2); vm.getInfo(2);
} else if(vm.btnShow == 'gzh') { } else if (vm.btnShow == "gzh") {
vm.getInfo(3); vm.getInfo(3);
} else if(vm.btnShow == 'emil') { } else if (vm.btnShow == "emil") {
vm.getInfo(4); vm.getInfo(4);
} else if(vm.btnShow == 'app') { } else if (vm.btnShow == "app") {
vm.getInfo(5); vm.getInfo(5);
} }
} else { } else {
vm.getInfo(1); vm.getInfo(1);
} }
}) });
}, },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -364,7 +567,7 @@ export default {
// padding-left: 80px; // padding-left: 80px;
// } // }
.el-icon-delete { .el-icon-delete {
color: #409EFF; color: #409eff;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
margin-right: 5px; margin-right: 5px;

Loading…
Cancel
Save