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 lines
20 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20176c4f"],{"420f":function(t,e,a){},5196:function(t,e,a){"use strict";a("420f")},7513:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.viewState,expression:"viewState == 1"}]},[a("div",{staticClass:"tab-header"},[a("el-form",{ref:"form",attrs:{inline:!0,model:t.form,"label-width":"80px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"分类名称"}},[a("el-input",{attrs:{clearable:""},model:{value:t.page.params.dictTypeName,callback:function(e){t.$set(t.page.params,"dictTypeName",e)},expression:"page.params.dictTypeName"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"说明"}},[a("el-input",{attrs:{clearable:""},model:{value:t.page.params.remarks,callback:function(e){t.$set(t.page.params,"remarks",e)},expression:"page.params.remarks"}})],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSearch()}}},[t._v("查询")]),a("el-button",{on:{click:function(e){return t.add()}}},[t._v("添加")])],1)],1)],1)],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{label:"序号",width:"50px",type:"index",align:"center"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.guanli(e.row)}}},[t._v(" 管理 ")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.editRow(e.row)}}},[t._v(" 修改 ")]),a("el-button",{attrs:{type:"danger",size:"mini"},nativeOn:{click:function(a){return a.preventDefault(),t.deleteRow(e.row)}}},[t._v(" 删除 ")])]}}])}),a("el-table-column",{attrs:{prop:"dictTypeCode",label:"字典分类编码",align:"center"}}),a("el-table-column",{attrs:{prop:"dictTypeName",label:"字典分类名称",align:"center"}}),a("el-table-column",{attrs:{prop:"remarks",label:"说明",align:"center"}})],1),a("pagination",{attrs:{total:t.page.total,page:t.page.current,limit:t.page.size},on:{"update:page":function(e){return t.$set(t.page,"current",e)},"update:limit":function(e){return t.$set(t.page,"size",e)},pagination:t.pagination}}),a("el-dialog",{attrs:{title:t.dialogTitle+"字典分类",visible:t.editDialog,width:"50%"},on:{"update:visible":function(e){t.editDialog=e}}},[a("el-form",[a("table",{staticClass:"e-table",attrs:{cellspacing:"0"}},[a("tr",[a("td",[t._v("数据字典code")]),a("td",[a("el-input",{model:{value:t.form.dictTypeCode,callback:function(e){t.$set(t.form,"dictTypeCode",e)},expression:"form.dictTypeCode"}})],1)]),a("tr",[a("td",[t._v("数据分类名称")]),a("td",[a("el-input",{model:{value:t.form.dictTypeName,callback:function(e){t.$set(t.form,"dictTypeName",e)},expression:"form.dictTypeName"}})],1)]),a("tr",[a("td",[t._v("说明")]),a("td",[a("el-input",{attrs:{type:"textarea"},model:{value:t.form.remarks,callback:function(e){t.$set(t.form,"remarks",e)},expression:"form.remarks"}})],1)])])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.save()}}},[t._v("保 存")]),a("el-button",{on:{click:function(e){t.editDialog=!1}}},[t._v("关 闭")])],1)],1)],1),a("dict-common",{directives:[{name:"show",rawName:"v-show",value:2==t.viewState,expression:"viewState == 2"}],attrs:{dictData:t.dictData},on:{doback:t.resetState}})],1)},n=[],o=a("b775"),s=a("4328"),r=a.n(s),l=window.sessionStorage.getItem("token");function c(t){return Object(o["a"])({url:"/portal/v1/dicttypes/pageList",method:"POST",data:t,headers:{"Content-Type":"application/json",token:l}})}function u(t){return Object(o["a"])({url:"/portal/v1/dicttypes/update/"+t.sid,method:"POST",data:r.a.stringify(t)})}function d(t){return Object(o["a"])({url:"/portal/v1/dicttypes/save",method:"POST",data:t,headers:{"Content-Type":"application/json",token:l}})}function p(t){return Object(o["a"])({url:"/portal/v1/sysmapping/saveMappingList",method:"POST",data:t,headers:{"Content-Type":"application/json",token:l}})}function m(t){return Object(o["a"])({url:"/portal/v1/sysmapping/selectMappingListInfo",method:"post",data:t,headers:{"Content-Type":"application/json",token:l}})}function f(t){return Object(o["a"])({url:"/portal/v1/dicttypes/delete/"+t.sid,method:"DELETE",data:t,headers:{"Content-Type":"application/json",token:l}})}var g=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.viewState,expression:"viewState == 1"}]},[a("div",{staticClass:"tab-header"},[a("el-form",{ref:"form",attrs:{inline:!0,model:t.form,"label-width":"80px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:14}},[a("el-form-item",{attrs:{label:"数据value"}},[a("el-input",{attrs:{clearable:""},model:{value:t.page.params.dictValue,callback:function(e){t.$set(t.page.params,"dictValue",e)},expression:"page.params.dictValue"}})],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSearch()}}},[t._v("查 询")]),a("el-button",{on:{click:function(e){return t.add()}}},[t._v("添 加")]),a("el-button",{on:{click:t.closeDict}},[t._v("返 回")])],1)],1)],1)],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{label:"序号",width:"50px",type:"index",align:"center"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"280px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.editRow(e.row)}}},[t._v(" 修改 ")]),a("el-button",{attrs:{type:"danger",size:"mini"},nativeOn:{click:function(a){return a.preventDefault(),t.deleteRow(e.row)}}},[t._v(" 删除 ")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.handleMap(e.row)}}},[t._v(" 映射 ")])]}}])}),a("el-table-column",{attrs:{prop:"dictType",label:"字典分类编码",align:"center"}}),a("el-table-column",{attrs:{prop:"groupName",label:"数据分组",align:"center"}}),a("el-table-column",{attrs:{prop:"dictKey",label:"数据key",align:"center"}}),a("el-table-column",{attrs:{prop:"dictValue",label:"数据value",align:"center"}})],1),a("pagination",{attrs:{total:t.page.total,page:t.page.current,limit:t.page.size},on:{"update:page":function(e){return t.$set(t.page,"current",e)},"update:limit":function(e){return t.$set(t.page,"size",e)},pagination:t.pagination}}),a("el-dialog",{attrs:{title:t.dialogTitle+"字典数据",visible:t.editDialog,width:"50%"},on:{"update:visible":function(e){t.editDialog=e}}},[a("table",{staticClass:"e-table",attrs:{cellspacing:"0"}},[a("tr",[a("td",[t._v("字典分类编码")]),a("td",[t._v(" "+t._s(t.form.dictType)+" ")])]),a("tr",[a("td",[t._v("数据分组")]),a("td",[a("el-input",{model:{value:t.form.groupName,callback:function(e){t.$set(t.form,"groupName",e)},expression:"form.groupName"}})],1)]),a("tr",[a("td",[t._v("数据key")]),a("td",[a("el-input",{model:{value:t.form.dictKey,callback:function(e){t.$set(t.form,"dictKey",e)},expression:"form.dictKey"}})],1)]),a("tr",[a("td",[t._v("数据value")]),a("td",[a("el-input",{model:{value:t.form.dictValue,callback:function(e){t.$set(t.form,"dictValue",e)},expression:"form.dictValue"}})],1)])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.save()}}},[t._v("保 存")]),a("el-button",{on:{click:function(e){t.editDialog=!1}}},[t._v("关 闭")])],1)])],1),a("dictMap",{directives:[{name:"show",rawName:"v-show",value:2==t.viewState,expression:"viewState == 2"}],ref:"divAdd",on:{doback:t.resetState}})],1)},h=[],b=window.sessionStorage.getItem("token");function y(t){return Object(o["a"])({url:"/portal/v1/dictcommons/pageList",method:"post",data:t,headers:{"Content-Type":"application/json"}})}function v(t){return Object(o["a"])({url:"/portal/v1/dictcommons/save",method:"POST",data:t,headers:{"Content-Type":"application/json",token:b}})}function w(t){return Object(o["a"])({url:"/portal/v1/dictcommons/update/"+t.sid,method:"POST",data:t,headers:{"Content-Type":"application/json",token:b}})}function k(t){return Object(o["a"])({url:"/portal/v1/dictcommons/delete/"+t.sid,method:"DELETE",data:t,headers:{"Content-Type":"application/json",token:b}})}var S=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-app-container"},[a("div",{staticClass:"tab-header webtop"},[a("div",[t._v(t._s(t.viewTitle))]),a("div",[a("el-button",{attrs:{type:"primary",size:"small",disabled:t.submitdisabled},on:{click:function(e){return t.save()}}},[t._v("保存 ")]),a("el-button",{attrs:{type:"info",size:"small"},on:{click:function(e){return t.handleReturn()}}},[t._v("关闭")])],1)]),a("div",{staticClass:"listconadd"},[a("el-form",{ref:"form_obj",staticClass:"formadd",attrs:{model:t.formobj}},[a("div",{staticClass:"title"},[a("div",[t._v("["+t._s(t.dictionariesKey)+"+"+t._s(t.dictionariesValue)+"]映射列表")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.Add}},[t._v("添加")])],1),a("el-table",{key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.formobj.listDtos,index:t.index,border:""}},[a("el-table-column",{attrs:{fixed:"",width:"80px",label:"序号",type:"index",index:t.index+1,align:"center"}}),a("el-table-column",{attrs:{fixed:"",prop:"name",label:"操作",width:"100px",align:"center","header-align":"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return t.dataDelete(e.$index)}}},[t._v("删除 ")])]}}])}),a("el-table-column",{attrs:{label:"映射来源",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{filterable:"",placeholder:""},on:{change:function(a){return t.changeSource(a,e.row)}},model:{value:e.row.map_sourceValue,callback:function(a){t.$set(e.row,"map_sourceValue",a)},expression:"scope.row.map_sourceValue"}},t._l(t.mappingsource_list,(function(t){return a("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)]}}])}),a("el-table-column",{attrs:{label:"映射实体名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.row.map_object,callback:function(a){t.$set(e.row,"map_object",a)},expression:"scope.row.map_object"}})]}}])}),a("el-table-column",{attrs:{label:"映射项目类别",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.row.map_item,callback:function(a){t.$set(e.row,"map_item",a)},expression:"scope.row.map_item"}})]}}])}),a("el-table-column",{attrs:{label:"映射项目编码",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.row.map_itemKey,callback:function(a){t.$set(e.row,"map_itemKey",a)},expression:"scope.row.map_itemKey"}})]}}])}),a("el-table-column",{attrs:{label:"映射项目值",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.row.map_itemValue,callback:function(a){t.$set(e.row,"map_itemValue",a)},expression:"scope.row.map_itemValue"}})]}}])})],1)],1)],1)])},T=[],_=a("a073"),j={data:function(){return{viewTitle:"数据字典-映射管理",tableKey:0,index:0,dictionariesKey:"",dictionariesValue:"",mappingsource_list:[],formobj:{userSid:"",dictSid:"",listDtos:[]},submitdisabled:!1}},methods:{showAdd:function(t){var e=this;this.formobj.dictSid=t.sid,this.dictionariesKey=t.dictType,this.dictionariesValue=t.dictValue,this.formobj.userSid=window.sessionStorage.getItem("userSid"),Object(_["o"])({type:"sys_mappingsource"}).then((function(t){t.success&&(e.mappingsource_list=t.data)})),m({dictSid:t.sid}).then((function(t){t.success&&(e.formobj.listDtos=t.data)}))},Add:function(){this.formobj.listDtos.push({map_item:"",map_itemKey:"",map_itemValue:"",map_object:"",map_sourceKey:"",map_sourceValue:"",sid:""})},changeSource:function(t,e){var a=null;this.mappingsource_list.forEach((function(e){e.dictValue===t&&(a={value:e.dictValue,key:e.dictKey})})),e.map_sourceKey=a.key},dataDelete:function(t){this.formobj.listDtos.splice(t,1)},save:function(){var t=this;0!==this.formobj.listDtos.length?p(this.formobj).then((function(e){e.success&&(t.$message({showClose:!0,type:"success",message:"保存成功"}),t.handleReturn())})):this.$message({showClose:!0,type:"error",message:"映射列表不能为空"})},handleReturn:function(){this.formobj={userSid:"",dictSid:"",listDtos:[]},this.$emit("doback")}}},O=j,x=(a("5196"),a("2877")),C=Object(x["a"])(O,S,T,!1,null,"43b3d210",null),D=C.exports,P={components:{dictMap:D},data:function(){return{editDialog:!1,dialogTitle:"",viewState:1,form:{dictKey:"",dictType:"",groupName:"",dictValue:"",parentSid:""},page:{total:0,current:1,size:10,params:{dictKey:"",dictType:"",dictValue:"",parentSid:"",sidPath:""}},tableData:[]}},props:["dictData"],watch:{dictData:{handler:function(t){this.form.parentSid=t.sid,this.form.dictType=t.dictType,this.form.groupName=t.groupName,this.page.params.parentSid=t.sid,this.page.params.dictType=t.dictType,this.getPageList(this.page)},deep:!0}},mounted:function(){this.getPageList(this.page)},methods:{pagination:function(t){this.page.current=t.pageNum,this.page.size=t.pageSize,this.getPageList(this.page)},onSearch:function(){this.getPageList(this.page)},resetSearch:function(){this.getPageList(this.page)},getPageList:function(t){var e=this;y(t).then((function(t){e.tableData=t.data.records,e.page.total=t.data.total}))},add:function(t){t?(this.form.dictType=t.dictType,this.form.parentSid=t.sid):this.form.parentSid=0,this.dialogTitle="新增",this.editDialog=!0,this.form.dictKey="",this.form.groupName="",this.form.dictValue="",this.form.sid=""},closeDict:function(){this.form.parentSid="",this.form.dictType="",this.form.groupName="",this.page.params.parentSid="",this.page.params.dictType="",this.$emit("doback")},editRow:function(t){this.dialogTitle="编辑",this.editDialog=!0,this.form=Object.assign({},t)},save:function(){var t=this;this.form.sid?w(this.form).then((function(e){t.editDialog=!1,t.getPageList(t.page),t.$message({message:e.msg,type:"success"})})):v(this.form).then((function(e){t.editDialog=!1,t.getPageList(t.page),t.$message({message:e.msg,type:"success"})}))},deleteRow:function(t){var e=this;this.$confirm("确定要删除该数据吗, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){k({sid:t.sid}).then((function(t){e.getPageList(e.page),e.$message({type:"success",message:"删除成功!"})}))}))},handleMap:function(t){this.viewState=2,this.$refs["divAdd"].showAdd(t)},resetState:function(){this.viewState=1}}},$=P,V=Object(x["a"])($,g,h,!1,null,"81ff7ffe",null),L=V.exports,N={data:function(){return{editDialog:!1,dialogTitle:"",form:{},formBackup:Object.assign({},this.form),page:{total:0,current:1,size:10,params:{dictTypeName:"",dictTypeCode:""}},tableData:[],viewState:1,dictData:{}}},components:{dictCommon:L},mounted:function(){this.getPageList(this.page)},methods:{pagination:function(t){this.page.current=t.pageNum,this.page.size=t.pageSize,this.getPageList(this.page)},onSearch:function(){this.getPageList()},resetSearch:function(){this.page.current=1,this.getPageList()},getPageList:function(){var t=this;c(this.page).then((function(e){e.success?(t.tableData=e.data.records,t.page.total=e.data.total):(t.tableData=[],t.page.total=0)}))},add:function(){this.dialogTitle="新增",this.editDialog=!0,this.form=Object.assign({},this.formBackup)},editRow:function(t){this.dialogTitle="编辑",this.editDialog=!0,this.form=Object.assign({},t)},save:function(){var t=this;this.form.sid?u(this.form).then((function(e){t.editDialog=!1,t.getPageList(t.page),t.$message({message:e.msg,type:"success"})})):d(this.form).then((function(e){t.editDialog=!1,t.getPageList(t.page),t.$message({message:e.msg,type:"success"})}))},deleteRow:function(t){var e=this;this.$confirm("确定要删除该条数据吗, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){f({sid:t.sid}).then((function(t){e.getPageList(e.page),e.$message({type:"success",message:"删除成功!"})}))}))},guanli:function(t){this.dictData={dictType:t.dictTypeCode},this.viewState=2},resetState:function(){this.viewState=1}}},z=N,K=(a("b775c"),Object(x["a"])(z,i,n,!1,null,"13b1fd2b",null));e["default"]=K.exports},"7e24":function(t,e,a){},a073:function(t,e,a){"use strict";a.d(e,"g",(function(){return o})),a.d(e,"d",(function(){return s})),a.d(e,"o",(function(){return r})),a.d(e,"m",(function(){return l})),a.d(e,"h",(function(){return c})),a.d(e,"e",(function(){return u})),a.d(e,"a",(function(){return d})),a.d(e,"c",(function(){return p})),a.d(e,"i",(function(){return m})),a.d(e,"f",(function(){return f})),a.d(e,"l",(function(){return g})),a.d(e,"n",(function(){return h})),a.d(e,"j",(function(){return b})),a.d(e,"b",(function(){return y})),a.d(e,"k",(function(){return v}));var i=a("b775"),n=(a("4328"),window.sessionStorage.getItem("token"));function o(t){return Object(i["a"])({url:"/portal/v1/sysrole/listPage",method:"post",data:t,headers:{"Content-Type":"application/json",token:n}})}function s(t){return Object(i["a"])({url:"/portal/v1/syspost/list",method:"get",data:t,headers:{"Content-Type":"application/json"}})}function r(t){return Object(i["a"])({url:"/portal/v1/dictcommons/typeValues",method:"get",params:t})}function l(t){return Object(i["a"])({url:"/portal/v1/sysrole/setIsEnable/"+t.sid+"/"+t.isEnable,method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function c(t){return Object(i["a"])({url:"/portal/v1/sysrole/save",method:"POST",data:t,headers:{"Content-Type":"application/json",token:n}})}function u(t){return Object(i["a"])({url:"/portal/v1/sysrole/update/".concat(t.sid),method:"POST",data:t,headers:{"Content-Type":"application/json",token:n}})}function d(t){return Object(i["a"])({url:"/portal/v1/sysrole/delBySids/".concat(t.sid),method:"get",data:t,headers:{"Content-Type":"application/json",token:n}})}function p(t){return Object(i["a"])({url:"/portal/v1/sysmobilemenurole/getRoleMenuList",method:"post",params:{roleSid:t}})}function m(t){return Object(i["a"])({url:"/portal/v1/sysmobilemenurole/saveRoleMenuList",method:"POST",data:t,headers:{"Content-Type":"application/json",token:n}})}function f(t){return Object(i["a"])({url:"/portal/v1/sysmenu/listAllByRoleSid",method:"POST",data:t,headers:{"Content-Type":"application/json",token:n}})}function g(t){return Object(i["a"])({url:"/portal/v1/sysmenurole/updateRoleAndMenu",method:"POST",data:t,headers:{"Content-Type":"application/json",token:n}})}function h(t){return Object(i["a"])({url:"/portal/v1/syssource/listAllByRoleSid",method:"POST",data:t,headers:{"Content-Type":"application/json",token:n}})}function b(t){return Object(i["a"])({url:"/portal/v1/syssourcerole/updateRoleAndSource",method:"POST",data:t,headers:{"Content-Type":"application/json",token:n}})}function y(t){return Object(i["a"])({url:"/portal/v1/sysfunction/listAllByRoleSid",method:"POST",data:t,headers:{"Content-Type":"application/json",token:n}})}function v(t){return Object(i["a"])({url:"/portal/v1/sysrolefunction/updateRoleAndFunction",method:"POST",data:t,headers:{"Content-Type":"application/json",token:n}})}},b775c:function(t,e,a){"use strict";a("7e24")}}]);