瀏覽代碼

Merge branch 'dev' of http://git.ycjcjy.com/jgz/admin into dev

Yansen 2 年之前
父節點
當前提交
615e152bce

+ 22
- 0
src/components/evaluateItem/index.jsx 查看文件

@@ -0,0 +1,22 @@
1
+import React, { useState, useEffect } from "react";
2
+import { Radio } from "antd";
3
+function MyEditor(props) {
4
+  const {
5
+    // value,
6
+    // onChange = (e) => {},
7
+    options = [
8
+      { value: 2, label: "优" },
9
+      { value: 1, label: "良" },
10
+      { value: 0, label: "差" },
11
+    ],
12
+    ...leftProps
13
+  } = props;
14
+
15
+  return (
16
+    <>
17
+      <Radio.Group options={options} {...leftProps} />
18
+    </>
19
+  );
20
+}
21
+
22
+export default MyEditor;

+ 92
- 0
src/pages/evaluate/evaluateList/addeValuate.jsx 查看文件

@@ -0,0 +1,92 @@
1
+import { PlusOutlined } from "@ant-design/icons";
2
+import {
3
+  ModalForm,
4
+  ProForm,
5
+  ProFormDateRangePicker,
6
+  ProFormSelect,
7
+  ProFormText,
8
+} from "@ant-design/pro-components";
9
+import { Button, Form, message } from "antd";
10
+// import { getPostsFilesList, savePostsFiles } from "@/services/posts";
11
+import {
12
+  getEvaluateList,
13
+  saveEvaluate
14
+} from "@/services/evaluate";
15
+import EvaluateItem from "@/components/evaluateItem";
16
+
17
+export default ({ taskId, onsuccess = () => {} }) => {
18
+  const [form] = Form.useForm();
19
+
20
+  const onFinish = async (values) => {
21
+    console.log(values);
22
+    // await waitTime(2000);
23
+
24
+    await saveEvaluate(values);
25
+    onsuccess();
26
+    return true;
27
+  };
28
+
29
+  const itemList = [
30
+    {
31
+      name: "item1",
32
+      label: "服务质量",
33
+    },
34
+    {
35
+      name: "item2",
36
+      label: "供应住宿",
37
+    },
38
+    {
39
+      name: "item3",
40
+      label: "供应餐饮",
41
+    },
42
+    {
43
+      name: "item4",
44
+      label: "洗浴评价",
45
+    },
46
+    {
47
+      name: "item5",
48
+      label: "娱乐评价",
49
+    },
50
+    {
51
+      name: "item6",
52
+      label: "军供文化",
53
+    },
54
+  ];
55
+  
56
+  return (
57
+    <ModalForm
58
+      title="评价"
59
+      trigger={<Button type="primary">新增</Button>}
60
+      form={form}
61
+      // open={true}
62
+      layout={"horizontal"}
63
+      labelCol={{ span: 8 }}
64
+      wrapperCol={{ span: 12 }}
65
+      modalProps={{
66
+        destroyOnClose: true,
67
+        onCancel: () => console.log("run"),
68
+      }}
69
+      initialValues={{ taskId: taskId }}
70
+      submitTimeout={2000}
71
+      onFinish={onFinish}
72
+    >
73
+      <ProFormText
74
+        width="md"
75
+        name="taskId"
76
+        label="任务ID"
77
+        readonly
78
+        hidden={true}
79
+      />
80
+      {itemList?.map((x) => {
81
+       return <ProForm.Item
82
+          key={x.name}
83
+          name={x.name}
84
+          label={x.label}
85
+          rules={[{ required: true, message: "请选择评价" }]}
86
+        >
87
+          <EvaluateItem></EvaluateItem>
88
+        </ProForm.Item>;
89
+      })}
90
+    </ModalForm>
91
+  );
92
+};

+ 103
- 0
src/pages/evaluate/evaluateList/index.jsx 查看文件

