1 zeile
4.4 KiB
JavaScript
1 zeile
4.4 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["gJ75"],{gJ75:function(e,t,i){"use strict";i.r(t);var l=i("t3Un");function a(e){return Object(l.a)({url:"/gaeaDictItem/pageList",method:"GET",params:e})}function d(e){return Object(l.a)({url:"/gaeaDictItem",method:"POST",data:e})}function r(e){return Object(l.a)({url:"/gaeaDictItem",method:"PUT",data:e})}function n(e){return Object(l.a)({url:"/gaeaDictItem/delete/batch",method:"POST",data:e})}function u(e){return Object(l.a)({url:"/gaeaDictItem/"+e.id,method:"get",params:{accessKey:e.accessKey}})}var s={name:"DictItem",components:{anjiCrud:i("sYqA").default},data:function(){var e=this;return{searchForm:{project:this.$route.query.project,dictCode:this.$route.query.dictCode,itemCode:null,itemLabel:null,itemValue:null,remark:null,pageNumber:1,pageSize:10},crudOption:{title:"字典项",labelWidth:"120px",queryFormFields:[{inputType:"input",label:"字典编码",field:"dictCode",disabled:0==this.isBlank(this.$route.query.dictCode),defaultValue:this.$route.query.dictCode},{inputType:"input",label:"显示文字",field:"itemLabel"},{inputType:"input",label:"提交值",field:"itemValue"},{inputType:"input",label:"备注",field:"remark"},{label:"语言标识",inputType:"anji-select",anjiSelectOption:{dictCode:"LOCALE"},field:"locale"}],tableButtons:[{label:"新增",type:"",permission:"dictItemManage:insert",icon:"el-icon-plus",plain:!0,click:function(){return e.$refs.listPage.handleOpenEditView("add")}},{label:"删除",type:"danger",permission:"dictItemManage:delete",icon:"el-icon-delete",plain:!1,click:function(){return e.$refs.listPage.handleDeleteBatch()}}],rowButtons:[{label:"编辑",permission:"dictItemManage:update",click:function(t){return e.$refs.listPage.handleOpenEditView("edit",t)}},{label:"删除",permission:"dictItemManage:delete",click:function(t){return e.$refs.listPage.handleDeleteBatch(t)}}],buttons:{query:{api:a,permission:"dictItemManage:query"},queryByPrimarykey:{api:u,permission:"dictItemManage:query"},add:{api:d,permission:"dictItemManage:insert"},delete:{api:n,permission:"dictItemManage:delete"},edit:{api:r,permission:"dictItemManage:update"},rowButtonsWidth:150},columns:[{label:"",field:"id",primaryKey:!0,tableHide:!0,editHide:!0},{label:"字典编码",placeholder:"",field:"dictCode",editField:"dictCode",inputType:"input",rules:[{required:!0,message:"字典编码不能为空",trigger:"blur"},{min:1,max:64,message:"不超过64个字符",trigger:"blur"}],disabled:0==this.isBlank(this.$route.query.dictCode),defaultValue:this.$route.query.dictCode},{label:"字典项名称",placeholder:"",field:"itemName",editField:"itemName",inputType:"input",rules:[{required:!0,message:"字典项名称不能为空",trigger:"blur"},{min:1,max:64,message:"不超过64个字符",trigger:"blur"}],disabled:!1},{label:"提交值",placeholder:"",field:"itemValue",editField:"itemValue",inputType:"input",rules:[{required:!0,message:"提交值不能为空",trigger:"blur"},{min:1,max:64,message:"不超过64个字符",trigger:"blur"}],disabled:"disableOnEdit"},{label:"语言标识",placeholder:"",field:"locale",editField:"locale",fieldTableRowRenderer:function(t){return e.getDictLabelByCode("LOCALE",t.locale)},inputType:"anji-select",anjiSelectOption:{dictCode:"LOCALE"},rules:[{required:!0,message:"语言标识不能为空",trigger:"blur"}],disabled:!1,defaultValue:"zh"},{label:"状态",placeholder:"",field:"enabled",fieldTableRowRenderer:function(t){return e.getDictLabelByCode("ENABLE_FLAG",t.enabled)},colorStyle:{0:"table-danger",1:"table-success"},editField:"enabled",inputType:"anji-select",anjiSelectOption:{dictCode:"ENABLE_FLAG"},rules:[{required:!0,message:"状态不能为空",trigger:"blur"}],disabled:!1,defaultValue:1},{label:"排序",placeholder:"",field:"sort",editField:"sort",inputType:"input",rules:[],disabled:!1},{label:"描述",placeholder:"",field:"remark",editField:"remark",inputType:"input",rules:[{min:1,max:64,message:"不超过64个字符",trigger:"blur"}],disabled:!1,tableHide:!0},{label:"扩展项",placeholder:"",field:"itemExtend",editField:"itemExtend",inputType:"input",rules:[{min:1,max:2048,message:"不超过2048个字符",trigger:"blur"}],disabled:!1,tableHide:!0},{label:"创建人",placeholder:"",field:"updateBy",editField:"updateBy",inputType:"input",disabled:!1,editHide:!0}]}}}},c=i("KHd+"),o=Object(c.a)(s,function(){var e=this.$createElement;return(this._self._c||e)("anji-crud",{ref:"listPage",attrs:{option:this.crudOption}})},[],!1,null,null,null);o.options.__file="dict-item.vue";t.default=o.exports}}]); |