Commit b2efa683 by lp784568205

修改了标注的重值功能

parent 978da8ac
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -498,7 +498,7 @@ export default {
} else {
if (this.pageBszfc == "queryAjNM") {
this.$router.pushToTab({
path: "queryAjNM",
path: "ajbzDetailNM",
query: {
asjbh: scope.asjbh,
bzzt: scope.bzzt,
......@@ -506,7 +506,7 @@ export default {
});
} else if (this.pageBs == "queryAjHN") {
this.$router.pushToTab({
path: "ajbzDetailNM",
path: "ajbzDetailHN",
query: {
asjbh: scope.asjbh,
bzzt: scope.bzzt,
......
......@@ -633,9 +633,9 @@
>
<el-option
v-for="item in options"
:key="item.value"
:key="item.id"
:label="item.label"
:value="item.value"
:value="item.id"
>
</el-option>
</el-select>
......@@ -863,75 +863,75 @@ export default {
qqq: "qqq",
otherid: "otherid",
options: [
{
value: "mobile",
label: "手机号",
},
{
value: "personid",
label: "身份证号",
},
{
value: "yhkh",
label: "银行卡号",
},
{
value: "mac",
label: "MAC",
},
{
value: "vin",
label: "车架号",
},
{
value: "qq",
label: "QQ号",
},
{
value: "wx",
label: "微信ID",
},
{
value: "email",
label: "Email地址",
},
{
value: "imsi",
label: "IMSI",
},
{
value: "imei",
label: "IMEI",
},
{
value: "ip",
label: "IP",
},
{
value: "zfb",
label: "支付宝账号",
},
{
value: "carid",
label: "车牌号",
},
{
value: "url",
label: "网址url",
},
{
value: "app",
label: "APP名称",
},
{
value: "qqq",
label: "QQ群",
},
{
value: "otherid",
label: "其他",
},
// {
// value: "mobile",
// label: "手机号",
// },
// {
// value: "personid",
// label: "身份证号",
// },
// {
// value: "yhkh",
// label: "银行卡号",
// },
// {
// value: "mac",
// label: "MAC",
// },
// {
// value: "vin",
// label: "车架号",
// },
// {
// value: "qq",
// label: "QQ号",
// },
// {
// value: "wx",
// label: "微信ID",
// },
// {
// value: "email",
// label: "Email地址",
// },
// {
// value: "imsi",
// label: "IMSI",
// },
// {
// value: "imei",
// label: "IMEI",
// },
// {
// value: "ip",
// label: "IP",
// },
// {
// value: "zfb",
// label: "支付宝账号",
// },
// {
// value: "carid",
// label: "车牌号",
// },
// {
// value: "url",
// label: "网址url",
// },
// {
// value: "app",
// label: "APP名称",
// },
// {
// value: "qqq",
// label: "QQ群",
// },
// {
// value: "otherid",
// label: "其他",
// },
],
options1: [
{
......@@ -980,6 +980,11 @@ export default {
//this.getBz();
this.isCheck = this.$route.query.isCheck;
this.bzzt = this.$route.query.bzzt;
axios.get(`JsonData/CODE_BLHLX.json`).then((response) => {
if (response.success === true) {
this.options = response.data.rows;
}
});
},
methods: {
initAjlbTree() {
......@@ -991,20 +996,15 @@ export default {
this.parentLb.parentId = "";
if (this.ajzlb != null && this.ajzlb != "") {
alert(1);
axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
if (response.success === true) {
debugger;
this.laData = response.data.rows.filter((val) => {
return val.parentId == `${this.ajzlb}0000`;
});
console.log(this.laData);
this.parentLb.id = this.ajxzlb;
}
});
if (this.ajxzlb != null && this.ajxzlb != "") {
alert(2);
setTimeout(() => {
if (this.$refs.tree3) {
this.$refs.tree3.setCurrentKey(this.ajxzlb);
......@@ -1015,17 +1015,12 @@ export default {
if (response.success === true) {
this.xaData = response.data.rows.filter((val) => {
if (val.id.indexOf(this.ajzlb, 0) == 0) {
console.log(val.id);
return val;
}
});
console.log(this.xaData);
}
});
console.log(this.ajxlb);
if (this.ajxlb != null && this.ajxlb != "") {
alert(3);
setTimeout(() => {
this.$refs.tree2.setCurrentKey(this.ajxlb);
}, 500);
......@@ -1033,15 +1028,12 @@ export default {
}
} else {
// let ajxzId = this.ajzlb + "0000";
alert(22);
axios
.get(`JsonData/CODE_AJXLB.json`)
.then((response) => {
if (response.success === true) {
console.log(respi);
this.xaData = response.data.rows.filter((val) => {
if (val.id.indexOf(this.ajzlb, 0) == 0) {
console.log(val.id);
if (val.parentId.indexOf(this.ajzlb, 0) == 0) {
return val;
}
});
......@@ -1053,7 +1045,6 @@ export default {
});
}
} else {
alert(11);
this.getQuery();
}
console.log(this.parentLb);
......@@ -1266,7 +1257,6 @@ export default {
getAsjxxDetail({
asjbh: this.asjbh,
}).then((res) => {
debugger;
this.ajmc = res.data.rows.ajmc;
this.ajlbdmStr = res.data.rows.ajlbdmStr;
this.ajxzlbStr = res.data.rows.ajxzlbStr;
......@@ -1275,7 +1265,6 @@ export default {
this.ajzlb = res.data.rows.ajzlb;
this.ajxzlb = res.data.rows.ajxzlb;
this.zatzjyqk = res.data.rows.zatzjyqk;
debugger;
this.ajxlb = res.data.rows.ajxlb;
this.asjfssjKssjStr = res.data.rows.asjfssjKssjStr;
......@@ -1441,8 +1430,11 @@ export default {
});
axios.get(`JsonData/CODE_AJXLB.json`).then((response) => {
if (response.success === true) {
console.log(response.data.rows);
this.laData = response.data.rows;
this.xaData = response.data.rows.filter((val) => {
if (val.id.indexOf(this.ajzlb, 0) == 0) {
return val;
}
});;
}
});
},
......
......@@ -1001,7 +1001,6 @@ export default {
this.laData = response.data.rows.filter((val) => {
return val.parentId == `${this.ajzlb}0000`;
});
console.log(this.laData);
this.parentLb.id = this.ajxzlb;
}
});
......@@ -1016,14 +1015,11 @@ export default {
if (response.success === true) {
this.xaData = response.data.rows.filter((val) => {
if (val.id.indexOf(this.ajzlb, 0) == 0) {
console.log(val.id);
return val;
}
});
console.log(this.xaData);
}
});
console.log(this.ajxlb);
if (this.ajxlb != null && this.ajxlb != "") {
setTimeout(() => {
this.$refs.tree2.setCurrentKey(this.ajxlb);
......@@ -1036,14 +1032,11 @@ export default {
.get(`JsonData/CODE_AJXLB.json`)
.then((response) => {
if (response.success === true) {
console.log(response);
this.xaData = response.data.rows.filter((val) => {
if (val.parentId.indexOf(this.ajzlb, 0) == 0) {
console.log(val.id);
return val;
}
});
console.log(this.xaData);
}
})
.catch((err) => {
......@@ -1437,8 +1430,11 @@ export default {
});
axios.get(`JsonData/CODE_AJXLB.json`).then((response) => {
if (response.success === true) {
console.log(response.data.rows);
this.laData = response.data.rows;
this.xaData = response.data.rows.filter((val) => {
if (val.id.indexOf(this.ajzlb, 0) == 0) {
return val;
}
});;
}
});
},
......
......@@ -70,7 +70,7 @@ export default {
{
name: "立案单位",
id: "Ladw_gajgjgdms",
type: "CodeTreeDialog",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
......
......@@ -28,10 +28,21 @@
</el-col>
</el-row>
</div>
<div class="titleFlexG" style="width: 10%" v-if="bzztMs && bzztMs == '已标注'">
<el-tag style="font-size: 24px;color: #888;border:1px solid #888;">{{ bzztMs }}</el-tag>
<div
class="titleFlexG"
style="width: 10%"
v-if="bzztMs && bzztMs == '已标注'"
>
<el-tag
style="font-size: 24px; color: #888; border: 1px solid #888"
>{{ bzztMs }}</el-tag
>
</div>
<div class="titleFlexY" style="width: 10%" v-if="bzztMs && bzztMs == '未标注'">
<div
class="titleFlexY"
style="width: 10%"
v-if="bzztMs && bzztMs == '未标注'"
>
<el-tag style="font-size: 24px">{{ bzztMs }}</el-tag>
</div>
</div>
......@@ -44,11 +55,11 @@
<div class="leftBar" :class="topSamllCard">
<ul>
<li
v-for="item in barData"
:key="item.id"
ref="item.id"
:class="{ active: selectIndex === item.id }"
@click="halderTab(item.id)"
v-for="item in barData"
:key="item.id"
ref="item.id"
:class="{ active: selectIndex === item.id }"
@click="halderTab(item.id)"
>
{{ item.name }}
</li>
......@@ -94,10 +105,10 @@
<tr>
<td valign="top" width="80">简要案情:</td>
<td
colspan="3"
valign="top"
width="300"
v-html="jyaq"
colspan="3"
valign="top"
width="300"
v-html="jyaq"
></td>
</tr>
</table>
......@@ -113,9 +124,9 @@
<tr>
<td width="80">勘验编号:</td>
<td
width="300"
@click="toXk(xcbh)"
style="
width="300"
@click="toXk(xcbh)"
style="
cursor: pointer;
color: #096cc9;
white-space: nowrap;
......@@ -154,10 +165,10 @@
<div class="conTitleLeft conTitleleft" style="width: 40%">
<ul>
<li
v-for="data in ryList"
:key="data.ryid"
:class="{ liActive: selectIndex2 === data.ryid }"
@click="hanldRytab(data.ryid)"
v-for="data in ryList"
:key="data.ryid"
:class="{ liActive: selectIndex2 === data.ryid }"
@click="hanldRytab(data.ryid)"
>
{{ data.name }}
</li>
......@@ -169,18 +180,18 @@
<table v-for="(data, index) in xyrList1" :key="index">
<tr>
<td
rowspan="3"
style="text-align: center"
valign="top"
width="200"
rowspan="3"
style="text-align: center"
valign="top"
width="200"
>
<div class="demo-fit">
<div class="block">
<el-avatar
shape="square"
:size="100"
fit="fill"
:src="'data:image/png;base64,' + data.zp"
shape="square"
:size="100"
fit="fill"
:src="'data:image/png;base64,' + data.zp"
></el-avatar>
</div>
</div>
......@@ -205,26 +216,26 @@
</table>
</div>
<div
class="conContioner"
:class="topSamllCard"
v-show="shrqh"
style="style:width: 869px;"
class="conContioner"
:class="topSamllCard"
v-show="shrqh"
style="style:width: 869px;"
>
<table v-for="(data, index) in shrListqh" :key="index">
<tr>
<td
rowspan="4"
style="text-align: center"
valign="top"
width="200"
rowspan="4"
style="text-align: center"
valign="top"
width="200"
>
<div class="demo-fit">
<div class="block">
<el-avatar
shape="square"
:size="100"
fit="fill"
:src="'data:image/png;base64,' + data.zp"
shape="square"
:size="100"
fit="fill"
:src="'data:image/png;base64,' + data.zp"
></el-avatar>
</div>
</div>
......@@ -255,25 +266,25 @@
</table>
</div>
<div
class="conContioner"
:class="topSamllCard"
v-show="barrqh"
class="conContioner"
:class="topSamllCard"
v-show="barrqh"
>
<table v-for="(data, index) in barList" :key="index">
<tr>
<td
rowspan="3"
style="text-align: center"
valign="top"
width="200"
rowspan="3"
style="text-align: center"
valign="top"
width="200"
>
<div class="demo-fit">
<div class="block">
<el-avatar
shape="square"
:size="100"
fit="fill"
:src="'data:image/png;base64,' + data.zp"
shape="square"
:size="100"
fit="fill"
:src="'data:image/png;base64,' + data.zp"
></el-avatar>
</div>
</div>
......@@ -310,13 +321,12 @@
</div>
<div class="keywordCon">
<el-tag
type="warning"
v-for="data in word"
:key="data"
@click="wordHighlight(data)"
>{{ data }}
</el-tag
>
type="warning"
v-for="data in word"
:key="data"
@click="wordHighlight(data)"
>{{ data }}
</el-tag>
</div>
</el-card>
</div>
......@@ -328,8 +338,8 @@
<div class="conTitleLeft">标识号</div>
<div class="conTitleRighty">
<el-button
class="bianji"
@click="centerDialogVisible = true"
class="bianji"
@click="centerDialogVisible = true"
></el-button>
<el-button class="dell" @click="hanldDel"></el-button>
<el-button class="add" @click="addBsh"></el-button>
......@@ -339,9 +349,9 @@
<ul>
<li v-for="data in fwbzhList" :key="data.rcdid">
<span
style="width: 90%; display: flex"
@click="shrHighlight(data.gjc)"
><i
style="width: 90%; display: flex"
@click="shrHighlight(data.gjc)"
><i
:class="
data.rylx == '01'
? 'shrtype'
......@@ -349,91 +359,91 @@
? 'xyrtype'
: ''
"
></i
><i :class="data.bshlx"></i
><strong>{{ data.gjc }}</strong></span
></i
><i :class="data.bshlx"></i
><strong>{{ data.gjc }}</strong></span
>
<span style="width: 10%">
<i
class="el-icon-delete"
v-show="delShow"
@click="hanlDelete(data.rcdid)"
class="el-icon-delete"
v-show="delShow"
@click="hanlDelete(data.rcdid)"
></i>
</span>
</li>
</ul>
</div>
<el-dialog
title="标识号编辑"
:visible.sync="centerDialogVisible"
width="50%"
center
title="标识号编辑"
:visible.sync="centerDialogVisible"
width="50%"
center
>
<table class="bshTable">
<thead>
<tr>
<th>标识号</th>
<th>标识号详情</th>
<th>标识号类型</th>
<th style="width: 256px">人员类型</th>
</tr>
<tr>
<th>标识号</th>
<th>标识号详情</th>
<th>标识号类型</th>
<th style="width: 256px">人员类型</th>
</tr>
</thead>
<tbody>
<tr
<tr
v-for="(data, index) in fwbzhList"
:key="data.rcdid"
>
<td>
<el-input
>
<td>
<el-input
v-model="formLabelAlign[index]['gjc']"
placeholder="请输入"
></el-input>
</td>
<td>
<el-input
></el-input>
</td>
<td>
<el-input
v-model="formLabelAlign[index]['bshxq']"
placeholder="请输入"
></el-input>
</td>
<td>
<el-select
></el-input>
</td>
<td>
<el-select
v-model="formLabelAlign[index]['bshlx']"
clearable
placeholder="请选择"
>
<el-option
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</td>
<td>
<el-select
>
</el-option>
</el-select>
</td>
<td>
<el-select
v-model="formLabelAlign[index]['rylx']"
clearable
placeholder="请选择"
>
<el-option
>
<el-option
v-for="item in options1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</td>
</tr>
>
</el-option>
</el-select>
</td>
</tr>
</tbody>
</table>
<span slot="footer" class="dialog-footer">
<el-button @click="centerDialogVisible = false"
>取 消</el-button
>取 消</el-button
>
<el-button type="primary" @click="handSumit()"
>确 定</el-button
>确 定</el-button
>
</span>
</el-dialog>
......@@ -446,7 +456,7 @@
<div class="grid-content bg-purple">
<el-card v-if="!bzFlag" class="box-card">
<div class="incidentTitle incidentTitle1">
<span style="font-size:15px">案事件标注</span>
<span style="font-size: 15px">案事件标注</span>
<div class="btn" @click="hanldTableBar()">重置</div>
</div>
<!-- <div class="incidentBtn">
......@@ -485,21 +495,21 @@
</div> -->
<div class="incidentConRight">
<div class="search">
<span style="font-size:15px">小案类别</span>
<span style="font-size: 15px">小案类别</span>
<el-input placeholder="关键词检索" v-model="filterText">
</el-input>
</div>
<div class="tree">
<el-tree
class="filter-tree"
:highlight-current="true"
node-key="id"
:data="laData"
:props="defaultProps"
default-expand-all
:filter-node-method="filterNode"
ref="tree3"
@node-click="lzHandleNodeClick"
class="filter-tree"
:highlight-current="true"
node-key="id"
:data="laData"
:props="defaultProps"
default-expand-all
:filter-node-method="filterNode"
ref="tree3"
@node-click="lzHandleNodeClick"
>
</el-tree>
</div>
......@@ -507,46 +517,42 @@
<div class="incidentConRight">
<div class="search">
<span style="font-size:15px">细案类别</span>
<span style="font-size: 15px">细案类别</span>
<el-input placeholder="关键词检索" v-model="filterText2">
</el-input>
</div>
<div class="tree">
<el-tree
class="filter-tree"
:highlight-current="true"
node-key="id"
:data="xaData"
:props="defaultProps"
default-expand-all
:filter-node-method="filterNode"
ref="tree2"
@node-click="xaHandleNodeClick"
class="filter-tree"
:highlight-current="true"
node-key="id"
:data="xaData"
:props="defaultProps"
default-expand-all
:filter-node-method="filterNode"
ref="tree2"
@node-click="xaHandleNodeClick"
>
</el-tree>
</div>
</div>
</div>
<div class="wcbzButton">
<el-button
type="primary"
@click="submitBz"
v-if="isCheck != 'Check'"
>完成标注
</el-button
>
type="primary"
@click="submitBz"
v-if="isCheck != 'Check'"
>完成标注
</el-button>
<el-button
type="primary"
@click="bjBack"
v-if="isCheck == 'Check' && bzzt == 1 && !bzztFlag"
>退回
</el-button
>
type="primary"
@click="bjBack"
v-if="isCheck == 'Check' && bzzt == 1 && !bzztFlag"
>退回
</el-button>
<el-button type="warning" @click="bzDetail"
>查看标注详情
</el-button
>
>查看标注详情
</el-button>
</div>
</el-card>
<el-card v-else class="box-card">
......@@ -560,16 +566,16 @@
<span>{{ ajlbdmStr }}</span>
</div>
<div
class="bztag2"
style="margin: 40px 0 0 60px"
v-show="bzxqtag2"
class="bztag2"
style="margin: 40px 0 0 60px"
v-show="bzxqtag2"
>
<span>{{ ajxzlbStr }}</span>
</div>
<div
class="bztag2"
style="margin: 40px 0 0 120px"
v-show="bzxqtag3"
class="bztag2"
style="margin: 40px 0 0 120px"
v-show="bzxqtag3"
>
<span>{{ ajxlbStr }}</span>
</div>
......@@ -589,74 +595,74 @@
<el-footer style="20px"></el-footer>
</el-container>
<el-dialog
title="标识号新增"
:visible.sync="centerDialogVisibles1"
width="800px"
center
v-drag="elementPos"
title="标识号新增"
:visible.sync="centerDialogVisibles1"
width="800px"
center
v-drag="elementPos"
>
<table class="bshTable">
<thead>
<tr>
<th>标识号</th>
<th>标识号详情</th>
<th>标识号类型</th>
<th style="width: 256px">人员类型</th>
</tr>
<tr>
<th>标识号</th>
<th>标识号详情</th>
<th>标识号类型</th>
<th style="width: 256px">人员类型</th>
</tr>
</thead>
<tbody>
<tr v-for="(data, index) in formLabelAlign2" :key="data.rcdid">
<!-- <td>{{ data.gjc }}</td> -->
<td>
<el-input
<tr v-for="(data, index) in formLabelAlign2" :key="data.rcdid">
<!-- <td>{{ data.gjc }}</td> -->
<td>
<el-input
v-model="formLabelAlign2[index]['gjc']"
placeholder="请输入"
></el-input>
</td>
<td>
<el-input
></el-input>
</td>
<td>
<el-input
v-model="formLabelAlign2[index]['bshxq']"
placeholder="请输入"
></el-input>
</td>
<td>
<el-select
></el-input>
</td>
<td>
<el-select
v-model="formLabelAlign2[index]['bshlx']"
clearable
placeholder="请选择"
>
<el-option
>
<el-option
v-for="item in options"
:key="item.value"
:key="item.id"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</td>
<td>
<el-select
:value="item.id"
>
</el-option>
</el-select>
</td>
<td>
<el-select
v-model="formLabelAlign2[index]['rylx']"
clearable
placeholder="请选择"
>
<el-option
>
<el-option
v-for="item in options1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</td>
</tr>
>
</el-option>
</el-select>
</td>
</tr>
</tbody>
</table>
<span slot="footer" class="dialog-footer">
<el-button
class="el-icon-edit"
style="float: left"
@click="addButton"
class="el-icon-edit"
style="float: left"
@click="addButton"
></el-button>
<el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="handSumits()">确 定</el-button>
......@@ -669,18 +675,18 @@
</span>
</el-dialog>
<el-dialog title="描述" :visible.sync="dialogVisible" width="30%">
<div style="padding:10px">
<div style="padding: 10px">
<el-input
type="textarea"
:rows="2"
placeholder="请输入内容"
v-model="textarea"
type="textarea"
:rows="2"
placeholder="请输入内容"
v-model="textarea"
>
</el-input>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogVisible = false"
>取 消</el-button
>取 消</el-button
>
<el-button @click="cz">确认</el-button>
</span>
......@@ -703,9 +709,10 @@ import {
getBarxxList,
deleteBsh,
updateBzStatus,
initAjlbTree
} from "./ajbzdetailNM";
import {queryCodeByType} from "@/api/queryAj.js";
initAjlbTree,
} from "@/api/ajbzDetail.js";
import axios from "@/utils/http.js";
import { queryCodeByType } from "@/api/queryAj.js";
export default {
name: "ajbzDetail",
......@@ -749,27 +756,27 @@ export default {
parentLb: {
parentId: "",
id: "",
childId: ""
childId: "",
}, //主类类别
centerDialogVisibles: false,
formLabelAlign: [],
formLabelAlign2: [],
barData: [
{id: 1, name: "案件信息"},
{id: 2, name: "现场信息"},
{id: 3, name: "人员"},
{ id: 1, name: "案件信息" },
{ id: 2, name: "现场信息" },
{ id: 3, name: "人员" },
],
tableBar: [
{key: 1, name: "盗窃案"},
{key: 2, name: "诈骗案"},
{key: 3, name: "抢劫案"},
{key: 4, name: "抢夺案"},
{key: 5, name: "招摇撞骗案"},
{ key: 1, name: "盗窃案" },
{ key: 2, name: "诈骗案" },
{ key: 3, name: "抢劫案" },
{ key: 4, name: "抢夺案" },
{ key: 5, name: "招摇撞骗案" },
],
ryList: [
{ryid: 1, name: "嫌疑人"},
{ryid: 2, name: "受害人"},
{ryid: 3, name: "报案人"},
{ ryid: 1, name: "嫌疑人" },
{ ryid: 2, name: "受害人" },
{ ryid: 3, name: "报案人" },
],
centerDialogVisible: false,
centerDialogVisible1: false,
......@@ -856,75 +863,75 @@ export default {
qqq: "qqq",
otherid: "otherid",
options: [
{
value: "mobile",
label: "手机号",
},
{
value: "personid",
label: "身份证号",
},
{
value: "yhkh",
label: "银行卡号",
},
{
value: "mac",
label: "MAC",
},
{
value: "vin",
label: "车架号",
},
{
value: "qq",
label: "QQ号",
},
{
value: "wx",
label: "微信ID",
},
{
value: "email",
label: "Email地址",
},
{
value: "imsi",
label: "IMSI",
},
{
value: "imei",
label: "IMEI",
},
{
value: "ip",
label: "IP",
},
{
value: "zfb",
label: "支付宝账号",
},
{
value: "carid",
label: "车牌号",
},
{
value: "url",
label: "网址url",
},
{
value: "app",
label: "APP名称",
},
{
value: "qqq",
label: "QQ群",
},
{
value: "otherid",
label: "其他",
},
// {
// value: "mobile",
// label: "手机号",
// },
// {
// value: "personid",
// label: "身份证号",
// },
// {
// value: "yhkh",
// label: "银行卡号",
// },
// {
// value: "mac",
// label: "MAC",
// },
// {
// value: "vin",
// label: "车架号",
// },
// {
// value: "qq",
// label: "QQ号",
// },
// {
// value: "wx",
// label: "微信ID",
// },
// {
// value: "email",
// label: "Email地址",
// },
// {
// value: "imsi",
// label: "IMSI",
// },
// {
// value: "imei",
// label: "IMEI",
// },
// {
// value: "ip",
// label: "IP",
// },
// {
// value: "zfb",
// label: "支付宝账号",
// },
// {
// value: "carid",
// label: "车牌号",
// },
// {
// value: "url",
// label: "网址url",
// },
// {
// value: "app",
// label: "APP名称",
// },
// {
// value: "qqq",
// label: "QQ群",
// },
// {
// value: "otherid",
// label: "其他",
// },
],
options1: [
{
......@@ -962,10 +969,10 @@ export default {
htms: "",
bzzt: "",
zatzjyqk: '',
zatzjyqk: "",
ajzlb: "",
ajxzlb: "",
ajxlb: '',
ajxlb: "",
};
},
created() {
......@@ -973,62 +980,69 @@ export default {
//this.getBz();
this.isCheck = this.$route.query.isCheck;
this.bzzt = this.$route.query.bzzt;
axios.get(`JsonData/CODE_BLHLX.json`).then((response) => {
if (response.success === true) {
this.options = response.data.rows;
}
});
},
methods: {
initAjlbTree() {
this.zaData = [];
this.laData = [];
this.xaData = [];
this.parentLb.id = "";
// this.parentLb.id = "";
this.parentLb.childId = "";
this.parentLb.parentId = "";
if (this.ajzlb != null && this.ajzlb != '') {
initAjlbTree({code: this.ajzlb, type: 'CODE_AJLB'}).then((res) => {
this.zaData = res.data.rows;
this.parentLb.parentId = this.ajzlb;
setTimeout(() => {
this.$refs.tree1.setCurrentKey(this.ajzlb);
}, 500)
})
if (this.ajxzlb != null && this.ajxzlb != '') {
initAjlbTree({code: this.ajxzlb, type: 'CODE_AJXZ'}).then((res) => {
this.laData = res.data.rows;
if (this.ajzlb != null && this.ajzlb != "") {
axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
if (response.success === true) {
this.laData = response.data.rows.filter((val) => {
return val.parentId == `${this.ajzlb}0000`;
});
this.parentLb.id = this.ajxzlb;
setTimeout(() => {
}
});
if (this.ajxzlb != null && this.ajxzlb != "") {
setTimeout(() => {
if (this.$refs.tree3) {
this.$refs.tree3.setCurrentKey(this.ajxzlb);
}, 500)
})
if (this.ajxlb != null && this.ajxlb != '') {
initAjlbTree({code: this.ajxlb, type: 'CODE_AJXLB'}).then((res) => {
this.xaData = res.data.rows;
this.parentLb.childId = this.ajxlb;
setTimeout(() => {
this.$refs.tree2.setCurrentKey(this.ajxlb);
}, 500)
})
}
}, 500);
axios.get(`JsonData/CODE_AJXLB.json`).then((response) => {
if (response.success === true) {
this.xaData = response.data.rows.filter((val) => {
if (val.id.indexOf(this.ajzlb, 0) == 0) {
return val;
}
});
}
});
if (this.ajxlb != null && this.ajxlb != "") {
setTimeout(() => {
this.$refs.tree2.setCurrentKey(this.ajxlb);
}, 500);
} else {
queryCodeByType({type: 'CODE_AJXLB', id: this.ajxzlb}).then((res) => {
if (res.rows != null && res.rows.length > 0) {
this.xaData = res.rows;
}
} else {
// let ajxzId = this.ajzlb + "0000";
axios
.get(`JsonData/CODE_AJXLB.json`)
.then((response) => {
if (response.success === true) {
this.xaData = response.data.rows.filter((val) => {
if (val.parentId.indexOf(this.ajzlb, 0) == 0) {
return val;
}
});
}
}).catch((err) => {
})
.catch((err) => {
console.log(err);
this.$message.error("数据加载失败");
});
}
} else {
let ajxzId = this.ajzlb + '0000';
queryCodeByType({type: 'CODE_AJXZ', id: ajxzId}).then((res) => {
if (res.rows != null && res.rows.length > 0) {
this.laData = res.rows;
}
}).catch((err) => {
console.log(err);
this.$message.error("数据加载失败");
});
}
} else {
this.getQuery();
......@@ -1054,18 +1068,21 @@ export default {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
});
}).then(() => {});
}
},
toXk() {
window.open(this.xcbhUrl, "_blank");
},
submitBz() {
if ((this.parentLb.parentId == null || this.parentLb.parentId == '') &&
(this.parentLb.id == null || this.parentLb.id == '') &&
(this.parentLb.childId == null || this.parentLb.childId == '')) {
this.$message.error("未找到有效的标注数据,请选择案件类别后再进行标注保存");
if (
(this.parentLb.parentId == null || this.parentLb.parentId == "") &&
(this.parentLb.id == null || this.parentLb.id == "") &&
(this.parentLb.childId == null || this.parentLb.childId == "")
) {
this.$message.error(
"未找到有效的标注数据,请选择案件类别后再进行标注保存"
);
return;
}
this.$confirm("此操作将进行案件标注, 是否继续?", "提示", {
......@@ -1081,22 +1098,25 @@ export default {
// asjbzAjfl: self.parentLb.parentId.substring(0,2),
// ajzlb: self.parentLb.parentId,
// ajxzlb: self.parentLb.id,
ajzlb: self.parentLb.parentId,
ajzlb: this.ajzlb,
zatzjyqk: self.parentLb.id,
ajxlb: self.parentLb.childId,
bzzt: "1",
}).then((res) => {
if (res.code == 200) {
self.$message.success("标注成功");
self.$confirm("点击确定关闭当前窗口", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "success",
}).then(() => {
window.close();
}).catch(() => {
//this.getBz()
});
self
.$confirm("点击确定关闭当前窗口", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "success",
})
.then(() => {
window.close();
})
.catch(() => {
//this.getBz()
});
} else {
self.$message.error("标注失败");
}
......@@ -1111,11 +1131,11 @@ export default {
self.bzztMs = res.data.rows.bzztMs;
if (res.data.rows.bzzt == "" && res.data.rows.htms) {
self.czmsdm1 = true;
self.bzztFlag = true
self.bzztFlag = true;
self.htms = res.data.rows.htms;
} else {
self.czmsdm1 = false;
self.bzztFlag = false
self.bzztFlag = false;
}
self.selectIndex1 = parseInt(res.data.rows.asjflzt);
if (res.data.rows != null) {
......@@ -1123,27 +1143,27 @@ export default {
self.ajxzlb = res.data.rows.ajxzlb;
self.ajxlb = res.data.rows.ajxlb;
if (
self.ajlbdmStr == "" ||
self.ajlbdmStr == null ||
self.ajlbdmStr == undefined
self.ajlbdmStr == "" ||
self.ajlbdmStr == null ||
self.ajlbdmStr == undefined
) {
self.bzxqtag1 = false;
} else {
self.bzxqtag1 = true;
}
if (
self.ajxzlbStr == "" ||
self.ajxzlbStr == null ||
self.ajxzlbStr == undefined
self.ajxzlbStr == "" ||
self.ajxzlbStr == null ||
self.ajxzlbStr == undefined
) {
self.bzxqtag2 = false;
} else {
self.bzxqtag2 = true;
}
if (
self.ajxlbStr == "" ||
self.ajxlbStr == null ||
self.ajxlbStr == undefined
self.ajxlbStr == "" ||
self.ajxlbStr == null ||
self.ajxlbStr == undefined
) {
self.bzxqtag3 = false;
} else {
......@@ -1160,20 +1180,20 @@ export default {
wordHighlight(val) {
var array = this.jyaq.split(val);
this.jyaq =
array[0] +
"<span style='background: orange;'>" +
val +
"</span>" +
array[1];
array[0] +
"<span style='background: orange;'>" +
val +
"</span>" +
array[1];
},
shrHighlight(val) {
var array = this.jyaq.split(val);
this.jyaq =
array[0] +
"<span style='background: orange;'>" +
val +
"</span>" +
array[1];
array[0] +
"<span style='background: orange;'>" +
val +
"</span>" +
array[1];
},
ajbzRrturn() {
//this.getBz();
......@@ -1242,7 +1262,6 @@ export default {
this.ajxzlbStr = res.data.rows.ajxzlbStr;
this.ajxlbStr = res.data.rows.ajxlbStr;
this.ajzlb = res.data.rows.ajzlb;
this.ajxzlb = res.data.rows.ajxzlb;
this.zatzjyqk = res.data.rows.zatzjyqk;
......@@ -1257,34 +1276,39 @@ export default {
this.jyaq = res.data.rows.jyaq;
this.fxasjddDzmc = res.data.rows.fxasjddDzmc;
this.bzztMs = res.data.rows.bzztMs;
if (res.data.rows.bzzt == "" && res.data.rows.htms) {
this.czmsdm1 = true;
this.bzztFlag = true
this.bzztFlag = true;
this.htms = res.data.rows.htms;
} else {
this.czmsdm1 = false;
this.bzztFlag = false
this.bzztFlag = false;
}
this.selectIndex1 = parseInt(res.data.rows.asjflzt);
if (this.ajlbdmStr == "" ||
this.ajlbdmStr == null ||
this.ajlbdmStr == undefined) {
if (
this.ajlbdmStr == "" ||
this.ajlbdmStr == null ||
this.ajlbdmStr == undefined
) {
this.bzxqtag1 = false;
} else {
this.bzxqtag1 = true;
}
if (this.ajxzlbStr == "" ||
this.ajxzlbStr == null ||
this.ajxzlbStr == undefined) {
if (
this.ajxzlbStr == "" ||
this.ajxzlbStr == null ||
this.ajxzlbStr == undefined
) {
this.bzxqtag2 = false;
} else {
this.bzxqtag2 = true;
}
if (this.ajxlbStr == "" ||
this.ajxlbStr == null ||
this.ajxlbStr == undefined) {
if (
this.ajxlbStr == "" ||
this.ajxlbStr == null ||
this.ajxlbStr == undefined
) {
this.bzxqtag3 = false;
} else {
this.bzxqtag3 = true;
......@@ -1297,32 +1321,32 @@ export default {
this.$refs.tree1.setCurrentKey(res.data.rows.ajzlb);
});*/
}),
getXckyDetail({
asjbh: this.asjbh,
}).then((res) => {
this.xcbh = res.data.rows.xcbh;
this.xcbhUrl = `${res.data.rows.xckyurl}${res.data.rows.xcbh}`;
this.kydd = res.data.rows.kydd;
this.kysjks = res.data.rows.kysjks;
this.kysjjs = res.data.rows.kysjjs;
this.kyjcry = res.data.rows.kyjcry;
this.jd = res.data.rows.jd;
this.wd = res.data.rows.wd;
this.kyjcqknr = res.data.rows.kyjcqknr;
}),
getZbfzxyrxxList({
asjbh: this.asjbh,
}).then((res) => {
this.xyrList1 = res.data.rows;
}),
getGjcList({
asjbh: this.asjbh,
}).then((res) => {
let newData = res.data.rows.map((item) => {
return item.gjc;
});
this.word = newData.filter((item) => item != "");
getXckyDetail({
asjbh: this.asjbh,
}).then((res) => {
this.xcbh = res.data.rows.xcbh;
this.xcbhUrl = `${res.data.rows.xckyurl}${res.data.rows.xcbh}`;
this.kydd = res.data.rows.kydd;
this.kysjks = res.data.rows.kysjks;
this.kysjjs = res.data.rows.kysjjs;
this.kyjcry = res.data.rows.kyjcry;
this.jd = res.data.rows.jd;
this.wd = res.data.rows.wd;
this.kyjcqknr = res.data.rows.kyjcqknr;
}),
getZbfzxyrxxList({
asjbh: this.asjbh,
}).then((res) => {
this.xyrList1 = res.data.rows;
}),
getGjcList({
asjbh: this.asjbh,
}).then((res) => {
let newData = res.data.rows.map((item) => {
return item.gjc;
});
this.word = newData.filter((item) => item != "");
});
getFwbzhList({
asjbh: this.asjbh,
......@@ -1389,13 +1413,29 @@ export default {
}
},
getQuery() {
queryCodeByType({
type: "CODE_AJLB",
startId: "",
}).then((res) => {
this.zaData = this.sxdata1 = res.rows.filter((val) => {
return val.parentId != "";
});
// queryCodeByType({
// type: "CODE_AJLB",
// startId: "",
// }).then((res) => {
// this.zaData = this.sxdata1 = res.rows.filter((val) => {
// return val.parentId != "";
// });
// });
axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
if (response.success === true) {
this.laData = response.data.rows.filter((val) => {
return val.parentId != "";
});
}
});
axios.get(`JsonData/CODE_AJXLB.json`).then((response) => {
if (response.success === true) {
this.xaData = response.data.rows.filter((val) => {
if (val.id.indexOf(this.ajzlb, 0) == 0) {
return val;
}
});;
}
});
},
......@@ -1487,46 +1527,79 @@ export default {
this.parentLb.id = "";
this.parentLb.childId = "";
this.parentLb.parentId = res.id;
queryCodeByType({type: 'CODE_AJLB', id: res.id}).then((res) => {
if (res.rows != null && res.rows.length > 0) {
this.zaData = res.rows;
// queryCodeByType({type: 'CODE_AJLB', id: res.id}).then((res) => {
// if (res.rows != null && res.rows.length > 0) {
// this.zaData = res.rows;
// }
// }).catch((err) => {
// console.log(err);
// this.$message.error("数据加载失败");
// });
axios.get(`JsonData/CODE_AJLB.json`).then((response) => {
if (response.success === true) {
this.zaData = response.data.rows;
}
}).catch((err) => {
console.log(err);
this.$message.error("数据加载失败");
});
let ajxzId = res.id + '0000';
queryCodeByType({type: 'CODE_AJXZ', id: ajxzId}).then((res) => {
if (res.rows != null && res.rows.length > 0) {
this.laData = res.rows;
let ajxzId = res.id + "0000";
// queryCodeByType({type: 'CODE_AJXZ', id: ajxzId}).then((res) => {
// if (res.rows != null && res.rows.length > 0) {
// this.laData = res.rows;
// }
// }).catch((err) => {
// console.log(err);
// this.$message.error("数据加载失败");
// });
axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
if (response.success === true) {
this.laData = response.data.rows;
}
}).catch((err) => {
console.log(err);
this.$message.error("数据加载失败");
});
},
xaHandleNodeClick(data) {
this.parentLb.childId = data.id;
axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
if (response.success === true) {
this.laData = response.data.rows.filter((val) => {
return val.id == data.parentId;
});
}
});
setTimeout(() => {
this.$refs.tree3.setCurrentKey(data.parentId);
}, 50);
},
lzHandleNodeClick(res) {
this.xaData = [];
this.parentLb.childId = "";
this.parentLb.id = res.id;
queryCodeByType({type: 'CODE_AJXZ', id: res.id}).then((res) => {
if (res.rows != null && res.rows.length > 0) {
this.laData = res.rows;
}
}).catch((err) => {
console.log(err);
this.$message.error("数据加载失败");
});
queryCodeByType({type: 'CODE_AJXLB', id: res.id}).then((res) => {
if (res.rows != null && res.rows.length > 0) {
this.xaData = res.rows;
// queryCodeByType({type: 'CODE_AJXZ', id: res.id}).then((res) => {
// if (res.rows != null && res.rows.length > 0) {
// this.laData = res.rows;
// }
// }).catch((err) => {
// console.log(err);
// this.$message.error("数据加载失败");
// });
// axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
// if (response.success === true) {
// this.laData = response.data.rows;
// }
// });
// queryCodeByType({type: 'CODE_AJXLB', id: res.id}).then((res) => {
// if (res.rows != null && res.rows.length > 0) {
// this.xaData = res.rows;
// }
// }).catch((err) => {
// console.log(err);
// this.$message.error("数据加载失败");
// });
axios.get(`JsonData/CODE_AJXLB.json`).then((response) => {
if (response.success === true) {
this.xaData = response.data.rows.filter((val) => {
return val.parentId == res.id;
});
}
}).catch((err) => {
console.log(err);
this.$message.error("数据加载失败");
});
},
......@@ -1550,36 +1623,36 @@ export default {
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const loading = this.$loading({
lock: true,
text: "正在删除...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
deleteBsh({
rcdid: val,
.then(() => {
const loading = this.$loading({
lock: true,
text: "正在删除...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
deleteBsh({
rcdid: val,
}).then((res) => {
getFwbzhList({
asjbh: this.asjbh,
}).then((res) => {
getFwbzhList({
asjbh: this.asjbh,
}).then((res) => {
this.fwbzhList = res.data.rows;
this.shrList = res.data.rows.filter((item) => item.rylx == "01");
this.xyrList = res.data.rows.filter((item) => item.rylx == "02");
loading.close();
this.$message({
type: "success",
message: "删除成功!",
});
this.fwbzhList = res.data.rows;
this.shrList = res.data.rows.filter((item) => item.rylx == "01");
this.xyrList = res.data.rows.filter((item) => item.rylx == "02");
loading.close();
this.$message({
type: "success",
message: "删除成功!",
});
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
filterNode(value, data) {
if (!value) return true;
......
......@@ -70,7 +70,7 @@ export default {
{
name: "立案单位",
id: "Ladw_gajgjgdms",
type: "CodeTreeDialog",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
......
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