| | |
| | | <div class="search"> |
| | | <span>车辆搜索:</span> |
| | | <div class="option"> |
| | | <el-input placeholder="请输入车牌号"></el-input> |
| | | <el-input @input="handleSearch" v-model="context" placeholder="请输入车牌号"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="addCar"> |
| | |
| | | @selection-change="tableChange"> |
| | | <el-table-column type="selection" min-width="5"> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="车牌号" min-width="10"> |
| | | <template slot-scope="scope"> |
| | | <el-link @click="JumpView(scope.row)">{{scope.row.code}}</el-link> |
| | | </template> |
| | | <el-table-column prop="carNumber" label="车牌号" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="车型" min-width="10" v-if="mystatus===2"> |
| | | <el-table-column prop="carModel" label="车型" min-width="10" v-if="mystatus===2"> |
| | | </el-table-column> |
| | | <el-table-column prop="eventSource" label="车主姓名" min-width="10"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.row.eventSource === 2 ? '人工上报' : '视频上传'}}</span> |
| | | </template> |
| | | <el-table-column prop="ownerName" label="车主姓名" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="category" label="车辆使用人员" min-width="10"> |
| | | <el-table-column prop="vehicleUser" label="车辆使用人员" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="联系方式" min-width="10"> |
| | | <el-table-column prop="contact" label="联系方式" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="actionCause" :label="mystatus === 1 ? '所属部门':'施工地址'" min-width="10"> |
| | | <el-table-column :prop="mystatus===1 ? 'belong' : 'geographicPosition'" :label="mystatus === 1 ? '所属部门':'施工地址'" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="site" :label="mystatus === 1 ? '所属大队' : '施工单位'" min-width="10"> |
| | | <el-table-column :prop="mystatus===1 ? 'depart' : 'constructionOrg'" :label="mystatus === 1 ? '所属大队' : '施工单位'" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="operation" label="操作" min-width="20"> |
| | | <template slot-scope="scope"> |
| | | <div class="btn"> |
| | | <span @click="handleReset(scope.row)">查看</span> |
| | | <span @click="handleView(scope.row)">查看</span> |
| | | <span class="line">|</span> |
| | | <span>删除</span> |
| | | </div> |
| | |
| | | <el-dialog :visible.sync="dialogAdd" width="60%" title="新增车辆" |
| | | v-if="dialogAdd" :before-close="handleClose"> |
| | | <Mycreate v-if="mystatus === 1" @closeDialog="closeDialog"></Mycreate> |
| | | <MySoil v-else @closeDialog="closeDialog"></MySoil> |
| | | </el-dialog> |
| | | <!-- 查看 --> |
| | | <el-dialog :visible.sync="dialogView" width="60%" title="查看车辆信息" |
| | | v-if="dialogView" :before-close="handleNoClose"> |
| | | <MyViewLaw v-if="mystatus === 1" :info="info"></MyViewLaw> |
| | | <MyViewSoil v-else :info="info"></MyViewSoil> |
| | | </el-dialog> |
| | | <!-- tools --> |
| | | <div class="tools"> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import Mycreate from './createUser' |
| | | import Mycreate from './create/law' |
| | | import MySoil from './create/soil' |
| | | import MyViewLaw from './update/law' |
| | | import MyViewSoil from './update/soil' |
| | | export default { |
| | | components: { |
| | | Mycreate |
| | | Mycreate,MySoil,MyViewLaw, |
| | | MyViewSoil |
| | | }, |
| | | data() { |
| | | return { |
| | | tableData: [], |
| | | context: "", |
| | | dialogAdd:false, |
| | | info: {}, |
| | | dialogView:false, |
| | | info: '', |
| | | totalNum: null, |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | |
| | | ], |
| | | mystatus:1, |
| | | caseId:'', |
| | | timer:null, |
| | | } |
| | | }, |
| | | created() { |
| | | this.getUserList(); |
| | | }, |
| | | methods: { |
| | | // 搜索车辆 |
| | | handleSearch(val){ |
| | | if(this.timer){ |
| | | clearTimeout(this.timer); |
| | | } |
| | | this.timer = setTimeout(()=>{ |
| | | this.getUserList(); |
| | | },1000); |
| | | }, |
| | | // 添加车辆 |
| | | handleAddCar(){ |
| | | this.dialogAdd = true; |
| | |
| | | url:`sccg/car_Manage/query_enforce?current=${currentPage}&size=${pageSize}&carNum=${carNum}`, |
| | | }) |
| | | .then(res=>{ |
| | | console.log(res); |
| | | arr = res.data; |
| | | }) |
| | | return arr; |
| | |
| | | async JumpView(data){ |
| | | await this.getEventInfo(data.code); |
| | | }, |
| | | handleNoClose(done){ |
| | | done(); |
| | | }, |
| | | opernDialog(data){ |
| | | this.dialogAdd = true; |
| | | this.caseId = data.id; |
| | | // console.log(data); |
| | | }, |
| | | // 关闭上传界面 |
| | | closeDialog({flag}){ |
| | | // 关闭界面 |
| | | closeDialog({flag,index}){ |
| | | this.dialogAdd = flag; |
| | | if(index===1){ |
| | | this.getUserList(); |
| | | } |
| | | }, |
| | | handleView(data){ |
| | | this.info = data; |
| | | this.dialogView = true; |
| | | } |
| | | } |
| | | } |