郑永安
2023-06-19 2befd4a5d3733520b69ed97da88e675b6b086a3c
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
93
94
95
96
97
98
99
100
<template>
    <el-dialog
        :visible.sync="dialogVisible"
        append-to-body
        :close-on-click-modal="false"
        width="60%"
    >
        <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" readonly>
                        </el-input>
                    </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>
    </el-dialog>
</template>
 
<script>
    import { getDirectionCodeData } from '@/api/flow'
    import {computePageCount} from "@/utils";
 
    export default {
        name: "addSelfExam",
        data(){
            return{
                dialogVisible:false,
                tableKey:'',
                directionCode:'',
                listLoading:false,
                directionCodeData:[],
            }
        },
        watch: {
        },
        methods:{
            openFlow(value){
                this.dialogVisible = true
                this.directionCode = value
                this.getDirectionCodeDataList()
            },
            async getDirectionCodeDataList(){
                this.listLoading = true
                if(this.directionCode !== null && this.directionCode !== '' ){
                    let res = await getDirectionCodeData(this.directionCode)
                    if(res.data.code === "200"){
                        debugger
                        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>