许宏杰 2 weeks ago
commit c53576a08f

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,11 +1,16 @@
<template> <template>
<!-- 任务核查 --> <!-- 任务核查 -->
<div class="L-task-info"> <div class="L-task-info">
<div class="info-left info-left-two" id="L-size-main"> <div class="info-left info-left-two" id="L-size-main">
<div class="content-info content-info-two" id="L-header"> <div class="content-info content-info-two" id="L-header">
<div class="info-title">任务详情</div> <div class="info-title">任务详情</div>
<el-button type="primary" @click="sendBack" class="fanhuipiaofu" size='mini'>返回</el-button> <el-button
type="primary"
@click="sendBack"
class="fanhuipiaofu"
size="mini"
>返回</el-button
>
<div class="teshu-top-info"> <div class="teshu-top-info">
<div class="top-info"> <div class="top-info">
@ -36,7 +41,13 @@
<div class="info-title">资产信息</div> <div class="info-title">资产信息</div>
</div> </div>
<div class="info-bottom-box"> <div class="info-bottom-box">
<el-form :inline="true" :model="formInline" size="small" class="demo-form-inline" v-if="index == 1"> <el-form
:inline="true"
:model="formInline"
size="small"
class="demo-form-inline"
v-if="index == 1"
>
<el-row> <el-row>
<!-- <el-col :span="7"> <!-- <el-col :span="7">
<el-form-item label="核查单位:"> <el-form-item label="核查单位:">
@ -55,32 +66,38 @@
<el-col :span="7"> <el-col :span="7">
<el-form-item label="审核状态:"> <el-form-item label="审核状态:">
<el-select v-model="formInline.status" placeholder="请选择"> <el-select v-model="formInline.status" placeholder="请选择">
<el-option label="未核查" value="0"> <el-option label="未核查" value="0"> </el-option>
</el-option> <el-option label="已核查" value="1"> </el-option>
<el-option label="已核查" value="1"> <el-option label="审核通过" value="3"> </el-option>
</el-option> <el-option label="审核不通过" value="4"> </el-option>
<el-option label="审核通过" value="3"> <el-option label="已关停" value="5"> </el-option>
</el-option>
<el-option label="审核不通过" value="4">
</el-option>
<el-option label="已关停" value="5">
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item> <el-form-item>
<el-button size="mini" type="primary" @click="handleQuery()"></el-button> <el-button size="mini" type="primary" @click="handleQuery()"
>查询</el-button
>
<el-button size="mini" @click="resetQuery()"></el-button> <el-button size="mini" @click="resetQuery()"></el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<el-form :inline="true" :model="formInlineTwo" size="small" class="demo-form-inline" v-if="index == 2"> <el-form
:inline="true"
:model="formInlineTwo"
size="small"
class="demo-form-inline"
v-if="index == 2"
>
<el-row> <el-row>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="单位名称:"> <el-form-item label="单位名称:">
<el-input v-model="formInlineTwo.unitName" placeholder="请输入"></el-input> <el-input
v-model="formInlineTwo.unitName"
placeholder="请输入"
></el-input>
<!-- <el-select v-model="formInline.unit" placeholder="请选择"> --> <!-- <el-select v-model="formInline.unit" placeholder="请选择"> -->
<!-- <el-option <!-- <el-option
v-for="dict in dict.type.bms_approval_status" v-for="dict in dict.type.bms_approval_status"
@ -93,7 +110,9 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item> <el-form-item>
<el-button size="mini" type="primary" @click="handleQuery()"></el-button> <el-button size="mini" type="primary" @click="handleQuery()"
>查询</el-button
>
<el-button size="mini" @click="resetQuery()"></el-button> <el-button size="mini" @click="resetQuery()"></el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -101,115 +120,217 @@
</el-form> </el-form>
<section v-if="index == 1"> <section v-if="index == 1">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane :label="item.conent" :name="item.lable" :xtmcName="item.xtmcName" <el-tab-pane
v-for="item in chanckListTow"></el-tab-pane> :label="item.conent"
:name="item.lable"
:xtmcName="item.xtmcName"
v-for="item in chanckListTow"
></el-tab-pane>
</el-tabs> </el-tabs>
<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"
:height="tabHeader"
:max-height="tabHeader"
:row-class-name="tableRowClassName"
>
<el-table-column
type="index"
width="50"
label="序号"
align="center"
/>
<!-- <el-table-column label="资产编号" key="id" width="200px" prop="id" align="center" /> --> <!-- <el-table-column label="资产编号" key="id" width="200px" prop="id" align="center" /> -->
<el-table-column :label="xtmcName" key="xtmc" prop="xtmc" align="center" /> <el-table-column
:label="xtmcName"
key="xtmc"
prop="xtmc"
align="center"
/>
<!-- <el-table-column label="系统类型" key="xtlx" prop="xtlx" align="center"> <!-- <el-table-column label="系统类型" key="xtlx" prop="xtlx" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.zc_xtlx" :value="scope.row.xtlx" /> <dict-tag :options="dict.type.zc_xtlx" :value="scope.row.xtlx" />
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column label="核查单位" key="zcdwmc" prop="zcdwmc" align="center" /> <el-table-column
<el-table-column label="审核状态" key="status" width="200px" prop="status" class-name="table-status" label="核查单位"
align="center"> key="zcdwmc"
prop="zcdwmc"
align="center"
/>
<el-table-column
label="审核状态"
key="status"
width="200px"
prop="status"
class-name="table-status"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status == 0" style="color: #E6A23C;"> <span v-if="scope.row.status == 0" style="color: #e6a23c">
未核查 未核查
</span> </span>
<span v-if="scope.row.status == 1" style="color: #67C23A;"> <span v-if="scope.row.status == 1" style="color: #67c23a">
已核查 已核查
</span> </span>
<span v-if="scope.row.status == 3" style="color: #67C23A;"> <span v-if="scope.row.status == 3" style="color: #67c23a">
审核通过 审核通过
</span> </span>
<span v-if="scope.row.status == 4" style="color: #F56C6C;"> <span v-if="scope.row.status == 4" style="color: #f56c6c">
审核不通过 审核不通过
</span> </span>
<span v-if="scope.row.status == 5" style="color: #F56C6C;"> <span v-if="scope.row.status == 5" style="color: #f56c6c">
已关停 已关停
</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(1, scope.row)" style="
v-if="(scope.row.status != 4 && scope.row.status != 0) || ($route.query.pageType == 'look' || $route.meta.pageType == 'look')"> display: flex;
<img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;"> align-items: center;
<span class="look-info" style="color: #1485EF;">查看</span> justify-content: center;
"
>
<div
style="
display: flex;
align-items: center;
cursor: pointer;
"
@click="goInfo(1, scope.row)"
v-if="
(scope.row.status != 4 && scope.row.status != 0) ||
$route.query.pageType == 'look' ||
$route.meta.pageType == 'look'
"
>
<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>
<!-- v-if="scope.row.taskStatus == 1" --> <!-- v-if="scope.row.taskStatus == 1" -->
<div <div
v-if="($route.query.pageType == 'info' || $route.meta.pageType == 'info') && scope.row.status != 3 && scope.row.status != 5 && scope.row.status != 1" v-if="
style="display: flex;align-items: center;cursor: pointer;margin-left: 10px;" ($route.query.pageType == 'info' ||
@click="goInfo(2, scope.row)"> $route.meta.pageType == 'info') &&
<img src="@/assets/images/icon-shenhe@2x.png" alt="" style="width: 15px;margin-right: 5px;"> scope.row.status != 3 &&
<span class="del-info" style="color: #1485EF;">核查</span> scope.row.status != 5 &&
scope.row.status != 1
"
style="
display: flex;
align-items: center;
cursor: pointer;
margin-left: 10px;
"
@click="goInfo(2, 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 style="display: flex;align-items: center;cursor: pointer;margin-left: 5px;" <div
@click="goInfo(3, scope.row)" v-show='scope.row.status == 4'> 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;
cursor: pointer;
margin-left: 5px;
"
@click="goInfo(3, scope.row)"
v-show="scope.row.status == 4"
>
<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> </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>
</div> </div>
</main> </main>
</div> </div>
<div class="info-right" v-if="$route.query.pageType == 'look' || $route.meta.pageType == 'look'"> <div
class="info-right"
v-if="$route.query.pageType == 'look' || $route.meta.pageType == 'look'"
>
<div class="info-title">任务流程节点</div> <div class="info-title">任务流程节点</div>
<div class="timeline"> <div class="timeline">
<div class="timeline-items" v-for="(item, index) in timeLineData"> <div class="timeline-items" v-for="(item, index) in timeLineData">
<div class="left-box"> <div class="left-box">
<img class="main-img" :src="returnidimg(item.assetName)" alt=""> <img class="main-img" :src="returnidimg(item.assetName)" alt="" />
<!-- <img class="main-img" v-if="item.status == 2" src="" alt=""> <!-- <img class="main-img" v-if="item.status == 2" src="" alt="">
<img class="main-img" v-if="item.status == 3" src="" alt=""> <img class="main-img" v-if="item.status == 3" src="" alt="">
<img class="main-img" v-if="item.status == 4" src="" alt=""> --> <img class="main-img" v-if="item.status == 4" src="" alt=""> -->
<img class="icon-jt" v-if="(index + 1) != timeLineData.length" src="@/assets/images/icon-jt@2x.png" alt=""> <img
class="icon-jt"
v-if="index + 1 != timeLineData.length"
src="@/assets/images/icon-jt@2x.png"
alt=""
/>
</div> </div>
<div class="right-box"> <div class="right-box">
<span class="span-title">{{ item.assetName }}:</span> <span class="span-title">{{ item.assetName }}:</span>
<span class="span-time">{{ item.xfTime }}</span> <span class="span-time">{{ item.xfTime }}</span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<my-dialog title="查看原因" ref="liebiaoDialog" @close="importClose" class="taskDialogBox" width="40%"> <my-dialog
title="查看原因"
ref="liebiaoDialog"
@close="importClose"
class="taskDialogBox"
width="40%"
>
<el-descriptions> <el-descriptions>
<el-descriptions-item label="不通过原因"> <el-descriptions-item label="不通过原因">
{{ chakanyuanyin }} {{ chakanyuanyin }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</my-dialog> </my-dialog>
</div> </div>
</template> </template>
<script> <script>
import myPagination from "@/views/components/Pagination/index.vue" import myPagination from "@/views/components/Pagination/index.vue";
import { getassetTaskid, geassetTaskcHc } from "@/api/renwuApi/index.js" import { getassetTaskid, geassetTaskcHc } from "@/api/renwuApi/index.js";
import { assetLcpage } from "@/api/renwuApi/index.js" import { assetLcpage } from "@/api/renwuApi/index.js";
import myDialog from "@/views/components/myDialog/index.vue" import myDialog from "@/views/components/myDialog/index.vue";
export default { export default {
dicts: ['zc_xtlx'], dicts: ["zc_xtlx"],
components: { myPagination, myDialog }, components: { myPagination, myDialog },
data() { data() {
return { return {
index: 1, index: 1,
formInline: { formInline: {},
},
formInlineTwo: { formInlineTwo: {
unitName: "", unitName: "",
}, },
@ -218,12 +339,8 @@ export default {
current: 1, current: 1,
size: 10, size: 10,
}, },
tableData: [ tableData: [],
tableDataTwo: [],
],
tableDataTwo: [
],
loading: false, loading: false,
tabHeader: undefined, tabHeader: undefined,
timeLineData: [], timeLineData: [],
@ -260,41 +377,37 @@ export default {
], ],
chanckListTow: [], chanckListTow: [],
listTow: [], listTow: [],
} };
}, },
mounted() { mounted() {
this.cancalDebounce(); this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce); window.addEventListener("resize", this.cancalDebounce);
this.titleInfo() this.titleInfo();
this.assetLcpageList() this.assetLcpageList();
if (localStorage.getItem('ismypaginationTow')) { if (localStorage.getItem("ismypaginationTow")) {
console.log(JSON.parse(localStorage.getItem('ismypaginationTow'))); console.log(JSON.parse(localStorage.getItem("ismypaginationTow")));
if (JSON.parse(localStorage.getItem('ismypaginationTow')).isfanhuiTow) { if (JSON.parse(localStorage.getItem("ismypaginationTow")).isfanhuiTow) {
this.formInline = JSON.parse(localStorage.getItem("ismypaginationTow"));
this.formInline = JSON.parse(localStorage.getItem('ismypaginationTow'))
console.log(99999, this.formInline); console.log(99999, this.formInline);
this.titleInfo() this.titleInfo();
} else { } else {
console.log(99999, this.formInline); console.log(99999, this.formInline);
localStorage.removeItem("ismypaginationTow") localStorage.removeItem("ismypaginationTow");
} }
} }
}, },
destroyed() { destroyed() {
window.removeEventListener('resize', this.cancalDebounce); window.removeEventListener("resize", this.cancalDebounce);
}, },
methods: { methods: {
sendBack() { sendBack() {
if (localStorage.getItem('ismypagination')) { if (localStorage.getItem("ismypagination")) {
let formInline = JSON.parse(localStorage.getItem('ismypagination')) let formInline = JSON.parse(localStorage.getItem("ismypagination"));
formInline.isfanhui = true formInline.isfanhui = true;
localStorage.setItem("ismypagination", JSON.stringify(formInline)) localStorage.setItem("ismypagination", JSON.stringify(formInline));
} }
this.$router.go(-1); this.$router.go(-1);
}, },
@ -303,13 +416,12 @@ export default {
// this.formInline = { // this.formInline = {
// } // }
this.activeName = tab.name this.activeName = tab.name;
this.xtmcName = tab.$attrs.xtmcName
localStorage.setItem("activeName", this.activeName) this.xtmcName = tab.$attrs.xtmcName;
this.handleQuery()
localStorage.setItem("activeName", this.activeName);
this.handleQuery();
}, },
// //
returnidimg(iswenzi) { returnidimg(iswenzi) {
@ -323,149 +435,151 @@ export default {
let listsna = [ let listsna = [
{ {
name: "下发", name: "下发",
imgdata: require('@/assets/images/rwxf.png'), imgdata: require("@/assets/images/rwxf.png"),
}, { },
{
name: "提交", name: "提交",
imgdata: require('@/assets/images/wctj.png'), imgdata: require("@/assets/images/wctj.png"),
}, { },
{
name: "不通过", name: "不通过",
imgdata: require('@/assets/images/shbh.png'), imgdata: require("@/assets/images/shbh.png"),
}, { },
{
name: "审核通过", name: "审核通过",
imgdata: require('@/assets/images/shtg.png'), imgdata: require("@/assets/images/shtg.png"),
}, { },
{
name: "驳回", name: "驳回",
imgdata: require('@/assets/images/shbh.png'), imgdata: require("@/assets/images/shbh.png"),
} },
] ];
let item = listsna.find(item => iswenzi.includes(item.name)) let item = listsna.find((item) => iswenzi.includes(item.name));
if (item) { if (item) {
return item.imgdata return item.imgdata;
} else { } else {
return require('@/assets/images/wctj.png') return require("@/assets/images/wctj.png");
} }
}, },
assetLcpageList() { assetLcpageList() {
let obj = { let obj = {
taskId: this.$route.query.id || this.$route.meta.id taskId: this.$route.query.id || this.$route.meta.id,
} };
assetLcpage(obj).then(res => { assetLcpage(obj).then((res) => {
this.timeLineData = res.data this.timeLineData = res.data;
}) });
}, },
importClose() { }, importClose() {},
goInfo(type, row) { goInfo(type, row) {
// //
if (type == 1) { if (type == 1) {
this.$router.push({ this.$router.push({
name: 'mytaskAuditInfo', query: { name: "mytaskAuditInfo",
query: {
pageType: "look", pageType: "look",
taskId: row.taskId, taskId: row.taskId,
assetId: row.id, assetId: row.id,
type: this.activeName, type: this.activeName,
},
});
}
})
} }
// //
if (type == 2) { if (type == 2) {
this.$router.push({ this.$router.push({
name: 'mytaskAuditInfo', query: { name: "mytaskAuditInfo",
query: {
pageType: "change", pageType: "change",
taskId: row.taskId, taskId: row.taskId,
assetId: row.id, assetId: row.id,
type: this.activeName, type: this.activeName,
},
} });
})
} }
// //
if (type == 3) { if (type == 3) {
this.chakanyuanyin = row.btgyy this.chakanyuanyin = row.btgyy;
this.$refs.liebiaoDialog.open() this.$refs.liebiaoDialog.open();
} }
// getassetTaskid(row.id) // getassetTaskid(row.id)
}, },
taskstatus(id) { taskstatus(id) {
if (id) { if (id) {
let obj = { let obj = {
0: "已关闭", 0: "已关闭",
1: "进行中", 1: "进行中",
2: "正常完成", 3: "超期完成", 4: "正常完成", 5: "审核驳回" 2: "正常完成",
} 3: "超期完成",
return obj[id] 4: "正常完成",
5: "审核驳回",
};
return obj[id];
} else { } else {
return "-" return "-";
} }
}, },
// //
titleInfoObjtype(type = "0,1") { titleInfoObjtype(type = "0,1") {
console.log(type); console.log(type);
let list = type.split(",") let list = type.split(",");
// //
this.listTow = [] this.listTow = [];
//tab //tab
this.chanckListTow = [] this.chanckListTow = [];
this.chanckList.forEach(res => { this.chanckList.forEach((res) => {
list.forEach(element => { list.forEach((element) => {
if (element == res.lable) { if (element == res.lable) {
this.listTow.push(res.conent) this.listTow.push(res.conent);
this.chanckListTow.push(res) this.chanckListTow.push(res);
} }
}); });
}) });
//tab //tab
this.activeName = this.chanckListTow[0].lable this.activeName = this.chanckListTow[0].lable;
if (localStorage.getItem("activeName")) { if (localStorage.getItem("activeName")) {
this.activeName = localStorage.getItem("activeName") this.activeName = localStorage.getItem("activeName");
localStorage.setItem("activeName", this.activeName) localStorage.setItem("activeName", this.activeName);
} }
// //
let listname = this.chanckListTow.filter(item => item.lable == this.activeName) let listname = this.chanckListTow.filter(
(item) => item.lable == this.activeName
);
if (listname) { if (listname) {
this.xtmcName = listname[0].xtmcName this.xtmcName = listname[0].xtmcName;
} }
this.handleQuery(); this.handleQuery();
}, },
titleInfo() { titleInfo() {
getassetTaskid(this.$route.query.id || this.$route.meta.id).then(res => { getassetTaskid(this.$route.query.id || this.$route.meta.id).then(
if (res.code == 200) { (res) => {
this.titleInfoObj = res.data if (res.code == 200) {
// this.$set(this.titleInfoObj,'type',"0,1") this.titleInfoObj = res.data;
this.titleInfoObjtype(this.titleInfoObj.type) // this.$set(this.titleInfoObj,'type',"0,1")
this.titleInfoObjtype(this.titleInfoObj.type);
}
} }
}) );
}, },
// //
resetQuery() { resetQuery() {
this.activeName = this.chanckListTow[0].lable this.activeName = this.chanckListTow[0].lable;
this.pagination = { this.pagination = {
current: 1, current: 1,
size: 10, size: 10,
type: this.activeName, type: this.activeName,
};
}
if (this.index == 1) { if (this.index == 1) {
this.formInline = { this.formInline = {
type: this.activeName, type: this.activeName,
};
} localStorage.removeItem("ismypaginationTow");
localStorage.removeItem("ismypaginationTow")
this.getList(); this.getList();
} else if (this.index == 2) { } else if (this.index == 2) {
this.formInlineTwo = { this.formInlineTwo = {
unitName: "", unitName: "",
} };
this.getListTwo(); this.getListTwo();
} }
}, },
@ -475,16 +589,18 @@ export default {
current: 1, current: 1,
size: 10, size: 10,
type: this.activeName, type: this.activeName,
} };
if (this.index == 1) { if (this.index == 1) {
this.pagination = { ...this.pagination, ...this.formInline }; this.pagination = { ...this.pagination, ...this.formInline };
this.formInline.isfanhuiTow = false this.formInline.isfanhuiTow = false;
console.log(77777, this.formInline); console.log(77777, this.formInline);
console.log(88888, this.pagination); console.log(88888, this.pagination);
localStorage.setItem("ismypaginationTow", JSON.stringify(this.formInline)) localStorage.setItem(
"ismypaginationTow",
JSON.stringify(this.formInline)
);
this.getList(); this.getList();
} else if (this.index == 2) { } else if (this.index == 2) {
@ -503,69 +619,66 @@ export default {
}, },
// tab // tab
activeTab(id) { activeTab(id) {
this.index = id this.index = id;
if (id == 1) { if (id == 1) {
this.formInline = { this.formInline = {
unit: "", unit: "",
type: "", type: "",
status: "", status: "",
} };
this.getList(); this.getList();
} else { } else {
this.formInlineTwo = { this.formInlineTwo = {
unitName: "", unitName: "",
} };
this.getList(); this.getList();
} }
}, },
getList() { getList() {
this.loading = true this.loading = true;
this.pagination.taskId = this.$route.query.id || this.$route.meta.id this.pagination.taskId = this.$route.query.id || this.$route.meta.id;
// this.pagination.dwmc = this.$route.query.dwmc || this.$route.meta.dwmc // this.pagination.dwmc = this.$route.query.dwmc || this.$route.meta.dwmc
if (this.$store.state.user.roles.includes("unit")) { geassetTaskcHc(this.pagination).then((res) => {
this.pagination.dwmc = this.$store.state.user.useer.nickName this.tableData = res.data.records;
} this.loading = false;
geassetTaskcHc(this.pagination).then(res => { this.total = res.data.total;
});
this.tableData = res.data.records
this.loading = false
this.total = res.data.total
})
}, },
getListTwo() { }, getListTwo() {},
// 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 tab = document.getElementById('L-tab'); // ID const tab = document.getElementById("L-tab"); // 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;
const tabHeight = tab.offsetHeight; const tabHeight = tab.offsetHeight;
this.tabHeader = elementHeight - headerHeight - paginationtHeight - tabHeight - 160; this.tabHeader =
} elementHeight - headerHeight - paginationtHeight - tabHeight - 160;
},
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
if (to.query.pageType == 'info') { if (to.query.pageType == "info") {
to.meta.title = '资产核查' to.meta.title = "资产核查";
to.meta.pageType = to.query.pageType to.meta.pageType = to.query.pageType;
to.meta.id = to.query.id to.meta.id = to.query.id;
} else if (to.query.pageType == 'look') { } else if (to.query.pageType == "look") {
to.meta.title = '任务详情' to.meta.title = "任务详情";
to.meta.pageType = to.query.pageType to.meta.pageType = to.query.pageType;
to.meta.id = to.query.id to.meta.id = to.query.id;
} }
next(); next();
}, },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-timeline { ::v-deep .el-timeline {
@ -577,7 +690,8 @@ export default {
padding-right: 3px; padding-right: 3px;
} }
.look-info {} .look-info {
}
::v-deep .el-dialog { ::v-deep .el-dialog {
margin-top: 20vh !important; margin-top: 20vh !important;

Loading…
Cancel
Save