gemercheung 10 månader sedan
förälder
incheckning
59c5ed57e0

+ 1 - 0
package.json

@@ -15,6 +15,7 @@
     "@types/qs": "^6.9.7",
     "axios": "^1.4.0",
     "echarts": "^5.5.1",
+    "element-china-area-data": "^6.1.0",
     "element-plus": "^2.3.8",
     "js-base64": "^3.7.5",
     "mime": "^3.0.0",

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1202 - 1447
pnpm-lock.yaml


+ 10 - 0
src/app/criminal/view/example/criminalType.ts

@@ -0,0 +1,10 @@
+
+// 杀人、爆炸、放火、强奸、绑架、投毒、破坏、伤害致死、入室抢劫、入室盗窃、抢劫、抢夺、盗窃类、接触性诈骗
+// export const criminalType = {
+
+// }
+enum criminalType {
+    // ,
+    // True,
+    // Unknown
+}

+ 2 - 2
src/view/case/editMenu.vue

@@ -43,7 +43,7 @@ const menus = computed(() => {
   const caseId = props.caseId;
   const fuseLink = getFuseCodeLink(caseId);
 
-  console.log(props.case);
+  // console.log(props.case);
   return [
     ...(props.prevMenu || []).map((item) => ({
       ...item,
@@ -106,7 +106,7 @@ const menus = computed(() => {
       },
     },
     {
-      key: "file",
+      key: "media",
       label: "媒体库",
       onClick: () => {
         window.open(

+ 22 - 0
src/view/case/records/formData.ts

@@ -37,3 +37,25 @@ export const recorderInfoType =
         },
 
     ]
+
+
+export const ChangeReasonType = [
+    {
+        id: 0,
+        name: "事主进入",
+        flag: "true",
+        value: ""
+    },
+    {
+        id: 1,
+        name: "报案人进入",
+        flag: "true",
+        value: ""
+    },
+    {
+        id: 2,
+        name: "其他",
+        flag: "true",
+        value: ""
+    }
+]

+ 12 - 4
src/view/case/records/index.vue

@@ -229,9 +229,15 @@
       <div class="line">
         <span>变动原因: &nbsp; </span>
         <el-checkbox-group v-model="data.changeReason">
-          <el-checkbox :value="0" label="事主进入" />
+          <el-checkbox
+            v-for="reason in ChangeReasonType"
+            :value="reason.id"
+            :label="reason.name"
+          >
+          </el-checkbox>
+          <!-- <el-checkbox :value="0" label="事主进入" />
           <el-checkbox :value="1" label="报案人进入" />
-          <el-checkbox :value="2" label="其他" />
+          <el-checkbox :value="2" label="其他" /> -->
         </el-checkbox-group>
         <el-input
           class="input"
@@ -541,7 +547,7 @@ import {
 import { ElMessage, ElMessageBox } from "element-plus";
 import saveAs from "@/util/file-serve";
 import { CirclePlus, CircleClose } from "@element-plus/icons-vue";
-import { recorderInfoType } from "./formData.ts";
+import { recorderInfoType, ChangeReasonType } from "./formData.ts";
 import { confirm } from "@/helper/message";
 const props = defineProps({ caseId: Number, title: String });
 
@@ -591,7 +597,7 @@ const data = reactive({
 
   witnessInfo: [],
 
-  remark: [],
+  remark: '',
 });
 const signatureInfoNum = 4;
 const witnessInfoNum = 2;
@@ -681,6 +687,8 @@ const removeWitnessInfo = async (index) => {
 
 const handleSave = async () => {
   console.log("data", data);
+
+
   const res = await saveCaseInquestInfo(props.caseId, data);
   // if (res.code === 0) {
   //   ElMessage.success("保存成功!");