1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4c70883e"],{"16fe":function(e,t,l){"use strict";l.r(t);var o=l("7a23"),a=l("2e9d"),c=l("ad28"),b=l("1090"),i=l("2d16"),r=l("e4f7"),n=l("1d22"),s=l("c5cb");const d={key:0,class:"dialog"},u={class:"head_box"},p={class:"title"},j=Object(o["createTextVNode"])("保存"),O=Object(o["createTextVNode"])("关闭"),g={class:"form_cnt"},f=Object(o["createTextVNode"])("选择"),C={class:"boxlist"},h=Object(o["createTextVNode"])("删除"),q=Object(o["createTextVNode"])("选择"),v={class:"boxlist"},m=Object(o["createTextVNode"])("删除");var w={__name:"editAddForm",props:{dic:Object},emits:["updateDate"],setup(e,{expose:t,emit:l}){const a=e,{proxy:b}=Object(o["getCurrentInstance"])(),i=Object(o["ref"])([]),w=Object(o["ref"])("01"),_=Object(o["ref"])(!1),x=Object(o["ref"])(""),D=Object(o["ref"])(!1),L=Object(o["reactive"])([{label:"组合标签名称",prop:"bqMc",type:"input"},{label:"组合标签代码",prop:"bqDm",type:"input"},{label:"标签等级",prop:"bqDj",type:"select",options:a.dic.D_GS_BQ_DJ},{label:"标签颜色",prop:"bqYs",type:"select",options:a.dic.D_GS_SSYJ},{label:"组合标签分值",prop:"bqFz",type:"input"},{label:"组合标签说明",prop:"bqSm",type:"input"},{label:"身份标签细类",prop:"sfbqIdList",type:"slot",width:"100%"},{label:"行为标签细类",prop:"xwbqIdList",type:"slot",width:"100%"}]),k=Object(o["reactive"])({bqMc:[{required:!0,message:"请输入组合标签名称",trigger:"blur"}],bqDm:[{required:!0,message:"请输入组合标签代码",trigger:"blur"}],zhbqjf:[{required:!0,message:"请输入组合标签积分",trigger:"blur"}],sfbqIdList:[{required:!0,message:"请选择身份标签细类",trigger:"change"}],xwbqIdList:[{required:!0,message:"请选择行为标签细类",trigger:"change"}]}),V=Object(o["reactive"])({sfbqIdList:[],xwbqIdList:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"null",loading:!1},total:0,tableHeight:225,pageConfiger:{pageSize:20,pageCurrent:1},controlsWidth:90,tableColumn:[{label:"标签名称",prop:"bqMc",showOverflowTooltip:!0},{label:"标签代码",prop:"bqDm"},{label:"标签大类名称",prop:"bqDlMc"},{label:"标签类型",prop:"bqLx",showSolt:!0},{label:"标签类别",prop:"bqLb",showSolt:!0},{label:"标签颜色",prop:"bqYs",showSolt:!0},{label:"标签等级",prop:"bqDj",showSolt:!0}]}),y=Object(o["ref"])({}),S=Object(o["ref"])(!1),B=Object(o["ref"])(),N=Object(o["ref"])(""),I=(e,t)=>{D.value=!0,N.value="add"==e?"新增":"编辑",t&&G(t.id)},G=e=>{Object(s["c"])({},"/mosty-gsxt/tbGsxtBqzh/selectVoById/"+e).then(e=>{y.value=e,V.sfbqIdList=e.sfbqList,y.value.sfbqIdList=e.sfbqList.map(e=>e.id),V.xwbqIdList=e.xwbqList,y.value.xwbqIdList=e.xwbqList.map(e=>e.id),V.keyCount++})},H=()=>{B.value.submit(e=>{let t="新增"==N.value?"/mosty-gsxt/tbGsxtBqzh/save":"/mosty-gsxt/tbGsxtBqzh/update",o={...e};S.value=!0,Object(s["d"])(o,t).then(e=>{b.$message({type:"success",message:N.value+"成功"}),l("updateDate"),S.value=!1,z()}).catch(()=>{S.value=!1})})},T=e=>{_.value=!0,w.value=e,x.value="01"==e?"选择身份标签细类":"选择行为标签细类",i.value="01"==e?V.sfbqIdList.map(e=>e.id):V.xwbqIdList.map(e=>e.id)},Q=e=>{"01"==w.value?(V.sfbqIdList=e,y.value.sfbqIdList=V.sfbqIdList.map(e=>e.id)):(V.xwbqIdList=e,y.value.xwbqIdList=V.xwbqIdList.map(e=>e.id))},Y=(e,t)=>{switch(t){case"身份标签细类":V.sfbqIdList=V.sfbqIdList.filter(t=>t.id!==e),y.value.sfbqIdList=V.sfbqIdList.map(e=>e.id);break;case"行为标签细类":V.xwbqIdList=V.xwbqIdList.filter(t=>t.id!==e),y.value.xwbqIdList=V.xwbqIdList.map(e=>e.id);break}},z=()=>{y.value={},V.sfbqIdList=[],V.xwbqIdList=[],D.value=!1,S.value=!1};return t({init:I}),(e,t)=>{const l=Object(o["resolveComponent"])("el-button"),b=Object(o["resolveComponent"])("DictTag"),s=Object(o["resolveComponent"])("el-link");return D.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",d,[Object(o["createElementVNode"])("div",u,[Object(o["createElementVNode"])("span",p,"组合标签管理"+Object(o["toDisplayString"])(N.value),1),Object(o["createElementVNo
|