forked from gzzfw/frontEnd/gzDyh

dminyi
2024-09-11 56ea0318eea40aa2f9df4ef3605915d5e06f35cb
修改
2 files modified
18 ■■■■ changed files
gz-customerSystem/src/api/appUrl.js 6 ●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/visit/component/levelDetail.jsx 12 ●●●● patch | view | raw | blame | history
gz-customerSystem/src/api/appUrl.js
@@ -2,7 +2,7 @@
 * @Company: hugeInfo
 * @Author: ldh
 * @Date: 2022-02-16 11:25:57
 * @LastEditTime: 2024-09-11 11:09:56
 * @LastEditTime: 2024-09-11 13:37:26
 * @LastEditors: dminyi 1301963064@qq.com
 * @Version: 1.0.0
 * @Description: api地址
@@ -10,11 +10,11 @@
export const debug = {
  // web服务
  // baseUrl: 'http://gz.hugeinfo.com.cn',
  baseUrl: "http://zdpn35.natappfree.cc",
  baseUrl: "http://192.168.3.108:9002",
  // baseUrl: 'http://mdqgnh.natappfree.cc',
  // 附件服务
  fileUrl: "http://zdpn35.natappfree.cc",
  fileUrl: "http://192.168.3.108:9002",
  // fileUrl: 'http://gz.hugeinfo.com.cn',
  // 文件查看url 后面接附件编号
gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
@@ -2,7 +2,7 @@
 * @Author: dminyi 1301963064@qq.com
 * @Date: 2024-08-27 16:47:12
 * @LastEditors: dminyi 1301963064@qq.com
 * @LastEditTime: 2024-09-11 12:25:47
 * @LastEditTime: 2024-09-11 13:35:29
 * @FilePath: \gzDyh\gz-customerSystem\src\views\register\visit\component\levelDetail.jsx
 * @Description: 右抽屉提示
 */
@@ -147,12 +147,12 @@
    ])
    const [caseDetail, setCaseDetail] = useState(false)
    const toggleView = (type, id) => {
    const toggleView = (type, id, caseType) => {
        setCaseDetail(true)
        setModalType(type)
        if (type === 'case') {
            getCaseDetail(id);
            getCaseDetail(id, caseType);
        }
        if (type === 'law') {
            console.log(id, 'idddddd')
@@ -168,10 +168,10 @@
        setCaseDetail(false)
    }
    const getCaseDetail = async (id) => {
    const getCaseDetail = async (id, type) => {
        const res = await getCaseDetailApi({
            caseId: id,
            type: '1'
            type: type
        })
        if (res.type) {
            setCaseDetailView(res.data)
@@ -213,7 +213,7 @@
                                    <div className='aiBox-list-item'>
                                        <div className='aiBox-list-item-type'>{item.caseType === 1 ? '典型案例' : '相似案例'}</div>
                                        <div className='aiBox-list-item-name'>{item.caseName}</div>
                                        <div className='aiBox-list-item-btn' onClick={() => toggleView('case', item.caseId)}>查看</div>
                                        <div className='aiBox-list-item-btn' onClick={() => toggleView('case', item.caseId, item.caseType)} >查看</div>
                                    </div>
                                ))}
                            </div>