Commit d81ac875 by xue_wengang

案件标注、有组织犯罪团伙、附件回显

parent 5e7e4df7
...@@ -1276,7 +1276,7 @@ export default { ...@@ -1276,7 +1276,7 @@ export default {
} }
if (isLt1M) { if (isLt1M) {
this.fileLists[item.id].push(file); this.fileLists[item.id].push(file);
this.$refs.formLabelAlign.clearValidate(); // this.$refs.formLabelAlign.clearValidate();
} else { } else {
this.$confirm("上传文件不能超过100M", "提示", { this.$confirm("上传文件不能超过100M", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
......
...@@ -762,7 +762,7 @@ export default { ...@@ -762,7 +762,7 @@ export default {
ajFocus(item) { ajFocus(item) {
this.$emit("ajFocus", item); this.$emit("ajFocus", item);
}, },
initFields() { initFields() {
var self = this; var self = this;
var ifInitRules = false; var ifInitRules = false;
ifInitRules = JSON.stringify(self.rules) == "{}"; ifInitRules = JSON.stringify(self.rules) == "{}";
...@@ -1179,13 +1179,13 @@ export default { ...@@ -1179,13 +1179,13 @@ export default {
} }
}); });
}); });
// for (var fileItem in self.fileLists) { for (var fileItem in self.fileLists) {
// for (var i = 0; i < self.fileLists[fileItem].length; i++) { for (var i = 0; i < self.fileLists[fileItem].length; i++) {
// if (self.fileLists[fileItem][i].raw) { if (self.fileLists[fileItem][i].raw) {
// params.append(fileItem, self.fileLists[fileItem][i].raw); params.append(fileItem, self.fileLists[fileItem][i].raw);
// } }
// } }
// } }
this.$emit("submit", params); this.$emit("submit", params);
} else { } else {
...@@ -1398,7 +1398,41 @@ export default { ...@@ -1398,7 +1398,41 @@ export default {
}); });
}); });
}, },
watch: {}, watch: {
"formLabelAlign.editing": {
handler(newName, oldName) {
var self = this;
if (this.formLabelAlign.hasOwnProperty("editing")) {
this.propFormField.forEach((i, iIndex) => {
if (i.data && i.data.length > 0) {
i.data.forEach((j, jIndex) => {
if (j.childrenAsAdd) {
j.childrenAsAdd.forEach((m, mIndex) => {
if (m.type == "file") {
if (this.formLabelAlign[m.id]) {
self.$set(
self.fileLists[j.id][jIndex],
m.id,
self.formLabelAlign[j.id][jIndex][m.id]
);
} else {
this.$set(this.formLabelAlign, m.id, []);
}
}
});
} else {
if (j.type == "file") {
this.fileLists[j.id] = this.formLabelAlign[j.id];
}
}
});
}
});
}
},
deep: true,
},
},
computed: {}, computed: {},
}; };
</script> </script>
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
@click="$emit('yjbtn')" @click="$emit('yjbtn')"
style="background: #007aff; color: #ffffff" style="background: #007aff; color: #ffffff"
class="zdybtn" class="zdybtn"
v-if="pageBs == 'queryCheckBj'" v-if="pageBs == 'zdryGl'"
> >
批量预警 批量预警
</div> </div>
...@@ -309,7 +309,8 @@ ...@@ -309,7 +309,8 @@
pageBs != 'sqqxgl' && pageBs != 'sqqxgl' &&
pageBs != 'wfqdzczl' && pageBs != 'wfqdzczl' &&
pageBs != 'jszls' && pageBs != 'jszls' &&
pageBs != 'wfzdzczl' pageBs != 'wfzdzczl' &&
pageBs != 'queryCheckBj'
" "
> >
<i class="el-icon-plus"></i> 新增 <i class="el-icon-plus"></i> 新增
...@@ -491,7 +492,7 @@ ...@@ -491,7 +492,7 @@
>排除</span >排除</span
> >
<span <span
@click="bjBack(scope.row.asjbh, '1', '2')" @click="bjBack(scope.row.asjbh, '1')"
class="edit" class="edit"
style="margin-left: 16px" style="margin-left: 16px"
v-if="pageBs == 'queryCheckBj' && cxFormData.asjbzzt == '2'" v-if="pageBs == 'queryCheckBj' && cxFormData.asjbzzt == '2'"
...@@ -1972,7 +1973,9 @@ export default { ...@@ -1972,7 +1973,9 @@ export default {
</script> </script>
<style> <style>
@import url("../assets/iconfont/iconfont.css"); @import url("../assets/iconfont/iconfont.css");
.rightContent .el-textarea__inner, #formCommonPage .el-textarea__inner{
height: 100px;
}
.flTtitle .el-radio-button:first-child .el-radio-button__inner { .flTtitle .el-radio-button:first-child .el-radio-button__inner {
width: 46px; width: 46px;
font-size: 14px; font-size: 14px;
......
<template> <template>
<div> <div id="ajbzDetail">
<div class="top_title"> <div class="top_title">
<img src="../../assets/img/login/jinhui.png" alt="" /> <img src="../../assets/img/login/jinhui.png" alt="" />
<div class="name">案件详情</div> <div class="name">案件详情</div>
...@@ -303,7 +303,11 @@ ...@@ -303,7 +303,11 @@
:class="topSamllCard" :class="topSamllCard"
v-show="sswpqh" v-show="sswpqh"
> >
<table v-for="(data, index) in sswpList" :key="index" style="border-bottom:1px solid #ddd;"> <table
v-for="(data, index) in sswpList"
:key="index"
style="border-bottom: 1px solid #ddd"
>
<tr> <tr>
<td width="100">物品名称:</td> <td width="100">物品名称:</td>
<td width="200">{{ data.wpmc }}</td> <td width="200">{{ data.wpmc }}</td>
...@@ -331,7 +335,11 @@ ...@@ -331,7 +335,11 @@
:class="topSamllCard" :class="topSamllCard"
v-show="zagjqh" v-show="zagjqh"
> >
<table v-for="(data, index) in zagjList" :key="index" style="border-bottom:1px solid #ddd;"> <table
v-for="(data, index) in zagjList"
:key="index"
style="border-bottom: 1px solid #ddd"
>
<tr> <tr>
<td width="80">物品名称:</td> <td width="80">物品名称:</td>
<td width="200">{{ data.wpmc }}</td> <td width="200">{{ data.wpmc }}</td>
...@@ -677,7 +685,7 @@ ...@@ -677,7 +685,7 @@
</div> </div>
</div> </div>
<div class="wcbzButton"> <div class="wcbzButton" v-if="!isDetail">
<el-button type="primary" @click="submitBz" v-if="ischeck" <el-button type="primary" @click="submitBz" v-if="ischeck"
>完成标注</el-button >完成标注</el-button
> >
...@@ -694,17 +702,23 @@ ...@@ -694,17 +702,23 @@
> >
<el-button <el-button
type="primary" type="primary"
@click="bjBack('1', '2')" @click="bjBack('1')"
v-if="!ischeck && bzztMs == '待标注'" v-if="!ischeck && bzztMs == '待标注'"
>解决</el-button >解决</el-button
> >
<el-button type="warning" @click="bzDetail" <el-button type="warning" @click="bzDetail"
>查看标注详情</el-button >查看标注详情</el-button
> >
<el-button type="primary" @click="dbzDetail" <el-button type="primary" @click="dbzDetail" v-if="ischeck"
>标为待标注</el-button >标为待标注</el-button
> >
</div> </div>
<div class="wcbzButton" v-if="isDetail">
<el-button type="warning" @click="bzDetail"
>查看标注详情</el-button
>
</div>
</el-card> </el-card>
<el-card v-else class="box-card"> <el-card v-else class="box-card">
<div class="incidentTitle incidentTitle1"> <div class="incidentTitle incidentTitle1">
...@@ -905,7 +919,7 @@ ...@@ -905,7 +919,7 @@
</div> </div>
<el-dialog title="描述" :visible.sync="dialogVisibleCheck" width="30%"> <el-dialog title="描述" :visible.sync="dialogVisibleCheck" width="30%">
<el-input <el-input
style="margin: 10px 0" style="margin:10px 1%;width:98%"
type="textarea" type="textarea"
:rows="2" :rows="2"
placeholder="请输入内容" placeholder="请输入内容"
...@@ -921,7 +935,7 @@ ...@@ -921,7 +935,7 @@
</el-dialog> </el-dialog>
<el-dialog title="待标注描述" :visible.sync="bzmsVisiable" width="30%"> <el-dialog title="待标注描述" :visible.sync="bzmsVisiable" width="30%">
<el-input <el-input
style="margin: 10px 0" style="margin:10px 1%;width:98%"
type="textarea" type="textarea"
:rows="2" :rows="2"
placeholder="例:缺少具体标签,是否可以添加 标签" placeholder="例:缺少具体标签,是否可以添加 标签"
...@@ -1269,12 +1283,21 @@ export default { ...@@ -1269,12 +1283,21 @@ export default {
jsonZagjStr: "", jsonZagjStr: "",
htms: "", htms: "",
jjms: "", jjms: "",
isDetail:false
}; };
}, },
created() { created() {
this.query("yes"); this.query("yes");
this.getBz("yes"); this.getBz("yes");
this.ischeck = this.$route.query.flag ? false : true; this.ischeck = this.$route.query.flag ? false : true;
if(this.$route.query.flags == 'details'){
this.isDetail = true
this.bzFlag = true;
}else{
this.isDetail = false
this.bzFlag = false;
}
this.getJson(); this.getJson();
}, },
methods: { methods: {
...@@ -1313,7 +1336,6 @@ export default { ...@@ -1313,7 +1336,6 @@ export default {
self.dialogVisibleCheck = false; self.dialogVisibleCheck = false;
window.opener.location.reload(); window.opener.location.reload();
window.close(); window.close();
self.$router.pushToTab({ path: "/queryCheckBj" });
}); });
}); });
} else { } else {
...@@ -1328,15 +1350,15 @@ export default { ...@@ -1328,15 +1350,15 @@ export default {
var self = this; var self = this;
if (self.textarea) { if (self.textarea) {
updateBzStatus({ updateBzStatus({
htms: self.textarea, htms: self.objCheck.czmsdm == 3 ? self.textarea : '',
czmsdm: self.objCheck.czmsdm, czmsdm: self.objCheck.czmsdm,
jjms:self.objCheck.czmsdm == 1 ? self.textarea : '',
asjbh: self.asjbh, asjbh: self.asjbh,
bzzt: self.objCheck.bzzt, bzzt: self.objCheck.bzzt,
}).then((res) => { }).then((res) => {
self.dialogVisible = false; self.dialogVisible = false;
window.opener.location.reload(); window.opener.location.reload();
window.close(); window.close();
self.$router.pushToTab({ path: "/queryCheckBj" });
}); });
} else { } else {
this.$confirm("请输入描述", "提示", { this.$confirm("请输入描述", "提示", {
...@@ -2164,6 +2186,9 @@ export default { ...@@ -2164,6 +2186,9 @@ export default {
background-color: #3670ff !important; background-color: #3670ff !important;
color: #fff; color: #fff;
} }
#ajbzDetail .el-textarea__inner{
height: 100px;
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.top_title { .top_title {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
></right-content> ></right-content>
<el-dialog title="描述" :visible.sync="dialogVisible" width="30%"> <el-dialog title="描述" :visible.sync="dialogVisible" width="30%">
<el-input <el-input
style="margin: 10px 0" style="margin: 10px 0;height:100px"
type="textarea" type="textarea"
:rows="2" :rows="2"
placeholder="请输入内容" placeholder="请输入内容"
...@@ -247,8 +247,9 @@ export default { ...@@ -247,8 +247,9 @@ export default {
var self = this; var self = this;
if (self.textarea) { if (self.textarea) {
updateBzStatus({ updateBzStatus({
htms: self.textarea, htms: self.obj.czmsdm == 3 ? self.textarea : '',
czmsdm: self.obj.type, czmsdm: self.obj.type,
jjms:self.obj.czmsdm == 1 ? self.textarea : '',
asjbh: self.obj.ajbh, asjbh: self.obj.ajbh,
bzzt: self.obj.bzzt, bzzt: self.obj.bzzt,
}).then((res) => { }).then((res) => {
......
...@@ -166,11 +166,11 @@ export default { ...@@ -166,11 +166,11 @@ export default {
type: "success", type: "success",
callback: () => { callback: () => {
this.$router.push("/queryThxs"); this.$router.push("/queryThxs");
loading.close(); // loading.close();
}, },
}); });
} else { } else {
loading.close(); // loading.close();
} }
}); });
}, },
......
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
}, },
{ {
name: "附件:", name: "附件:",
id: "file", id: "fileList",
type: "file", type: "file",
value: "", value: "",
requestUrl: "/xsfj/addXsfj", requestUrl: "/xsfj/addXsfj",
...@@ -344,7 +344,7 @@ export default { ...@@ -344,7 +344,7 @@ export default {
this.$router.pushToTab({ this.$router.pushToTab({
path: path, path: path,
query: { query: {
xsbh: this.xxzjbh, xsbh: this.xsbh,
}, },
}); });
}, },
...@@ -467,9 +467,9 @@ export default { ...@@ -467,9 +467,9 @@ export default {
background: "rgba(255, 255, 255, 0.7)", background: "rgba(255, 255, 255, 0.7)",
}); });
getThxsByZjbh({ getThxsByZjbh({
xsbh: this.xxzjbh, xsbh: this.xsbh,
}).then((res) => { }).then((res) => {
var result = res.data.xs; var result = res.data.xs.xs;
self.propFormField.forEach((i, iIndex) => { self.propFormField.forEach((i, iIndex) => {
if (i.data && i.data.length > 0) { if (i.data && i.data.length > 0) {
i.data.forEach((j, jIndex) => { i.data.forEach((j, jIndex) => {
...@@ -488,16 +488,31 @@ export default { ...@@ -488,16 +488,31 @@ export default {
} }
}); });
} else { } else {
self.$set( if (j.type == "file") {
self.formLabelAlign, self.$set(self.formLabelAlign, j.id, []);
j.id, if (res.data.xs.fjList) {
i.objStr ? result[i.objStr][j.id] : result[j.id] res.data.xs.fjList.forEach((fileItem, fileIndex) => {
); const fileObj = {
name: fileItem.xsfjDzwjbt,
url: fileItem.xsfjDzwjwz,
xxzjbh: fileItem.xxzjbh,
};
self.$set(self.formLabelAlign[j.id], fileIndex, fileObj);
});
}
} else {
self.$set(
self.formLabelAlign,
j.id,
i.objStr ? result[i.objStr][j.id] : result[j.id]
);
}
} }
}); });
} }
}); });
self.$forceUpdate(); self.$forceUpdate();
self.$set(self.formLabelAlign, 'editing', true)
setTimeout(() => { setTimeout(() => {
loading.close(); loading.close();
}, 500); }, 500);
...@@ -507,11 +522,13 @@ export default { ...@@ -507,11 +522,13 @@ export default {
created() { created() {
if (this.$route.query.xxzjbh) { if (this.$route.query.xxzjbh) {
this.title = "修改团伙线索"; this.title = "修改团伙线索";
this.xxzjbh = this.$route.query.xxzjbh; this.xsbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
} else { } else {
this.getBh(); this.getBh();
} }
this.getXyrList()
this.getAjList()
}, },
}; };
</script> </script>
......
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
this.$router.pushToTab("/addThxs"); this.$router.pushToTab("/addThxs");
}, },
edit(scope) { edit(scope) {
this.$router.push({ this.$router.pushToTab({
path: "/addThxs", path: "/addThxs",
query: { xxzjbh: scope.row.xsbh }, query: { xxzjbh: scope.row.xsbh },
}); });
......
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