Files
sgxt_web/gsxt/static/js/chunk-bbb286dc.b84e0075.js

1 line
20 KiB
JavaScript
Raw Normal View History

2025-09-16 15:50:24 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bbb286dc"],{"5e38":function(e,t,l){"use strict";l("fabb")},"8edb":function(e,t,l){"use strict";l("b7a5")},"8f00":function(e,t,l){"use strict";l("cffc")},"9cbb":function(e,t,l){"use strict";l.r(t);var c=l("7a23"),a=l("7902"),o=l("2e9d"),r=l("ad28"),n=l("1090"),b=l("2d16"),i=l("d395"),d=l("1d22"),s=l("c5cb"),p=l("ea2a");const u=e=>(Object(c["pushScopeId"])("data-v-190a5274"),e=e(),Object(c["popScopeId"])(),e),j={key:0,class:"dialog"},O={class:"head_box"},m={class:"title"},h=Object(c["createTextVNode"])("保存"),g=Object(c["createTextVNode"])("关闭"),f={class:"flex"},v={style:{width:"100%",height:"10px"},class:"mb20"},C=Object(c["createTextVNode"])("基础信息"),x={style:{width:"100%",height:"10px"},class:"mb20"},y=Object(c["createTextVNode"])("线索内容"),_={style:{width:"100%","padding-left":"50px"}},w=u(()=>Object(c["createElementVNode"])("div",null,[Object(c["createTextVNode"])("上传附件:"),Object(c["createElementVNode"])("span",{class:"f12"},"可附电子表格、Word文档、图像、音视频文件")],-1)),V=u(()=>Object(c["createElementVNode"])("span",{class:"mr20"},"相关人员",-1)),k=Object(c["createTextVNode"])("添加人员"),N={key:0},S=Object(c["createTextVNode"])("编辑"),B=Object(c["createTextVNode"])("删除"),D={key:0,class:"ww20"};var z={__name:"addForm",props:{dic:Object},emits:["change"],setup(e,{expose:t,emit:l}){const o=e,{proxy:n}=Object(c["getCurrentInstance"])(),b=Object(c["ref"])(!1),u=Object(c["reactive"])({xsMc:[{required:!0,message:"请输入线索名称",trigger:"blur"}],xlLx:[{required:!0,message:"请选择线索类型",trigger:"change"}],qbLy:[{required:!0,message:"请选择情报来源",trigger:"change"}]}),z=Object(c["ref"])([{prop:"gapdive",type:"slot",width:"100%"},{label:"线索名称",prop:"xsMc",type:"input"},{label:"线索类型",prop:"xlLx",type:"select",options:o.dic.D_GS_XS_LX},{label:"情报来源",prop:"qbLy",type:"select",options:o.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:o.dic.D_BZ_SSZT},{prop:"gapline",type:"slot",width:"100%"},{prop:"scfj",type:"slot",width:"100%"},{label:"线索内容",prop:"xsNr",type:"textarea",width:"100%"}]),L=Object(c["ref"])(),T=Object(c["ref"])({}),q=Object(c["ref"])(!1),E=Object(c["ref"])(),X=Object(c["ref"])(""),Z=Object(c["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"checkBox",loading:!1,haveControls:"详情"==!X.value},controlsWidth:220,tableColumn:[{label:"姓名",prop:"xm"},{label:"性别",prop:"xb",showSolt:!0},{label:"身份证号",prop:"sfzh"},{label:"户籍地",prop:"hjdz"},{label:"户籍地派出所",prop:"hjdpcs"},{label:"标签",prop:"bqList",showSolt:!0}]}),H=Object(c["ref"])(),M=Object(c["ref"])(!1);Object(c["onMounted"])(()=>{Y()});const G=(e,t)=>{L.value=[],Y(),b.value=!0,X.value="add"==e?"新增":"info"==e?"详情":"编辑",t&&I(t.id)},I=e=>{Object(s["c"])({id:e},"/mosty-gsxt/qbcj/selectByid").then(e=>{L.value=e.ossList||[],T.value=e,Z.tableData=e.ryList||[]})},F=Object(c["ref"])();Object(c["watch"])(()=>F.value,e=>{e&&(console.log(F.value),F.value.getWorkflow(T.value.gzlid))},{deep:!0});const W=(e,t,l)=>{M.value=!0,Object(c["nextTick"])(()=>{H.value.init(e,t,l)})},U=e=>{"新增"==e.type?Z.tableData.push(e.data):Z.tableData.splice(e.index,1,e.data)},Q=e=>{Z.tableData.splice(e,1)},A=()=>{E.value.submit(e=>{let t="新增"==X.value?"/mosty-gsxt/qbcj/add":"/mosty-gsxt/qbcj/update",c={...e,ryList:Z.tableData,cjLx:"0"},a=[];L.value.forEach(e=>{"[object Object]"===Object.prototype.toString.call(e)?a.push(e.id):a.push(e)}),c.fjdz=a.length>0?a.join(","):"",q.value=!0,Object(s["d"])(c,t).then(e=>{q.value=!1,n.$message({type:"success",message:X.value+"成功"}),l("change"),J()}).catch(()=>{q.value=!1})})},J=()=>{L.value=[],T.value={},b.value=!1,q.value=!1},Y=()=>{Z.tableHeight=window.innerHeight-720,window.onresize=function(){Y(