Merge branch 'main' of http://61.139.16.27:26684/zy_oyj/sgxt_web
This commit is contained in:
@ -412,14 +412,18 @@ export const publicRoutes = [
|
|||||||
meta: { title: "线索落核盯办", icon: "article-ranking" },
|
meta: { title: "线索落核盯办", icon: "article-ranking" },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "/DatAcquisition",
|
path: "/socialInformationCrculated",
|
||||||
name: "DatAcquisition",
|
name: "changeTheClue",
|
||||||
component: () => import("@/views/backOfficeSystem/ResearchJudgment/DatAcquisition/index"),
|
component: () => import("@/views/backOfficeSystem/HumanIntelligence/FollowLeads/index"),
|
||||||
meta: {
|
meta: { title: "线索列表", icon: "article" },
|
||||||
title: "线索数据采集",
|
|
||||||
icon: "article-create"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/lamXs",
|
||||||
|
name: "lamXs",
|
||||||
|
component: () => import("@/views/backOfficeSystem/HumanIntelligence/lamXs/index"),
|
||||||
|
meta: { title: "林安码线索", icon: "article" },
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
// 暂时不要
|
// 暂时不要
|
||||||
// {
|
// {
|
||||||
@ -431,21 +435,14 @@ export const publicRoutes = [
|
|||||||
// icon: "article-create"
|
// icon: "article-create"
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
|
|
||||||
{
|
{
|
||||||
path: "/IntelligenceManagement",
|
|
||||||
name: "IntelligenceManagement",
|
|
||||||
component: () => import("@/views/backOfficeSystem/ResearchJudgment/IntelligenceManagement/index"),
|
|
||||||
meta: {
|
|
||||||
title: "线索管理",
|
|
||||||
icon: "article-create"
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
path: "/InstructionInformation",
|
path: "/InstructionInformation",
|
||||||
name: "InstructionInformation",
|
name: "InstructionInformation",
|
||||||
component: () => import("@/views/backOfficeSystem/ResearchJudgment/InformationFlows/InstructionInformation/index"),
|
component: () => import("@/views/backOfficeSystem/ResearchJudgment/InformationFlows/InstructionInformation/index"),
|
||||||
meta: {
|
meta: {
|
||||||
title: "线索下发管理",
|
title: "线索发布",
|
||||||
icon: "article-create"
|
icon: "article"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
@ -986,6 +983,24 @@ export const publicRoutes = [
|
|||||||
icon: "article-ranking"
|
icon: "article-ranking"
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: "/DatAcquisition",
|
||||||
|
name: "DatAcquisition",
|
||||||
|
component: () => import("@/views/backOfficeSystem/ResearchJudgment/DatAcquisition/index"),
|
||||||
|
meta: {
|
||||||
|
title: "线索数据采集",
|
||||||
|
icon: "article"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/IntelligenceManagement",
|
||||||
|
name: "IntelligenceManagement",
|
||||||
|
component: () => import("@/views/backOfficeSystem/ResearchJudgment/IntelligenceManagement/index"),
|
||||||
|
meta: {
|
||||||
|
title: "线索管理",
|
||||||
|
icon: "article"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/CollectCrculate",
|
path: "/CollectCrculate",
|
||||||
name: "CollectCrculate",
|
name: "CollectCrculate",
|
||||||
|
|||||||
@ -0,0 +1,251 @@
|
|||||||
|
<template>
|
||||||
|
<div class="dialog" v-if="dialogForm">
|
||||||
|
<div class="head_box">
|
||||||
|
<span class="title">{{ title }}临安码线索</span>
|
||||||
|
<div>
|
||||||
|
<el-button type="primary" v-if="!listQuery.gzlid&&title!=='详情'" :loading="loading" @click="submit">保存</el-button>
|
||||||
|
<el-button @click="close">关闭</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="flex">
|
||||||
|
|
||||||
|
<div class="form_cnt" :class="listQuery.gzlid&&title=='详情' ? 'ww80' : 'ww100'">
|
||||||
|
<FormMessage v-model="listQuery" :formList="formData" ref="elform" :rules="rules" :disabled="title == '详情'">
|
||||||
|
<template #gapdive>
|
||||||
|
<div style="width: 100%;height: 10px;" class="mb20">
|
||||||
|
<el-divider content-position="left">基础信息</el-divider>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #gapline>
|
||||||
|
<div style="width: 100%;height: 10px;" class="mb20">
|
||||||
|
<el-divider content-position="left">线索内容</el-divider>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #scfj>
|
||||||
|
<div style="width: 100%;padding-left: 50px;">
|
||||||
|
<div>上传附件:<span class="f12">(可附电子表格、Word文档、图像、音视频文件)</span> </div>
|
||||||
|
<MOSTY.Upload :showBtn="true" :isAll="true" :isImg="false" :limit="10" v-model="fjdz" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</FormMessage>
|
||||||
|
<el-divider content-position="left"><span class="mr20">相关人员</span>
|
||||||
|
<el-button type="primary" size="small" @click="addEdit('add', null)" :disabled="title == '详情'">添加人员</el-button>
|
||||||
|
</el-divider>
|
||||||
|
<MyTable :tableData="pageForm.tableData" :tableColumn="pageForm.tableColumn" :tableHeight="pageForm.tableHeight"
|
||||||
|
:key="pageForm.keyCount" :tableConfiger="pageForm.tableConfiger" :controlsWidth="pageForm.controlsWidth">
|
||||||
|
<template #xb="{ row }">
|
||||||
|
<DictTag :value="row.xb" :tag="false" :options="props.dic.D_BZ_XB" />
|
||||||
|
</template>
|
||||||
|
<template #bqList="{ row }">
|
||||||
|
<div v-if="row.bqList">
|
||||||
|
<el-tag type="success" v-for="(it, idx) in row.bqList" :key="idx">{{ it.bqMc }}</el-tag>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<!-- 操作 -->
|
||||||
|
<template #controls="{ row, index }">
|
||||||
|
<el-link size="small" type="success" @click="addEdit('edit', row, index)">编辑</el-link>
|
||||||
|
<el-link size="small" type="danger" @click="deleteRow(index)">删除</el-link>
|
||||||
|
</template>
|
||||||
|
</MyTable>
|
||||||
|
</div>
|
||||||
|
<div v-if="listQuery.gzlid&&title=='详情'" class="ww20">
|
||||||
|
<ApprovalEcho ref="approvalEcho" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 人员 -->
|
||||||
|
<AddPeo ref="showAdd" v-model="showPeo" v-if="showPeo" :dic="props.dic" @change="getPeo"></AddPeo>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import * as MOSTY from "@/components/MyComponents/index";
|
||||||
|
import AddPeo from '@/components/addPerson/index.vue'
|
||||||
|
import MyTable from "@/components/aboutTable/MyTable.vue";
|
||||||
|
import FormMessage from "@/components/aboutTable/FormMessage.vue";
|
||||||
|
import { qcckGet, qcckPost, qcckPut } from "@/api/qcckApi.js";
|
||||||
|
import { ref, defineExpose, reactive, onMounted, defineEmits, getCurrentInstance, nextTick,watch } from "vue";
|
||||||
|
import ApprovalEcho from "@/components/flowPath/ApprovalEcho.vue";
|
||||||
|
const emit = defineEmits(["change"]);
|
||||||
|
const props = defineProps({
|
||||||
|
dic: Object
|
||||||
|
});
|
||||||
|
const { proxy } = getCurrentInstance();
|
||||||
|
const dialogForm = ref(false); //弹窗
|
||||||
|
const rules = reactive({
|
||||||
|
qbmc: [{ required: true, message: "请输入线索名称", trigger: "blur" }],
|
||||||
|
qblx: [{ required: true, message: "请选择线索类型", trigger: "change" }],
|
||||||
|
});
|
||||||
|
const formData = ref([
|
||||||
|
{ prop: "gapdive", type: "slot", width: '100%' },
|
||||||
|
{ label: "线索名称", prop: "qbmc", type: "input" },
|
||||||
|
{ label: "线索类型", prop: "qblx", 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: "qbnr", type: "textarea", width: '100%' },
|
||||||
|
]);
|
||||||
|
const fjdz = ref()
|
||||||
|
const listQuery = ref({}); //表单
|
||||||
|
const loading = ref(false);
|
||||||
|
const elform = ref();
|
||||||
|
const title = ref("");
|
||||||
|
const pageForm = reactive({
|
||||||
|
tableData: [],
|
||||||
|
keyCount: 0,
|
||||||
|
tableConfiger: {
|
||||||
|
rowHieght: 61,
|
||||||
|
showSelectType: "checkBox",
|
||||||
|
loading: false,
|
||||||
|
haveControls: !title.value == '详情'
|
||||||
|
},
|
||||||
|
controlsWidth: 220,
|
||||||
|
tableColumn: [
|
||||||
|
{ label: "姓名", prop: "xm" },
|
||||||
|
{ label: "性别", prop: "xb", showSolt: true },
|
||||||
|
{ label: "身份证号", prop: "sfzh" },
|
||||||
|
{ label: "户籍地", prop: "hjdz" },
|
||||||
|
{ label: "户籍地派出所", prop: "hjdpcs" },
|
||||||
|
{ label: "标签", prop: "bqList", showSolt: true }
|
||||||
|
]
|
||||||
|
});
|
||||||
|
const showAdd = ref()
|
||||||
|
const showPeo = ref(false)
|
||||||
|
onMounted(() => {
|
||||||
|
tabHeightFn()
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// 初始化数据
|
||||||
|
const init = (type, row) => {
|
||||||
|
fjdz.value = []
|
||||||
|
tabHeightFn()
|
||||||
|
dialogForm.value = true;
|
||||||
|
title.value = type == "add" ? "新增" : type == "info" ? "详情" : "编辑";
|
||||||
|
// 初始化表单数据,并根据详情页设置禁用状态
|
||||||
|
if (row) getDataById(row.id);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 根据id查询详情
|
||||||
|
const getDataById = (id) => {
|
||||||
|
qcckGet({ id }, "/mosty-gsxt/qbcj/selectByid").then((res) => {
|
||||||
|
fjdz.value = res.ossList || [];
|
||||||
|
listQuery.value = res;
|
||||||
|
pageForm.tableData = res.ryList || [];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const approvalEcho = ref()
|
||||||
|
watch(() => approvalEcho.value, (val) => {
|
||||||
|
if (val) {
|
||||||
|
console.log(approvalEcho.value);
|
||||||
|
approvalEcho.value.getWorkflow(listQuery.value.gzlid)
|
||||||
|
}
|
||||||
|
|
||||||
|
},{deep:true})
|
||||||
|
|
||||||
|
// 打开弹窗
|
||||||
|
const addEdit = (type, row, index) => {
|
||||||
|
showPeo.value = true;
|
||||||
|
nextTick(() => {
|
||||||
|
showAdd.value.init(type, row, index)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增人员
|
||||||
|
const getPeo = (val) => {
|
||||||
|
if (val.type == '新增') {
|
||||||
|
pageForm.tableData.push(val.data);
|
||||||
|
} else {
|
||||||
|
pageForm.tableData.splice(val.index, 1, val.data); // 在索引2的位置删除一个元素,并插入newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const deleteRow = (index) => {
|
||||||
|
pageForm.tableData.splice(index, 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 提交
|
||||||
|
const submit = () => {
|
||||||
|
elform.value.submit((data) => {
|
||||||
|
let url = title.value == "新增" ? "/mosty-gsxt/qbcj/add" : "/mosty-gsxt/qbcj/update";
|
||||||
|
let params = { ...data, ryList: pageForm.tableData, cjLx: '0' };
|
||||||
|
let fjids = [];
|
||||||
|
fjdz.value.forEach(item => {
|
||||||
|
if (Object.prototype.toString.call(item) === '[object Object]') {
|
||||||
|
fjids.push(item.id)
|
||||||
|
} else {
|
||||||
|
fjids.push(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
params.fjdz = fjids.length > 0 ? fjids.join(',') : '';
|
||||||
|
loading.value = true;
|
||||||
|
qcckPost(params, url).then((res) => {
|
||||||
|
loading.value = false;
|
||||||
|
proxy.$message({ type: "success", message: title.value + "成功" });
|
||||||
|
emit("change");
|
||||||
|
close();
|
||||||
|
}).catch(() => {
|
||||||
|
loading.value = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// 关闭
|
||||||
|
const close = () => {
|
||||||
|
fjdz.value = []
|
||||||
|
listQuery.value = {};
|
||||||
|
dialogForm.value = false;
|
||||||
|
loading.value = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 表格高度计算
|
||||||
|
const tabHeightFn = () => {
|
||||||
|
pageForm.tableHeight = window.innerHeight - 720;
|
||||||
|
window.onresize = function () {
|
||||||
|
tabHeightFn();
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
defineExpose({ init });
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import "~@/assets/css/layout.scss";
|
||||||
|
@import "~@/assets/css/element-plus.scss";
|
||||||
|
|
||||||
|
::v-deep .el-tabs--card>.el-tabs__header .el-tabs__item.is-active {
|
||||||
|
color: #0072ff;
|
||||||
|
background: rgba(0, 114, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.boxlist {
|
||||||
|
width: 99%;
|
||||||
|
height: 225px;
|
||||||
|
margin-top: 10px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .avatar-uploader {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-upload-list {
|
||||||
|
margin-left: 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-upload-list__item-name .el-icon {
|
||||||
|
top: 3px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -0,0 +1,112 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog :model-value="modelValue" title="线索下发" width="50%" @close="closeDialog" destroy-on-close append-to-body>
|
||||||
|
<div style="height: 50vh; overflow: auto;">
|
||||||
|
<FormMessage v-model="listQuery" :formList="formData" ref="elform" :rules="rules" />
|
||||||
|
</div>
|
||||||
|
<template #footer>
|
||||||
|
<div class="dialog-footer">
|
||||||
|
<el-button @click="closeDialog">取消</el-button>
|
||||||
|
<el-button type="primary" @click="submitForm">确认 </el-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { qcckGet, qcckPost, qcckPut } from "@/api/qcckApi.js";
|
||||||
|
import { ref, reactive, getCurrentInstance, watch } from "vue";
|
||||||
|
import FormMessage from "@/components/aboutTable/FormMessage.vue";
|
||||||
|
const { proxy } = getCurrentInstance()
|
||||||
|
const { D_GS_XS_ZLLX, D_GS_ZDQT_FXDJ } = proxy.$dict('D_GS_XS_ZLLX', 'D_GS_ZDQT_FXDJ')
|
||||||
|
const props = defineProps({
|
||||||
|
modelValue: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
dataList: {
|
||||||
|
type: Object,
|
||||||
|
default: () => ({})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const emit = defineEmits(['update:modelValue', 'getList'])
|
||||||
|
const elform = ref(null)
|
||||||
|
const closeDialog = (formEl) => {
|
||||||
|
emit('update:modelValue', false)
|
||||||
|
}
|
||||||
|
|
||||||
|
const rules = reactive({
|
||||||
|
glxs: [{ required: true, message: '请输入线索名称', trigger: 'blur' }],
|
||||||
|
zlbt: [{ required: true, message: '请输入指令标题', trigger: 'blur' }],
|
||||||
|
zllx: [{ required: true, message: '请选择指令类型', trigger: 'change' }],
|
||||||
|
zldj: [{ required: true, message: '请选择指令等级', trigger: 'change' }],
|
||||||
|
xfbmList: [{ required: true, message: '请选择下发部门集合', trigger: 'change' }],
|
||||||
|
zsdw: [{ required: true, message: '请选择主送单位', trigger: 'change' }],
|
||||||
|
csdw: [{ required: true, message: '请选择抄送单位', trigger: 'change' }],
|
||||||
|
zlnr: [{ required: true, message: '请输入指令内容', trigger: 'blur' }],
|
||||||
|
})
|
||||||
|
const listQuery = ref({})
|
||||||
|
const formData = ref(
|
||||||
|
[
|
||||||
|
{ label: "线索名称", prop: "glxs", type: "input" },
|
||||||
|
{ label: "指令标题", prop: "zlbt", type: "input" },
|
||||||
|
{ label: "指令类型", prop: "zllx", type: "select", options: D_GS_XS_ZLLX },
|
||||||
|
{ label: "指令等级", prop: "zldj", type: "select", options: D_GS_ZDQT_FXDJ },
|
||||||
|
{ label: "指令联系人", prop: "zllxr", type: "input" },
|
||||||
|
{ label: "指令联系电话", prop: "zllxdh", type: "input" },
|
||||||
|
{ label: "指令结束时间", prop: "jssj", type: "datetime" },
|
||||||
|
{ label: "下发部门集合", depMc: 'xfbmListMc', prop: "xfbmList", type: "department", width: "90%", multiple: true },
|
||||||
|
{ label: "主送单位", prop: "zsdw", type: "department" },
|
||||||
|
{ label: "抄送单位", prop: "csdw", type: "department" },
|
||||||
|
{ label: "指令内容", prop: "zlnr", type: "textarea", width: "90%" },
|
||||||
|
{ label: "附件地址", prop: "fjzd", type: "upload", width: "90%" },
|
||||||
|
]
|
||||||
|
)
|
||||||
|
watch(() => props.modelValue, (newVal, oldVal) => {
|
||||||
|
if (newVal) {
|
||||||
|
listQuery.value.xsid = props.dataList.id
|
||||||
|
listQuery.value.glxsid = props.dataList.id
|
||||||
|
listQuery.value.glxs = props.dataList.qbmc
|
||||||
|
}
|
||||||
|
}, { deep: true })
|
||||||
|
|
||||||
|
|
||||||
|
const submitForm = (formEl) => {
|
||||||
|
console.log(listQuery.value);
|
||||||
|
elform.value.submit((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
const params = {
|
||||||
|
...listQuery.value,
|
||||||
|
fjzd:listQuery.value.fjzd? listQuery.value.fjzd.join(',') : '',
|
||||||
|
xfbmList: listQuery.value.xfbmList.map((item, index) => {
|
||||||
|
return {
|
||||||
|
ssbm: listQuery.value.xfbmListMc[index],
|
||||||
|
ssbmdm: item,
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
qcckPost(params, '/mosty-gsxt/qbcj/xfxs').then((res) => {
|
||||||
|
proxy.$message({ type: "success", message: "下发成功" });
|
||||||
|
emit('update:modelValue', false)
|
||||||
|
// closeDialog(formEl);
|
||||||
|
}).catch(() => {
|
||||||
|
proxy.$message({ type: "error", message: "新增失败" });
|
||||||
|
});
|
||||||
|
console.log(params);
|
||||||
|
// emit('getList', listQuery)
|
||||||
|
// closeDialog(formEl)
|
||||||
|
} else {
|
||||||
|
console.log('校验失败');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// formEl.validate((valid) => {
|
||||||
|
// if (valid) {
|
||||||
|
// emit('getList', listQuery)
|
||||||
|
// closeDialog(formEl)
|
||||||
|
// } else {
|
||||||
|
// console.log('校验失败');
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
239
src/views/backOfficeSystem/HumanIntelligence/lamXs/index.vue
Normal file
239
src/views/backOfficeSystem/HumanIntelligence/lamXs/index.vue
Normal file
@ -0,0 +1,239 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<div class="titleBox">
|
||||||
|
<PageTitle title="临安码线索">
|
||||||
|
<el-button type="primary" @click="addEdit('add', null)">
|
||||||
|
<el-icon style="vertical-align: middle">
|
||||||
|
<CirclePlus />
|
||||||
|
</el-icon>
|
||||||
|
<span style="vertical-align: middle">新增</span>
|
||||||
|
</el-button>
|
||||||
|
<el-button type="danger" @click="plDelDictItem">
|
||||||
|
<el-icon style="vertical-align: middle">
|
||||||
|
<Dete />
|
||||||
|
</el-icon>
|
||||||
|
<span style="vertical-align: middle">批量删除</span>
|
||||||
|
</el-button>
|
||||||
|
</PageTitle>
|
||||||
|
</div>
|
||||||
|
<!-- 搜索 -->
|
||||||
|
<div ref="searchBox">
|
||||||
|
<Search :searchArr="searchConfiger" @submit="onSearch" :key="pageData.keyCount" />
|
||||||
|
</div>
|
||||||
|
<!-- 表格 -->
|
||||||
|
<div class="tabBox">
|
||||||
|
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
|
||||||
|
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth"
|
||||||
|
@chooseData="chooseData">
|
||||||
|
<template #qblx="{ row }">
|
||||||
|
<DictTag :tag="false" :value="row.qblx" :options="D_GS_XS_LX" />
|
||||||
|
</template>
|
||||||
|
<template #cjLx="{ row }">
|
||||||
|
<DictTag :tag="false" :value="row.cjLx" :options="D_GS_XS_LY" />
|
||||||
|
</template>
|
||||||
|
<template #czzt="{ row }">
|
||||||
|
<DictTag :tag="false" :value="row.czzt" :options="D_GS_XS_XSCZZT" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #shzt="{ row }">
|
||||||
|
<!-- 采纳(将这条信息推送到情报管理),退回! -->
|
||||||
|
<DictTag :tag="false" :value="row.shzt" :options="D_BZ_XSSHZT" @clickTag="clickTag(row.shzt)" />
|
||||||
|
</template>
|
||||||
|
<!-- 操作 -->
|
||||||
|
<template #controls="{ row }">
|
||||||
|
<el-link size="small" type="primary" @click="addEdit('info', row)">详情</el-link>
|
||||||
|
<template v-if="!row.gzlid">
|
||||||
|
<el-link size="small" type="success" @click="addEdit('edit', row)">编辑</el-link>
|
||||||
|
<el-link size="small" type="primary" @click.stop="createProcess(row)">审核</el-link>
|
||||||
|
<el-link size="small" type="danger" @click="delDictItem(row.id)">删除</el-link>
|
||||||
|
</template>
|
||||||
|
<el-link size="small" type="warning" @click="openXsxf( row)">线索下发</el-link>
|
||||||
|
</template>
|
||||||
|
</MyTable>
|
||||||
|
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
||||||
|
...pageData.pageConfiger,
|
||||||
|
total: pageData.total
|
||||||
|
}"></Pages>
|
||||||
|
</div>
|
||||||
|
<!-- 新增 -->
|
||||||
|
<AddForm ref="detailDiloag" @change="getList" v-if="isShow"
|
||||||
|
:dic="{ D_BZ_SF, D_BZ_XB, D_GS_XS_LY, D_BZ_SSZT, D_GS_XS_LX, D_GS_XS_QTLX }" />
|
||||||
|
</div>
|
||||||
|
<SubmissionProcess v-model="showSp" :data="rowData"
|
||||||
|
:userData="{ ajmc: '线索数据采集审批', flowType: 'XSSJCJSP', modelName: '线索' }" :path="fixedValue" @getList="getList" />
|
||||||
|
<Xsxf v-model="xsxfShow" :dataList="rowData"/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
||||||
|
import MyTable from "@/components/aboutTable/MyTable.vue";
|
||||||
|
import Pages from "@/components/aboutTable/Pages.vue";
|
||||||
|
import Search from "@/components/aboutTable/Search.vue";
|
||||||
|
import AddForm from "./components/addForm.vue";
|
||||||
|
import SubmissionProcess from '@/components/flowPath/submissionProcess.vue'
|
||||||
|
import { qcckGet, qcckPost } from "@/api/qcckApi.js";
|
||||||
|
import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
|
import Xsxf from "./components/xsxf.vue";
|
||||||
|
const router = useRouter();
|
||||||
|
const { proxy } = getCurrentInstance();
|
||||||
|
const { D_GS_XS_XSCZZT, D_GS_XS_LY, D_BZ_SSZT, D_BZ_SF, D_GS_XS_LX, D_GS_XS_QTLX, D_BZ_XB, D_BZ_XSSHZT } = proxy.$dict("D_GS_XS_XSCZZT", "D_GS_XS_LY", "D_BZ_SSZT", "D_BZ_SF", "D_GS_XS_LX", "D_GS_XS_QTLX", "D_BZ_XB", "D_BZ_XSSHZT"); //获取字典数据
|
||||||
|
const detailDiloag = ref();
|
||||||
|
const searchBox = ref(); //搜索框
|
||||||
|
const isShow = ref(false)
|
||||||
|
const searchConfiger = ref([
|
||||||
|
{ label: "线索名称", prop: 'qbmc', placeholder: "请输入线索名称", showType: "input" },
|
||||||
|
{ label: "内容关键字", prop: 'qbnr', placeholder: "请输入语义关键字", showType: "input" },
|
||||||
|
{ label: "线索类型", prop: 'qblx', placeholder: "请选择线索类型", showType: "select", options: D_GS_XS_LX },
|
||||||
|
{ label: "线索来源", prop: 'cjLx', placeholder: "请选择线索来源", showType: "select", options: D_GS_XS_LY },
|
||||||
|
]);
|
||||||
|
|
||||||
|
const pageData = reactive({
|
||||||
|
tableData: [],
|
||||||
|
keyCount: 0,
|
||||||
|
tableConfiger: {
|
||||||
|
rowHieght: 61,
|
||||||
|
showSelectType: "checkBox",
|
||||||
|
loading: false
|
||||||
|
},
|
||||||
|
total: 0,
|
||||||
|
pageConfiger: {
|
||||||
|
pageSize: 20,
|
||||||
|
pageCurrent: 1
|
||||||
|
},
|
||||||
|
controlsWidth: 250,
|
||||||
|
tableColumn: [
|
||||||
|
{ label: "线索编号", prop: "xsBh" },
|
||||||
|
{ label: "线索名称", prop: "qbmc" },
|
||||||
|
{ label: "线索类型", prop: "qblx", showSolt: true },
|
||||||
|
{ label: "线索来源", prop: "cjLx", showSolt: true },
|
||||||
|
{ label: "上报时间", prop: "sxsbsj", showOverflowTooltip: true },
|
||||||
|
{ label: "线索地点", prop: "zxdz" },
|
||||||
|
{ label: "线索内容", prop: "qbnr" },
|
||||||
|
{ label: "处置状态", prop: "czzt", showSolt: true },
|
||||||
|
{ label: "审核状态", prop: "shzt", showSolt: true },
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
|
const queryFrom = ref({});
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
getList()
|
||||||
|
tabHeightFn();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 搜索
|
||||||
|
const onSearch = (val) => {
|
||||||
|
queryFrom.value = { ...val }
|
||||||
|
pageData.pageConfiger.pageCurrent = 1;
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
|
||||||
|
const changeNo = (val) => {
|
||||||
|
pageData.pageConfiger.pageCurrent = val;
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
const changeSize = (val) => {
|
||||||
|
pageData.pageConfiger.pageSize = val;
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取列表
|
||||||
|
const getList = () => {
|
||||||
|
pageData.tableConfiger.loading = true;
|
||||||
|
let data = { ...pageData.pageConfiger, ...queryFrom.value, cjLx: '0' };
|
||||||
|
qcckGet(data, '/mosty-gsxt/qbcj/selectPage').then(res => {
|
||||||
|
pageData.tableData = res.records || [];
|
||||||
|
pageData.total = res.total;
|
||||||
|
pageData.tableConfiger.loading = false;
|
||||||
|
}).catch(() => { pageData.tableConfiger.loading = false; })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
const delDictItem = (id) => {
|
||||||
|
proxy.$confirm("确定要删除", "警告", { type: "warning" }).then(() => {
|
||||||
|
qcckPost({ id }, '/mosty-gsxt/qbcj/delete').then(() => {
|
||||||
|
proxy.$message({ type: "success", message: "删除成功" });
|
||||||
|
getList();
|
||||||
|
})
|
||||||
|
}).catch(() => { });
|
||||||
|
}
|
||||||
|
const ids = ref()
|
||||||
|
const chooseData = (val) => {
|
||||||
|
ids.value = val.map(item => item.id)
|
||||||
|
}
|
||||||
|
const plDelDictItem = () => {
|
||||||
|
proxy.$confirm("确定要删除", "警告", { type: "warning" }).then(() => {
|
||||||
|
qcckPost({ ids: ids.value }, '/mosty-gsxt/qbcj/deletes').then(() => {
|
||||||
|
proxy.$message({ type: "success", message: "删除成功" });
|
||||||
|
getList();
|
||||||
|
})
|
||||||
|
}).catch(() => { });
|
||||||
|
}
|
||||||
|
// 详情
|
||||||
|
const addEdit = (type, row) => {
|
||||||
|
isShow.value = true;
|
||||||
|
setTimeout(() => {
|
||||||
|
detailDiloag.value.init(type, row);
|
||||||
|
}, 500)
|
||||||
|
};
|
||||||
|
|
||||||
|
const clickTag = (val) => {
|
||||||
|
if (val == '02') router.push('/IntelligenceManagement');
|
||||||
|
}
|
||||||
|
|
||||||
|
// 表格高度计算
|
||||||
|
const tabHeightFn = () => {
|
||||||
|
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250;
|
||||||
|
window.onresize = function () {
|
||||||
|
tabHeightFn();
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
// 工作流
|
||||||
|
const showSp = ref(false);
|
||||||
|
const rowData = ref()
|
||||||
|
// 固定值
|
||||||
|
const fixedValue = {
|
||||||
|
clueVerification: 'clueVerification',
|
||||||
|
byMeansOf: 'qbcj/callback',
|
||||||
|
nobyMeansOf: 'qbcj/callback',
|
||||||
|
recycle: 'qbcj/callback',
|
||||||
|
}
|
||||||
|
const createProcess = (row) => {
|
||||||
|
showSp.value = true;
|
||||||
|
rowData.value = row
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 线索下发
|
||||||
|
const xsxfShow = ref(false)
|
||||||
|
const openXsxf = (row) => {
|
||||||
|
xsxfShow.value = true
|
||||||
|
rowData.value = {...row}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.label-pop {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
content: '*';
|
||||||
|
top: 0;
|
||||||
|
left: -7px;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
|
.el-loading-mask {
|
||||||
|
background: rgba(0, 0, 0, 0.5) !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -84,9 +84,9 @@ const rules = reactive({
|
|||||||
zllxr: [{ required: true, message: "请输入联系人", trigger: "blur" }],
|
zllxr: [{ required: true, message: "请输入联系人", trigger: "blur" }],
|
||||||
zllxdh: [{ required: true, message: "请输入联系电话", trigger: "blur" }],
|
zllxdh: [{ required: true, message: "请输入联系电话", trigger: "blur" }],
|
||||||
zsdw: [{ required: true, message: "请选择主送单位", trigger: "change" }],
|
zsdw: [{ required: true, message: "请选择主送单位", trigger: "change" }],
|
||||||
csdw: [{ required: true, message: "请选择抄送单位", trigger: "change" }],
|
// csdw: [{ required: true, message: "请选择抄送单位", trigger: "change" }],
|
||||||
zlnr: [{ required: true, message: "请输入指令内容", trigger: "blur" }],
|
zlnr: [{ required: true, message: "请输入指令内容", trigger: "blur" }],
|
||||||
glxsid: [{ required: true, message: "请选择关联线索", trigger: "change" }],
|
// glxsid: [{ required: true, message: "请选择关联线索", trigger: "change" }],
|
||||||
});
|
});
|
||||||
// 初始化数据
|
// 初始化数据
|
||||||
const init = (type, row,) => {
|
const init = (type, row,) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user