"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[9978],{67518:function(e,l,t){t.r(l),t.d(l,{default:function(){return c}});var a=t(66252),o=t(3577);const i={key:1},u={key:1},r={key:1},n={key:1},d=(0,a.Uk)("取消"),p=(0,a.Uk)("删除");function w(e,l,t,w,s,m){const y=(0,a.up)("el-alert"),c=(0,a.up)("el-table-column"),g=(0,a.up)("el-input"),k=(0,a.up)("el-switch"),f=(0,a.up)("el-button"),h=(0,a.up)("el-popconfirm"),_=(0,a.up)("el-button-group"),b=(0,a.up)("el-table"),V=(0,a.up)("el-main");return(0,a.wg)(),(0,a.j4)(V,null,{default:(0,a.w5)((()=>[(0,a.Wm)(y,{title:"扩展配置为系统业务所有的配置，应该由系统管理员操作，如需用户配置应另起业务配置页面。",type:"warning",style:{"margin-bottom":"15px"}}),(0,a.Wm)(V,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(b,{data:s.setting,stripe:""},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{label:"序号",type:"index",width:"50"}),(0,a.Wm)(c,{label:"KEY",prop:"key",width:"150"},{default:(0,a.w5)((e=>[e.row.isSet?((0,a.wg)(),(0,a.j4)(g,{key:0,modelValue:e.row.key,"onUpdate:modelValue":l=>e.row.key=l,placeholder:"请输入内容"},null,8,["modelValue","onUpdate:modelValue"])):((0,a.wg)(),(0,a.iD)("span",i,(0,o.toDisplayString)(e.row.key),1))])),_:1}),(0,a.Wm)(c,{label:"VALUE",prop:"value",width:"350"},{default:(0,a.w5)((e=>[e.row.isSet?((0,a.wg)(),(0,a.iD)(a.HY,{key:0},["boolean"===typeof e.row.value?((0,a.wg)(),(0,a.j4)(k,{key:0,modelValue:e.row.value,"onUpdate:modelValue":l=>e.row.value=l},null,8,["modelValue","onUpdate:modelValue"])):((0,a.wg)(),(0,a.j4)(g,{key:1,modelValue:e.row.value,"onUpdate:modelValue":l=>e.row.value=l,placeholder:"请输入内容"},null,8,["modelValue","onUpdate:modelValue"]))],64)):((0,a.wg)(),(0,a.iD)("span",u,(0,o.toDisplayString)(e.row.value),1))])),_:1}),(0,a.Wm)(c,{label:"CATEGORY",prop:"category",width:"150"},{default:(0,a.w5)((e=>[e.row.isSet?((0,a.wg)(),(0,a.j4)(g,{key:0,modelValue:e.row.category,"onUpdate:modelValue":l=>e.row.category=l,placeholder:"请输入内容"},null,8,["modelValue","onUpdate:modelValue"])):((0,a.wg)(),(0,a.iD)("span",r,(0,o.toDisplayString)(e.row.category),1))])),_:1}),(0,a.Wm)(c,{label:"TITLE",prop:"title",width:"350"},{default:(0,a.w5)((e=>[e.row.isSet?((0,a.wg)(),(0,a.j4)(g,{key:0,modelValue:e.row.title,"onUpdate:modelValue":l=>e.row.title=l,placeholder:"请输入内容"},null,8,["modelValue","onUpdate:modelValue"])):((0,a.wg)(),(0,a.iD)("span",n,(0,o.toDisplayString)(e.row.title),1))])),_:1}),(0,a.Wm)(c,{"min-width":"1"}),(0,a.Wm)(c,{label:"操作",fixed:"right",width:"120"},{default:(0,a.w5)((e=>[(0,a.Wm)(_,null,{default:(0,a.w5)((()=>[(0,a.Wm)(f,{onClick:l=>m.table_edit(e.row,e.$index),text:"",type:"primary",size:"small"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,o.toDisplayString)(e.row.isSet?"保存":"修改"),1)])),_:2},1032,["onClick"]),e.row.isSet?((0,a.wg)(),(0,a.j4)(f,{key:0,onClick:l=>e.row.isSet=!1,text:"",type:"primary",size:"small"},{default:(0,a.w5)((()=>[d])),_:2},1032,["onClick"])):(0,a.kq)("",!0),e.row.isSet?(0,a.kq)("",!0):((0,a.wg)(),(0,a.j4)(h,{key:1,title:"确定删除吗？",onConfirm:l=>m.table_del(e.row,e.$index)},{reference:(0,a.w5)((()=>[(0,a.Wm)(f,{text:"",type:"primary",size:"small"},{default:(0,a.w5)((()=>[p])),_:1})])),_:2},1032,["onConfirm"]))])),_:2},1024)])),_:1})])),_:1},8,["data"])])),_:1}),(0,a.Wm)(f,{type:"primary",icon:"el-icon-plus",onClick:m.table_add,style:{"margin-top":"20px"}},null,8,["onClick"])])),_:1})}t(57658);var s={name:"wechat",data(){return{setting:[{key:"file_serve",value:"https://file.scui.com",category:"url",title:"文件服务器地址"},{key:"cloud_url",value:"-",category:"url",title:"客户端地址"},{key:"crm_url",value:"-",category:"url",title:"CRM地址"},{key:"autoSwitch",value:!0,category:"user",title:"自动判断boolean类型"}]}},mounted(){},methods:{table_add(){let e={key:"",value:"",title:"",isSet:!0};this.setting.push(e)},table_edit(e){e.isSet?e.isSet=!1:e.isSet=!0},table_del(e,l){this.setting.splice(l,1)}}},m=t(83744);const y=(0,m.Z)(s,[["render",w]]);var c=y}}]);