新增查看

lijinlong
李劲龙 6 months ago
parent feaa9e55f6
commit 2b62075020

@ -139,6 +139,7 @@
overflow-y: scroll; overflow-y: scroll;
background-color: #f2f2f2; background-color: #f2f2f2;
display: flex; display: flex;
overflow: hidden;
.el-row { .el-row {
height: 100%; height: 100%;

@ -327,10 +327,12 @@ export default {
} }
}) })
}, },
delInfo() { delInfo(row) {
//taskAudit
this.$router.push({ this.$router.push({
name: 'taskAudit', query: { name: 'TaskInfo', query: {
pageType: "info", pageType: "info",
id:row.id
} }
}) })
}, },

@ -127,7 +127,9 @@
</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">
<span class="look-info" @click="goInfo(scope.row)" style="color: #192A92;cursor: pointer;">查看</span> <span class="look-info" @click="goInfo(1, scope.row)" style="color: #192A92;cursor: pointer;">查看</span>
<span class="look-info" @click="goInfo(2, scope.row)" style="color: #192A92;cursor: pointer;"
v-if="$route.query.pageType == 'info'">审核</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -189,46 +191,10 @@ export default {
size: 10, size: 10,
}, },
tableData: [ tableData: [
{
number: 20230001,
name: "XXX资产",
type: "1类资产",
unit: "太仓市XXX局",
status: 0,
}, {
number: 20230001,
name: "XXX资产",
type: "1类资产",
unit: "太仓市XXX局",
status: 1,
}, {
number: 20230001,
name: "XXX资产",
type: "1类资产",
unit: "太仓市XXX局",
status: 2,
},
], ],
tableDataTwo: [ tableDataTwo: [
{
unitName: "太仓市XXX局",
hczcsl: "100",
wcsl: "80",
wwcsl: "20",
wwcbl: "20%"
}, {
unitName: "太仓市XXX局",
hczcsl: "100",
wcsl: "80",
wwcsl: "20",
wwcbl: "20%"
}, {
unitName: "太仓市XXX局",
hczcsl: "100",
wcsl: "80",
wwcsl: "20",
wwcbl: "20%"
},
], ],
loading: false, loading: false,
tabHeader: undefined, tabHeader: undefined,
@ -252,8 +218,6 @@ export default {
} }
}, },
mounted() { mounted() {
this.getList(); this.getList();
this.cancalDebounce(); this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce); window.addEventListener('resize', this.cancalDebounce);
@ -262,7 +226,25 @@ export default {
destroyed() { destroyed() {
window.removeEventListener('resize', this.cancalDebounce); window.removeEventListener('resize', this.cancalDebounce);
}, },
methods: { methods: {
goInfo(type, row) {
//
if (type == 1) {
this.$router.push({
name: 'AssetsAuth', query: {
pageType: "look",
id: row.id
}
})
}
//
if (type == 2) {
}
// getassetTaskid(row.id)
},
taskstatus(id) { taskstatus(id) {
if (id) { if (id) {
let obj = { let obj = {
@ -276,7 +258,6 @@ export default {
}, },
titleInfo() { titleInfo() {
console.log(this.$route.query); console.log(this.$route.query);
getassetTaskid(this.$route.query.id).then(res => { getassetTaskid(this.$route.query.id).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.titleInfoObj = res.data this.titleInfoObj = res.data
@ -380,4 +361,8 @@ export default {
::v-deep .el-form-item__label { ::v-deep .el-form-item__label {
padding-right: 3px; padding-right: 3px;
} }
.look-info {
margin-left: 10px;
}
</style> </style>

Loading…
Cancel
Save