FastBee/docker/data/nginx/vue/static/js/chunk-9c90ac72.7589846f.js

1 line
38 KiB
JavaScript
Raw Normal View History

2025-07-07 09:21:15 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9c90ac72","chunk-a990e6d8","chunk-06d82310"],{"01ca":function(t,e,o){"use strict";o.d(e,"h",(function(){return a})),o.d(e,"d",(function(){return s})),o.d(e,"i",(function(){return l})),o.d(e,"a",(function(){return r})),o.d(e,"g",(function(){return n})),o.d(e,"k",(function(){return d})),o.d(e,"c",(function(){return u})),o.d(e,"b",(function(){return c})),o.d(e,"f",(function(){return p})),o.d(e,"e",(function(){return m})),o.d(e,"j",(function(){return f}));var i=o("b775");function a(t){return Object(i["a"])({url:"/iot/model/list",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/iot/model/"+t,method:"get"})}function l(t){return Object(i["a"])({url:"/iot/model/permList/"+t,method:"get"})}function r(t){return Object(i["a"])({url:"/iot/model",method:"post",data:t})}function n(t){return Object(i["a"])({url:"/iot/model/import",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/iot/model",method:"put",data:t})}function u(t){return Object(i["a"])({url:"/iot/model/"+t,method:"delete"})}function c(t){return Object(i["a"])({url:"/iot/model/cache/"+t,method:"get"})}function p(t){return Object(i["a"])({url:"/iot/model/listModbus",method:"get",params:t})}function m(t){return Object(i["a"])({url:"/iot/model/write",method:"get",params:t})}function f(t){return Object(i["a"])({url:"/iot/model/refresh?productId="+t,method:"post"})}},"41d7":function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{title:t.upload.title,visible:t.upload.importDeviceDialog,width:"500px","append-to-body":""},on:{"update:visible":function(e){return t.$set(t.upload,"importDeviceDialog",e)}}},[o("el-form",{ref:"importForm",attrs:{"label-position":"top",model:t.importForm,rules:t.importRules}},[o("el-form-item",{attrs:{label:t.$t("uploadFile"),prop:"fileList"}},[o("el-upload",{ref:"upload",attrs:{limit:1,accept:".xlsx, .xls",headers:t.upload.headers,action:t.upload.url+"?productId="+t.productId+"&type="+("isSelectData"==t.justiceSelect?2:1),disabled:t.upload.isUploading,"on-progress":t.handleFileUploadProgress,"on-error":t.handleError,"on-success":t.handleFileSuccess,"auto-upload":!1,"on-change":t.handleChange,"on-remove":t.handleRemove,drag:""},model:{value:t.importForm.fileList,callback:function(e){t.$set(t.importForm,"fileList",e)},expression:"importForm.fileList"}},[o("i",{staticClass:"el-icon-upload"}),o("div",{staticClass:"el-upload__text"},[t._v(" "+t._s(t.$t("dragFileTips"))+" "),o("em",[t._v(t._s(t.$t("clickFileTips")))])]),o("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[o("div",{staticStyle:{"margin-top":"10px"}},[o("span",[t._v(t._s(t.$t("device.batch-import-dialog.850870-5")))])])])]),o("el-link",{staticStyle:{"font-size":"14px","vertical-align":"baseline"},attrs:{type:"primary",underline:!1},on:{click:t.importTemplate}},[o("i",{staticClass:"el-icon-download"}),t._v(" "+t._s(t.$t("device.batch-import-dialog.850870-6"))+" ")])],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:t.submitFileForm}},[t._v(t._s(t.$t("confirm")))]),o("el-button",{on:{click:function(e){t.upload.importDeviceDialog=!1}}},[t._v(t._s(t.$t("cancel")))])],1)],1)},a=[],s=(o("99af"),o("a9e3"),o("5f87")),l=o("7aa2"),r={name:"batchImport",props:{productId:{type:Number,default:0},justiceSelect:{type:String,default:"isSelectData"}},data:function(){return{type:1,importForm:{productId:null,fileList:[]},file:null,configList:[],upload:{importDeviceDialog:!1,title:this.$t("batchImport"),isUploading:!1,headers:{Authorization:"Bearer "+Object(s["a"])()},url:"/prod-api/modbus/config/importModbus"},importRules:{fileList:[{required:!0,message:this.$t("plzUploadFile"),trigger:"change"}]},loading:!1}},methods:{importTemplate:function(){var t="isSelectData"==this.justiceSelect?2:1,e="isSelectData"==this.justiceSelect?this.$t("product.components.batchImpor