ysyt-react-agent-lib 1.0.17 → 1.0.19
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-BQMWxdmh.js +1 -0
- package/dist/{ConsultModel-DczJHTHe.mjs → ConsultModel-DZX9kRSq.mjs} +9 -8
- package/dist/{TransferModel-BKrG2NVi.mjs → TransferModel-B6DTUOBZ.mjs} +7 -6
- package/dist/TransferModel-D85jo9zH.js +1 -0
- package/dist/{index-De_xCfb1.mjs → index-CFCsvUIw.mjs} +1 -1
- package/dist/{index-CR2Pf1mZ.js → index-CiSJy1Gb.js} +123 -123
- package/dist/{index-CY4-yjzr.mjs → index-DQwh4ikf.mjs} +5119 -5090
- package/dist/{index-Du5UeH4_.js → index-kb4cLifV.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/ConsultModel-tb_wFKAt.js +0 -1
- package/dist/TransferModel-CTAPfhd8.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CiSJy1Gb.js"),s=require("react"),i=require("./index-kb4cLifV.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:{marginRight:10},children:["咨询坐席: ",t.agent_name]})]})},t.agent_no))})})})})});exports.default=c;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { j as e, M as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { M as j, T as p } from "./index-
|
|
4
|
-
const E =
|
|
5
|
-
const [n,
|
|
1
|
+
import { j as e, M as c, E as r, S as i, Y as d } from "./index-DQwh4ikf.mjs";
|
|
2
|
+
import { memo as g, useState as m, useEffect as x } from "react";
|
|
3
|
+
import { M as j, T as p } from "./index-CFCsvUIw.mjs";
|
|
4
|
+
const E = g(({ open: a, onCallBack: t, queryFetch: o }) => {
|
|
5
|
+
const [n, l] = m([]);
|
|
6
6
|
return x(() => {
|
|
7
7
|
(async () => {
|
|
8
8
|
try {
|
|
9
9
|
await o({
|
|
10
10
|
success: (s) => {
|
|
11
|
-
|
|
11
|
+
l(s.data || []);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
} catch {
|
|
14
|
+
} catch (s) {
|
|
15
|
+
console.log(s);
|
|
15
16
|
}
|
|
16
17
|
})();
|
|
17
|
-
}, [a]), /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(j, { open: a, title: "咨询", footer: !1, onCancel: () => t(), children: /* @__PURE__ */ e.jsx(
|
|
18
|
+
}, [a]), /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(j, { open: a, title: "咨询", footer: !1, onCancel: () => t(), children: /* @__PURE__ */ e.jsx(c, { children: n.length === 0 ? /* @__PURE__ */ e.jsx(r, { image: r.PRESENTED_IMAGE_SIMPLE }) : /* @__PURE__ */ e.jsx(i, { wrap: !0, children: n.map((s) => /* @__PURE__ */ e.jsx(p, { color: "processing", onClick: () => t(s.agent_no), children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [
|
|
18
19
|
/* @__PURE__ */ e.jsx(d, { name: "zixun" }),
|
|
19
20
|
/* @__PURE__ */ e.jsxs("span", { style: { marginRight: 10 }, children: [
|
|
20
21
|
"咨询坐席: ",
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { j as e, M as m, R as h, a as j, E as
|
|
1
|
+
import { j as e, M as m, R as h, a as j, E as c, S as f, Y as y, I as v } from "./index-DQwh4ikf.mjs";
|
|
2
2
|
import { memo as E, useState as a, useEffect as T } from "react";
|
|
3
|
-
import { M, T as S } from "./index-
|
|
4
|
-
const _ = E(({ open: r, onCallBack: n, queryFetch:
|
|
3
|
+
import { M, T as S } from "./index-CFCsvUIw.mjs";
|
|
4
|
+
const _ = E(({ open: r, onCallBack: n, queryFetch: d }) => {
|
|
5
5
|
const [l, g] = a([]), [t, p] = a(0), [o, u] = a(""), [x, i] = a(!1);
|
|
6
6
|
return T(() => {
|
|
7
7
|
(async () => {
|
|
8
8
|
i(!0);
|
|
9
9
|
try {
|
|
10
|
-
await
|
|
10
|
+
await d({
|
|
11
11
|
success: (s) => {
|
|
12
12
|
g(s.data || []);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
} catch {
|
|
15
|
+
} catch (s) {
|
|
16
|
+
console.log(s);
|
|
16
17
|
}
|
|
17
18
|
i(!1);
|
|
18
19
|
})();
|
|
@@ -35,7 +36,7 @@ const _ = E(({ open: r, onCallBack: n, queryFetch: c }) => {
|
|
|
35
36
|
}
|
|
36
37
|
) }),
|
|
37
38
|
/* @__PURE__ */ e.jsx(j, { spinning: x, children: /* @__PURE__ */ e.jsxs("div", { style: { borderTop: "1px solid #eee", marginTop: 10, paddingTop: 10 }, children: [
|
|
38
|
-
t === 0 && /* @__PURE__ */ e.jsx(e.Fragment, { children: l.length === 0 ? /* @__PURE__ */ e.jsx(
|
|
39
|
+
t === 0 && /* @__PURE__ */ e.jsx(e.Fragment, { children: l.length === 0 ? /* @__PURE__ */ e.jsx(c, { image: c.PRESENTED_IMAGE_SIMPLE }) : /* @__PURE__ */ e.jsx(f, { wrap: !0, children: l.map((s) => /* @__PURE__ */ e.jsx(S, { color: "processing", onClick: () => n(s.agent_no, 0), children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [
|
|
39
40
|
/* @__PURE__ */ e.jsx(y, { name: "zixun" }),
|
|
40
41
|
/* @__PURE__ */ e.jsxs("span", { style: { marginRight: 10 }, children: [
|
|
41
42
|
"转接坐席: ",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CiSJy1Gb.js"),s=require("react"),l=require("./index-kb4cLifV.js"),m=s.memo(({open:o,onCallBack:n,queryFetch:u})=>{const[a,p]=s.useState([]),[r,c]=s.useState(0),[i,d]=s.useState(""),[j,x]=s.useState(!1);return s.useEffect(()=>{(async()=>{x(!0);try{await u({success:t=>{p(t.data||[])}})}catch(t){console.log(t)}x(!1)})()},[o]),e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(l.Modal,{open:o,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=>c(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(l.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.jsx(e.Input,{value:i,onChange:t=>d(t.target.value),placeholder:"请输入外线号码, 回车转接",onPressEnter:()=>{n(i,1)}})]})})]})})})});exports.default=m;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import $, { useContext as re, useRef as Z, useMemo as Lt, useEffect as De } from "react";
|
|
3
|
-
import { i as Dt, K as Ne, b as Pe, p as je, g as se, F as kt, m as fe, u as N, r as nt, C as q, c as O, d as Ie, e as At, o as ge, f as Ce, h as _t, k as Vt, l as Wt, W as qt, n as Gt, B as Te, q as ot, s as Xt, _ as R, t as ke, v as Y, w as Me, x as at, y as Ae, z as Ut, A as _e, D as Ve, P as Kt, G as Qt, H as K, J as Zt, L as Yt, N as Re, O as Jt, Q as lt, T as en, U as tn, V as rt, X as nn, Z as on, $ as an, a0 as ue, a1 as ln, a2 as st, a3 as rn, a4 as sn, a5 as cn, a6 as dn, a7 as un, a8 as mn, a9 as fn, aa as gn, ab as Cn, ac as it, ad as pn, ae as vn } from "./index-
|
|
3
|
+
import { i as Dt, K as Ne, b as Pe, p as je, g as se, F as kt, m as fe, u as N, r as nt, C as q, c as O, d as Ie, e as At, o as ge, f as Ce, h as _t, k as Vt, l as Wt, W as qt, n as Gt, B as Te, q as ot, s as Xt, _ as R, t as ke, v as Y, w as Me, x as at, y as Ae, z as Ut, A as _e, D as Ve, P as Kt, G as Qt, H as K, J as Zt, L as Yt, N as Re, O as Jt, Q as lt, T as en, U as tn, V as rt, X as nn, Z as on, $ as an, a0 as ue, a1 as ln, a2 as st, a3 as rn, a4 as sn, a5 as cn, a6 as dn, a7 as un, a8 as mn, a9 as fn, aa as gn, ab as Cn, ac as it, ad as pn, ae as vn } from "./index-DQwh4ikf.mjs";
|
|
4
4
|
const bn = new Ne("antFadeIn", {
|
|
5
5
|
"0%": {
|
|
6
6
|
opacity: 0
|