@@ -0,0 +1,103 @@
1
+import { getEvaluateList } from "@/services/evaluate";
2
+import { queryTable } from "@/utils/request";
3
+import { PageContainer, ProTable } from "@ant-design/pro-components";
4
+import { Link, useNavigate, useSearchParams } from "react-router-dom";
5
+
6
+import { Button, message, Popconfirm } from "antd";
7
+import moment from "moment";
8
+import { useRef, useState } from "react";
9
+import AddeValuate from "./addeValuate";
10
+
11
+const EvaluateList = (props) => {
12
+  const [searchParams] = useSearchParams();
13
+  const id = searchParams.get("id");
14
+  const navigate = useNavigate();
15
+
16
+  // const [storeTypeDict, setStoreTypeDict] = useState([]);
17
+  const actionRef = useRef();
18
+  const formRef = useRef();
19
+
20
+  const  valueEnum= {
21
+    2: { text: "优", status: "Success" },
22
+    1: { text: "良", status: "Processing" },
23
+    0: { text: "差", status: "Default" },
24
+  }
25
+
26
+  const columns = [
27
+    // {
28
+    //   title: "任务ID",
29
+    //   dataIndex: "taskId",
30
+    // },
31
+
32
+    {
33
+      title: "服务质量",
34
+      dataIndex: "item1",
35
+      search: false,
36
+      valueEnum
37
+    },
38
+    {
39
+      title: "供应住宿",
40
+      dataIndex: "item2",
41
+      search: false,
42
+      valueEnum
43
+    },
44
+    {
45
+      title: "供应餐饮",
46
+      dataIndex: "item3",
47
+      search: false,
48
+      valueEnum
49
+    },
50
+    {
51
+      title: "洗浴评价",
52
+      dataIndex: "item4",
53
+      search: false,
54
+      valueEnum
55
+    },
56
+    {
57
+      title: "娱乐评价",
58
+      dataIndex: "item5",
59
+      search: false,
60
+      valueEnum
61
+    },
62
+    {
63
+      title: "军供文化",
64
+      dataIndex: "item6",
65
+      search: false,
66
+      valueEnum
67
+    },
68
+  ];
69
+
70
+  return (
71
+    <PageContainer>
72
+      <ProTable
73
+        actionRef={actionRef}
74
+        formRef={formRef}
75
+        search={false}
76
+        params={{ taskId: id }}
77
+        rowKey="id"
78
+        toolBarRender={() => [
79
+          <AddeValuate
80
+            taskId={id}
81
+            key="2"
82
+            onsuccess={() => {
83
+              actionRef.current.reload();
84
+            }}
85
+          ></AddeValuate>,
86
+          // <Button
87
+          //   key="2"
88
+          //   type="primary"
89
+          //   onClick={() => {
90
+
91
+          //   }}
92
+          // >
93
+          //   新增评价
94
+          // </Button>,
95
+        ]}
96
+        request={queryTable(getEvaluateList)}
97
+        columns={columns}
98
+      />
99
+    </PageContainer>
100
+  );
101
+};
102
+
103
+export default EvaluateList;

+ 114
- 0
src/pages/evaluate/index.jsx 查看文件

@@ -0,0 +1,114 @@
1
+import {
2
+  deleteGuaranteeTask,
3
+  getGuaranteeTaskList,
4
+} from "@/services/guaranteeTask";
5
+import { queryTable } from "@/utils/request";
6
+import { PageContainer, ProTable } from "@ant-design/pro-components";
7
+import { Link, useNavigate } from "react-router-dom";
8
+
9
+import { Button, message, Popconfirm } from "antd";
10
+import moment from "moment";
11
+import { useRef, useState } from "react";
12
+
13
+const GuaranteeTaskList = (props) => {
14
+  const navigate = useNavigate();
15
+  const [isOpen, setIsOpen] = useState(false);
16
+  const [modalData, setModalData] = useState({});
17
+  // const [storeTypeDict, setStoreTypeDict] = useState([]);
18
+  const actionRef = useRef();
19
+  const formRef = useRef();
20
+
21
+  const handleDelete = (id) => {
22
+    if (id) {
23
+      deleteGuaranteeTask(id).then((res) => {
24
+        message.success("删除成功");
25
+        actionRef.current.reload();
26
+      });
27
+    }
28
+  };
29
+
30
+  const onCancel = () => {
31
+    setIsOpen(false);
32
+    setModalData({});
33
+  };
34
+
35
+  const columns = [
36
+    {
37
+      title: "保障序号",
38
+      dataIndex: "guaranteeNo",
39
+    },
40
+    {
41
+      title: "受领人",
42
+      dataIndex: "receiver",
43
+    },
44
+    {
45
+      title: "时间区间",
46
+      dataIndex: "dateRange",
47
+      valueType: "dateRange",
48
+      search: {
49
+        transform: (value) => {
50
+          console.log(value, value[0].valueOf(), "valuevalue");
51
+
52
+          return {
53
+            startDate: moment(value[0]).format("yyyy-MM-DD"),
54
+            endDate: moment(value[1]).format("yyyy-MM-DD"),
55
+          };
56
+        },
57
+      },
58
+    },
59
+    {
60
+      title: "保障地点",
61
+      dataIndex: "address",
62
+      search: false,
63
+    },
64
+    {
65
+      title: "保障人数",
66
+      dataIndex: "totalPersonNum",
67
+      search: false,
68
+    },
69
+    {
70
+      title: "伙食标准",
71
+      dataIndex: "standard",
72
+      search: false,
73
+    },
74
+
75
+    {
76
+      title: "操作",
77
+      valueType: "option",
78
+      width: 200,
79
+      render: (_, record) => [
80
+        <Button
81
+          key={2}
82
+          style={{ padding: 0 }}
83
+          type="link"
84
+          onClick={() => {
85
+            navigate(`/task/evaluate/list?id=${record.id}`);
86
+          }}
87
+        >
88
+          评价
89
+        </Button>,
90
+      ],
91
+    },
92
+  ];
93
+
94
+  return (
95
+    <PageContainer>
96
+      <ProTable
97
+        actionRef={actionRef}
98
+        formRef={formRef}
99
+        postData={(data) => {
100
+          return data.map((x) => ({
101
+            dateRange: [x.startDate, x.endDate],
102
+            ...x,
103
+          }));
104
+        }}
105
+        rowKey="id"
106
+       
107
+        request={queryTable(getGuaranteeTaskList)}
108
+        columns={columns}
109
+      />
110
+    </PageContainer>
111
+  );
112
+};
113
+
114
+export default GuaranteeTaskList;

