<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(){
|
debugger
|
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>
|