马宇豪
2025-01-10 03f0e2a3220106ec2a9dd8f53d3ef5ab824c3ae7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<template>
    <div class="app-container">
        <div class="filter-container">
            <div style="display: block;">
                <div class="basic_search" style="padding-top: 10px">
                    <span>按流向码查:</span>
                    <el-input filterable clearable v-model="directionCode" style="width:300px">
                    </el-input>
                </div>
                <div class="basic_search" style="margin-right: 10px">
                    <el-button style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="search('查询','')">查询</el-button>
                </div>
            </div>
 
        </div>
        <div class="table_content">
            <el-table
                v-loading="listLoading"
                :key="tableKey"
                :data="directionCodeData"
                border
                fit
                highlight-current-row
                style="width: 100%;"
            >
                <el-table-column label="序号" type="index" align="center" width="60"/>
                <el-table-column label="企业信息" prop="content" align="center">
                </el-table-column>
                <el-table-column label="流向码" prop="directioncode" align="center">
                </el-table-column>
                <el-table-column label="身份证号" prop="idCardNumber" align="center">
                </el-table-column>
                <el-table-column label="流向轨迹" prop="detail" align="center" width="350">
                </el-table-column>
                <el-table-column label="创建时间" prop="modifieddate" align="center" >
                </el-table-column>
                <el-table-column label="操作" prop="typeName" align="center" >
                </el-table-column>
            </el-table>
        </div>
    </div>
</template>
 
<script>
import { getDirectionCodeData } from '@/api/flow'
import {computePageCount} from "../../utils";
 
export default {
    name: "addSelfExam",
    data(){
        return{
            tableKey:'',
            directionCode:'',
            listLoading:false,
            directionCodeData:[],
        }
    },
    created() {
        this.getDirectionCodeDataList()
    },
    watch: {
    },
    methods:{
        async getDirectionCodeDataList(){
            this.listLoading = true
            if(this.directionCode !== null && this.directionCode !== '' ){
                let res = await getDirectionCodeData(this.directionCode)
                if(res.data.code === "200"){
                    this.directionCodeData = res.data.result
                }else{
                    this.$message({
                        type:'warning',
                        message:res.data.message
                    })
                }
            }
            this.listLoading = false
        },
 
        search(){
            this.getDirectionCodeDataList()
        },
    },
}
</script>
 
<style scoped>
.basic_search{
    display:inline-block;
}
 
</style>