From 431217713883543da89af105f53f96357b4554ac Mon Sep 17 00:00:00 2001
From: Esacpe <1113279529@qq.com>
Date: Sun, 6 Jul 2025 15:38:03 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CollectCrculate/components/addForm.vue | 92 ++++++-------
.../CollectCrculate/components/addPeo.vue | 71 +++++-----
.../CollectCrculate/index.vue | 128 +++++++++++-------
.../ResearchJudgment/DatAcquisition/index.vue | 2 +-
.../components/addForm.vue | 39 +-----
.../components/addPeo.vue | 4 +-
6 files changed, 171 insertions(+), 165 deletions(-)
diff --git a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addForm.vue b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addForm.vue
index b06f858..2ce96ce 100644
--- a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addForm.vue
+++ b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addForm.vue
@@ -3,13 +3,11 @@
人力情报信息采集流转编辑
- 保存
- 暂存
关闭
@@ -55,36 +58,40 @@ import * as MOSTY from "@/components/MyComponents/index";
import AddPeo from './addPeo.vue'
import MyTable from "@/components/aboutTable/MyTable.vue";
import FormMessage from "@/components/aboutTable/FormMessage.vue";
-import { qcckGet, qcckPost, qcckPut } from "@/api/qcckApi.js";
+import { qcckGet } from "@/api/qcckApi.js";
import { ref, defineExpose, reactive, onMounted, defineEmits, getCurrentInstance, nextTick } from "vue";
-const emit = defineEmits(["updateDate"]);
+const emit = defineEmits(["change"]);
const props = defineProps({
dic: Object
});
const { proxy } = getCurrentInstance();
const dialogForm = ref(false); //弹窗
+const rules = reactive({
+ xsMc: [{ required: true, message: "请输入线索名称", trigger: "blur" }],
+ xlLx: [{ required: true, message: "请选择线索类型", trigger: "change" }],
+ qbLy: [{ required: true, message: "请选择情报来源", trigger: "change" }],
+});
const formData = ref([
- { label: "", prop: "gapdive", type: "slot",width:'100%' },
- { label: "线索编号", prop: "xsbh", type: "input",},
- { label: "线索名称", prop: "xsmc", type: "input" },
- { label: "线索类型", prop: "xslx", type: "select", options:props.dic.D_GS_XS_LX },
- { label: "情报来源", prop: "qbly", type: "select", options:props.dic.D_GS_XS_LY},
+ { prop: "gapdive", type: "slot",width:'100%' },
+ { label: "线索名称", prop: "xsMc", type: "input" },
+ { label: "线索类型", prop: "xlLx", type: "select", options:props.dic.D_GS_XS_LX },
+ { label: "情报来源", prop: "qbLy", type: "select", options:props.dic.D_GS_XS_LY},
{ label: "指向开始时间", prop: "zxkssj", type: "datetime"},
{ label: "指向结束时间", prop: "zxjssj", type: "datetime"},
{ label: "指向地点", prop: "zxdz", type: "input"},
{ label: "所属专题", prop: "sszt", type: "select",options:props.dic.D_BZ_SSZT},
{ prop: "gapline", type: "slot",width:'100%' },
{ prop: "scfj", type: "slot",width:'100%'},
- { label: "线索内容", prop: "xsnr", type: "textarea",width:'100%'},
+ { label: "线索内容", prop: "xsNr", type: "textarea",width:'100%'},
{ label: "群体类型", prop: "qtlx", type: "select",options:props.dic.D_GS_XS_QTLX },
{ label: "群体名称", prop: "qtmc", type: "input"},
{ label: "涉及人数", prop: "sjrs", type: "inputNumber"},
- { label: "线索报送单位", prop: "fjWb", type: "department"},
+ { label: "线索报送单位", prop: "ssbmdm", type: "department"},
]);
-const listQuery = ref({tps:[]}); //表单
+const fjdz = ref()
+const listQuery = ref({}); //表单
const loading = ref(false);
const elform = ref();
-const title = ref("");
const pageForm = reactive({
tableData: [],
keyCount: 0,
@@ -96,53 +103,46 @@ const pageForm = reactive({
controlsWidth: 220,
tableColumn: [
{ label: "姓名", prop: "xm" },
- { label: "性别", prop: "xb" },
+ { label: "性别", prop: "xb",showSolt:true },
{ label: "身份证号", prop: "sfzh" },
- { label: "户籍地", prop: "hjd" },
+ { label: "户籍地", prop: "hjdz" },
{ label: "户籍地派出所", prop: "hjdpcs" },
- { label: "标签", prop: "bq" }
+ { label: "标签", prop: "bqList",showSolt:true }
]
});
-const showPeo = ref(false)
-const peoTitle = ref('')
+const showAdd = ref()
onMounted(()=>{
tabHeightFn()
})
+
// 初始化数据
const init = (type, row) => {
- listQuery.value = {tps :[]};
+ fjdz.value = []
tabHeightFn()
dialogForm.value = true;
// 初始化表单数据,并根据详情页设置禁用状态
- // if (row) getDataById(row.id);
+ if (row) getDataById(row.id);
};
// 根据id查询详情
const getDataById = (id) => {
- // qcckGet({}, "/mosty-gsxt/tbGsxtRqfjNr/" + id).then((res) => {
- // listQuery.value = res;
- // });
-};
-
-// 提交
-const submit = () => {
- elform.value.submit((data) => {
- let params = { ...data };
- qcckPost(params, '/mosty-gsxt/tbGsxtRqfjNr/save').then((res) => {
- proxy.$message({ type: "success", message: title.value + "成功" });
- emit("onSearch");
- close();
- })
- .catch(() => {});
+ qcckGet({id}, "/mosty-gsxt/qbcj/selectByid").then((res) => {
+ listQuery.value = res;
+ pageForm.tableData = res.ryList || [];
});
};
+// 打开弹窗
+const addEdit = (type,row,index) =>{
+ showAdd.value.init(type,row,index)
+}
+
// 关闭
const close = () => {
+ fjdz.value = []
+ listQuery.value = {};
dialogForm.value = false;
loading.value = false;
- elform.value.reset()
- listQuery.value = {tps :[]};
};
// 表格高度计算
diff --git a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addPeo.vue b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addPeo.vue
index 5273b91..deb72c5 100644
--- a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addPeo.vue
+++ b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/addPeo.vue
@@ -1,10 +1,18 @@
-
-
+
+
+
+
+ 请选择标签
+
+ {{ it.bqMc }}
+
+
+
+
取消
- 确认
@@ -14,34 +22,28 @@
import FormMessage from "@/components/aboutTable/FormMessage.vue";
import { reactive, ref } from 'vue';
const props = defineProps({
- modelValue:{
- type:Boolean,
- default:false
- },
dic:{
type:Object,
default:{}
},
- title:{
- type:String,
- default:'新增人员'
- }
})
+const roleIds = ref([])
const elform = ref()
-const emit = defineEmits('update:modelValue')
+const showDialog = ref(false)
+const emit = defineEmits(['change'])
const listQuery = ref({})
const formData = ref([
- { label: "姓名", prop: "xm", type: "input" },
- { label: "性别", prop: "xb", type: "select",options:props.dic.D_BZ_XB },
- { label: "身份证号", prop: "sfzh", type: "input" },
- { label: "户籍地", prop: "hjd", type: "input" },
- { label: "户籍地派出所", prop: "hjdpcs", type: "input" },
- { label: "标签", prop: "bq", type: "input" },
- { label: "是否挑头人", prop: "sfdtr", type: "select",options:props.dic.D_BZ_SF },
- { label: "是否响应人", prop: "sfxyr", type: "select" ,options:props.dic.D_BZ_SF },
- { label: "所属群体", prop: "ssqt", type: "input" },
- { label: "微信号", prop: "wxh", type: "input" },
- { label: "QQ", prop: "qqh", type: "input" },
+ { label: "姓名", prop: "xm", type: "input" ,width:'48%'},
+ { label: "性别", prop: "xb", type: "select",options:props.dic.D_BZ_XB ,width:'48%'},
+ { label: "身份证号", prop: "sfzh", type: "input" ,width:'48%'},
+ { label: "户籍地", prop: "hjdz", type: "input",width:'48%' },
+ { label: "户籍地派出所", prop: "hjdpcsdm", type: "department" ,width:'48%'},
+ { label: "标签", prop: "bqList", type: "slot",width:'100%' },
+ { label: "是否挑头人", prop: "sfttr", type: "select",options:props.dic.D_BZ_SF ,width:'48%'},
+ { label: "是否响应人", prop: "sfxyr", type: "select" ,options:props.dic.D_BZ_SF,width:'48%' },
+ { label: "所属群体", prop: "ssqt", type: "input" ,width:'48%'},
+ { label: "微信号", prop: "wx", type: "input" ,width:'48%'},
+ { label: "QQ", prop: "qq", type: "input" ,width:'48%'},
])
const rules = reactive({
xm: [{ required: true, message: "请输入姓名", trigger: "blur" }],
@@ -49,21 +51,28 @@ const rules = reactive({
sfzh: [{ required: true, message: "请输入身份证号", trigger: "blur" }],
hjd: [{ required: true, message: "请输入户籍地", trigger: "blur" }],
})
-
-const submitForm = () =>{
- elform.value.submit(()=>{
-
- })
+const title = ref('')
+const init = (type,row,index) =>{
+ title.value = type == 'add' ? '新增' :'编辑';
+ showDialog.value = true;
+ if(row) listQuery.value = {...row};
}
const close = () =>{
elform.value.reset();
- emit('update:modelValue',false)
+ showDialog.value = false;
}
+
+defineExpose({init})
\ No newline at end of file
diff --git a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue
index 7f58b96..ffa416e 100644
--- a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue
+++ b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue
@@ -6,10 +6,6 @@
导出
-
-
- 批量删除
-
@@ -27,9 +23,18 @@
:controlsWidth="pageData.controlsWidth"
@chooseData="chooseData">
+
+
+
+
+
+
+
+
+
- 采纳(将这条信息推送到情报管理模块)
- 退回!
+
+
@@ -62,7 +67,7 @@
确定
- 删除
+ 删除
-
+
+
+