{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\modle\\AttrbuteDefinition.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\modle\\AttrbuteDefinition.vue","mtime":1681286181788},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.array.sort\";\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//\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//\nimport PhysicalModel from '@/api/device/PhysicalModel.js';\nimport attributeDialog from '@/views/Device/deviceManage/components/modle/attributeDialog';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'AttrbuteDefinition',\n props: {\n parameterData: {\n type: Object,\n default: function _default() {\n return;\n }\n }\n },\n components: {\n attributeDialog: attributeDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n url: {\n delete: '/device/metadata/properties/'\n },\n pId: '',\n activeName: 'first',\n AttributeTableData: [],\n parameterID: {},\n dataTypes: [],\n dataUnits: [],\n sortList: {}\n };\n },\n created: function created() {\n this.parameterID = this.parameterData; // 数据单位\n\n this.dataUnits = dictUtils.getDictItemsFromCache('sjdw'); // 属性类型\n\n this.dataTypes = dictUtils.getDictItemsFromCache('sxlx');\n },\n methods: {\n // 新增\n AddAttribute: function AddAttribute() {\n this.$refs.attributemodel.addShow();\n },\n // 修改\n handleUpdate: function handleUpdate(row) {\n // console.log(row.id)\n this.$refs.attributemodel.Update(row);\n },\n loadData: function loadData(page) {\n var _this = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.queryParam.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'productId',\n relation: 'AND',\n value: this.parameterData.id\n }];\n this.queryParam.sorter = [{\n direction: 'ASC',\n property: 'sn'\n }];\n this.AttributeTableData = [];\n PhysicalModel.attributeList(this.queryParam, function (res) {\n // console.log(res, 'res')\n _this.total = res.total;\n res.rows.sort(function (a, b) {\n return a.sn - b.sn;\n });\n _this.AttributeTableData = res.rows;\n\n _this.AttributeTableData.forEach(function (e) {\n _this.dataTypes.forEach(function (t) {\n if (t.value == e.dataType) {\n e.typeName = t.name;\n }\n });\n\n if (!!e.dataUnit) {\n _this.dataUnits.forEach(function (x) {\n if (x.value == e.dataUnit) {\n e.dataUnitNane = x.name;\n }\n });\n }\n });\n\n _this.$set(_this.AttributeTableData);\n });\n },\n savePropertyf: function savePropertyf() {\n var _this2 = this;\n\n PhysicalModel.saveAttributeProperty(this.sortList, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: res.message,\n duration: 2000\n });\n\n _this2.loadData();\n } else {\n _this2.$message.warning(res.message);\n }\n });\n },\n insort: function insort(val) {\n var id = val.id;\n var value = val.sn;\n this.sortList[id] = value;\n }\n }\n};",null]}