{"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\\EquipFunctionDefinition.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\modle\\EquipFunctionDefinition.vue","mtime":1681208408527},{"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\";\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 EquipFunctionDialog from '@/views/Device/deviceManage/components/modle/EquipFunctionDialog.vue';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'FunctionDefinition',\n props: {\n parameter: {\n type: Object,\n default: false\n }\n },\n components: {\n EquipFunctionDialog: EquipFunctionDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n url: {\n delete: '/device/metadata/functions/'\n },\n pId: '',\n activeName: 'second',\n FunctionTableData: [],\n parameterID: {},\n dataTypes: [],\n dataUnits: [],\n sortList: {}\n };\n },\n created: function created() {\n this.parameterID = this.parameter; // 数据单位\n\n this.dataUnits = dictUtils.getDictItemsFromCache('sjdw'); // 属性类型\n\n this.dataTypes = dictUtils.getDictItemsFromCache('sxlx');\n },\n methods: {\n // 修改\n handleUpdate: function handleUpdate(row) {\n // console.log(row.id)\n this.$refs.Functionmodel.Update(row);\n },\n // ID查询详情\n getFunctionDetails: function getFunctionDetails(id) {\n var _this = this;\n\n PhysicalModel.FunctionDetails(id, function (res) {\n _this.FunctionDetails = res;\n console.log(res);\n });\n },\n // 获取列表数据\n loadData: function loadData(page) {\n var _this2 = 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.parameter.productId\n }];\n this.queryParam.sorter = [{\n direction: 'ASC',\n property: 'sn'\n }];\n this.FunctionTableData = [];\n PhysicalModel.FunctionList(this.queryParam, function (res) {\n // console.log(res, 'res')\n _this2.total = res.total;\n _this2.FunctionTableData = res.rows;\n console.log(_this2.FunctionTableData); // 字典对比\n\n _this2.FunctionTableData.forEach(function (e) {\n _this2.dataTypes.forEach(function (t) {\n if (t.value == e.outDataType) {\n e.typeName = t.name;\n }\n });\n\n _this2.dataUnits.forEach(function (x) {\n if (x.value == e.outDataUnit) {\n e.dataUnitNane = x.name;\n }\n });\n });\n\n _this2.$set(_this2.FunctionTableData);\n });\n },\n savePropertyf: function savePropertyf() {\n var _this3 = this;\n\n PhysicalModel.saveFunctionProperty(this.sortList, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: res.message,\n duration: 2000\n });\n\n _this3.loadData();\n } else {\n _this3.$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]}