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
17 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4fd8c1d4"],{"081f":function(t,e,a){"use strict";a("8613")},"14ca":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.viewState,expression:"viewState == 1"}]},[e("div",{staticClass:"tab-header"},[e("el-form",{ref:"form",attrs:{inline:!0,model:t.form,"label-width":"80px"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:6}},[e("el-form-item",{attrs:{label:"分类名称"}},[e("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),e("el-col",{attrs:{span:8}},[e("el-form-item",{attrs:{label:"说明"}},[e("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),e("el-col",{attrs:{span:10}},[e("el-form-item",{staticStyle:{float:"right"}},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSearch()}}},[t._v("查询")]),e("el-button",{on:{click:function(e){return t.add()}}},[t._v("添加")])],1)],1)],1)],1)],1),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[e("el-table-column",{attrs:{label:"序号",width:"80px",type:"index",align:"center"}}),e("el-table-column",{attrs:{label:"操作",align:"center",width:"300px"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.guanli(a.row)}}},[t._v(" 管理 ")]),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.editRow(a.row)}}},[t._v(" 修改 ")]),e("el-button",{attrs:{type:"danger",size:"mini"},nativeOn:{click:function(e){return e.preventDefault(),t.deleteRow(a.row)}}},[t._v(" 删除 ")])]}}])}),e("el-table-column",{attrs:{prop:"dictTypeCode",label:"字典分类编码",align:"center"}}),e("el-table-column",{attrs:{prop:"dictTypeName",label:"字典分类名称",align:"center"}}),e("el-table-column",{attrs:{prop:"remarks",label:"说明",align:"center"}})],1),e("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}}),e("el-dialog",{attrs:{title:t.dialogTitle+"字典分类",visible:t.editDialog,width:"50%"},on:{"update:visible":function(e){t.editDialog=e}}},[e("el-form",[e("table",{staticClass:"e-table",attrs:{cellspacing:"0"}},[e("tr",[e("td",[t._v("数据字典code")]),e("td",[e("el-input",{model:{value:t.form.dictTypeCode,callback:function(e){t.$set(t.form,"dictTypeCode",e)},expression:"form.dictTypeCode"}})],1)]),e("tr",[e("td",[t._v("数据分类名称")]),e("td",[e("el-input",{model:{value:t.form.dictTypeName,callback:function(e){t.$set(t.form,"dictTypeName",e)},expression:"form.dictTypeName"}})],1)]),e("tr",[e("td",[t._v("说明")]),e("td",[e("el-input",{attrs:{type:"textarea"},model:{value:t.form.remarks,callback:function(e){t.$set(t.form,"remarks",e)},expression:"form.remarks"}})],1)])])]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.save()}}},[t._v("保 存")]),e("el-button",{on:{click:function(e){t.editDialog=!1}}},[t._v("关 闭")])],1)],1)],1),e("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");function s(t){return Object(o["a"])({url:"/admin/apiadmin/dicttypes/pageList",method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function r(t){return Object(o["a"])({url:"/admin/apiadmin/dicttypes/update/"+t.sid,method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function l(t){return Object(o["a"])({url:"/admin/apiadmin/dicttypes/save",method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function c(t){return Object(o["a"])({url:"/admin/apiadmin/sysmapping/saveMappingList",method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function d(t){return Object(o["a"])({url:"/admin/apiadmin/sysmapping/selectMappingListInfo",method:"post",data:t,headers:{"Content-Type":"application/json"}})}function u(t){return Object(o["a"])({url:"/admin/apiadmin/dicttypes/delete/"+t.sid,method:"DELETE",data:t,headers:{"Content-Type":"application/json"}})}var p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.viewState,expression:"viewState == 1"}]},[e("div",{staticClass:"tab-header"},[e("el-form",{ref:"form",attrs:{inline:!0,model:t.form,"label-width":"80px"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:14}},[e("el-form-item",{attrs:{label:"数据value"}},[e("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),e("el-col",{attrs:{span:10}},[e("el-form-item",{staticStyle:{float:"right"}},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSearch()}}},[t._v("查 询")]),e("el-button",{on:{click:function(e){return t.add()}}},[t._v("添 加")]),e("el-button",{on:{click:t.closeDict}},[t._v("返 回")])],1)],1)],1)],1)],1),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[e("el-table-column",{attrs:{label:"序号",width:"50px",type:"index",align:"center"}}),e("el-table-column",{attrs:{label:"操作",align:"center",width:"280px"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.editRow(a.row)}}},[t._v(" 修改 ")]),e("el-button",{attrs:{type:"danger",size:"mini"},nativeOn:{click:function(e){return e.preventDefault(),t.deleteRow(a.row)}}},[t._v(" 删除 ")]),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleMap(a.row)}}},[t._v(" 映射 ")])]}}])}),e("el-table-column",{attrs:{prop:"dictType",label:"字典分类编码",align:"center"}}),e("el-table-column",{attrs:{prop:"groupName",label:"数据分组",align:"center"}}),e("el-table-column",{attrs:{prop:"dictKey",label:"数据key",align:"center"}}),e("el-table-column",{attrs:{prop:"dictValue",label:"数据value",align:"center"}})],1),e("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}}),e("el-dialog",{attrs:{title:t.dialogTitle+"字典数据",visible:t.editDialog,width:"50%"},on:{"update:visible":function(e){t.editDialog=e}}},[e("table",{staticClass:"e-table",attrs:{cellspacing:"0"}},[e("tr",[e("td",[t._v("字典分类编码")]),e("td",[t._v(" "+t._s(t.form.dictType)+" ")])]),e("tr",[e("td",[t._v("数据分组")]),e("td",[e("el-input",{model:{value:t.form.groupName,callback:function(e){t.$set(t.form,"groupName",e)},expression:"form.groupName"}})],1)]),e("tr",[e("td",[t._v("数据key")]),e("td",[e("el-input",{model:{value:t.form.dictKey,callback:function(e){t.$set(t.form,"dictKey",e)},expression:"form.dictKey"}})],1)]),e("tr",[e("td",[t._v("数据value")]),e("td",[e("el-input",{model:{value:t.form.dictValue,callback:function(e){t.$set(t.form,"dictValue",e)},expression:"form.dictValue"}})],1)])]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.save()}}},[t._v("保 存")]),e("el-button",{on:{click:function(e){t.editDialog=!1}}},[t._v("关 闭")])],1)])],1),e("dictMap",{directives:[{name:"show",rawName:"v-show",value:2==t.viewState,expression:"viewState == 2"}],ref:"divAdd",on:{doback:t.resetState}})],1)},m=[];function f(t){return Object(o["a"])({url:"/admin/apiadmin/dictcommons/pageList",method:"post",data:t,headers:{"Content-Type":"application/json"}})}function g(t){return Object(o["a"])({url:"/admin/apiadmin/dictcommons/save",method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function h(t){return Object(o["a"])({url:"/admin/apiadmin/dictcommons/update/"+t.sid,method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function b(t){return Object(o["a"])({url:"/admin/apiadmin/dictcommons/delete/"+t.sid,method:"DELETE",data:t,headers:{"Content-Type":"application/json"}})}var y=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-app-container"},[e("div",{staticClass:"tab-header webtop"},[e("div",[t._v(t._s(t.viewTitle))]),e("div",[e("el-button",{attrs:{type:"primary",size:"small",disabled:t.submitdisabled},on:{click:function(e){return t.save()}}},[t._v("保存 ")]),e("el-button",{attrs:{type:"info",size:"small"},on:{click:function(e){return t.handleReturn()}}},[t._v("关闭")])],1)]),e("div",{staticClass:"listconadd"},[e("el-form",{ref:"form_obj",staticClass:"formadd",attrs:{model:t.formobj}},[e("div",{staticClass:"title"},[e("div",[t._v("["+t._s(t.dictionariesKey)+"+"+t._s(t.dictionariesValue)+"]映射列表")]),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.Add}},[t._v("添加")])],1),e("el-table",{key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.formobj.listDtos,index:t.index,border:""}},[e("el-table-column",{attrs:{fixed:"",width:"80px",label:"序号",type:"index",index:t.index+1,align:"center"}}),e("el-table-column",{attrs:{fixed:"",prop:"name",label:"操作",width:"100px",align:"center","header-align":"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.dataDelete(a.$index)}}},[t._v("删除 ")])]}}])}),e("el-table-column",{attrs:{label:"映射来源",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-select",{attrs:{filterable:"",placeholder:""},on:{change:function(e){return t.changeSource(e,a.row)}},model:{value:a.row.map_sourceValue,callback:function(e){t.$set(a.row,"map_sourceValue",e)},expression:"scope.row.map_sourceValue"}},t._l(t.mappingsource_list,(function(t){return e("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)]}}])}),e("el-table-column",{attrs:{label:"映射实体名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{attrs:{placeholder:"",clearable:""},model:{value:a.row.map_object,callback:function(e){t.$set(a.row,"map_object",e)},expression:"scope.row.map_object"}})]}}])}),e("el-table-column",{attrs:{label:"映射项目类别",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{attrs:{placeholder:"",clearable:""},model:{value:a.row.map_item,callback:function(e){t.$set(a.row,"map_item",e)},expression:"scope.row.map_item"}})]}}])}),e("el-table-column",{attrs:{label:"映射项目编码",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{attrs:{placeholder:"",clearable:""},model:{value:a.row.map_itemKey,callback:function(e){t.$set(a.row,"map_itemKey",e)},expression:"scope.row.map_itemKey"}})]}}])}),e("el-table-column",{attrs:{label:"映射项目值",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{attrs:{placeholder:"",clearable:""},model:{value:a.row.map_itemValue,callback:function(e){t.$set(a.row,"map_itemValue",e)},expression:"scope.row.map_itemValue"}})]}}])})],1)],1)],1)])},v=[],w=a("a073"),_={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(w["d"])({type:"sys_mappingsource"}).then((function(t){t.success&&(e.mappingsource_list=t.data)})),d({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?c(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")}}},S=_,T=(a("bc56"),a("2877")),k=Object(T["a"])(S,y,v,!1,null,"bd381aa8",null),j=k.exports,x={components:{dictMap:j},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;f(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?h(this.form).then((function(e){t.editDialog=!1,t.getPageList(t.page),t.$message({message:e.msg,type:"success"})})):g(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(){b({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}}},D=x,C=Object(T["a"])(D,p,m,!1,null,"28bd6436",null),O=C.exports,$={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:O},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;s(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?r(this.form).then((function(e){t.editDialog=!1,t.getPageList(t.page)})):l(this.form).then((function(e){t.editDialog=!1,t.getPageList(t.page)}))},deleteRow:function(t){var e=this;this.$confirm("确定要删除该条数据吗, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){u({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}}},P=$,V=(a("081f"),Object(T["a"])(P,i,n,!1,null,"03941690",null));e["default"]=V.exports},8613:function(t,e,a){},"9e1c":function(t,e,a){},a073:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return s})),a.d(e,"c",(function(){return r}));var i=a("b775");function n(t){return Object(i["a"])({url:"/admin/apiadmin/sysrole/listPage",method:"post",data:t,headers:{"Content-Type":"application/json"}})}function o(t){return Object(i["a"])({url:"/admin/apiadmin/dictcommons/typeValues",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/admin/apiadmin/sysmenu/listAllByRoleSid",method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function r(t){return Object(i["a"])({url:"/admin/apiadmin/sysroleauthorize/updateRoleAndMenuAdmin",method:"POST",data:t,headers:{"Content-Type":"application/json"}})}},bc56:function(t,e,a){"use strict";a("9e1c")}}]);