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/terminalManagement/components/addTerminalDialog.vue?vue&type=style&index=0&id=03d6cd50&lang=scss&scoped=true","dependencies":[{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/src/views/account/terminalManagement/components/addTerminalDialog.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:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgo6OnYtZGVlcCAuZWwtZGlhbG9nX19ib2R5IHsKICAgIHBhZGRpbmc6IDIwcHggOTVweCAhaW1wb3J0YW50Owp9Cjo6di1kZWVwIC5lbC10ZXh0YXJlYSAuZWwtaW5wdXRfX2NvdW50IHsKICBib3R0b206IC00MHB4Owp9Cg=="},{"version":3,"sources":["addTerminalDialog.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2GA;AACA;AACA;AACA;AACA;AACA","file":"addTerminalDialog.vue","sourceRoot":"src/views/account/terminalManagement/components","sourcesContent":["<template>\n <div class=\"addTerminalDialog\">\n <el-dialog center width=\"636px\" title=\"添加车载终端\" :visible.sync=\"addTerminalData.dialogVisible\">\n <el-form label-width=\"110px\" ref=\"ruleForm\" :rules=\"rules\" :model=\"addTerminalForm\">\n <el-form-item label=\"车载终端编码\" prop=\"terminalCode\">\n <el-input placeholder=\"请输入车载终端编码\" v-model=\"addTerminalForm.terminalCode\"></el-input>\n </el-form-item>\n <el-form-item label=\"车载终端名称\" prop=\"terminalName\">\n <el-input placeholder=\"请输入车载终端名称\" v-model=\"addTerminalForm.terminalName\"></el-input>\n </el-form-item>\n <!-- <el-form-item label=\"状态\" prop=\"status\">\n <el-radio v-model=\"addTerminalForm.status\" label=\"1\">在线</el-radio>\n <el-radio v-model=\"addTerminalForm.status\" label=\"2\">离线</el-radio>\n </el-form-item> -->\n <!-- <el-form-item label=\"终端经度\" prop=\"terminalLongitude\">\n <el-input type=\"number\" max=\"90\" placeholder=\"请输入终端经度\" v-model=\"addTerminalForm.terminalLongitude\"></el-input>\n </el-form-item>\n <el-form-item label=\"终端纬度\" prop=\"terminalLatitude\">\n <el-input type=\"number\" max=\"180\" placeholder=\"请输入终端纬度\" v-model=\"addTerminalForm.terminalLatitude\"></el-input>\n </el-form-item> -->\n <el-form-item label=\"备注\">\n <el-input v-model=\"addTerminalForm.remark\" type=\"textarea\" autocomplete=\"off\" placeholder=\"请输入备注\" maxlength=\"200\"\n show-word-limit />\n </el-form-item>\n </el-form>\n <span slot=\"footer\" class=\"dialog-footer\">\n <div class=\"search\" @click=\"addTerminal\">保 存</div>\n <div class=\"reset\" @click=\"reset\">取 消</div>\n </span>\n </el-dialog>\n </div>\n</template>\n<script>\nexport default {\n props: {\n addTerminalData: {\n type: Object,\n default: {}\n }\n },\n watch:{\n 'addTerminalForm.terminalLongitude': function (newval, oldval) {\n\t\t\t var reg = /^(\\d{0,3})(\\.(\\d{0,13}))?$/g;\n\t\t\t\tif (!reg.test(newval)) {\n\t\t\t\t\tif (newval == undefined || newval == null ) {\n\t\t\t\t\t\tthis.addTerminalForm.terminalLongitude = '';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.addTerminalForm.terminalLongitude = oldval\n\t\t\t\t} else {\n\t\t\t\t\tthis.addTerminalForm.terminalLongitude = newval.replace(/^\\./g, \"\")\n\t\t\t\t}\t\t\t\t\n\t\t\t},\n 'addTerminalForm.terminalLatitude': function (newval, oldval) {\n\t\t\t var reg = /^(\\d{0,3})(\\.(\\d{0,13}))?$/g;\n\t\t\t\tif (!reg.test(newval)) {\n\t\t\t\t\tif (newval == undefined || newval == null ) {\n\t\t\t\t\t\tthis.addTerminalForm.terminalLatitude = '';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.addTerminalForm.terminalLatitude = oldval\n\t\t\t\t} else {\n\t\t\t\t\tthis.addTerminalForm.terminalLatitude = newval.replace(/^\\./g, \"\")\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n },\n data() {\n return {\n addTerminalForm: {\n terminalCode: '',\n terminalName: '',\n // status: '1',\n terminalLongitude: '',\n terminalLatitude: '',\n remark:''\n },\n rules: {\n terminalCode: [{ required: true, message: '请输入车载终端编码', trigger: 'blur' },],\n terminalName: [{ required: true, message: '请输入车载终端名称', trigger: 'blur' }],\n status: [{ required: true, message: '请选择状态', trigger: 'blur' }],\n terminalLongitude: [{ required: true, message: '请输入终端经度', trigger: 'blur' }],\n terminalLatitude: [{ required: true, message: '请输入终端纬度', trigger: 'blur' }],\n }\n }\n },\n methods: {\n addTerminal() {\n this.$refs.ruleForm.validate(valid => {\n if (valid) {\n this.$emit(\"addTerminal\", this.addTerminalForm)\n }\n })\n },\n reset() {\n this.addTerminalForm = {\n terminalCode: '',\n terminalName: '',\n status: '',\n terminalLongitude: '',\n terminalLatitude: ''\n }\n this.addTerminalData.dialogVisible = false\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n::v-deep .el-dialog__body {\n padding: 20px 95px !important;\n}\n::v-deep .el-textarea .el-input__count {\n bottom: -40px;\n}\n</style>"]}]}
|