{"version":3,"sources":["webpack:///./src/components/unitDevice/view/point/list.vue?a243","webpack:///./src/components/unitDevice/view/point/view.vue?a9c2","webpack:///./src/components/unitDevice/view/point/view.vue?5186","webpack:///./src/components/unitDevice/view/point/view.vue?f5a0","webpack:///./src/components/unitDevice/view/point/view.vue","webpack:///./src/components/unitDevice/view/point/list.vue?57ed","webpack:///./src/components/unitDevice/view/point/list.vue?c036","webpack:///./src/components/unitDevice/view/point/list.vue","webpack:///./src/api/heritageUnit/unitDevice.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","attrs","dataList","scopedSlots","_u","key","fn","scope","row","Id","_v","inlineTemplate","staticRenderFns","showDialog","close","form","model","value","callback","$$v","expandNames","expression","slot","staticClass","_s","PointName","PointAliaseName","PointNum","PointType","ValueTypeName","ScopeValueHigh","ScopeValueLow","PointDeviateScope","name","loading","Object","assign","window","eventBus","$on","id","fetchData","$off","then","response","data","catch","error","console","log","components","ViewDialog","component","default","DevicePointView","apiUrl","GetList","GetPoint","GetPointTypeList","GetInfo","ViewInfo","PostData","PutData","Delete","emptyData","UnitId","DeviceCategoryId","DeviceNumber","DeviceSerialId","DeviceBrand","DeviceAliase","DeviceModuleDriver","DeviceDescription","DevicePostionName","DeviceStatus","DeviceIp","DevicePort","AccessUser","AccessPwd","NewUserId","NewDate","Date","UpdateUserId","UpdateDate","UnitCode","UnitName","CategoryName","BrandName","DriverName","UserName","PointList","emptyPoint","DeviceId","PointValueType","PointValueUnit","Status","ValueUnitName","removeData","method","url","getPointTypes","firstType","params","type","getList","param","getInfo","viewInfo","getPoint","postData","putData"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,GAAG,CAACA,EAAG,WAAW,CAACE,IAAI,WAAWC,MAAM,CAAC,KAAOP,EAAIQ,WAAW,CAACJ,EAAG,kBAAkB,CAACG,MAAM,CAA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Y,GACZC,WAAY,GACZC,UAAW,GACXC,UAAW,EACXC,QAAS,IAAIC,KACbC,aAAc,EACdC,WAAY,IAAIF,KAEhBG,SAAU,GACVC,SAAU,GACVC,aAAc,GACdC,UAAW,GACXC,WAAY,GACZC,SAAU,GACVC,UAAW,IAiCFC,EAAkC,CAC3ClF,GAAI,EACJmF,SAAU,EACVnE,UAAW,GACXC,gBAAiB,GACjBC,SAAU,EACVC,UAAW,GACXiE,eAAgB,EAChBC,eAAgB,EAChB/D,cAAe,EACfD,eAAgB,EAChBE,kBAAmB,GACnB+D,OAAQ,EACRhB,UAAW,EACXC,QAAS,IAAIC,KACbC,aAAc,EACdC,WAAY,IAAIF,KAEhBpD,cAAe,GACfmE,cAAe,GACfP,SAAU,IA+BDQ,EAAa,SAACzD,GACvB,OAAO,eAAS,CACZ0D,OAAQ,SACRC,IAAKpC,EAAOvB,MAUP4D,EAAgB,SAACC,GAC1B,OAAO,eAAS,CACZH,OAAQ,MACRC,IAAKzC,EACL4C,OAAQ,CAAEC,KAAMF,MAGXG,EAAU,SAACC,GACpB,OAAO,eAAS,CACZP,OAAQ,MACRC,IAAK3C,EACL8C,OAAQG,KAeHC,EAAU,SAAClE,GACpB,OAAO,eAAS,CACZ0D,OAAQ,MACRC,IAAKxC,EAAQnB,MAGRmE,EAAW,SAACnE,GACrB,OAAO,eAAS,CACZ0D,OAAQ,MACRC,IAAKvC,EAASpB,MAGToE,EAAW,SAACpE,GACrB,OAAO,eAAS,CACZ0D,OAAQ,MACRC,IAAK1C,EAASjB,MAGTqE,EAAW,SAAC9F,GACrB,OAAO,eAAS,CACZmF,OAAQ,OACRC,IAAKtC,EACLhB,KAAM9B,KAGD+F,EAAU,SAACtE,EAAYzB,GAChC,OAAO,eAAS,CACZmF,OAAQ,MACRC,IAAKrC,EAAQtB,GACbK,KAAM9B","file":"js/chunk-4b3186d1.4061e50a.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{},[_c('el-table',{ref:\"tbPoints\",attrs:{\"data\":_vm.dataList}},[_c('el-table-column',{attrs:{\"prop\":\"PointName\",\"label\":\"测点名\"}}),_c('el-table-column',{attrs:{\"prop\":\"PointNum\",\"label\":\"点号\",\"width\":\"80\"}}),_c('el-table-column',{attrs:{\"prop\":\"PointType\",\"label\":\"设备类型\",\"width\":\"80\"}}),_c('el-table-column',{attrs:{\"prop\":\"ValueTypeName\",\"label\":\"数据类型\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"ValueUnitName\",\"label\":\"数据单位\",\"width\":\"80\"}}),_c('el-table-column',{attrs:{\"prop\":\"ScopeValueHigh\",\"label\":\"最高值\",\"width\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"ScopeValueLow\",\"label\":\"最低值\",\"width\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"PointDeviateScope\",\"label\":\"点偏离范围\",\"width\":\"\"}}),_c('el-table-column',{attrs:{\"label\":\"\",\"width\":\"120\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('view-link',{attrs:{\"viewType\":\"DevicePoint\",\"viewId\":scope.row.Id,\"title\":\"查看明细\",\"type\":\"primary\"}},[_vm._v(\"查看\")])]}}]),inlineTemplate:{render:function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span')},staticRenderFns:[]}})],1),_c('device-point-view',{ref:\"pointCtrl\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('view-dialog',{attrs:{\"title\":\"数据点明细\",\"visible\":_vm.showDialog,\"close\":_vm.close}},[_c('el-form',{ref:\"formData\",attrs:{\"model\":_vm.form,\"label-width\":\"120px\"}},[_c('el-collapse',{model:{value:(_vm.expandNames),callback:function ($$v) {_vm.expandNames=$$v},expression:\"expandNames\"}},[_c('el-collapse-item',{attrs:{\"name\":\"info\"}},[_c('template',{slot:\"title\"},[_c('i',{staticClass:\"el-icon-collapse-plus-minus\"}),_vm._v(\" 数据点信息\\n \")]),_c('div',[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"测点名\",\"prop\":\"PointName\"}},[_vm._v(\"\\n \"+_vm._s(_vm.form.PointName)+\"\\n \")])],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"别名\",\"prop\":\"PointAliaseName\"}},[_vm._v(\"\\n \"+_vm._s(_vm.form.PointAliaseName)+\"\\n \")])],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"点号\",\"prop\":\"PointNum\"}},[_vm._v(\"\\n \"+_vm._s(_vm.form.PointNum)+\"\\n \")])],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"偏移量类型\",\"prop\":\"PointType\"}},[_vm._v(\"\\n \"+_vm._s(_vm.form.PointType)+\"\\n \")])],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"数据类型\",\"prop\":\"PointValueType\"}},[_vm._v(\"\\n \"+_vm._s(_vm.form.ValueTypeName)+\"\\n \")])],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"值范围高值\",\"prop\":\"ScopeValueHigh\"}},[_vm._v(\"\\n \"+_vm._s(_vm.form.ScopeValueHigh)+\"\\n \")])],1),_c('el-col',{attrs:{\"span\":11}},[_c('el-form-item',{attrs:{\"label\":\"值范围低值\",\"prop\":\"ScopeValueLow\"}},[_vm._v(\"\\n \"+_vm._s(_vm.form.ScopeValueLow)+\"\\n \")])],1)],1),_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":22}},[_c('el-form-item',{attrs:{\"label\":\"点偏离范围\",\"prop\":\"PointDeviateScope\"}},[_vm._v(\"\\n \"+_vm._s(_vm.form.PointDeviateScope)+\"\\n \")])],1)],1)],1)],2)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Watch, Prop } from 'vue-property-decorator'\r\nimport {\r\n UnitDevicePointData, emptyPoint, getPoint\r\n} from '@/api/heritageUnit/unitDevice'\r\nimport Element from 'element-ui'\r\nimport ViewDialog from '@/components/dialog/viewDialog.vue'\r\n\r\n@Component({\r\n components: {\r\n ViewDialog\r\n }\r\n})\r\nexport default class DevicePointView extends Vue {\r\n public name = 'DevicePointView'\r\n public expandNames = ['info']\r\n\r\n public showDialog: boolean = false\r\n public loading: boolean = false\r\n public form = Object.assign({}, emptyPoint)\r\n\r\n public $refs!: {\r\n formData: Element.Form\r\n }\r\n public created() { }\r\n public mounted() {\r\n window.eventBus.$on('viewDevicePoint', (id: number) => {\r\n this.showDialog = true\r\n this.fetchData(id)\r\n })\r\n }\r\n public beforeDestroy() {\r\n window.eventBus.$off('viewDevicePoint')\r\n }\r\n public close() {\r\n this.showDialog = false\r\n }\r\n public fetchData(id: number) {\r\n this.loading = true\r\n getPoint(id).then((response: { data: any }) => {\r\n this.form = response.data\r\n this.loading = false\r\n }).catch((error: any) => {\r\n console.log(error)\r\n })\r\n }\r\n}\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./view.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./view.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./view.vue?vue&type=template&id=20d8ca52&scoped=true&\"\nimport script from \"./view.vue?vue&type=script&lang=ts&\"\nexport * from \"./view.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"20d8ca52\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Prop } from 'vue-property-decorator'\r\nimport { UnitDevicePointData } from '@/api/heritageUnit/unitDevice'\r\nimport { newGuid } from '@/configs/functions'\r\nimport DevicePointView from './view.vue'\r\n//import ViewLink from '@/components/viewLink.vue'\r\n\r\n@Component({\r\n components: { DevicePointView }\r\n})\r\nexport default class DevicePointsView extends Vue {\r\n public name = 'DevicePointsView'\r\n @Prop({ default: null })\r\n public dataList: UnitDevicePointData[] = []\r\n\r\n}\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./list.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./list.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./list.vue?vue&type=template&id=70d908c8&scoped=true&\"\nimport script from \"./list.vue?vue&type=script&lang=ts&\"\nexport * from \"./list.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"70d908c8\",\n null\n \n)\n\nexport default component.exports","import { tryAxios } from '@/api/common/auth'\r\nimport { urlPrefix } from '@/configs/api'\r\nconst apiUrl = `${urlPrefix}/UnitDevice`\r\n//#region 基本信息\r\nconst GetList = `${apiUrl}`\r\nconst GetStatusList = `${apiUrl}/GetStatus`\r\nconst GetByUnit = (id: number) => `${apiUrl}/list/${id}`\r\nconst GetPoints = (id: number) => `${apiUrl}/points/${id}`\r\nconst GetPoint = (id: number) => `${apiUrl}/point/${id}`\r\nconst GetPointTypeList = `${apiUrl}/GetPointTypes`\r\nconst GetInfo = (id: number) => `${apiUrl}/${id}`\r\nconst ViewInfo = (id: number) => `${apiUrl}/view/${id}`\r\nconst PostData = `${apiUrl}`\r\nconst PutData = (id: number) => `${apiUrl}/${id}`\r\nconst Delete = (id: number) => `${apiUrl}/${id}`\r\n//#endregion\r\n\r\nexport const emptyData: UnitDeviceData = {\r\n Id: 0,\r\n UnitId: 0,\r\n DeviceCategoryId: 0,\r\n DeviceNumber: '',\r\n DeviceSerialId: '',\r\n DeviceBrand: 0,\r\n DeviceAliase: '',\r\n DeviceModuleDriver: 0,\r\n DeviceDescription: '',\r\n DevicePostionName: '',\r\n DeviceStatus: 0,\r\n DeviceIp: '',\r\n DevicePort: '',\r\n AccessUser: '',\r\n AccessPwd: '',\r\n NewUserId: 0,\r\n NewDate: new Date(),\r\n UpdateUserId: 0,\r\n UpdateDate: new Date(),\r\n\r\n UnitCode: '',\r\n UnitName: '',\r\n CategoryName: '',\r\n BrandName: '',\r\n DriverName: '',\r\n UserName: '',\r\n PointList: []\r\n}\r\nexport interface UnitDeviceData {\r\n [key: string]: any\r\n Id: number\r\n UnitId: number\r\n DeviceCategoryId: number\r\n DeviceNumber: string\r\n DeviceSerialId: string\r\n DeviceBrand: number\r\n DeviceAliase: string\r\n DeviceModuleDriver: number\r\n DeviceDescription: string\r\n DevicePostionName: string\r\n DeviceStatus: number\r\n DeviceIp: string\r\n DevicePort: string\r\n AccessUser: string\r\n AccessPwd: string\r\n NewUserId: number\r\n NewDate: Date\r\n UpdateUserId: number\r\n UpdateDate: Date\r\n\r\n UnitCode: string\r\n UnitName: string\r\n CategoryName: string\r\n BrandName: string\r\n DriverName: string\r\n UserName: string\r\n PointList: UnitDevicePointData[]\r\n}\r\n\r\nexport const emptyPoint: UnitDevicePointData = {\r\n Id: 0,\r\n DeviceId: 0,\r\n PointName: '',\r\n PointAliaseName: '',\r\n PointNum: 0,\r\n PointType: '',\r\n PointValueType: 0,\r\n PointValueUnit: 0,\r\n ScopeValueLow: 0,\r\n ScopeValueHigh: 0,\r\n PointDeviateScope: '',\r\n Status: 1,\r\n NewUserId: 0,\r\n NewDate: new Date(),\r\n UpdateUserId: 0,\r\n UpdateDate: new Date(),\r\n\r\n ValueTypeName: '',\r\n ValueUnitName: '',\r\n UserName: '',\r\n\r\n // AttachType: 0,\r\n // AttachGuid: ''\r\n}\r\nexport interface UnitDevicePointData {\r\n [key: string]: any\r\n Id: number\r\n DeviceId: number\r\n PointName: string\r\n PointAliaseName: string\r\n PointNum: number\r\n PointType: string\r\n PointValueType: number\r\n PointValueUnit: number\r\n ScopeValueLow: number\r\n ScopeValueHigh: number\r\n PointDeviateScope: string\r\n Status: number\r\n NewUserId: number\r\n NewDate: Date\r\n UpdateUserId: number\r\n UpdateDate: Date\r\n\r\n ValueTypeName: string\r\n ValueUnitName: string\r\n UserName: string\r\n\r\n // AttachType: number\r\n // AttachGuid: string\r\n}\r\nexport const removeData = (id: number) => {\r\n return tryAxios({\r\n method: 'delete',\r\n url: Delete(id)\r\n })\r\n}\r\nexport const getStatusList = (firstType: number) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: GetStatusList,\r\n params: { type: firstType }\r\n })\r\n}\r\nexport const getPointTypes = (firstType: number) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: GetPointTypeList,\r\n params: { type: firstType }\r\n })\r\n}\r\nexport const getList = (param: any) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: GetList,\r\n params: param\r\n })\r\n}\r\nexport const getByUnit = (unitId: number) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: GetByUnit(unitId),\r\n })\r\n}\r\nexport const getPoints = (unitDeviceId: number) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: GetPoints(unitDeviceId),\r\n })\r\n}\r\nexport const getInfo = (id: number) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: GetInfo(id),\r\n })\r\n}\r\nexport const viewInfo = (id: number) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: ViewInfo(id),\r\n })\r\n}\r\nexport const getPoint = (id: number) => {\r\n return tryAxios({\r\n method: 'get',\r\n url: GetPoint(id),\r\n })\r\n}\r\nexport const postData = (form: UnitDeviceData) => {\r\n return tryAxios({\r\n method: 'post',\r\n url: PostData,\r\n data: form\r\n })\r\n}\r\nexport const putData = (id: number, form: UnitDeviceData) => {\r\n return tryAxios({\r\n method: 'put',\r\n url: PutData(id),\r\n data: form\r\n })\r\n}\r\n"],"sourceRoot":""}