From 44ccf24247663431c03b82ef6817663671982b01 Mon Sep 17 00:00:00 2001 From: fengxiang <361798944@qq.com> Date: Wed, 27 Dec 2023 14:05:14 +0800 Subject: [PATCH] =?UTF-8?q?fix():=20=E5=AE=A2=E8=AF=89=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OperationCenter/CustomerServieMgm/ComplainManage/loadable.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/OperationCenter/CustomerServieMgm/ComplainManage/loadable.jsx b/src/pages/OperationCenter/CustomerServieMgm/ComplainManage/loadable.jsx index a3e3a5e..ac088a2 100644 --- a/src/pages/OperationCenter/CustomerServieMgm/ComplainManage/loadable.jsx +++ b/src/pages/OperationCenter/CustomerServieMgm/ComplainManage/loadable.jsx @@ -233,6 +233,8 @@ function ComplainManage(props) { const [visible7, setVisible7] = useState(false); // 是否编辑 const [isEdit, setIsEdit] = useState(false); + // 编辑标题 + const [editText, setEditText] = useState("添加"); // 添加/编辑、查看数据 const [rowData, setRowData] = useState({}); @@ -700,6 +702,7 @@ function ComplainManage(props) { if (param.key == "2") { // 编辑 setIsEdit(true); + setEditText("编辑"); } else { // 详情 setIsEdit(false); @@ -1327,6 +1330,7 @@ function ComplainManage(props) { setRowData({}); setIsEdit(true); setVisible7(true); + setEditText("添加"); }} > 添加 @@ -2259,7 +2263,7 @@ function ComplainManage(props) { className="complain-manage-detail" visible={visible7} title={ - (isEdit ? "添加" : "查看") + + (isEdit ? editText : "查看") + (sortData?.tab == "2" ? "二" : "一") + "级分类" } @@ -2337,6 +2341,7 @@ function ComplainManage(props) { <Input.TextArea className="form-con" placeholder="请输入" + autoSize={{ minRows: 2, maxRows: 4 }} value={rowData?.remark || undefined} onChange={(e) => setRowData({