d3b983a715bbf32e755b57a40ab24962.json 7.2 KB

1
  1. {"remainingRequest":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/src/views/account/locomotiveMsg/components/mountVehicleList.vue?vue&type=style&index=0&id=76d7beca&lang=scss&scoped=true","dependencies":[{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/src/views/account/locomotiveMsg/components/mountVehicleList.vue","mtime":1708395041886},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/css-loader/dist/cjs.js","mtime":1708395146948},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":1708395147772},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/postcss-loader/src/index.js","mtime":1708395147225},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/sass-loader/dist/cjs.js","mtime":1708395146389},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/cache-loader/dist/cjs.js","mtime":1708395146433},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/vue-loader/lib/index.js","mtime":1708395147382}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoubW91bnRWZWhpY2xlRGlhbG9nIHsKICAgIC52ZWhpY2xlQ29udGVudCB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMzAwcHg7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI0RDRENEQzsKICAgICAgICBib3JkZXItcmFkaXVzOiA1cHg7CiAgICAgICAgcGFkZGluZzogMTVweDsKICAgICAgICAuZWwtcmFkaW97CiAgICAgICAgICAgIHdpZHRoOiAyMCU7CiAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDEwcHg7CiAgICAgICAgfQogICAgICAgIC5wYWdpbmF0aW9uIHsKICAgICAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgICAgICBib3R0b206IDEwcHg7CiAgICAgICAgICAgIHJpZ2h0OiAxMHB4OwogICAgICAgIH0KICAgIH0KfQoKOjp2LWRlZXAgLmVsLXJhZGlvX19pbnB1dC5pcy1jaGVja2VkKy5lbC1yYWRpb19fbGFiZWwgewogICAgY29sb3I6ICMyNzY2REQKfQoKLyogcmFkaW/pgInkuK3lkI7lsI/lnIbngrnnmoTpopzoibIgKi8KOjp2LWRlZXAgLmVsLXJhZGlvX19pbnB1dC5pcy1jaGVja2VkIC5lbC1yYWRpb19faW5uZXIgewogICAgYmFja2dyb3VuZDogIzI3NjZERCAhaW1wb3J0YW50OwogICAgYm9yZGVyLWNvbG9yOiAjMjc2NkREICFpbXBvcnRhbnQ7Cn0K"},{"version":3,"sources":["mountVehicleList.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA","file":"mountVehicleList.vue","sourceRoot":"src/views/account/locomotiveMsg/components","sourcesContent":["<template>\n <div class=\"mountVehicleDialog\">\n <el-dialog center width=\"743px\" title=\"机车挂载终端\" :visible.sync=\"mountListData.dialogVisible\">\n <div style=\"position: relative;top: -10px;\">可挂载终端:</div>\n <div class=\"vehicleContent\">\n <el-radio-group v-model=\"radio\">\n <el-radio v-for=\"item in mountList\" :label=\"item.terminalCode\" :title=\"item.terminalName\"\n style=\"overflow: hidden;text-overflow: ellipsis;white-space: nowrap;width: 110px;\"\n @click.prevent.native=\"getCurrentRow(item.terminalCode)\"> \n {{ item.terminalName }} \n </el-radio>\n </el-radio-group>\n <div class=\"pagination\">\n <el-pagination @current-change=\"handleCurrentChange\" layout=\"prev, pager, next, jumper\" :total=\"total\">\n </el-pagination>\n </div>\n </div>\n\n <span slot=\"footer\" class=\"dialog-footer\">\n <!-- <el-button>取 消</el-button>\n <el-button type=\"primary\">保 存</el-button> -->\n <div class=\"search\" @click=\"mountSave\">保 存</div>\n <div class=\"reset\" @click=\"mountListData.dialogVisible = false\">取 消</div>\n </span>\n </el-dialog>\n </div>\n</template>\n<script>\nimport {\n vehicleTerminal,\n isMount,\n} from '@/api/account/locomotiveMsg'\nexport default {\n props: {\n mountListData: {\n type: Object,\n default: {}\n }\n },\n created() {\n this.queryParams.vehicleCode = this.mountListData.vehicleCode\n isMount({\n vehicleCode: this.mountListData.vehicleCode\n }).then(res => {\n this.isMount = !res.data\n })\n this.vehicleTerminal(this.queryParams)\n },\n data() {\n return {\n queryParams: {\n pageNum: 1,\n pageSize: 30,\n vehicleCode: ''\n },\n mountList: [],\n total: 0,\n radio: '',\n isHaveVehicle: false,\n isMount: null,\n initialCode: ''\n }\n },\n methods: {\n vehicleTerminal(params) {\n this.isHaveVehicle = false\n vehicleTerminal(params).then(res => {\n if (res.code == 200) {\n res.data.records.forEach(item => {\n if (item.isMount == '2') {\n this.radio = item.terminalCode\n this.initialCode = item.terminalCode\n // this.isHaveVehicle = true\n }\n })\n this.mountList = res.data.records\n this.total = res.data.total\n } else {\n this.$message({\n type: 'error',\n message: res.msg\n });\n }\n })\n },\n getCurrentRow(val) {\n val == this.radio ? this.radio = '' : this.radio = val\n },\n handleCurrentChange(val) { \n this.queryParams.pageNum = val\n this.vehicleTerminal(this.queryParams)\n },\n mountSave() {\n if (this.radio == this.initialCode) {\n this.mountListData.dialogVisible = false\n } else {\n this.$emit('mountSave', {\n vehicleCode: this.mountListData.vehicleCode,\n terminalCode: this.radio,\n isMount: this.isMount\n })\n }\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.mountVehicleDialog {\n .vehicleContent {\n position: relative;\n width: 100%;\n height: 300px;\n border: 1px solid #DCDCDC;\n border-radius: 5px;\n padding: 15px;\n .el-radio{\n width: 20%;\n margin-bottom: 10px;\n }\n .pagination {\n position: absolute;\n bottom: 10px;\n right: 10px;\n }\n }\n}\n\n::v-deep .el-radio__input.is-checked+.el-radio__label {\n color: #2766DD\n}\n\n/* radio选中后小圆点的颜色 */\n::v-deep .el-radio__input.is-checked .el-radio__inner {\n background: #2766DD !important;\n border-color: #2766DD !important;\n}\n</style>"]}]}