Commit 08efe08d by 马小涵

Merge remote-tracking branch 'origin/dev_zwpt' into dev_zwpt

parents b43bfaa0 30300145
...@@ -188,6 +188,7 @@ ...@@ -188,6 +188,7 @@
effect="dark" effect="dark"
content="编辑" content="编辑"
placement="top" placement="top"
open-delay='200'
@click="handleClick(scope.row)" @click="handleClick(scope.row)"
> >
<div <div
...@@ -204,6 +205,7 @@ ...@@ -204,6 +205,7 @@
class="item" class="item"
effect="dark" effect="dark"
content="收藏" content="收藏"
open-delay='200'
placement="top" placement="top"
> >
<div <div
...@@ -221,6 +223,7 @@ ...@@ -221,6 +223,7 @@
effect="dark" effect="dark"
content="改号" content="改号"
placement="top" placement="top"
open-delay='200'
> >
<div <div
class="icon gx" class="icon gx"
...@@ -237,6 +240,7 @@ ...@@ -237,6 +240,7 @@
effect="dark" effect="dark"
content="发查询" content="发查询"
placement="top" placement="top"
open-delay='200'
> >
<div <div
class="icon look" class="icon look"
...@@ -253,6 +257,7 @@ ...@@ -253,6 +257,7 @@
effect="dark" effect="dark"
content="复制数据" content="复制数据"
placement="top" placement="top"
open-delay='200'
> >
<div <div
class="icon bz" class="icon bz"
...@@ -269,6 +274,7 @@ ...@@ -269,6 +274,7 @@
effect="dark" effect="dark"
content="打印" content="打印"
placement="top" placement="top"
open-delay='200'
> >
<div <div
class="icon print" class="icon print"
...@@ -285,6 +291,7 @@ ...@@ -285,6 +291,7 @@
effect="dark" effect="dark"
content="删除" content="删除"
placement="top" placement="top"
open-delay='200'
> >
<el-popconfirm <el-popconfirm
placement="top-start" placement="top-start"
...@@ -333,6 +340,7 @@ ...@@ -333,6 +340,7 @@
<gz <gz
:isShowGz="isShowGz" :isShowGz="isShowGz"
:rowData="rowData" :rowData="rowData"
:type="type"
@closeGz="closeGz" @closeGz="closeGz"
></gz> ></gz>
<!-- 导出FTPX弹窗 --> <!-- 导出FTPX弹窗 -->
...@@ -345,6 +353,7 @@ ...@@ -345,6 +353,7 @@
<fztm <fztm
:isShowFztm="isShowFztm" :isShowFztm="isShowFztm"
:rowData="rowData" :rowData="rowData"
:type="type"
@closeFztm="closeFztm" @closeFztm="closeFztm"
></fztm> ></fztm>
<!-- 更改人员条码弹窗 --> <!-- 更改人员条码弹窗 -->
...@@ -355,7 +364,7 @@ ...@@ -355,7 +364,7 @@
@closeGgrytm="closeGgrytm" @closeGgrytm="closeGgrytm"
> >
</ggrytm> </ggrytm>
<!-- 更改人员条码弹窗 --> <!-- 发查询弹窗 -->
<fcx <fcx
:isShowFcx="isShowFcx" :isShowFcx="isShowFcx"
:rowData="rowData" :rowData="rowData"
......
<template> <template>
<el-dialog <el-dialog
title="复制数据" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="418px" width="418px"
append-to-body append-to-body
...@@ -50,10 +50,14 @@ export default { ...@@ -50,10 +50,14 @@ export default {
}, },
rowData: { rowData: {
default: false default: false
},
type: {
default: false
} }
}, },
data () { data () {
return { return {
title: "",
labelPosition: 'left', // 标签对齐方式 labelPosition: 'left', // 标签对齐方式
dialogVisible: false, // 弹窗状态 dialogVisible: false, // 弹窗状态
barcode: '', // 增加条码号 barcode: '', // 增加条码号
...@@ -63,6 +67,7 @@ export default { ...@@ -63,6 +67,7 @@ export default {
}, },
mounted () { mounted () {
this.dialogVisible = this.isShowFztm; this.dialogVisible = this.isShowFztm;
this.type == 'ry' ? this.title = '复制人员数据' : this.title = '复制案件数据'
}, },
watch: { watch: {
...@@ -76,10 +81,22 @@ export default { ...@@ -76,10 +81,22 @@ export default {
}, },
methods: { methods: {
updata () { updata () {
Object.assign(this.reqParam, this.rowData); let reqUrl = '';
delete this.reqParam.pid; if (this.type == 'ry') {
this.reqParam.barcode = this.barcode; reqUrl = '/api/personstore/copy'
console.log(this.reqParam, '复制数据') Object.assign(this.reqParam, this.rowData);
delete this.reqParam.pid;
this.reqParam.barcode = this.barcode;
console.log(this.reqParam, '人员复制数据')
} else if (this.type == 'aj') {
reqUrl = '/api/casestore/copyBarcode'
let caseBase = {}
Object.assign(caseBase, this.rowData);
delete caseBase.cid;
caseBase.barcode = this.barcode
this.reqParam.caseBase = caseBase
console.log(this.reqParam, '案件复制数据')
}
// 确认提示 // 确认提示
this.$confirm("是否确定复制数据?", "提示", { this.$confirm("是否确定复制数据?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -88,7 +105,7 @@ export default { ...@@ -88,7 +105,7 @@ export default {
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.put("/api/personstore/copy", this.reqParam) .put(reqUrl, this.reqParam)
.then(response => { .then(response => {
if (response.data.code === 0) { if (response.data.code === 0) {
this.$message.success("复制成功"); this.$message.success("复制成功");
......
<template> <template>
<el-dialog <el-dialog
title="更改人员条码" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="418px" width="418px"
append-to-body append-to-body
...@@ -57,6 +57,7 @@ export default { ...@@ -57,6 +57,7 @@ export default {
}, },
data () { data () {
return { return {
title: "",
labelPosition: 'left', // 标签对齐方式 labelPosition: 'left', // 标签对齐方式
dialogVisible: false, // 弹窗状态 dialogVisible: false, // 弹窗状态
reqParam: { // 请求参数 reqParam: { // 请求参数
...@@ -69,6 +70,7 @@ export default { ...@@ -69,6 +70,7 @@ export default {
mounted () { mounted () {
this.dialogVisible = this.isShowGgrytm; this.dialogVisible = this.isShowGgrytm;
console.log('更改条码类型', this.type) console.log('更改条码类型', this.type)
this.type == 'ry' ? this.title = '更改人员条码' : this.title = '更改案件条码'
}, },
watch: { watch: {
isShowGgrytm (newVal, oldVal) { isShowGgrytm (newVal, oldVal) {
...@@ -89,8 +91,11 @@ export default { ...@@ -89,8 +91,11 @@ export default {
newReqParams.barcode = this.reqParam.barcode newReqParams.barcode = this.reqParam.barcode
} else if (this.type == 'aj') { } else if (this.type == 'aj') {
reqUrl = 'api/casestore/updateBarcode' reqUrl = 'api/casestore/updateBarcode'
newReqParams.cid = this.rowData.cid let caseBase = {}
newReqParams.barcode = this.reqParam.barcode caseBase.cid = this.rowData.cid
caseBase.barcode = this.reqParam.barcode
newReqParams.caseBase = caseBase
} }
// 确认提示 // 确认提示
this.$confirm("是否确定更改数据?", "提示", { this.$confirm("是否确定更改数据?", "提示", {
......
<template> <template>
<el-dialog <el-dialog
title="加入关注人员列表" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="757px" width="950px"
append-to-body append-to-body
:before-close="handleClose" :before-close="handleClose"
> >
<el-table <el-table
v-if="type=='ry'"
:data="rowData" :data="rowData"
:header-cell-style="{background:'#eef1f6',color:'#606266'}" :header-cell-style="{background:'#eef1f6',color:'#606266'}"
style="width: 100%" style="width: 100%"
...@@ -26,13 +27,13 @@ ...@@ -26,13 +27,13 @@
<el-table-column <el-table-column
prop="name" prop="name"
label="姓名" label="姓名"
width="80" width="150"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="sex" prop="sex"
label="性别" label="性别"
width="80" width="150"
:formatter="sexFormat" :formatter="sexFormat"
> >
</el-table-column> </el-table-column>
...@@ -42,6 +43,43 @@ ...@@ -42,6 +43,43 @@
> >
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-table
v-else
:data="rowData"
:header-cell-style="{background:'#eef1f6',color:'#606266'}"
style="width: 100%"
>
<el-table-column
type="index"
label="#"
width="50"
>
</el-table-column>
<el-table-column
prop="barcode"
label="条码号"
width="240"
>
</el-table-column>
<el-table-column
prop="caseTypeNames"
label="案件类型"
width="240"
>
</el-table-column>
<el-table-column
prop="briefdesc"
label="简要案情"
width="240"
:formatter="sexFormat"
>
</el-table-column>
<el-table-column
prop="collectunitname"
label="提取单位"
>
</el-table-column>
</el-table>
<div class='total'> <div class='total'>
<span>共计{{rowData.length}}条数据</span> <span>共计{{rowData.length}}条数据</span>
</div> </div>
...@@ -50,7 +88,7 @@ ...@@ -50,7 +88,7 @@
type="textarea" type="textarea"
:rows="5" :rows="5"
placeholder="请输入备注信息" placeholder="请输入备注信息"
v-model="reqParam.myPerson.comments" v-model="comments"
> >
</el-input> </el-input>
<span <span
...@@ -77,25 +115,24 @@ export default { ...@@ -77,25 +115,24 @@ export default {
}, },
rowData: { rowData: {
default: false default: false
},
type: {
default: false
} }
}, },
data () { data () {
return { return {
title: '',
labelPosition: 'left', // 标签对齐方式 labelPosition: 'left', // 标签对齐方式
dialogVisible: false, // 弹窗状态 dialogVisible: false, // 弹窗状态
comments: '',//备注
reqParam: { // 请求参数 reqParam: { // 请求参数
pid: '',// 关注ID
barcode: '',//条码号
myPerson: {
comments: '',//备注
pid: '',// 关注ID
barcode: '',//条码号
}
}, },
}; };
}, },
mounted () { mounted () {
this.dialogVisible = this.isShowGz; this.dialogVisible = this.isShowGz;
this.type == 'ry' ? this.title = '加入人员关注列表' : this.title = '加入案件关注列表'
}, },
watch: { watch: {
isShowGz (newVal, oldVal) { isShowGz (newVal, oldVal) {
...@@ -108,18 +145,58 @@ export default { ...@@ -108,18 +145,58 @@ export default {
}, },
methods: { methods: {
focus () { focus () {
let barCode = []; let reqUrl = '';
let myPerson = []; if (this.type == 'ry') {
for (let i = 0; i < this.rowData.length; i++) { reqUrl = "/api/mypsn/add"
myPerson.push(this.rowData[i].pid); let newReqParams = { // 请求参数
barCode.push(this.rowData[i].barcode); pid: '',// 关注ID
barcode: '',//条码号
myPerson: {
comments: '',//备注
pid: '',// 关注ID
barcode: '',//条码号
}
};
let barCode = [];
let myPerson = [];
for (let i = 0; i < this.rowData.length; i++) {
myPerson.push(this.rowData[i].pid);
barCode.push(this.rowData[i].barcode);
}
newReqParams.pid = myPerson[0];
newReqParams.myPerson.pid = myPerson;
newReqParams.barcode = barCode[0];
newReqParams.myPerson.barcode = barCode;
newReqParams.myPerson.comments = this.comments;
this.reqParam = newReqParams
console.log('关注人员ID', myPerson);
} else if (this.type == 'aj') {
reqUrl = "/api/mycase/add"
let newReqParams = {
cid: '',// 关注ID
barcode: '',//条码号
myCase: {
comments: '',//备注
cid: '',// 关注ID
barcode: '',//条码号
}
}
let barCode = [];
let myCase = [];
for (let i = 0; i < this.rowData.length; i++) {
myCase.push(this.rowData[i].cid);
barCode.push(this.rowData[i].barcode);
}
newReqParams.cid = myCase[0];
newReqParams.myCase.cid = myCase;
newReqParams.barcode = barCode[0];
newReqParams.myCase.barcode = barCode;
newReqParams.myCase.comments = this.comments;
this.reqParam = newReqParams
console.log('关注案件ID', myCase);
} }
this.reqParam.pid = myPerson[0];
this.reqParam.myPerson.pid = myPerson; if (this.comments.length == 0) {
this.reqParam.barcode = barCode[0];
this.reqParam.myPerson.barcode = barCode;
console.log('关注ID', myPerson);
if (this.reqParam.myPerson.comments.length == 0) {
console.log('没输入') console.log('没输入')
this.$message.error("请输入备注信息!"); this.$message.error("请输入备注信息!");
} else { } else {
...@@ -132,11 +209,11 @@ export default { ...@@ -132,11 +209,11 @@ export default {
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.post("/api/mypsn/add", this.reqParam) .post(reqUrl, this.reqParam)
.then(response => { .then(response => {
if (response.data.code === 0) { if (response.data.code === 0) {
this.$message.success("关注成功"); this.$message.success("关注成功");
this.reqParam.myPerson.comments = '' this.comments = ''
this.dialogVisible = false; this.dialogVisible = false;
} else { } else {
this.$message.error("关注失败"); this.$message.error("关注失败");
......
<template> <template>
<el-dialog <el-dialog
title="添加到队列" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="418px" width="418px"
append-to-body append-to-body
...@@ -9,35 +9,51 @@ ...@@ -9,35 +9,51 @@
<el-form <el-form
:label-position="labelPosition" :label-position="labelPosition"
label-width="120px" label-width="120px"
:model="reqParam"
> >
<el-form-item label="选择队列"> <el-form-item
label="选择队列"
v-if="type== 'ry'"
>
<el-select <el-select
v-model="reqParam.checkQue" v-model="checkQue"
placeholder="请选择队列" placeholder="请选择队列"
> >
<el-option <el-option
label="处理队列" label="人员队列"
value="personque" value="personque"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item
label="选择队列"
v-else
>
<el-select
v-model="checkQue"
placeholder="请选择队列"
>
<el-option
label="案件队列"
value="caseque"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="删除原图"> <el-form-item label="删除原图">
<el-switch <el-switch
v-model="reqParam.delbmp" v-model="delbmp"
active-value="是" active-value="是"
inactive-value="否" inactive-value="否"
></el-switch> ></el-switch>
</el-form-item> </el-form-item>
<el-form-item label="覆盖原图"> <el-form-item label="覆盖原图">
<el-switch <el-switch
v-model="reqParam.replacecpr" v-model="replacecpr"
active-value="1" active-value="1"
inactive-value="0" inactive-value="0"
></el-switch> ></el-switch>
</el-form-item> </el-form-item>
<el-form-item label="处理模式"> <el-form-item label="处理模式">
<el-radio-group v-model="reqParam.managetype"> <el-radio-group v-model="managetype">
<el-radio <el-radio
label="全部处理" label="全部处理"
value='全部处理' value='全部处理'
...@@ -49,7 +65,7 @@ ...@@ -49,7 +65,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="处理对象"> <el-form-item label="处理对象">
<el-radio-group v-model="reqParam.manageorgCpr"> <el-radio-group v-model="manageorgCpr">
<el-radio :label="0">处理原图</el-radio> <el-radio :label="0">处理原图</el-radio>
<el-radio :label="1">处理压缩图</el-radio> <el-radio :label="1">处理压缩图</el-radio>
</el-radio-group> </el-radio-group>
...@@ -86,21 +102,22 @@ export default { ...@@ -86,21 +102,22 @@ export default {
}, },
data () { data () {
return { return {
title: '',
labelPosition: 'left', // 标签对齐方式 labelPosition: 'left', // 标签对齐方式
dialogVisible: false, // 弹窗状态 dialogVisible: false, // 弹窗状态
checkQue: '', //选择队列
delbmp: '', // 删除原图
replacecpr: '',// 覆盖原图
managetype: '',// 处理模式
manageorgCpr: '',//处理对象
reqParam: { // 请求参数 reqParam: { // 请求参数
checkQue: '', //选择队列
delbmp: '', // 删除原图
replacecpr: '',// 覆盖原图
managetype: '',// 处理模式
manageorgCpr: '',//处理对象
personDoList: []
}, },
}; };
}, },
mounted () { mounted () {
this.dialogVisible = this.isShowTjddl; this.dialogVisible = this.isShowTjddl;
console.log('添加到队列类型', this.type) console.log('添加到队列类型', this.type)
this.type == 'ry' ? this.title = '添加到人员队列' : this.title = '添加到案件队列'
}, },
watch: { watch: {
isShowTjddl (newVal, oldVal) { isShowTjddl (newVal, oldVal) {
...@@ -113,20 +130,61 @@ export default { ...@@ -113,20 +130,61 @@ export default {
}, },
methods: { methods: {
addList () { addList () {
for (let i = 0; i < this.rowData.length; i++) { let reqUrl = '';
let arr = { let newReqParams = {}
barcode: '', if (this.type == 'ry') {
pid: '' reqUrl = "/api/psn/handleque/add"
newReqParams = {
checkQue: '', //选择队列
delbmp: '', // 删除原图
replacecpr: '',// 覆盖原图
managetype: '',// 处理模式
manageorgCpr: '',//处理对象
personDoList: []
}
for (let i = 0; i < this.rowData.length; i++) {
let arr = {
barcode: '',
pid: ''
}
arr.barcode = this.rowData[i].barcode;
arr.pid = this.rowData[i].pid;
newReqParams.personDoList.push(arr)
this.reqParam = newReqParams
}
newReqParams.checkQue = this.checkQue
newReqParams.delbmp = this.delbmp
newReqParams.replacecpr = this.replacec
newReqParams.managetype = this.managetype
newReqParams.manageorgCpr = this.manageorgCpr
console.log(this.reqParam, '人员添加到队列')
} else if (this.type == 'aj') {
reqUrl = "api/case/handlecaseque/add"
newReqParams = {
checkQue: '', //选择队列
delbmp: '', // 删除原图
replacecpr: '',// 覆盖原图
managetype: '',// 处理模式
manageorgCpr: '',//处理对象
caseBaseList: []
}
for (let i = 0; i < this.rowData.length; i++) {
let arr = {
barcode: '',
cid: ''
}
arr.barcode = this.rowData[i].barcode;
arr.cid = this.rowData[i].cid;
newReqParams.caseBaseList.push(arr)
this.reqParam = newReqParams
} }
arr.barcode = this.rowData[i].barcode; newReqParams.checkQue = this.checkQue
arr.pid = this.rowData[i].pid; newReqParams.delbmp = this.delbmp
// myPerson.push(this.rowData[i].pid); newReqParams.replacecpr = this.replacec
// barCode.push(this.rowData[i].barcode); newReqParams.managetype = this.managetype
this.reqParam.personDoList.push(arr) newReqParams.manageorgCpr = this.manageorgCpr
} console.log(this.reqParam, '案件添加到队列')
// this.reqParam.personDoList.pid = myPerson; };
// this.reqParam.personDoList.barcode = barCode;
console.log(this.reqParam, '添加到队列')
// 确认提示 // 确认提示
this.$confirm("是否确定添加到队列?", "提示", { this.$confirm("是否确定添加到队列?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -135,7 +193,7 @@ export default { ...@@ -135,7 +193,7 @@ export default {
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.post("/api/psn/handleque/add", this.reqParam) .post(reqUrl, this.reqParam)
.then(response => { .then(response => {
if (response.data.code === 0) { if (response.data.code === 0) {
this.$message.success("添加成功"); this.$message.success("添加成功");
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
clear="search-input" clear="search-input"
placeholder="请输入条码,*支持模糊搜索" placeholder="请输入条码,*支持模糊搜索"
v-model="reqParam.caseStoreCustomSearchReq.barcode" v-model="reqParam.caseStoreCustomSearchReq.barcode"
maxlength="23"
show-word-limit
></el-input> ></el-input>
<div <div
class="search-icon el-icon-search" class="search-icon el-icon-search"
...@@ -52,12 +54,18 @@ ...@@ -52,12 +54,18 @@
v-clipboard:error="onError" v-clipboard:error="onError"
>复制条码</div> >复制条码</div>
<div class="btn">导出FTPX</div> <div class="btn">导出FTPX</div>
<div class="btn">关注</div> <div
class="btn"
@click="isShowGzBtn"
>关注</div>
<div <div
class="btn" class="btn"
@click="delMore" @click="delMore"
>删除</div> >删除</div>
<div class="btn send">发查询</div> <div
class="btn send"
@click="isShowFcxBtn"
>发查询</div>
</div> </div>
</div> </div>
<!--四 --> <!--四 -->
...@@ -148,6 +156,7 @@ ...@@ -148,6 +156,7 @@
effect="dark" effect="dark"
content="编辑" content="编辑"
placement="top" placement="top"
open-delay='200'
> >
<div <div
class="icon bj" class="icon bj"
...@@ -164,10 +173,11 @@ ...@@ -164,10 +173,11 @@
effect="dark" effect="dark"
content="收藏" content="收藏"
placement="top" placement="top"
open-delay='200'
> >
<div <div
class="icon sc" class="icon sc"
@click="handleClick(scope.row)" @click="isShowGzBtn1(scope.row)"
> >
<img <img
src="../../assets/img/qbryk/sc.png" src="../../assets/img/qbryk/sc.png"
...@@ -180,6 +190,7 @@ ...@@ -180,6 +190,7 @@
effect="dark" effect="dark"
content="改号" content="改号"
placement="top" placement="top"
open-delay='200'
> >
<div <div
class="icon gx" class="icon gx"
...@@ -196,6 +207,7 @@ ...@@ -196,6 +207,7 @@
effect="dark" effect="dark"
content="发查询" content="发查询"
placement="top" placement="top"
open-delay='200'
> >
<div <div
class="icon look" class="icon look"
...@@ -212,10 +224,11 @@ ...@@ -212,10 +224,11 @@
effect="dark" effect="dark"
content="复制数据" content="复制数据"
placement="top" placement="top"
open-delay='200'
> >
<div <div
class="icon bz" class="icon bz"
@click="handleClick(scope.row)" @click="isShowFztmBtn(scope.row)"
> >
<img <img
src="../../assets/img/qbryk/bz.png" src="../../assets/img/qbryk/bz.png"
...@@ -228,6 +241,7 @@ ...@@ -228,6 +241,7 @@
effect="dark" effect="dark"
content="打印" content="打印"
placement="top" placement="top"
open-delay='200'
> >
<div <div
class="icon print" class="icon print"
...@@ -244,12 +258,13 @@ ...@@ -244,12 +258,13 @@
effect="dark" effect="dark"
content="删除" content="删除"
placement="top" placement="top"
open-delay='200'
> >
<el-popconfirm <el-popconfirm
placement="top-start" placement="top-start"
:hide-icon="true" :hide-icon="true"
confirm-button-text="确认" confirm-button-text="确认"
@onConfirm="deleteClick(scope.row)" @onConfirm="delOne(scope.row.cid)"
class="icon del" class="icon del"
title="确认要删除该数据吗?该操作无法撤消!" title="确认要删除该数据吗?该操作无法撤消!"
> >
...@@ -289,7 +304,14 @@ ...@@ -289,7 +304,14 @@
:type="type" :type="type"
@closeTjddl="closeTjddl" @closeTjddl="closeTjddl"
></tjddl> ></tjddl>
<!-- 更改人员条码弹窗 --> <!-- 关注弹窗 -->
<gz
:isShowGz="isShowGz"
:rowData="rowData"
:type="type"
@closeGz="closeGz"
></gz>
<!-- 更改条码弹窗 -->
<ggrytm <ggrytm
:isShowGgrytm="isShowGgrytm" :isShowGgrytm="isShowGgrytm"
:rowData="rowData" :rowData="rowData"
...@@ -297,6 +319,21 @@ ...@@ -297,6 +319,21 @@
@closeGgrytm="closeGgrytm" @closeGgrytm="closeGgrytm"
> >
</ggrytm> </ggrytm>
<!-- 复制数据弹窗 -->
<fztm
:isShowFztm="isShowFztm"
:rowData="rowData"
:type="type"
@closeFztm="closeFztm"
></fztm>
<!-- 发查询弹窗 -->
<fcx
:isShowFcx="isShowFcx"
:rowData="rowData"
:type="type"
@closeFcx="closeFcx"
>
</fcx>
</div> </div>
</el-container> </el-container>
...@@ -308,6 +345,7 @@ import gz from "./modules/gz.vue" // 关注 ...@@ -308,6 +345,7 @@ import gz from "./modules/gz.vue" // 关注
import fztm from "./modules/fztm.vue" // 复制数据弹窗 import fztm from "./modules/fztm.vue" // 复制数据弹窗
import dcftpx from "./modules/dcftpx.vue" //导出FTPX弹窗 import dcftpx from "./modules/dcftpx.vue" //导出FTPX弹窗
import ggrytm from "./modules/ggrytm.vue"// 更改人员条码弹窗 import ggrytm from "./modules/ggrytm.vue"// 更改人员条码弹窗
import fcx from "./modules/fcx.vue" // 发查询弹窗
export default { export default {
name: "AllPersonnelBase", name: "AllPersonnelBase",
components: { components: {
...@@ -315,12 +353,16 @@ export default { ...@@ -315,12 +353,16 @@ export default {
gz, gz,
fztm, fztm,
dcftpx, dcftpx,
ggrytm ggrytm,
fcx
}, },
data () { data () {
return { return {
isShowTjddl: false,// 添加到队列 isShowTjddl: false,// 添加到队列
isShowGgrytm: false,// 更改人员条码 isShowGz: false,// 关注
isShowGgrytm: false,// 更改条码
isShowFztm: false, //复制条码
isShowFcx: false, //发查询
type: 'aj', // 人员还是案件 type: 'aj', // 人员还是案件
reqParam: { reqParam: {
caseStoreCustomSearchReq: { caseStoreCustomSearchReq: {
...@@ -360,8 +402,57 @@ export default { ...@@ -360,8 +402,57 @@ export default {
} }
}); });
}, },
// 多条删除 // 多选删除
delMore () { }, delMore () {
// 检查table选择的数据 如果没有选择则不可以删除
if (this.multipleSelection.length === 0) {
this.$message.error("请选择需要删除的数据!");
return;
}
// 封装删除的psns为数组
let cids = [];
for (let i = 0; i < this.multipleSelection.length; i++) {
cids.push(this.multipleSelection[i].cid);
}
this.doDelete(cids.toString());
},
// 单选删除
delOne (val) {
console.log("删除数据")
// 将传入的psns转为数组
let cids = [];
cids.push(val);
console.info("删除接口里的cids:", cids);
this.doDelete(cids.toString());
},
// 请求删除接口
doDelete (cids) {
console.log('111111', cids)
// 删除确认提示
this.$confirm("是否确定删除已选择的数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.$axios
.delete("api/casestore/casebase", { params: { cids } })
.then(response => {
if (response.data.code === 0) {
this.$message.success("删除成功");
this.search();
} else {
this.$message.error("删除失败");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除"
});
});
},
// 时间格式化 // 时间格式化
dateTimeFormat (row, colnum) { dateTimeFormat (row, colnum) {
let prop = colnum.property; let prop = colnum.property;
...@@ -423,6 +514,28 @@ export default { ...@@ -423,6 +514,28 @@ export default {
console.log('添加到队列关闭', val) console.log('添加到队列关闭', val)
this.isShowTjddl = val this.isShowTjddl = val
}, },
// 关注
isShowGzBtn () { // 多行
console.log('关注')
if (this.multipleSelection.length === 0) {
this.$message.error("请选择需要关注的数据!");
} else {
this.rowData = this.multipleSelection
this.isShowGz = true;
}
},
isShowGzBtn1 (val) { // 单行
console.log(val, 123)
let rowVal = [];
rowVal.push(val)
this.rowData = rowVal
this.isShowGz = true;
},
closeGz (val) {
console.log('关注关闭', val)
this.isShowGz = val
this.search()
},
// 更改条码操作 // 更改条码操作
isShowGgrytmBtn (val) { isShowGgrytmBtn (val) {
console.log('更改条码', val) console.log('更改条码', val)
...@@ -434,6 +547,28 @@ export default { ...@@ -434,6 +547,28 @@ export default {
this.isShowGgrytm = val this.isShowGgrytm = val
this.search() this.search()
}, },
//复制条码列表操作
isShowFztmBtn (val) {
console.log('复制条码', val)
this.rowData = val
this.isShowFztm = true;
},
closeFztm (val) {
console.log('closeFztm复制条码关闭', val)
this.isShowFztm = val
this.search()
},
//发查询操作
isShowFcxBtn (val) {
console.log('发查询', val)
this.rowData = val
this.isShowFcx = true;
},
closeFcx (val) {
console.log('发查询关闭', val)
this.isShowFcx = val
this.search()
},
/** /**
* @description: 是否是批量操作 * @description: 是否是批量操作
* @param {*} * @param {*}
...@@ -446,14 +581,6 @@ export default { ...@@ -446,14 +581,6 @@ export default {
alert(888); alert(888);
}, },
/** /**
* @description: 删除数据
* @param {*} row
* @return {*}
*/
deleteClick (row) {
console.log(row);
},
/**
* @description: 编辑数据 * @description: 编辑数据
* @param {*} row * @param {*} row
* @return {*} * @return {*}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment