ysyt-react-agent-lib 1.0.65 → 1.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConsultModel-DdlUYwIg.js → ConsultModel-DC8qWRqf.js} +1 -1
- package/dist/{ConsultModel-m5ruHiZW.mjs → ConsultModel-DiMz_eQ1.mjs} +2 -2
- package/dist/TransferModel-gj4B4DlZ.mjs +75 -0
- package/dist/TransferModel-sDMWq4gM.js +1 -0
- package/dist/{index-CJ9V6HiK.js → index-CeW_SiHv.js} +67 -67
- package/dist/{index-Kxos83vI.mjs → index-Co4qgazj.mjs} +821 -820
- package/dist/{index-BG7xvNjk.mjs → index-_bmhkroK.mjs} +1 -1
- package/dist/{index-CdOZk4W8.js → index-oHnD2THS.js} +1 -1
- package/dist/ysyt-react-agent-lib.cjs.js +1 -1
- package/dist/ysyt-react-agent-lib.es.js +1 -1
- package/package.json +2 -2
- package/dist/TransferModel-0j4-TNad.js +0 -1
- package/dist/TransferModel-DcmHR1Xb.mjs +0 -62
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CeW_SiHv.js"),s=require("react"),i=require("./index-oHnD2THS.js"),c=s.memo(({open:n,onCallBack:r,queryFetch:x})=>{const[o,a]=s.useState([]);return s.useEffect(()=>{(async()=>{try{await x({success:t=>{a(t.data||[])}})}catch(t){console.log(t)}})()},[n]),e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(i.Modal,{open:n,title:"咨询",footer:!1,onCancel:()=>r(),children:e.jsxRuntimeExports.jsx(e.ModelBody,{children:o.length===0?e.jsxRuntimeExports.jsx(e.Empty,{image:e.Empty.PRESENTED_IMAGE_SIMPLE}):e.jsxRuntimeExports.jsx(e.Space,{wrap:!0,children:o.map(t=>e.jsxRuntimeExports.jsx(i.Tag,{color:"processing",onClick:()=>r(t.agent_no),children:e.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.YsytIconSvg,{name:"zixun"}),e.jsxRuntimeExports.jsxs("span",{style:{marginLeft:10},children:["咨询坐席: ",t.agent_name]})]})},t.agent_no))})})})})});exports.default=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, M as c, E as r, S as i, Y as d } from "./index-
|
|
1
|
+
import { j as e, M as c, E as r, S as i, Y as d } from "./index-Co4qgazj.mjs";
|
|
2
2
|
import { memo as m, useState as g, useEffect as x } from "react";
|
|
3
|
-
import { M as j, T as p } from "./index-
|
|
3
|
+
import { M as j, T as p } from "./index-_bmhkroK.mjs";
|
|
4
4
|
const E = m(({ open: a, onCallBack: t, queryFetch: o }) => {
|
|
5
5
|
const [n, l] = g([]);
|
|
6
6
|
return x(() => {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { j as e, M as j, R as f, a as y, E as d, S as g, Y as p, I as E } from "./index-Co4qgazj.mjs";
|
|
2
|
+
import { memo as v, useState as a, useEffect as T } from "react";
|
|
3
|
+
import { M as I, T as M } from "./index-_bmhkroK.mjs";
|
|
4
|
+
const _ = v(({ open: r, onCallBack: n, queryFetch: x }) => {
|
|
5
|
+
const [o, m] = a([]), [t, u] = a(0), [l, i] = a(""), [h, c] = a(!1);
|
|
6
|
+
return T(() => {
|
|
7
|
+
(async () => {
|
|
8
|
+
c(!0);
|
|
9
|
+
try {
|
|
10
|
+
await x({
|
|
11
|
+
success: (s) => {
|
|
12
|
+
m(s.data || []);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
} catch (s) {
|
|
16
|
+
console.log(s);
|
|
17
|
+
}
|
|
18
|
+
c(!1);
|
|
19
|
+
})();
|
|
20
|
+
}, [r]), /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(I, { open: r, title: "转接", footer: !1, onCancel: () => n(), children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
21
|
+
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
|
|
22
|
+
f.Group,
|
|
23
|
+
{
|
|
24
|
+
options: [
|
|
25
|
+
{
|
|
26
|
+
label: "转接坐席",
|
|
27
|
+
value: 0
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: "转接外线",
|
|
31
|
+
value: 1
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
value: t,
|
|
35
|
+
onChange: (s) => u(s.target.value)
|
|
36
|
+
}
|
|
37
|
+
) }),
|
|
38
|
+
/* @__PURE__ */ e.jsx(y, { spinning: h, children: /* @__PURE__ */ e.jsxs("div", { style: { borderTop: "1px solid #eee", marginTop: 10, paddingTop: 10 }, children: [
|
|
39
|
+
t === 0 && /* @__PURE__ */ e.jsx(e.Fragment, { children: o.length === 0 ? /* @__PURE__ */ e.jsx(d, { image: d.PRESENTED_IMAGE_SIMPLE }) : /* @__PURE__ */ e.jsx(g, { wrap: !0, children: o.map((s) => /* @__PURE__ */ e.jsx(M, { color: "processing", onClick: () => n(s.agent_no, 0), children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [
|
|
40
|
+
/* @__PURE__ */ e.jsx(p, { name: "zixun" }),
|
|
41
|
+
/* @__PURE__ */ e.jsxs("span", { style: { marginRight: 10 }, children: [
|
|
42
|
+
"转接坐席: ",
|
|
43
|
+
s.agent_name
|
|
44
|
+
] })
|
|
45
|
+
] }) }, s.agent_no)) }) }),
|
|
46
|
+
t === 1 && /* @__PURE__ */ e.jsxs(g.Compact, { style: { width: "100%", display: "flex", alignItems: "center" }, children: [
|
|
47
|
+
/* @__PURE__ */ e.jsx(
|
|
48
|
+
E,
|
|
49
|
+
{
|
|
50
|
+
value: l,
|
|
51
|
+
onChange: (s) => i(s.target.value),
|
|
52
|
+
placeholder: "请输入外线号码, 回车转接",
|
|
53
|
+
onPressEnter: () => {
|
|
54
|
+
n(l, 1);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ e.jsx(
|
|
59
|
+
p,
|
|
60
|
+
{
|
|
61
|
+
name: "boda",
|
|
62
|
+
color: "#1D92E9",
|
|
63
|
+
size: 25,
|
|
64
|
+
onClick: () => {
|
|
65
|
+
i(l);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
] })
|
|
70
|
+
] }) })
|
|
71
|
+
] }) }) });
|
|
72
|
+
});
|
|
73
|
+
export {
|
|
74
|
+
_ as default
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CeW_SiHv.js"),s=require("react"),u=require("./index-oHnD2THS.js"),m=s.memo(({open:i,onCallBack:n,queryFetch:p})=>{const[a,c]=s.useState([]),[r,d]=s.useState(0),[o,x]=s.useState(""),[j,l]=s.useState(!1);return s.useEffect(()=>{(async()=>{l(!0);try{await p({success:t=>{c(t.data||[])}})}catch(t){console.log(t)}l(!1)})()},[i]),e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(u.Modal,{open:i,title:"转接",footer:!1,onCancel:()=>n(),children:e.jsxRuntimeExports.jsxs(e.ModelBody,{children:[e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(e.Radio.Group,{options:[{label:"转接坐席",value:0},{label:"转接外线",value:1}],value:r,onChange:t=>d(t.target.value)})}),e.jsxRuntimeExports.jsx(e.Spin,{spinning:j,children:e.jsxRuntimeExports.jsxs("div",{style:{borderTop:"1px solid #eee",marginTop:10,paddingTop:10},children:[r===0&&e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:a.length===0?e.jsxRuntimeExports.jsx(e.Empty,{image:e.Empty.PRESENTED_IMAGE_SIMPLE}):e.jsxRuntimeExports.jsx(e.Space,{wrap:!0,children:a.map(t=>e.jsxRuntimeExports.jsx(u.Tag,{color:"processing",onClick:()=>n(t.agent_no,0),children:e.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.YsytIconSvg,{name:"zixun"}),e.jsxRuntimeExports.jsxs("span",{style:{marginRight:10},children:["转接坐席: ",t.agent_name]})]})},t.agent_no))})}),r===1&&e.jsxRuntimeExports.jsxs(e.Space.Compact,{style:{width:"100%",display:"flex",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.Input,{value:o,onChange:t=>x(t.target.value),placeholder:"请输入外线号码, 回车转接",onPressEnter:()=>{n(o,1)}}),e.jsxRuntimeExports.jsx(e.YsytIconSvg,{name:"boda",color:"#1D92E9",size:25,onClick:()=>{x(o)}})]})]})})]})})})});exports.default=m;
|