|
|
|
@ -76,7 +76,7 @@
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<el-form-item label="单位名称:">
|
|
|
|
|
<el-input v-model="formInlineTwo.unitName" placeholder="请输入"></el-input>
|
|
|
|
|
<el-input v-model="formInlineTwo.dwmc" placeholder="请输入"></el-input>
|
|
|
|
|
<!-- <el-select v-model="formInline.unit" placeholder="请选择"> -->
|
|
|
|
|
<!-- <el-option
|
|
|
|
|
v-for="dict in dict.type.bms_approval_status"
|
|
|
|
@ -135,8 +135,8 @@
|
|
|
|
|
<span class="look-info"
|
|
|
|
|
style="color: #1485EF;">查看</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex;align-items: center;cursor: pointer;" @click="goInfo(1,scope.row)" v-if="$route.query.pageType == 'info' || $route.meta.pageType == 'info'">
|
|
|
|
|
<img src="@/assets/images/icon-shenhe@2x.png" alt="" style="width: 20px;margin-right: 5px;">
|
|
|
|
|
<div style="display: flex;align-items: center;cursor: pointer;" @click="goInfo(2,scope.row)" v-if="$route.query.pageType == 'info' || $route.meta.pageType == 'info'">
|
|
|
|
|
<img src="@/assets/images/icon-shenhe@2x.png" alt="" style="width: 15px;margin-right: 5px;">
|
|
|
|
|
<span class="look-info"
|
|
|
|
|
style="color: #1485EF;">审核</span>
|
|
|
|
|
</div>
|
|
|
|
@ -193,7 +193,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import myPagination from "@/views/components/Pagination/index.vue"
|
|
|
|
|
import { getassetTaskid, geassetTaskcHc } from "@/api/renwuApi/index.js"
|
|
|
|
|
import { getassetTaskid, geassetTaskcHc,assetTaskdwHc } from "@/api/renwuApi/index.js"
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
dicts: ['zc_xtlx'],
|
|
|
|
@ -205,7 +205,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
formInlineTwo: {
|
|
|
|
|
unitName: "",
|
|
|
|
|
dwmc: "",
|
|
|
|
|
},
|
|
|
|
|
total: 0,
|
|
|
|
|
pagination: {
|
|
|
|
@ -327,7 +327,7 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
} else if (this.index == 2) {
|
|
|
|
|
this.formInlineTwo = {
|
|
|
|
|
unitName: "",
|
|
|
|
|
dwmc: "",
|
|
|
|
|
}
|
|
|
|
|
this.getListTwo();
|
|
|
|
|
}
|
|
|
|
@ -342,11 +342,12 @@ export default {
|
|
|
|
|
this.pagination = { ...this.pagination, ...this.formInline };
|
|
|
|
|
this.getList();
|
|
|
|
|
} else if (this.index == 2) {
|
|
|
|
|
this.pagination = { ...this.pagination, ...this.formInlineTwo };
|
|
|
|
|
this.getListTwo();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 获取页码
|
|
|
|
|
getPagination() {
|
|
|
|
|
getPagination(pages) {
|
|
|
|
|
this.pagination.current = pages.page;
|
|
|
|
|
this.pagination.size = pages.limit;
|
|
|
|
|
if (this.index == 1) {
|
|
|
|
@ -357,7 +358,12 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 切换tab
|
|
|
|
|
activeTab(id) {
|
|
|
|
|
this.pagination.current =1;
|
|
|
|
|
this.pagination.size = 10;
|
|
|
|
|
this.total = 0
|
|
|
|
|
this.index = id
|
|
|
|
|
console.log(id);
|
|
|
|
|
|
|
|
|
|
if (id == 1) {
|
|
|
|
|
this.formInline = {
|
|
|
|
|
unit: "",
|
|
|
|
@ -367,18 +373,32 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
} else {
|
|
|
|
|
this.formInlineTwo = {
|
|
|
|
|
unitName: "",
|
|
|
|
|
dwmc: "",
|
|
|
|
|
}
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getListTwo();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
|
|
|
|
this.pagination.taskId = this.$route.query.id || this.$route.meta.id
|
|
|
|
|
geassetTaskcHc(this.pagination).then(res => {
|
|
|
|
|
this.tableData = res.data.records
|
|
|
|
|
this.total = res.data.total
|
|
|
|
|
this.loading = false
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getListTwo() {
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
|
|
|
|
this.pagination.taskId = this.$route.query.id || this.$route.meta.id
|
|
|
|
|
assetTaskdwHc(this.pagination).then(res=>{
|
|
|
|
|
this.tableDataTwo = res.data.records
|
|
|
|
|
this.total = res.data.total
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getListTwo() { },
|
|
|
|
|
// 修改table背景色
|
|
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
|
|
if (rowIndex % 2 !== 0) {
|
|
|
|
|