Portal/potal_admin/up-portal-admin-1.0.1/js/chunk-2632f318.9e225670.js

1 line
12 KiB
JavaScript
Raw Permalink Normal View History

2025-03-10 17:41:02 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2632f318","chunk-2d0d38ce","chunk-2d0b3e1d"],{"29ee":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.visible,title:e.$t("process.deployFile"),"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.visible=t}}},[a("el-upload",{staticClass:"text-center",attrs:{name:"processFile",action:e.url,"file-list":e.fileList,drag:"","before-upload":e.beforeUploadHandle,"on-success":e.successHandle}},[a("i",{staticClass:"el-icon-upload"}),a("div",{staticClass:"el-upload__text",domProps:{innerHTML:e._s(e.$t("upload.text"))}}),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s(e.$t("upload.tip",{format:"zip、xml、bar、bpmn"})))])])],1)},o=[],s=(a("7f7f"),a("a78e")),r=a.n(s),i={data:function(){return{visible:!1,url:"",fileList:[]}},methods:{init:function(){this.visible=!0,this.url="".concat(window.SITE_CONFIG["apiURL"],"/activiti/process/deploy?access_token=").concat(r.a.get("access_token")),this.fileList=[]},beforeUploadHandle:function(e){if(!/.+\.zip$/.test(e.name)&&!/.+\.xml$/.test(e.name)&&!/.+\.bar$/.test(e.name)&&!/.+\.bpmn$/.test(e.name))return this.$message.error(this.$t("upload.tip",{format:"zip、xml、bar、bpmn"})),!1},successHandle:function(e,t,a){var n=this;if(0!==e.code)return this.$message.error(e.msg);this.$message({message:this.$t("prompt.success"),type:"success",duration:500,onClose:function(){n.visible=!1,n.$emit("refreshDataList")}})}}},c=i,l=a("2877"),u=Object(l["a"])(c,n,o,!1,null,null,null);t["default"]=u.exports},"3d77":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[a("div",{staticClass:"mod-activiti__process"},[a("el-form",{attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getDataList()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:e.$t("process.name"),clearable:""},model:{value:e.dataForm.processName,callback:function(t){e.$set(e.dataForm,"processName",t)},expression:"dataForm.processName"}})],1),a("el-form-item",[a("el-input",{attrs:{placeholder:e.$t("process.key"),clearable:""},model:{value:e.dataForm.key,callback:function(t){e.$set(e.dataForm,"key",t)},expression:"dataForm.key"}})],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.getDataList()}}},[e._v(e._s(e.$t("query")))])],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.deployHandle()}}},[e._v(e._s(e.$t("process.deployFile")))])],1),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.deleteHandle()}}},[e._v(e._s(e.$t("deleteBatch")))])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""},on:{"selection-change":e.dataListSelectionChangeHandle,"sort-change":e.dataListSortChangeHandle}},[a("el-table-column",{attrs:{type:"selection","header-align":"center",align:"center",width:"50"}}),a("el-table-column",{attrs:{prop:"id",label:e.$t("process.id"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"deploymentId",label:e.$t("process.deploymentId"),"header-align":"center",align:"center",width:"80"}}),a("el-table-column",{attrs:{prop:"name",label:e.$t("process.name"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"key",label:e.$t("process.key"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"version",label:e.$t("process.version"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"resourceName",label:e.$t("process.resourceName"),"header-align":"center",align:"center","show-overflow-tooltip":!0,width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{attrs:{href:e.getResourceURL(t.