6077.19c5845b.js 5.6 KB

1
  1. "use strict";(self["webpackChunkworkark"]=self["webpackChunkworkark"]||[]).push([[6077],{6077:function(t,e,r){r.r(e),r.d(e,{default:function(){return p}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"hui-flex hui-content border-box"},[t._m(0),e("div",{staticClass:"hui-flex-box hui-flex hui-table"},[e("div",{staticClass:"hui-content-insert"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.insertDepartment({})}}},[t._v(" 新增服务 ")])],1),e("div",{staticClass:"hui-flex-box"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.treeData,"row-key":"id",height:"100%"}},[e("el-table-column",{attrs:{label:"",width:"45"}}),e("el-table-column",{attrs:{label:"服务名称",prop:"name"}}),e("el-table-column",{attrs:{label:"服务标识",prop:"sign"}}),e("el-table-column",{attrs:{label:"服务描述",prop:"remark"}}),e("el-table-column",{attrs:{label:"操作",width:"240"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("div",{staticClass:"hui-table-operation"},[e("span",{staticClass:"table-operation",on:{click:function(e){return t.insertDepartment(r.row)}}},[t._v(" 添加 ")]),e("span",{staticClass:"table-operation",on:{click:function(e){return t.updateDepartment(r.row)}}},[t._v(" 编辑 ")]),e("span",{staticClass:"table-operation",on:{click:function(e){return t.deleteDepartment(r.row)}}},[t._v(" 删除 ")]),0===r.row.children.length?e("span",{staticClass:"table-operation",on:{click:function(e){return t.process(r.row)}}},[t._v(" 过程 ")]):t._e()])]}}])}),e("template",{slot:"empty"},[e("el-empty",{attrs:{description:"暂无数据"}})],1)],2)],1),e("el-dialog",{attrs:{"close-on-click-modal":!1,title:"form"===t.type?t.isUpdate?"编辑":"新增":"过程设置",visible:t.visible,width:"900px","append-to-body":!0},on:{"update:visible":function(e){t.visible=e}}},[t.visible&&"form"===t.type?e("depart-form",{attrs:{isUpdate:t.isUpdate,part:t.part},on:{callback:t.callback}}):t._e(),t.visible&&"process"===t.type?e("process-set",{attrs:{part:t.part,type:"model",operationType:"edit"}}):t._e()],1)],1)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"hui-content-title"},[e("div",{staticClass:"hui-title-item active"},[t._v("服务设置")])])}],o=r(33443);const a=()=>r.e(9874).then(r.bind(r,39874)),u=()=>Promise.all([r.e(3214),r.e(5619)]).then(r.bind(r,78e3));var l={data(){return{treeData:[],visible:!1,isUpdate:!1,part:{},drawer:!1,nowLevel:{},loading:!1,type:""}},mounted(){this.init()},components:{departForm:a,processSet:u},methods:{init(){this.loading=!0,(0,o.Un)().then((t=>{t.state&&(this.treeData=t.data),this.loading=!1}))},currentChange(t){this.currPage=t,this.init()},process(t){this.part=t,this.type="process",this.visible=!0},insertDepartment(t){this.type="form",this.part=t,this.visible=!0,this.isUpdate=!1},updateDepartment(t){this.type="form",this.part=t,this.isUpdate=!0,this.visible=!0},deleteDepartment(t){this.$confirm("确定要删除该节点?",(()=>{(0,o.dx)(t.id).then((t=>{t.state&&(this.$message.success("操作成功"),this.init())}))}))},callback(t){this.visible=!1,"init"===t&&this.init()}}},s=l,c=r(81656),d=(0,c.A)(s,n,i,!1,null,null,null),p=d.exports},33443:function(t,e,r){r.d(e,{Aj:function(){return o},Bc:function(){return A},Bd:function(){return _},Ek:function(){return s},KC:function(){return b},L5:function(){return C},Mx:function(){return m},PE:function(){return l},Un:function(){return c},Vj:function(){return g},c$:function(){return h},d0:function(){return k},dx:function(){return f},jF:function(){return p},k$:function(){return P},kJ:function(){return w},lH:function(){return u},nN:function(){return d},pR:function(){return x},t6:function(){return y},wD:function(){return $},xb:function(){return a},zS:function(){return v}});var n=r(98150),i=r(7114);function o(){return(0,n.A)({url:"/manager/resource/list",method:"get"})}function a(t){return(0,n.A)({url:"/manager/resource",method:"post",data:t})}function u(t){return(0,n.A)({url:"/manager/resource/update",method:"put",data:t})}function l(t){return window.location.href=i.A.baseURL+"/file/filenode/"+t}function s(t){return(0,n.A)({url:"/manager/base/organization/list",method:"post",data:t})}function c(){return(0,n.A)({url:"/api/workarkProductLevel/list",method:"get"})}function d(t){return(0,n.A)({url:"/api/workarkProductLevel",method:"post",data:t})}function p(t){return(0,n.A)({url:"/api/workarkProductLevel",method:"put",data:t})}function f(t){return(0,n.A)({url:`/api/workarkProductLevel/${t}`,method:"delete"})}function h(t){return(0,n.A)({url:`/api/workarkProductLevel/get/${t}`,method:"get"})}function m(t){return(0,n.A)({url:`/api/workarkProductLevel/getSign/${t}`,method:"get"})}function k(t){return(0,n.A)({url:`/api/workarkProductLevel/getParentId/${t}`,method:"get"})}function b(t){return(0,n.A)({url:`/api/workarkProceModel/list/${t}`,method:"get"})}function v(t){return(0,n.A)({url:"/api/workarkProceModel",method:"post",data:t})}function w(t){return(0,n.A)({url:`/api/workarkProceModel/get/${t}`,method:"get"})}function g(t){return(0,n.A)({url:"/api/workarkProceModel",method:"put",data:t})}function A(t){return(0,n.A)({url:`/api/workarkProceModel/${t}`,method:"delete"})}function P(t){return(0,n.A)({url:`/api/workarkProce/list/${t}`,method:"get"})}function y(t){return(0,n.A)({url:"/api/workarkProce",method:"post",data:t})}function $(t){return(0,n.A)({url:`/api/workarkProce/get/${t}`,method:"get"})}function C(t){return(0,n.A)({url:"/api/workarkProce",method:"put",data:t})}function _(t){return(0,n.A)({url:`/api/workarkProce/${t}`,method:"delete"})}function x(t,e){return(0,n.A)({url:`/api/workarkProce/updateStatus/${t}/${e}`,method:"get"})}}}]);