triage_business/js/cus-cusSetting.d5b99102.js
2026-03-06 14:37:11 +08:00

1 line
7.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[8397],{68634:function(e,l,t){t.r(l),t.d(l,{default:function(){return V}});var a=t(66252),o=t(3577);const u=(0,a._)("div",{class:"el-form-item-msg","data-v-b33b3cf8":""},"关闭后不推送客服上线时欢饮语",-1),d=(0,a.Uk)("保存"),n=(0,a._)("div",{class:"el-form-item-msg","data-v-b33b3cf8":""},"关闭后用户无法收到短信,但日志中将记录",-1),r=(0,a.Uk)("保存"),m={key:1},i={key:1},s={key:1},p={key:1},w=(0,a.Uk)("取消 "),c=(0,a.Uk)("删除");function y(e,l,t,y,f,g){const _=(0,a.up)("el-input"),k=(0,a.up)("el-form-item"),b=(0,a.up)("el-switch"),V=(0,a.up)("sc-code-editor"),W=(0,a.up)("el-card"),h=(0,a.up)("el-button"),v=(0,a.up)("el-form"),S=(0,a.up)("el-tab-pane"),U=(0,a.up)("el-alert"),C=(0,a.up)("el-table-column"),j=(0,a.up)("el-popconfirm"),x=(0,a.up)("el-button-group"),D=(0,a.up)("el-table"),K=(0,a.up)("el-tabs"),z=(0,a.up)("el-main");return(0,a.wg)(),(0,a.j4)(z,null,{default:(0,a.w5)((()=>[(0,a.Wm)(W,{shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,{"tab-position":"top"},{default:(0,a.w5)((()=>[(0,a.Wm)(S,{label:"系统设置"},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{ref:"form",model:f.sys,"label-width":"100px",style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(k,{label:"客服欢迎语"},{default:(0,a.w5)((()=>[(0,a.Wm)(_,{modelValue:f.sys.name,"onUpdate:modelValue":l[0]||(l[0]=e=>f.sys.name=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(k,{label:"是否开启"},{default:(0,a.w5)((()=>[(0,a.Wm)(b,{modelValue:f.sys.login,"onUpdate:modelValue":l[1]||(l[1]=e=>f.sys.login=e)},null,8,["modelValue"]),u])),_:1}),(0,a.Wm)(k,{label:"页面嵌入代码"},{default:(0,a.w5)((()=>[(0,a.Wm)(W,{shadow:"never",header:"页面引入:<script src='https://schat.tool.ykziao.com/customer.js'><\/script>"},{default:(0,a.w5)((()=>[(0,a.Wm)(V,{modelValue:f.js,"onUpdate:modelValue":l[2]||(l[2]=e=>f.js=e),mode:"javascript",theme:"darcula"},null,8,["modelValue"])])),_:1})])),_:1}),(0,a.Wm)(k,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h,{type:"primary"},{default:(0,a.w5)((()=>[d])),_:1})])),_:1})])),_:1},8,["model"])])),_:1}),(0,a.Wm)(S,{label:"客服名片"},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{ref:"form",model:f.msg,"label-width":"100px",style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(k,{label:"短信开关"},{default:(0,a.w5)((()=>[(0,a.Wm)(b,{modelValue:f.msg.open,"onUpdate:modelValue":l[3]||(l[3]=e=>f.msg.open=e)},null,8,["modelValue"]),n])),_:1}),(0,a.Wm)(k,{label:"appKey"},{default:(0,a.w5)((()=>[(0,a.Wm)(_,{modelValue:f.msg.appKey,"onUpdate:modelValue":l[4]||(l[4]=e=>f.msg.appKey=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(k,{label:"secretKey"},{default:(0,a.w5)((()=>[(0,a.Wm)(_,{modelValue:f.msg.secretKey,"onUpdate:modelValue":l[5]||(l[5]=e=>f.msg.secretKey=e)},null,8,["modelValue"])])),_:1}),(0,a.Wm)(k,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h,{type:"primary"},{default:(0,a.w5)((()=>[r])),_:1})])),_:1})])),_:1},8,["model"])])),_:1}),(0,a.Wm)(S,{label:"页面配置"},{default:(0,a.w5)((()=>[(0,a.Wm)(U,{title:"扩展配置为系统业务所有的配置,应该由系统管理员操作,如需用户配置应另起业务配置页面。",type:"warning",style:{"margin-bottom":"15px"}}),(0,a.Wm)(D,{data:f.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)(_,{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",m,(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)(b,{key:0,modelValue:e.row.value,"onUpdate:modelValue":l=>e.row.value=l},null,8,["modelValue","onUpdate:modelValue"])):((0,a.wg)(),(0,a.j4)(_,{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",i,(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)(_,{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",s,(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)(_,{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",p,(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)(x,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h,{onClick:l=>g.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)(h,{key:0,onClick:l=>e.row.isSet=!1,text:"",type:"primary",size:"small"},{default:(0,a.w5)((()=>[w])),_:2},1032,["onClick"])):(0,a.kq)("",!0),e.row.isSet?(0,a.kq)("",!0):((0,a.wg)(),(0,a.j4)(j,{key:1,title:"确定删除吗?",onConfirm:l=>g.table_del(e.row,e.$index)},{reference:(0,a.w5)((()=>[(0,a.Wm)(h,{text:"",type:"primary",size:"small"},{default:(0,a.w5)((()=>[c])),_:1})])),_:2},1032,["onConfirm"]))])),_:2},1024)])),_:1})])),_:1},8,["data"]),(0,a.Wm)(h,{type:"primary",icon:"el-icon-plus",onClick:g.table_add,style:{"margin-top":"20px"}},null,8,["onClick"])])),_:1})])),_:1})])),_:1})])),_:1})}t(57658);const{defineAsyncComponent:f}=t(29812),g=f((()=>Promise.all([t.e(2528),t.e(6054),t.e(9163)]).then(t.bind(t,39163))));var _={name:"cusSetting",components:{scCodeEditor:g},data(){return{sys:{name:"您好,很高兴为您服务!",logoUrl:"",login:!0,passwordRules:"^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$",copyright:"@SCUI"},msg:{open:!0,appKey:"",secretKey:""},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类型"}],js:"const option = {\n authInit:true,\n token: 'cK5fEndNhlL9-Le-WX418_fVcprQjSHl75StD7B8Q0U',\n kefuid:'',//默认为空自动对接客服可填写指定客服ID\n isShowTip: true, // 初始化成功后,界面右下角会自动创建 “联系客服按钮”, 如无需默认展示则填写false即可,默认为true\n windowStyle: '',//默认空 右下角小弹窗, center 普通中间弹窗样式\n};\nconst canCustomerServer = new initCustomerServer(option);\ncanCustomerServer.init();"}},methods:{table_add(){var 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)}}},k=t(83744);const b=(0,k.Z)(_,[["render",y]]);var V=b}}]);