mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-02-05 00:58:43 +00:00
2 lines
8.3 KiB
JavaScript
2 lines
8.3 KiB
JavaScript
import{d as defineComponent,r as ref,R as reactive,V as resolveComponent,Q as withDirectives,u as unref,e as openBlock,f as createElementBlock,g as createBaseVNode,B as toDisplayString,y as createVNode,x as withCtx,n as normalizeClass,H as createCommentVNode}from"./base-04829be5.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css */import{t}from"./index-043d021e.js";import{c as getNoticeList}from"./notice-4a980f20.js";import{_ as _sfc_main$1}from"./notice-sms.vue_vue_type_script_setup_true_lang-dc6a6d34.js";import{_ as _sfc_main$2}from"./notice-wechat.vue_vue_type_script_setup_true_lang-415bb813.js";import{_ as _sfc_main$3}from"./notice-weapp.vue_vue_type_script_setup_true_lang-06eb4ef5.js";import{u as useRoute}from"./vue-router-fee568b2.js";import{a as ElTableColumn,E as ElTable}from"./index-ed9a1afd.js";import{E as ElIcon}from"./index-7e933ae4.js";import{E as ElCard}from"./index-88566e4e.js";import{v as vLoading}from"./directive-013f0a4e.js";import{_ as _export_sfc}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-111e3797.js";import"./common-2cf17469.js";import"./index-faea7bd5.js";import"./storage-1a3ddb14.js";import"./index-30df2c14.js";import"./index-236cb599.js";import"./index-92283b18.js";import"./typescript-defaf979.js";import"./index-a2524300.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-1cbf3455.js";import"./event-9519ab40.js";import"./index-de053f2e.js";import"./index-d7f4b4bb.js";import"./error-78e43d3e.js";import"./index-6bd50bb5.js";import"./castArray-11aea762.js";import"./_Uint8Array-99b916e9.js";import"./_initCloneObject-e5a1aa13.js";import"./index-db9b8d96.js";import"./index-eb678249.js";import"./index-4edf2cad.js";import"./index-b1557f8a.js";import"./index-9a9de0a3.js";import"./scroll-e5463626.js";import"./vnode-85ccdc7f.js";import"./index-1d455165.js";import"./focus-trap-be36cfe9.js";import"./index-e9e16697.js";import"./index-94a82d50.js";import"./index-c3b3b83a.js";import"./isEqual-ba353d68.js";import"./flatten-94587e2b.js";import"./_isIterateeCall-f0970b1f.js";import"./debounce-f064e94e.js";import"./index-b519934c.js";const _hoisted_1={class:"main-container"},_hoisted_2={class:"flex ml-[18px] justify-between items-center mt-[20px]"},_hoisted_3={class:"text-[20px]"},_hoisted_4={class:"panel-title !text-base"},_hoisted_5={class:"flex flex-row flex-wrap m-[-4px]"},_hoisted_6={class:"flex"},_hoisted_7=["onClick"],_hoisted_8={class:"ml-0.5"},_hoisted_9=["onClick"],_hoisted_10={class:"ml-0.5"},_hoisted_11=["onClick"],_hoisted_12={class:"ml-0.5"},_hoisted_13={class:"panel-title !text-base"},_hoisted_14={class:"flex flex-row flex-wrap m-[-4px]"},_hoisted_15={class:"flex"},_hoisted_16=["onClick"],_hoisted_17={class:"ml-0.5"},_hoisted_18=["onClick"],_hoisted_19={class:"ml-0.5"},_hoisted_20=["onClick"],_hoisted_21={class:"ml-0.5"},_sfc_main=defineComponent({__name:"notice",setup(__props){const route=useRoute(),pageName=route.meta.title,smsDialog=ref(null),wechatDialog=ref(null),weappDialog=ref(null);let noticeTableData=reactive({loading:!0,buyer:[],seller:[]});const loadNoticeList=()=>{noticeTableData.loading=!0,noticeTableData.buyer=[],noticeTableData.seller=[],getNoticeList().then(r=>{Object.keys(r.data).forEach(a=>{let o=r.data[a];o.sms_type=o.support_type.indexOf("sms")!==-1?1:0,o.wechat_type=o.support_type.indexOf("wechat")!==-1?1:0,o.weapp_type=o.support_type.indexOf("weapp")!==-1?1:0,o.receiver_type==0&¬iceTableData.buyer.push(o),o.receiver_type==1&¬iceTableData.seller.push(o)}),noticeTableData.loading=!1}).catch(()=>{noticeTableData.loading=!1})};loadNoticeList();const setNotice=(data,type)=>{data.type=type,eval("data.status=data.is_"+type),eval(type+"Dialog.value.setFormData(data)"),eval(type+"Dialog.value.showDialog = true;")};return(r,a)=>{const o=ElTableColumn,s=resolveComponent("SuccessFilled"),i=ElIcon,c=ElTable,n=ElCard,p=vLoading;return withDirectives((openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("div",_hoisted_2,[createBaseVNode("span",_hoisted_3,toDisplayString(unref(pageName)),1)]),createVNode(n,{class:"box-card !border-none",shadow:"never"},{default:withCtx(()=>[createBaseVNode("h3",_hoisted_4,toDisplayString(unref(t)("buyerNotice")),1),createBaseVNode("div",_hoisted_5,[createVNode(c,{data:unref(noticeTableData).seller,size:"large"},{default:withCtx(()=>[createVNode(o,{prop:"name",label:unref(t)("noticeType"),"min-width":"120"},null,8,["label"]),createVNode(o,{label:unref(t)("operation"),fixed:"right","min-width":"300"},{default:withCtx(({row:e})=>[createBaseVNode("div",_hoisted_6,[e.sms_type==1?(openBlock(),createElementBlock("div",{key:0,class:"text-sm mr-1 flex items-center cursor-pointer",onClick:l=>setNotice(e,"sms")},[createVNode(i,{class:normalizeClass(["text-[15px] mr-[3px]",e.is_sms?"open":""])},{default:withCtx(()=>[createVNode(s)]),_:2},1032,["class"]),createBaseVNode("span",_hoisted_8,toDisplayString(unref(t)("sms")),1)],8,_hoisted_7)):createCommentVNode("",!0),e.wechat_type?(openBlock(),createElementBlock("div",{key:1,class:"text-sm flex items-center cursor-pointer ml-[20px]",onClick:l=>setNotice(e,"wechat")},[createVNode(i,{class:normalizeClass(["text-[15px] mr-[3px]",e.is_wechat?"open":""])},{default:withCtx(()=>[createVNode(s)]),_:2},1032,["class"]),createBaseVNode("span",_hoisted_10,toDisplayString(unref(t)("wechat")),1)],8,_hoisted_9)):createCommentVNode("",!0),e.weapp_type?(openBlock(),createElementBlock("div",{key:2,class:"text-sm flex items-center cursor-pointer ml-[20px]",onClick:l=>setNotice(e,"weapp")},[createVNode(i,{class:normalizeClass(["text-[15px] mr-[3px]",e.is_weapp?"open":""])},{default:withCtx(()=>[createVNode(s)]),_:2},1032,["class"]),createBaseVNode("span",_hoisted_12,toDisplayString(unref(t)("weapp")),1)],8,_hoisted_11)):createCommentVNode("",!0)])]),_:1},8,["label"])]),_:1},8,["data"])])]),_:1}),createVNode(n,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:withCtx(()=>[createBaseVNode("h3",_hoisted_13,toDisplayString(unref(t)("sellerNotice")),1),createBaseVNode("div",_hoisted_14,[createVNode(c,{data:unref(noticeTableData).buyer,size:"large"},{default:withCtx(()=>[createVNode(o,{prop:"name",label:unref(t)("noticeType"),"min-width":"120"},null,8,["label"]),createVNode(o,{label:unref(t)("operation"),fixed:"right","min-width":"300"},{default:withCtx(({row:e})=>[createBaseVNode("div",_hoisted_15,[e.sms_type==1?(openBlock(),createElementBlock("div",{key:0,class:"text-sm mr-1 flex items-center cursor-pointer",onClick:l=>setNotice(e,"sms")},[createVNode(i,{class:normalizeClass(["text-[15px] mr-[3px]",e.is_sms?"open":""])},{default:withCtx(()=>[createVNode(s)]),_:2},1032,["class"]),createBaseVNode("span",_hoisted_17,toDisplayString(unref(t)("sms")),1)],8,_hoisted_16)):createCommentVNode("",!0),e.wechat_type?(openBlock(),createElementBlock("div",{key:1,class:"text-sm flex items-center cursor-pointer ml-[20px]",onClick:l=>setNotice(e,"wechat")},[createVNode(i,{class:normalizeClass(["text-[15px] mr-[3px]",e.is_wechat?"open":""])},{default:withCtx(()=>[createVNode(s)]),_:2},1032,["class"]),createBaseVNode("span",_hoisted_19,toDisplayString(unref(t)("wechat")),1)],8,_hoisted_18)):createCommentVNode("",!0),e.weapp_type?(openBlock(),createElementBlock("div",{key:2,class:"text-sm flex items-center cursor-pointer ml-[20px]",onClick:l=>setNotice(e,"weapp")},[createVNode(i,{class:normalizeClass(["text-[15px] mr-[3px]",e.is_weapp?"open":""])},{default:withCtx(()=>[createVNode(s)]),_:2},1032,["class"]),createBaseVNode("span",_hoisted_21,toDisplayString(unref(t)("weapp")),1)],8,_hoisted_20)):createCommentVNode("",!0)])]),_:1},8,["label"])]),_:1},8,["data"])])]),_:1}),createVNode(_sfc_main$1,{ref_key:"smsDialog",ref:smsDialog,onComplete:a[0]||(a[0]=e=>loadNoticeList())},null,512),createVNode(_sfc_main$2,{ref_key:"wechatDialog",ref:wechatDialog,onComplete:a[1]||(a[1]=e=>loadNoticeList())},null,512),createVNode(_sfc_main$3,{ref_key:"weappDialog",ref:weappDialog,onComplete:a[2]||(a[2]=e=>loadNoticeList())},null,512)])),[[p,unref(noticeTableData).loading]])}}}),notice_vue_vue_type_style_index_0_scoped_8c1c0ce2_lang="",notice=_export_sfc(_sfc_main,[["__scopeId","data-v-8c1c0ce2"]]);export{notice as default};
|