Yansen 11 months ago
parent
commit
e0da6f41ce
3 changed files with 13 additions and 16 deletions
  1. 9
    1
      config/index.js
  2. 4
    14
      src/pages/issue/components/Issue/index.jsx
  3. 0
    1
      src/pages/issue/edit/index.jsx

+ 9
- 1
config/index.js View File

26
       828: 1.81 / 2,
26
       828: 1.81 / 2,
27
       375: 2 / 1,
27
       375: 2 / 1,
28
     },
28
     },
29
-
29
+    // jsMinimizer: 'terser',
30
+    // terser: {
31
+    //   enable: false,
32
+    // },
30
     sourceRoot: "src",
33
     sourceRoot: "src",
31
     outputRoot: "dist",
34
     outputRoot: "dist",
32
     plugins: [],
35
     plugins: [],
110
          
113
          
111
         },
114
         },
112
       },
115
       },
116
+      webpackChain(chain, webpack) {
117
+        chain.merge({
118
+          mode: "development",
119
+        })
120
+      },
113
     },
121
     },
114
   };
122
   };
115
   if (process.env.NODE_ENV === "development") {
123
   if (process.env.NODE_ENV === "development") {

+ 4
- 14
src/pages/issue/components/Issue/index.jsx View File

190
       />
190
       />
191
 
191
 
192
       <CellGroup>
192
       <CellGroup>
193
-        {issue?.issueId && <Cell title="ID" value={issue.issueId} />}
193
+        {!!issue?.issueId && <Cell title="ID" value={issue.issueId} />}
194
         <Cell
194
         <Cell
195
           title="点位"
195
           title="点位"
196
           isLink={!readOnly}
196
           isLink={!readOnly}
205
           onChange={(e) => setFieldChange("addr", e.detail)}
205
           onChange={(e) => setFieldChange("addr", e.detail)}
206
         />
206
         />
207
       </CellGroup>
207
       </CellGroup>
208
-
208
+ 
209
       {readOnly && (
209
       {readOnly && (
210
         <CellGroup style={{ marginTop: "20px" }}>
210
         <CellGroup style={{ marginTop: "20px" }}>
211
           <IssueStatus issue={issue} />
211
           <IssueStatus issue={issue} />
221
           onClick={() => !readOnly && setShowIssueType(true)}
221
           onClick={() => !readOnly && setShowIssueType(true)}
222
         />
222
         />
223
         <Cell title="问题描述" border={false} />
223
         <Cell title="问题描述" border={false} />
224
-        {/* <Textarea
225
-          // type="textarea"
226
-          name="content"
227
-          placeholder="请输入问题描述"
228
-          readonly={readOnly}
229
-          autosize={{ minHeight: "120px" }}
230
-          style={{ marginLeft: "20px" }}
231
-          value={formData.content}
232
-          onChange={onChangeText}
233
-        ></Textarea> */}
234
         <Field
224
         <Field
235
           type="textarea"
225
           type="textarea"
236
           placeholder="请输入问题描述"
226
           placeholder="请输入问题描述"
240
           onChange={onChangeText}
230
           onChange={onChangeText}
241
         />
231
         />
242
       </CellGroup>
232
       </CellGroup>
243
-
233
+{/*
244
       <CellGroup style={{ marginTop: "20px" }}>
234
       <CellGroup style={{ marginTop: "20px" }}>
245
         <Cell title="拍照或视频" border={false} />
235
         <Cell title="拍照或视频" border={false} />
246
 
236
 
253
             />
243
             />
254
           }
244
           }
255
         />
245
         />
256
-      </CellGroup>
246
+      </CellGroup> */}
257
 
247
 
258
       {showOrg && (
248
       {showOrg && (
259
         <CellGroup style={{ marginTop: "20px" }}>
249
         <CellGroup style={{ marginTop: "20px" }}>

+ 0
- 1
src/pages/issue/edit/index.jsx View File

1
 import React from "react";
1
 import React from "react";
2
 import Taro from "@tarojs/taro";
2
 import Taro from "@tarojs/taro";
3
 import { View } from "@tarojs/components";
3
 import { View } from "@tarojs/components";
4
-import { CellGroup, Cell } from "@antmjs/vantui";
5
 import Page from "@/layouts/index";
4
 import Page from "@/layouts/index";
6
 import { useModel } from "@/store";
5
 import { useModel } from "@/store";
7
 import {
6
 import {