(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b6ad7"],{"1dd2":function(e,t,o){"use strict";o.r(t),o.d(t,"crudOptions",(function(){return a}));o("99af"),o("b0c0"),o("d3b7"),o("25f0");var a=function(e){return{pageOptions:{compact:!0},options:{rowId:"id",height:"100%",border:!1},rowHandle:{width:140,view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}}},viewOptions:{componentType:"form"},formOptions:{appendToBody:!0,defaultSpan:24,width:"35%"},columns:[{title:"名称",key:"label",search:{disabled:!1,component:{props:{clearable:!0}}},type:"input",form:{rules:[{required:!0,message:"名称必填项"}],component:{props:{clearable:!0},placeholder:"请输入名称"},itemProps:{class:{yxtInput:!0}}}},{title:"数据值类型",type:"select",key:"type",search:{disabled:!0,component:{props:{clearable:!0}}},show:!1,dict:{data:[{label:"text",value:0},{label:"number",value:1},{label:"date",value:2},{label:"datetime",value:3},{label:"time",value:4},{label:"file",value:5},{label:"boolean",value:6},{label:"images",value:7}]},form:{rules:[{required:!0,message:"数据值类型必填项"}],value:0,component:{props:{clearable:!0},placeholder:"请选择数据值类型"},itemProps:{class:{yxtInput:!0}},valueChange:function(t,o,a,n){n.getColumn,n.mode,n.component;var l=n.immediate,r=(n.getComponent,e.getEditFormTemplate("value"));l||(a.value=void 0),0===o?r.component.name="el-input":1===o?r.component.name="el-input-number":2===o?(r.component.name="el-date-picker",r.component.props={type:"date",valueFormat:"yyyy-MM-dd"}):3===o?(r.component.name="el-date-picker",r.component.props={type:"datetime",valueFormat:"yyyy-MM-dd HH:mm:ss"}):4===o?(r.component.name="el-time-picker",r.component.props={pickerOptions:{arrowControl:!0},valueFormat:"HH:mm:ss"}):5===o?(r.component.name="d2p-file-uploader",r.component.props={elProps:{listType:"text"}}):6===o?(r.component.name="dict-switch",r.component.value=!0,r.component.props={dict:{data:[{label:"是",value:"true"},{label:"否",value:"false"}]}}):7===o&&(r.component.name="d2p-cropper-uploader",r.component.props={accept:".png,.jpeg,.jpg,.ico,.bmp,.gif",cropper:{viewMode:1}})},valueChangeImmediate:!0}},{title:"数据值",key:"value",search:{disabled:!0,component:{props:{clearable:!0}}},view:{component:{props:{height:100,width:100}}},valueResolve:function(e,t){var o=e[t.key],a=e.type;5===a||7===a?null!=o&&(o.length>=0?e[t.key]=o instanceof Array?o.toString():o:e[t.key]=null):e[t.key]=o},valueBuilder:function(e,t){var o=e[t.key],a=e.type;5===a||7===a?null!=o&&o&&(e[t.key]=o.split(",")):e[t.key]=o},type:"input",form:{rules:[{required:!0,message:"数据值必填项"}],component:{props:{clearable:!0},placeholder:"请输入数据值"},itemProps:{class:{yxtInput:!0}}}},{title:"状态",key:"status",width:80,search:{disabled:!1},type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,rules:[{required:!0,message:"状态必填项"}],component:{},itemProps:{class:{yxtInput:!0}}}},{title:"排序",key:"sort",width:70,type:"number",form:{value:1,component:{},rules:[{required:!0,message:"排序必填项"}],itemProps:{class:{yxtInput:!0}}}},{title:"标签颜色",key:"color",width:90,search:{disabled:!0},type:"select",dict:{data:[{label:"success",value:"success",color:"success"},{label:"primary",value:"primary",color:"primary"},{label:"info",value:"info",color:"info"},{label:"danger",value:"danger",color:"danger"},{label:"warning",value:"warning",color:"warning"}]},form:{component:{props:{clearable:!0}},itemProps:{class:{yxtInput:!0}}}}].concat(e.commonEndColumns({update_datetime:{showForm:!1,showTable:!1},create_datetime:{showForm:!1,showTable:!1}}))}}}}]);