+ 67
- 0
src/pages/rotationChart/introduction/edit/index.jsx 查看文件

@@ -0,0 +1,67 @@
1
+import { addRegulation, getRegulationById } from '@/services/regulation';
2
+import { PageContainer, ProForm, ProFormTextArea } from '@ant-design/pro-components';
3
+import { Card, Col, message, Row, Space } from 'antd';
4
+import { useNavigate, useSearchParams } from 'react-router-dom';
5
+import { useEffect, useRef, useState } from 'react';
6
+
7
+export default (props) => {
8
+  const [searchParams, setSearchParams] = useSearchParams();
9
+  const id = searchParams.get('id');
10
+  const formRef = useRef();
11
+  const navigate = useNavigate();
12
+
13
+  useEffect(() => {
14
+    if (id) {
15
+      getRegulationById(id).then((res) => {
16
+        formRef.current.setFieldsValue(res);
17
+      });
18
+    }
19
+  }, [id]);
20
+
21
+  const onFinish = async (values) => {
22
+    //添加,修改
23
+    addRegulation({ ...values, id }).then((res) => {
24
+      message.success('成功');
25
+      navigate(-1);
26
+    });
27
+    return false;
28
+  };
29
+
30
+  return (
31
+    <PageContainer>
32
+      <Card>
33
+        <ProForm
34
+          formRef={formRef}
35
+          layout={'horizontal'}
36
+          labelCol={{ span: 8 }}
37
+          wrapperCol={{ span: 16 }}
38
+          onFinish={onFinish}
39
+          submitter={{
40
+            searchConfig: {
41
+              resetText: '返回',
42
+            },
43
+            onReset: () => navigate(-1),
44
+            render: (props, doms) => {
45
+              return (
46
+                <Row>
47
+                  <Col span={8} offset={11}>
48
+                    <Space>{doms}</Space>
49
+                  </Col>
50
+                </Row>
51
+              );
52
+            },
53
+          }}
54
+        >
55
+          <ProFormTextArea
56
+            name="detail"
57
+            label="发布内容"
58
+            placeholder="请输入发布内容"
59
+            rules={[{ required: true, message: '请输入发布内容' }]}
60
+            allowClear={false}
61
+            width={750}
62
+          />
63
+        </ProForm>
64
+      </Card>
65
+    </PageContainer>
66
+  )
67
+}

+ 90
- 25
src/pages/rotationChart/introduction/index.jsx 查看文件

