食品行业工业互联网标识服务平台-管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
2.0 MiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c3190988","chunk-9a1aa4e2","chunk-15f7f6b4","chunk-6694bb4f","chunk-2d230fe7"],{"02cc":function(A,B,C){"use strict";C.r(B);var D=function(){var A=this,B=A.$createElement,C=A._self._c||B;return C("el-dialog",{attrs:{"close-on-click-modal":!1,"close-on-press-escape":!0,title:A.title,type:A.type,visible:A.isVisible,width:A.width,top:"50px"},on:{"update:visible":function(B){A.isVisible=B}}},[C("el-form",{ref:"form",attrs:{model:A.systemApi,rules:A.rules,"label-position":"right","label-width":"100px"}},[C("el-form-item",{attrs:{label:A.$t("table.systemApi.serviceId"),prop:"serviceId"}},[C("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"view"===A.type,placeholder:"",value:""},model:{value:A.systemApi.serviceId,callback:function(B){A.$set(A.systemApi,"serviceId",B)},expression:"systemApi.serviceId"}},A._l(A.serviceList,(function(A){return C("el-option",{key:A.id,attrs:{label:A.name,value:A.id}})})),1)],1)],1),C("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[C("el-button",{attrs:{plain:"",type:"warning"},on:{click:function(B){A.isVisible=!1}}},[A._v(A._s(A.$t("common.cancel")))]),C("el-button",{attrs:{plain:"",type:"primary"},on:{click:A.submitForm}},[A._v(A._s(A.$t("common.confirm")))])],1)],1)},E=[],F=C("8389"),e={name:"SystemApiScan",components:{},props:{dialogVisible:{type:Boolean,default:!1},type:{type:String,default:"add"}},data:function(){return{screenWidth:0,width:this.initWidth(),rules:{},systemApi:{serviceId:"authority"},serviceList:[{id:"authority",name:"权限服务"},{id:"file",name:"文件服务"},{id:"msgs",name:"消息服务"},{id:"demo",name:"演示服务"},{id:"order",name:"订单服务"}]}},computed:{isVisible:{get:function(){return this.dialogVisible},set:function(){this.close(),this.reset()}},title:function(){return"扫描Rest接口"}},watch:{},mounted:function(){var A=this;window.onresize=function(){return function(){A.width=A.initWidth()}()}},methods:{initWidth:function(){return this.screenWidth=document.body.clientWidth,this.screenWidth<991?"90%":this.screenWidth<1400?"45%":"800px"},close:function(){this.$emit("close")},reset:function(){this.$refs.form.clearValidate(),this.$refs.form.resetFields(),this.serviceId="authority"},submitForm:function(){var A=this;Object(F["y"])(this.systemApi.serviceId).then((function(B){var C=B.data;C.isSuccess&&A.$message({message:"扫描成功,请稍后刷新数据",type:"success"})}))}}},G=e,H=(C("bf99"),C("2877")),t=Object(H["a"])(G,D,E,!1,null,"0582b86c",null);B["default"]=t.exports},"02fa":function(A,B,C){"use strict";C.r(B);var D=function(){var A=this,B=A.$createElement,C=A._self._c||B;return C("el-dialog",{attrs:{"close-on-click-modal":!1,"close-on-press-escape":!0,title:A.title,type:A.type,visible:A.isVisible,width:A.width,top:"50px"},on:{"update:visible":function(B){A.isVisible=B}}},[C("el-form",{ref:"form",attrs:{model:A.dictionaryItem,rules:A.rules,"label-position":"right","label-width":"100px"}},[C("el-form-item",{attrs:{hidden:!0,label:A.$t("table.dictionaryItem.dictionaryId"),prop:"dictionaryId"}},[C("el-input",{attrs:{disabled:"edit"===A.type},model:{value:A.dictionaryItem.dictionaryId,callback:function(B){A.$set(A.dictionaryItem,"dictionaryId",B)},expression:"dictionaryItem.dictionaryId"}})],1),C("el-form-item",{attrs:{label:A.$t("table.dictionaryItem.code"),prop:"code"}},[C("el-input",{attrs:{disabled:"edit"===A.type},model:{value:A.dictionaryItem.code,callback:function(B){A.$set(A.dictionaryItem,"code",B)},expression:"dictionaryItem.code"}})],1),C("el-form-item",{attrs:{label:A.$t("table.dictionaryItem.name"),prop:"name"}},[C("el-input",{model:{value:A.dictionaryItem.name,callback:function(B){A.$set(A.dictionaryItem,"name",B)},expression:"dictionaryItem.name"}})],1),C("el-form-item",{attrs:{label:A.$t("table.dictionaryItem.status"),prop:"status"}},[C("el-radio-group",{model:{value:A.dictionaryItem.status,callback:function(B){A.$set(A.dictionaryItem,"status",B)},expression:"dictionaryItem.status"}},[C("el-radio",{attrs:{label:!0}},[A._v(A._s(A.$t("common.st