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=script&lang=js","dependencies":[{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/src/views/account/locomotiveMsg/components/mountVehicleList.vue","mtime":1708395041886},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/cache-loader/dist/cjs.js","mtime":1708395146433},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/babel-loader/lib/index.js","mtime":1708395147257},{"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:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCB7CiAgICB2ZWhpY2xlVGVybWluYWwsCiAgICBpc01vdW50LAp9IGZyb20gJ0AvYXBpL2FjY291bnQvbG9jb21vdGl2ZU1zZycKZXhwb3J0IGRlZmF1bHQgewogICAgcHJvcHM6IHsKICAgICAgICBtb3VudExpc3REYXRhOiB7CiAgICAgICAgICAgIHR5cGU6IE9iamVjdCwKICAgICAgICAgICAgZGVmYXVsdDoge30KICAgICAgICB9CiAgICB9LAogICAgY3JlYXRlZCgpIHsKICAgICAgICB0aGlzLnF1ZXJ5UGFyYW1zLnZlaGljbGVDb2RlID0gdGhpcy5tb3VudExpc3REYXRhLnZlaGljbGVDb2RlCiAgICAgICAgaXNNb3VudCh7CiAgICAgICAgICAgIHZlaGljbGVDb2RlOiB0aGlzLm1vdW50TGlzdERhdGEudmVoaWNsZUNvZGUKICAgICAgICB9KS50aGVuKHJlcyA9PiB7CiAgICAgICAgICAgIHRoaXMuaXNNb3VudCA9ICFyZXMuZGF0YQogICAgICAgIH0pCiAgICAgICAgdGhpcy52ZWhpY2xlVGVybWluYWwodGhpcy5xdWVyeVBhcmFtcykKICAgIH0sCiAgICBkYXRhKCkgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIHF1ZXJ5UGFyYW1zOiB7CiAgICAgICAgICAgICAgICBwYWdlTnVtOiAxLAogICAgICAgICAgICAgICAgcGFnZVNpemU6IDMwLAogICAgICAgICAgICAgICAgdmVoaWNsZUNvZGU6ICcnCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIG1vdW50TGlzdDogW10sCiAgICAgICAgICAgIHRvdGFsOiAwLAogICAgICAgICAgICByYWRpbzogJycsCiAgICAgICAgICAgIGlzSGF2ZVZlaGljbGU6IGZhbHNlLAogICAgICAgICAgICBpc01vdW50OiBudWxsLAogICAgICAgICAgICBpbml0aWFsQ29kZTogJycKICAgICAgICB9CiAgICB9LAogICAgbWV0aG9kczogewogICAgICAgIHZlaGljbGVUZXJtaW5hbChwYXJhbXMpIHsKICAgICAgICAgICAgdGhpcy5pc0hhdmVWZWhpY2xlID0gZmFsc2UKICAgICAgICAgICAgdmVoaWNsZVRlcm1pbmFsKHBhcmFtcykudGhlbihyZXMgPT4gewogICAgICAgICAgICAgICAgaWYgKHJlcy5jb2RlID09IDIwMCkgewogICAgICAgICAgICAgICAgICAgIHJlcy5kYXRhLnJlY29yZHMuZm9yRWFjaChpdGVtID0+IHsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGl0ZW0uaXNNb3VudCA9PSAnMicpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucmFkaW8gPSBpdGVtLnRlcm1pbmFsQ29kZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5pbml0aWFsQ29kZSA9IGl0ZW0udGVybWluYWxDb2RlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB0aGlzLmlzSGF2ZVZlaGljbGUgPSB0cnVlCiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9KQogICAgICAgICAgICAgICAgICAgIHRoaXMubW91bnRMaXN0ID0gcmVzLmRhdGEucmVjb3JkcwogICAgICAgICAgICAgICAgICAgIHRoaXMudG90YWwgPSByZXMuZGF0YS50b3RhbAogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLiRtZXNzYWdlKHsKICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogJ2Vycm9yJywKICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTogcmVzLm1zZwogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KQogICAgICAgIH0sCiAgICAgICAgZ2V0Q3VycmVudFJvdyh2YWwpIHsKICAgICAgICAgICAgdmFsID09IHRoaXMucmFkaW8gPyB0aGlzLnJhZGlvID0gJycgOiB0aGlzLnJhZGlvID0gdmFsCiAgICAgICAgfSwKICAgICAgICBoYW5kbGVDdXJyZW50Q2hhbmdlKHZhbCkgeyAgICAgICAgICAgIAogICAgICAgICAgICB0aGlzLnF1ZXJ5UGFyYW1zLnBhZ2VOdW0gPSB2YWwKICAgICAgICAgICAgdGhpcy52ZWhpY2xlVGVybWluYWwodGhpcy5xdWVyeVBhcmFtcykKICAgICAgICB9LAogICAgICAgIG1vdW50U2F2ZSgpIHsKICAgICAgICAgICAgaWYgKHRoaXMucmFkaW8gPT0gdGhpcy5pbml0aWFsQ29kZSkgewogICAgICAgICAgICAgICAgdGhpcy5tb3VudExpc3REYXRhLmRpYWxvZ1Zpc2libGUgPSBmYWxzZQogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgdGhpcy4kZW1pdCgnbW91bnRTYXZlJywgewogICAgICAgICAgICAgICAgICAgIHZlaGljbGVDb2RlOiB0aGlzLm1vdW50TGlzdERhdGEudmVoaWNsZUNvZGUsCiAgICAgICAgICAgICAgICAgICAgdGVybWluYWxDb2RlOiB0aGlzLnJhZGlvLAogICAgICAgICAgICAgICAgICAgIGlzTW91bnQ6IHRoaXMuaXNNb3VudAogICAgICAgICAgICAgICAgfSkKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQo="},{"version":3,"sources":["mountVehicleList.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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>"]}]}
|