@@ -1,28 +1,93 @@
1
-import { ProFormTextArea, ProForm } from '@ant-design/pro-components';
2
-import { Col, Row, Space } from 'antd';
1
+import { getRegulationList, deleteRegulation } from '@/services/regulation';
2
+import { ProFormTextArea, ProForm, PageContainer, ProTable } from '@ant-design/pro-components';
3
+import { Button, message, Popconfirm } from 'antd';
4
+import { useNavigate } from 'react-router-dom';
5
+import { queryTable } from '@/utils/request';
6
+import { useRef, useState, useEffect } from 'react';
3 7
 
4
-export default (props) => {
5
-  console.log('小方', props);
6
-  return (
7
-    <ProForm
8
-      submitter={{
9
-        searchConfig: {
10
-          resetText: '返回',
11
-        },
12
-        onReset: () => navigate(-1),
13
-        render: (props, doms) => {
14
-          return (
15
-            <Row>
16
-              <Col span={8} offset={11}>
17
-                <Space>{doms}</Space>
18
-              </Col>
19
-            </Row>
20
-          );
21
-        },
22
-      }}
23
-    >
24
-      <ProFormTextArea placeholder="请输入..."></ProFormTextArea>
25
-    </ProForm>
8
+const IntroductionList = (props) => {
9
+  const actionRef = useRef();
10
+  const navigate = useNavigate();
11
+
12
+  const handleDelete = (id) => {
13
+    if (id) {
14
+      deleteRegulation(id).then((res) => {
15
+        message.success('删除成功');
16
+        actionRef.current.reload();
17
+      });
18
+    }
19
+  };
20
+
21
+  const columns = [
22
+    {
23
+      title: 'id',
24
+      dataIndex: 'id',
25
+      width: 100,
26
+      search: false,
27
+      hideInTable: true,
28
+    },
29
+
30
+    {
31
+      title: '内容',
32
+      dataIndex: 'detail',
33
+      width: 400,
34
+      search: false,
35
+    },
36
+    {
37
+      title: '操作',
38
+      valueType: 'option',
39
+      width: 100,
40
+      render: (_, record) => [
41
+        <Button
42
+          key={2}
43
+          style={{ padding: 0 }}
44
+          type="link"
45
+          onClick={() => {
46
+            console.log(record, ']]');
47
+            navigate(`/cms/rotationChart/introduction/edit?id=${record.id}`);
48
+          }}
49
+        >
50
+          编辑
51
+        </Button>,
26 52
 
27
-  )
53
+        <Popconfirm
54
+          key={3}
55
+          title="您是否确认删除 ?"
56
+          onConfirm={() => handleDelete(record.id)}
57
+          okText="确定"
58
+          cancelText="取消"
59
+        >
60
+          {/* manualPush */}
61
+          <Button style={{ padding: 0 }} type="link">
62
+            删除
63
+          </Button>
64
+        </Popconfirm>,
65
+      ],
66
+    },
67
+  ];
68
+
69
+  return (
70
+    <PageContainer>
71
+      <ProTable
72
+        search={false}
73
+        actionRef={actionRef}
74
+        rowKey="id"
75
+        toolBarRender={() => [
76
+          <Button
77
+            key="2"
78
+            type="primary"
79
+            onClick={() => {
80
+              navigate('/cms/rotationChart/introduction/edit');
81
+            }}
82
+          >
83
+            新增
84
+          </Button>,
85
+        ]}
86
+        request={queryTable(getRegulationList)}
87
+        columns={columns}
88
+      />
89
+    </PageContainer>
90
+  );
28 91
 }
92
+
93
+export default IntroductionList;

+ 1
- 1
src/pages/stockClassification/list/index.jsx 查看文件

@@ -1,5 +1,5 @@
1 1
 
2
-import { getStoreTypeList,deleteStoreType } from '@/services/stock';
2
+import { getStoreTypeList, deleteStoreType } from '@/services/stock';
3 3
 import { queryTable } from '@/utils/request';
4 4
 import { PageContainer, ProTable } from '@ant-design/pro-components';
5 5
 import { useNavigate } from 'react-router-dom';

+ 8
- 15
src/regulation/edit/index.jsx 查看文件

@@ -1,4 +1,5 @@
1
-import { addRegulation, updataRegulation, getRegulationById } from '@/services/regulation';
1
+import { addRegulation, getRegulationById } from '@/services/regulation';
2
+import { queryDict } from '@/utils/request';
2 3
 import { PageContainer, ProForm, ProFormSelect, ProFormText } from '@ant-design/pro-components';
3 4
 import { Card, Col, message, Row, Space } from 'antd';
4 5
 import { useNavigate, useSearchParams } from 'react-router-dom';
@@ -21,20 +22,12 @@ export default (props) => {
21 22
   const onFinish = async (values) => {
22 23
     console.log(values);
23 24
 
24
-    if (id) {
25
-      //修改
26
-      updataRegulation({ ...values }, id).then((res) => {
27
-        message.success('修改成功');
28
-        navigate(-1);
29
-      });
30
-
31
-    } else {
32
-      //添加
33
-      addRegulation({ ...values }).then((res) => {
34
-        message.success('添加成功');
35
-        navigate(-1);
36
-      });
37
-    }
25
+    // if (id) {
26
+    //添加,修改
27
+    addRegulation({ ...values, id }).then((res) => {
28
+      message.success('成功');
29
+      navigate(-1);
30
+    });
38 31
     return false;
39 32
   };
40 33
 

+ 11
- 12
src/regulation/index.jsx 查看文件

@@ -1,6 +1,6 @@
1
-import { getRegulationList, updataRegulation, deleteRegulation } from '@/services/regulation';
1
+import { getRegulationList, deleteRegulation } from '@/services/regulation';
2 2
 import { PageContainer, ProTable } from '@ant-design/pro-components';
3
-import { useRef, useState } from 'react';
3
+import { useRef, useState, useEffect } from 'react';
4 4
 import { useNavigate } from 'react-router-dom';
5 5
 import { queryTable } from '@/utils/request';
6 6
 import { Button, message, Popconfirm } from 'antd';
@@ -9,15 +9,9 @@ const RegulationList = (props) => {
9 9
   const actionRef = useRef();
10 10
   const navigate = useNavigate();
11 11
 
12
-  // const updata = (row) => {
13
-  //   if (row.id) {
14
-  //     // 修改
15
-  //     updataRegulation(row.id, { ...values }).then((res) => {
16
-  //       message.success('修改成功');
17
-  //       navigate(-1);
18
-  //     });
19
-  //   }
20
-  // };
12
+  useEffect(() => {
13
+    actionRef.current.reload();
14
+  });
21 15
 
22 16
   const handleDelete = (id) => {
23 17
     if (id) {
@@ -33,28 +27,33 @@ const RegulationList = (props) => {
33 27
       title: 'id',
34 28
       dataIndex: 'id',
35 29
       width: 200,
30
+      search: false,
36 31
     },
37 32
     {
38 33
       title: '标题',
39 34
       dataIndex: 'title',
40 35
       width: 200,
36
+      search: true,
41 37
     },
42 38
 
43 39
     {
44 40
       title: '内容',
45 41
       dataIndex: 'detail',
46 42
       width: 200,
43
+      search: false,
47 44
     },
48 45
 
49 46
     {
50 47
       title: '发布人',
51 48
       dataIndex: 'create_person',
52 49
       width: 200,
50
+      search: false,
53 51
     },
54 52
     {
55 53
       title: '发布时间',
56 54
       dataIndex: 'create_date',
57 55
       width: 200,
56
+      search: false,
58 57
     },
59 58
     {
60 59
       title: '操作',
@@ -92,7 +91,7 @@ const RegulationList = (props) => {
92 91
   return (
93 92
     <PageContainer>
94 93
       <ProTable
95
-        search={false}
94
+        search={true}
96 95
         actionRef={actionRef}
97 96
         rowKey="id"
98 97
         toolBarRender={() => [

+ 21
- 2
src/routes/routes.jsx 查看文件

@@ -18,6 +18,8 @@ import BasicTable from '@/pages/sample/table';
18 18
 import GuaranteeTaskList from '@/pages/guaranteeTask';
19 19
 import GuaranteeTaskEdit from '@/pages/guaranteeTask/Edit';
20 20
 import GuaranteeTaskPrint from '@/pages/guaranteeTask/print';
21
+import GuaranteeTaskEvaluate from "@/pages/evaluate";
22
+import GuaranteeTaskEvaluateList from "@/pages/evaluate/evaluateList";
21 23
 import DishList from '@/pages/dish/list';
22 24
 import DishEdit from '@/pages/dish/edit';
23 25
 import PackageList from '@/pages/package/List';
@@ -30,6 +32,7 @@ import StockClassificationEdit from '@/pages/stockClassification/edit';
30 32
 import RotationChartList from '@/pages/rotationChart/list';
31 33
 import RotationChartEdit from '@/pages/rotationChart/edit';
32 34
 import RotationChartIntroduction from '@/pages/rotationChart/introduction';
35
+import RotationChartIntroductionEdit from '@/pages/rotationChart/introduction/edit';
33 36
 import Roles from '@/pages/roles/index';
34 37
 import RegulationList from '@/regulation';
35 38
 import RegulationEdit from '@/regulation/edit';
@@ -97,12 +100,20 @@ export const authRoutes = [
97 100
         },
98 101
       },
99 102
       {
100
-        path: "guaranteeTask/print",
101
-        element: <GuaranteeTaskPrint />,
103
+        path: "evaluate",
104
+        element: <GuaranteeTaskEvaluate />,
102 105
         meta: {
103 106
           title: "任务评价",
104 107
         },
105 108
       },
109
+      {
110
+        path: "evaluate/list",
111
+        element: <GuaranteeTaskEvaluateList />,
112
+        meta: {
113
+          title: "任务评价",
114
+          hideInMenu: true,
115
+        },
116
+      },
106 117
     ],
107 118
   },
108 119
   {
@@ -208,6 +219,14 @@ export const authRoutes = [
208 219
           title: "本站信息简介",
209 220
         },
210 221
       },
222
+      {
223
+        path: "rotationChart/introduction/edit",
224
+        element: <RotationChartIntroductionEdit />,
225
+        meta: {
226
+          hideInMenu: true,
227
+          title: "本站信息简介维护",
228
+        },
229
+      },
211 230
       {
212 231
         path: 'regulation',
213 232
         element: <RegulationList />,

+ 21
- 0
src/services/evaluate.js 查看文件

@@ -0,0 +1,21 @@
1
+import { restful } from "@/utils/request";
2
+
3
+/**
4
+ * 构造 Service
5
+ * @returns
6
+ */
7
+const [
8
+  getEvaluateList,
9
+  geEvaluateDetail,
10
+  saveEvaluate,
11
+  updateEvaluate,
12
+  deleteEvaluate,
13
+] = restful("/evaluate");
14
+
15
+export {
16
+  getEvaluateList,
17
+  geEvaluateDetail,
18
+  saveEvaluate,
19
+  updateEvaluate,
20
+  deleteEvaluate,
21
+};

+ 14
- 12
src/services/regulation.js 查看文件

@@ -1,4 +1,4 @@
1
-import request from '@/utils/request';
1
+import request, { restful } from '@/utils/request';
2 2
 
3 3
 /**
4 4
  * 查询列表
@@ -8,18 +8,12 @@ import request from '@/utils/request';
8 8
 export const getRegulationList = (params) => request('/posts', { params });
9 9
 
10 10
 /**
11
-* 新增
12
-* @param {*} data
11
+* 新增,更新
12
+*  @param {*} data
13
+ *@param {*} id
13 14
 * @returns
14 15
 */
15
-export const addRegulation = (data) => request('/posts', { method: 'post', data });
16
-
17
-/**
18
- * 更新
19
- * @param {*} data
20
- * @returns
21
- */
22
-export const updataRegulation = (data, id) => request(`/posts/${id}`, { method: 'get', data });
16
+export const addRegulation = (data) => request(`/posts`, { method: 'post', data });
23 17
 
24 18
 /**
25 19
 * 详情
@@ -33,4 +27,12 @@ export const getRegulationById = (id) => request(`/posts/${id}`);
33 27
  * @param {*} id
34 28
  * @returns
35 29
  */
36
-export const deleteRegulation = (id) => request(`/posts/${id}`, { method: 'delete' });
30
+export const deleteRegulation = (id) => request(`/posts/${id}`, { method: 'delete' });
31
+
32
+//标题
33
+/**
34
+ * 查询列表
35
+ * @param {*} params
36
+ * @returns
37
+ */
38
+export const getRegulationTitleList = (params) => request('/posts', { params, successTip: false });

+ 1
- 1
vite.config.js 查看文件

@@ -9,7 +9,7 @@ export default defineConfig({
9 9
     proxy: {
10 10
       '/api/': {
11 11
         // 要代理的地址
12
-        target: 'http://jgz.njyunzhi.com',
12
+        target: 'http://192.168.89.76:8087',
13 13
         // 配置了这个可以从 http 代理到 https
14 14
         // 依赖 origin 的功能可能需要这个,比如 cookie
15 15
         changeOrigin: true,