gengxin2024

main
李劲龙 5 months ago
parent dc911d608a
commit 1102ecef8a

@ -389,7 +389,7 @@ export default {
}, },
// //
importClose() { importClose() {
this.resetForm()
}, },
// //
goInfo(row) { goInfo(row) {

@ -24,7 +24,7 @@
任务下发时间<span>{{ titleInfoObj.taskTime }}</span> 任务下发时间<span>{{ titleInfoObj.taskTime }}</span>
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
核查资产类型<span>{{ listTow.join(",") }}</span> 核查资产类型<span>{{ listTow.join(",") }}</span>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -100,11 +100,11 @@
</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" 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-tab-pane>
</el-tabs> </el-tabs>
<el-table v-loading="loading" :data="tableData" :height="tabHeader" <el-table v-loading="loading" :data="tableData" :height="tabHeader" :row-class-name="tableRowClassName">
:row-class-name="tableRowClassName">
<el-table-column type="index" width="50" label="序号" align="center" /> <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" />
@ -115,7 +115,7 @@
</div> </div>
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column label="核查单位" key="zcdwmc" prop="zcdwmc" align="center" /> <el-table-column label="核查单位" key="zcdwmc" prop="zcdwmc" align="center" />
<el-table-column label="审核状态" key="status" width="200px" prop="status" class-name="table-status" <el-table-column label="审核状态" key="status" width="200px" prop="status" class-name="table-status"
align="center"> align="center">
@ -140,20 +140,22 @@
<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 style="display: flex;align-items: center;justify-content: center;">
<div style="display: flex;align-items: center;cursor: pointer;" @click="goInfo(1,scope.row)" v-if="scope.row.status != 1 || ($route.query.pageType == 'look' || $route.meta.pageType == 'look')"> <div style="display: flex;align-items: center;cursor: pointer;" @click="goInfo(1, scope.row)"
v-if="scope.row.status != 1 || ($route.query.pageType == 'look' || $route.meta.pageType == 'look')">
<img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;"> <img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;">
<span class="look-info" <span class="look-info" style="color: #1485EF;">查看</span>
style="color: #1485EF;">查看</span>
</div> </div>
<div style="display: flex;align-items: center;cursor: pointer;margin-left: 5px;" @click="goInfo(2,scope.row)" v-if="$route.query.pageType == 'info' || $route.meta.pageType == 'info'" v-show='scope.row.status == 1'> <div style="display: flex;align-items: center;cursor: pointer;margin-left: 5px;"
@click="goInfo(2, scope.row)"
v-if="$route.query.pageType == 'info' || $route.meta.pageType == 'info'"
v-show='scope.row.status == 1'>
<img src="@/assets/images/icon-shenhe@2x.png" alt="" style="width: 15px;margin-right: 5px;"> <img src="@/assets/images/icon-shenhe@2x.png" alt="" style="width: 15px;margin-right: 5px;">
<span class="look-info" <span class="look-info" style="color: #1485EF;">审核</span>
style="color: #1485EF;">审核</span>
</div> </div>
<div style="display: flex;align-items: center;cursor: pointer;margin-left: 5px;" @click="goInfo(3,scope.row)" v-show='scope.row.status == 4'> <div style="display: flex;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;"> <img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;">
<span class="look-info" <span class="look-info" style="color: #1485EF;">查看原因</span>
style="color: #1485EF;">查看原因</span>
</div> </div>
</div> </div>
</template> </template>
@ -186,47 +188,47 @@
<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,assetTaskdwHc,assetLcpage,assetLcpageList } from "@/api/renwuApi/index.js" import { getassetTaskid, geassetTaskcHc, assetTaskdwHc, assetLcpage, assetLcpageList } 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: {
xtlx:"", xtlx: "",
}, },
formInlineTwo: { formInlineTwo: {
dwmc: "", dwmc: "",
@ -246,38 +248,38 @@ export default {
tabHeader: undefined, tabHeader: undefined,
timeLineData: [], timeLineData: [],
titleInfoObj: {}, titleInfoObj: {},
chakanyuanyin:"", chakanyuanyin: "",
activeName:"0", activeName: "0",
xtmcName:"系统名称", xtmcName: "系统名称",
chanckList:[ chanckList: [
{ {
lable:"0", lable: "0",
conent:"web资产", conent: "web资产",
xtmcName:"系统名称", xtmcName: "系统名称",
}, },
{ {
lable:"1", lable: "1",
conent:"小程序资产", conent: "小程序资产",
xtmcName:"小程序名称", xtmcName: "小程序名称",
}, },
{ {
lable:"2", lable: "2",
conent:"公众号资产", conent: "公众号资产",
xtmcName:"公众号名称", xtmcName: "公众号名称",
}, },
{ {
lable:"3", lable: "3",
conent:"电子邮件资产", conent: "电子邮件资产",
xtmcName:"电子邮箱后缀", xtmcName: "电子邮箱后缀",
}, },
{ {
lable:"4", lable: "4",
conent:"移动应用程序资产", conent: "移动应用程序资产",
xtmcName:"移动应用程序名称", xtmcName: "移动应用程序名称",
}, },
], ],
chanckListTow:[], chanckListTow: [],
listTow:[], listTow: [],
} }
}, },
mounted() { mounted() {
@ -291,17 +293,18 @@ export default {
window.removeEventListener('resize', this.cancalDebounce); window.removeEventListener('resize', this.cancalDebounce);
}, },
methods: { methods: {
handleClick(tab, event) { handleClick(tab, event) {
console.log(tab); this.formInline = {
this.formInline.type = tab.name xtlx: "",
this.activeName = tab.name }
this.xtmcName=tab.$attrs.xtmcName, console.log(tab);
this.activeName = tab.name
this.xtmcName = tab.$attrs.xtmcName,
this.handleQuery() this.handleQuery()
}, },
// //
returnidimg(iswenzi){ returnidimg(iswenzi) {
// let obj = { // let obj = {
// '':require('@/assets/images/rwxf.png'), // '':require('@/assets/images/rwxf.png'),
// "":require('@/assets/images/wctj.png'), // "":require('@/assets/images/wctj.png'),
@ -311,40 +314,40 @@ 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) {
// //
@ -353,8 +356,8 @@ export default {
name: 'taskAuditInfo', query: { name: 'taskAuditInfo', query: {
pageType: "look", pageType: "look",
taskId: row.taskId, taskId: row.taskId,
assetId:row.id, assetId: row.id,
type:this.activeName, type: this.activeName,
} }
}) })
@ -365,8 +368,8 @@ export default {
name: 'taskAuditInfo', query: { name: 'taskAuditInfo', query: {
pageType: "change", pageType: "change",
taskId: row.taskId, taskId: row.taskId,
assetId:row.id, assetId: row.id,
type:this.activeName, type: this.activeName,
} }
}) })
@ -375,7 +378,7 @@ export default {
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)
@ -391,20 +394,20 @@ export default {
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 = []
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)
} }
}); });
}) })
this.activeName = this.chanckListTow[0].lable this.activeName = this.chanckListTow[0].lable
this.handleQuery(); this.handleQuery();
}, },
@ -421,17 +424,17 @@ export default {
// //
resetQuery() { resetQuery() {
this.activeName = this.chanckListTow[0].lable this.activeName = this.chanckListTow[0].lable
this.xtmcName="系统名称", this.xtmcName = "系统名称",
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 = {
xtlx:"", xtlx: "",
type:this.activeName, type: this.activeName,
} }
this.getList(); this.getList();
@ -447,7 +450,7 @@ export default {
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.pagination = { ...this.pagination, ...this.formInline }; this.pagination = { ...this.pagination, ...this.formInline };
@ -474,9 +477,9 @@ export default {
this.total = 0 this.total = 0
this.index = id this.index = id
console.log(id); console.log(id);
this.resetQuery() this.resetQuery()
}, },
getList() { getList() {
this.loading = true this.loading = true
@ -488,10 +491,10 @@ export default {
}) })
}, },
getListTwo() { getListTwo() {
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
assetTaskdwHc(this.pagination).then(res=>{ assetTaskdwHc(this.pagination).then(res => {
this.tableDataTwo = res.data.records this.tableDataTwo = res.data.records
this.total = res.data.total this.total = res.data.total
this.loading = false this.loading = false
@ -515,15 +518,15 @@ export default {
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
@ -542,9 +545,9 @@ 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;
} }
</style> </style>

@ -26,7 +26,7 @@
<el-link :href="`${baseUrl}${file.url}`" :underline="false" target="_blank"> <el-link :href="`${baseUrl}${file.url}`" :underline="false" target="_blank">
<span class="el-icon-document"> {{ getFileName(file.name) }} </span> <span class="el-icon-document"> {{ getFileName(file.name) }} </span>
</el-link> </el-link>
<div class="ele-upload-list__item-content-action"> <div class="ele-upload-list__item-content-action" v-if="$route.query.pageType != 'look'">
<el-link :underline="false" @click="handleDelete(index)" type="danger">删除</el-link> <el-link :underline="false" @click="handleDelete(index)" type="danger">删除</el-link>
</div> </div>
</li> </li>

@ -300,7 +300,7 @@ export default {
}, },
// //
importClose() { importClose() {
this.resetForm()
}, },
// //
goInfo(row) { goInfo(row) {

@ -99,9 +99,10 @@
</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" v-for="item in chanckListTow"></el-tab-pane> <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 v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader"
:row-class-name="tableRowClassName"> :row-class-name="tableRowClassName">
<el-table-column type="index" width="50" label="序号" align="center" /> <el-table-column type="index" width="50" label="序号" align="center" />
@ -111,7 +112,7 @@
<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 label="核查单位" key="zcdwmc" prop="zcdwmc" align="center" />
<el-table-column label="审核状态" key="status" width="200px" prop="status" class-name="table-status" <el-table-column label="审核状态" key="status" width="200px" prop="status" class-name="table-status"
align="center"> align="center">
@ -136,22 +137,24 @@
<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 style="display: flex;align-items: center;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')"> <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;"> <img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;">
<span class="look-info" <span class="look-info" style="color: #1485EF;">查看</span>
style="color: #1485EF;">查看</span>
</div> </div>
<!-- v-if="scope.row.taskStatus == 1" --> <!-- v-if="scope.row.taskStatus == 1" -->
<div v-if="($route.query.pageType == 'info' || $route.meta.pageType == 'info') && scope.row.status != 3&& scope.row.status != 5&&scope.row.status != 1" style="display: flex;align-items: center;cursor: pointer;margin-left: 10px;" @click="goInfo(2,scope.row)"> <div
v-if="($route.query.pageType == 'info' || $route.meta.pageType == 'info') && scope.row.status != 3 && 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;"> <img src="@/assets/images/icon-shenhe@2x.png" alt="" style="width: 15px;margin-right: 5px;">
<span class="del-info" <span class="del-info" style="color: #1485EF;">核查</span>
style="color: #1485EF;">核查</span> </div>
<div style="display: flex;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 style="display: flex;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>
</template> </template>
</el-table-column> </el-table-column>
@ -165,30 +168,30 @@
<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>
@ -199,7 +202,7 @@ 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,
@ -223,42 +226,42 @@ export default {
tabHeader: undefined, tabHeader: undefined,
timeLineData: [], timeLineData: [],
titleInfoObj: {}, titleInfoObj: {},
chakanyuanyin:"", chakanyuanyin: "",
activeName:"0", activeName: "0",
xtmcName:"系统名称", xtmcName: "系统名称",
chanckList:[ chanckList: [
{ {
lable:"0", lable: "0",
conent:"web资产", conent: "web资产",
xtmcName:"系统名称", xtmcName: "系统名称",
}, },
{ {
lable:"1", lable: "1",
conent:"小程序资产", conent: "小程序资产",
xtmcName:"小程序名称", xtmcName: "小程序名称",
}, },
{ {
lable:"2", lable: "2",
conent:"公众号资产", conent: "公众号资产",
xtmcName:"公众号名称", xtmcName: "公众号名称",
}, },
{ {
lable:"3", lable: "3",
conent:"电子邮件资产", conent: "电子邮件资产",
xtmcName:"电子邮箱后缀", xtmcName: "电子邮箱后缀",
}, },
{ {
lable:"4", lable: "4",
conent:"移动应用程序资产", conent: "移动应用程序资产",
xtmcName:"移动应用程序名称", xtmcName: "移动应用程序名称",
}, },
], ],
chanckListTow:[], chanckListTow: [],
listTow:[], listTow: [],
} }
}, },
mounted() { mounted() {
this.cancalDebounce(); this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce); window.addEventListener('resize', this.cancalDebounce);
this.titleInfo() this.titleInfo()
@ -272,16 +275,18 @@ export default {
methods: { methods: {
handleClick(tab, event) { handleClick(tab, event) {
console.log(tab.name); console.log(tab.name);
this.formInline.type = tab.name this.formInline = {
this.activeName = tab.name xtlx: "",
this.xtmcName=tab.$attrs.xtmcName, }
this.activeName = tab.name
this.xtmcName = tab.$attrs.xtmcName,
this.handleQuery() this.handleQuery()
}, },
// //
returnidimg(iswenzi){ returnidimg(iswenzi) {
// let obj = { // let obj = {
// '':require('@/assets/images/rwxf.png'), // '':require('@/assets/images/rwxf.png'),
// "":require('@/assets/images/wctj.png'), // "":require('@/assets/images/wctj.png'),
@ -291,39 +296,39 @@ 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) {
// //
@ -332,8 +337,8 @@ export default {
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,
} }
@ -345,9 +350,9 @@ export default {
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,
} }
}) })
} }
@ -355,7 +360,7 @@ export default {
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)
@ -371,25 +376,25 @@ export default {
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 = []
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)
} }
}); });
}) })
this.activeName = this.chanckListTow[0].lable this.activeName = this.chanckListTow[0].lable
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(res => {
@ -409,12 +414,12 @@ export default {
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,
} }
this.getList(); this.getList();
@ -430,7 +435,7 @@ export default {
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.pagination = { ...this.pagination, ...this.formInline }; this.pagination = { ...this.pagination, ...this.formInline };
@ -470,11 +475,11 @@ export default {
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")){ if (this.$store.state.user.roles.includes("unit")) {
this.pagination.dwmc=this.$store.state.user.useer.nickName this.pagination.dwmc = this.$store.state.user.useer.nickName
} }
geassetTaskcHc(this.pagination).then(res => { geassetTaskcHc(this.pagination).then(res => {
this.tableData = res.data.records this.tableData = res.data.records
this.loading = false this.loading = false
this.total = res.data.total this.total = res.data.total
@ -501,12 +506,12 @@ export default {
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
@ -525,9 +530,9 @@ 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;
} }
</style> </style>

Loading…
Cancel
Save