Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/babel-loader/91f5d045440d8b94d9af9249d568b15b.json
2024-12-05 09:33:18 +08:00

1 line
8.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\device\\opc\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\device\\opc\\index.vue","mtime":1732871026604},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireWildcard = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireWildcard.js\");\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _defineProperty2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/defineProperty.js\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/objectSpread2.js\"));\nvar _opc = _interopRequireDefault(require(\"@/api/acs/device/opc\"));\nvar _crud = _interopRequireWildcard(require(\"@crud/crud\"));\nvar _CRUD = _interopRequireDefault(require(\"@crud/CRUD.operation\"));\nvar _Pagination = _interopRequireDefault(require(\"@crud/Pagination\"));\nvar _RR = _interopRequireDefault(require(\"@crud/RR.operation\"));\nvar _i18n = _interopRequireDefault(require(\"@/i18n\"));\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//\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\nvar defaultForm = {\n type: null,\n opc_id: null,\n opc_code: null,\n opc_name: null,\n opc_host: null,\n user: null,\n password: null,\n prog_id: null,\n cls_id: null,\n domain: null,\n remark: null,\n is_active: null,\n is_delete: null,\n create_by: null,\n create_time: null,\n update_by: null,\n update_time: null,\n plc_code: null,\n plc_name: null,\n plc_host: null,\n opc_server_id: null,\n plc_opc_name: null\n};\nvar _default = exports.default = {\n name: 'Opc',\n components: {\n pagination: _Pagination.default,\n crudOperation: _CRUD.default,\n rrOperation: _RR.default\n },\n mixins: [(0, _crud.presenter)(), (0, _crud.header)(), (0, _crud.form)(defaultForm), (0, _crud.crud)()],\n cruds: function cruds() {\n return (0, _crud.default)({\n title: _i18n.default.t('opc.title'),\n url: 'api/opc',\n idField: 'opc_id',\n sort: 'opc_id,desc',\n crudMethod: (0, _objectSpread2.default)({}, _opc.default),\n optShow: {\n add: true,\n edit: false,\n del: false,\n download: false\n }\n });\n },\n data: function data() {\n return {\n dialogPlcFormVisible: false,\n operateFlag: null,\n permission: {\n add: ['admin', 'opc:add'],\n edit: ['admin', 'opc:edit'],\n del: ['admin', 'opc:del']\n },\n rules: {\n opc_id: [{\n required: true,\n message: 'OPC标识不能为空',\n trigger: 'blur'\n }],\n opc_code: [{\n required: true,\n message: 'OPC编码不能为空',\n trigger: 'blur'\n }],\n opc_name: [{\n required: true,\n message: 'OPC名称不能为空',\n trigger: 'blur'\n }],\n password: [{\n required: true,\n message: '密码不能为空',\n trigger: 'blur'\n }],\n is_active: [{\n required: true,\n message: '是否启用不能为空',\n trigger: 'blur'\n }],\n is_delete: [{\n required: true,\n message: '是否删除不能为空',\n trigger: 'blur'\n }],\n create_by: [{\n required: true,\n message: '创建者不能为空',\n trigger: 'blur'\n }],\n create_time: [{\n required: true,\n message: '创建时间不能为空',\n trigger: 'blur'\n }]\n }\n };\n },\n methods: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _crud.default.HOOK.beforeRefresh, function () {\n return true;\n }), \"handleClick\", function handleClick(row, flag) {\n var _this2 = this;\n // flag为0是新增flag为1是编辑flag为2是删除\n // 如果是父类操作\n if (row.opc_flag === '1') {\n if (flag === '1') {\n this.crud.toEdit(row);\n }\n if (flag === '2') {\n this.crud.doDelete(row);\n }\n if (flag === '0') {\n this.dialogPlcFormVisible = true;\n this.form.opc_server_id = row.opc_id;\n this.form.plc_opc_name = row.opc_name;\n this.operateFlag = '0';\n }\n } else {\n if (flag === '1') {\n var jo = JSON.parse(JSON.stringify(row));\n var new_jo = {\n plc_id: jo.opc_id,\n plc_code: jo.opc_code,\n plc_name: jo.opc_name,\n plc_host: jo.opc_host,\n opc_server_id: jo.opc_server_id,\n is_active: jo.is_active,\n is_delete: jo.is_delete,\n create_by: jo.create_by,\n create_time: jo.create_time,\n update_by: jo.update_time,\n update_time: jo.update_time,\n plc_opc_name: jo.plc_opc_name\n };\n this.crud.resetForm(JSON.parse(JSON.stringify(new_jo)));\n this.dialogPlcFormVisible = true;\n this.operateFlag = '1';\n }\n if (flag === '2') {\n _opc.default.delPLC(row).then(function (res) {\n _this2.crud.resetForm();\n _this2.crud.toQuery();\n _this2.crud.notify(status + '成功', _crud.default.NOTIFICATION_TYPE.SUCCESS);\n }).catch(function (err) {\n console.log(err.response.data.message);\n });\n }\n }\n }), \"getDetail\", function getDetail() {\n var _this = this;\n this.crud.crudMethod.getmeteal(this.form).then(function (response) {\n _this.form.cls_id = response.classId;\n _this.form.prog_id = response.progId;\n _this.form.remark = response.description;\n _this.crud.notify('操作成功', _crud.default.NOTIFICATION_TYPE.SUCCESS);\n }).catch(function (err) {\n console.log(err.response.data.message);\n });\n }), \"addPlc\", function addPlc() {\n var _this3 = this;\n if (this.operateFlag === '0') {\n _opc.default.addPLC(this.form).then(function (res) {\n _this3.crud.resetForm();\n _this3.dialogPlcFormVisible = false;\n _this3.crud.toQuery();\n _this3.crud.notify(status + '成功', _crud.default.NOTIFICATION_TYPE.SUCCESS);\n }).catch(function (err) {\n console.log(err.response.data.message);\n });\n }\n if (this.operateFlag === '1') {\n _opc.default.editPLC(this.form).then(function (res) {\n _this3.crud.resetForm();\n _this3.dialogPlcFormVisible = false;\n _this3.crud.toQuery();\n _this3.crud.notify(status + '成功', _crud.default.NOTIFICATION_TYPE.SUCCESS);\n }).catch(function (err) {\n console.log(err.response.data.message);\n });\n }\n })\n};",null]}