Commit 28cbd279 by liyuhang19990520

更改

parent 7b90aaee
{
"code":200,
"data":{
"rows":[
{
"ids":"1296720",
"label":"标识号串并",
"codeType":"CODE_CBYP_CBLX",
"text":"标识号串并",
"pId":"",
"id":"01",
"isParent":false,
"children":[]
},
{
"ids":"1296721",
"label":"模板串并",
"codeType":"CODE_CBYP_CBLX",
"text":"模板串并",
"pId":"",
"id":"02",
"isParent":false,
"children":[]
},
{
"ids":"1296722",
"label":"现勘串并",
"codeType":"CODE_CBYP_CBLX",
"text":"现勘串并",
"pId":"",
"id":"03",
"isParent":true,
"children":[
{
"ids":"1296723",
"label":"指纹串并",
"codeType":"CODE_CBYP_CBLX",
"text":"指纹串并",
"pId":"03",
"id":"0301",
"isParent":false,
"children":[]
},
{
"ids":"1296724",
"label":"DNA串并",
"codeType":"CODE_CBYP_CBLX",
"text":"DNA串并",
"pId":"03",
"id":"0302",
"isParent":false,
"children":[]
},
{
"ids":"1296725",
"label":"足迹串并",
"codeType":"CODE_CBYP_CBLX",
"text":"足迹串并",
"pId":"03",
"id":"0303",
"isParent":false,
"children":[]
},
{
"ids":"1296726",
"label":"分析串并",
"codeType":"CODE_CBYP_CBLX",
"text":"分析串并",
"pId":"03",
"id":"0304",
"isParent":false,
"children":[]
},
{
"ids":"1296727",
"label":"综合串并",
"codeType":"CODE_CBYP_CBLX",
"text":"综合串并",
"pId":"03",
"id":"0305",
"isParent":false,
"children":[]
},
{
"ids":"1296728",
"label":"视频串并",
"codeType":"CODE_CBYP_CBLX",
"text":"视频串并",
"pId":"03",
"id":"0306",
"isParent":false,
"children":[]
}
]
},
{
"ids":"1296729",
"label":"人工串并",
"codeType":"CODE_CBYP_CBLX",
"text":"人工串并",
"pId":"",
"id":"09",
"isParent":false,
"children":[]
}
]
},
"success":true,
"message":"成功"
}
\ No newline at end of file
{
"code":200,
"data":{
"rows":[
{
"ids":"1298940",
"label":"本辖区",
"codeType":"CODE_CBYP_KD",
"text":"本辖区",
"pId":"",
"id":"01",
"isParent":false,
"children":[]
},
{
"ids":"1298941",
"label":"本市",
"codeType":"CODE_CBYP_KD",
"text":"本市",
"pId":"",
"id":"02",
"isParent":false,
"children":[]
},
{
"ids":"1298942",
"label":"本省",
"codeType":"CODE_CBYP_KD",
"text":"本省",
"pId":"",
"id":"03",
"isParent":false,
"children":[]
},
{
"ids":"1298943",
"label":"跨省",
"codeType":"CODE_CBYP_KD",
"text":"跨省",
"pId":"",
"id":"04",
"isParent":false,
"children":[]
}
]
},
"success":true,
"message":"成功"
}
\ No newline at end of file
{
"code":200,
"data":{
"rows":[
{
"ids":"31531",
"label":"投案自首",
"codeType":"CODE_ZHFS",
"text":"投案自首",
"pId":null,
"id":"01",
"isParent":false,
"children":[]
},
{
"ids":"31532",
"label":"群众扭送",
"codeType":"CODE_ZHFS",
"text":"群众扭送",
"pId":null,
"id":"02",
"isParent":false,
"children":[]
},
{
"ids":"31533",
"label":"抓获现行",
"codeType":"CODE_ZHFS",
"text":"抓获现行",
"pId":null,
"id":"03",
"isParent":false,
"children":[]
},
{
"ids":"31534",
"label":"巡逻盘查",
"codeType":"CODE_ZHFS",
"text":"巡逻盘查",
"pId":null,
"id":"04",
"isParent":false,
"children":[]
},
{
"ids":"31535",
"label":"设卡盘查",
"codeType":"CODE_ZHFS",
"text":"设卡盘查",
"pId":null,
"id":"05",
"isParent":false,
"children":[]
},
{
"ids":"31536",
"label":"摸底排查",
"codeType":"CODE_ZHFS",
"text":"摸底排查",
"pId":null,
"id":"06",
"isParent":false,
"children":[]
},
{
"ids":"31537",
"label":"守候",
"codeType":"CODE_ZHFS",
"text":"守候",
"pId":null,
"id":"07",
"isParent":false,
"children":[]
},
{
"ids":"31538",
"label":"出入境检查",
"codeType":"CODE_ZHFS",
"text":"出入境检查",
"pId":null,
"id":"08",
"isParent":false,
"children":[]
},
{
"ids":"31539",
"label":"追击堵截",
"codeType":"CODE_ZHFS",
"text":"追击堵截",
"pId":null,
"id":"09",
"isParent":false,
"children":[]
},
{
"ids":"31540",
"label":"警犬追踪",
"codeType":"CODE_ZHFS",
"text":"警犬追踪",
"pId":null,
"id":"10",
"isParent":false,
"children":[]
},
{
"ids":"31541",
"label":"定点抓捕",
"codeType":"CODE_ZHFS",
"text":"定点抓捕",
"pId":null,
"id":"11",
"isParent":false,
"children":[]
},
{
"ids":"31542",
"label":"境外抓捕",
"codeType":"CODE_ZHFS",
"text":"境外抓捕",
"pId":null,
"id":"12",
"isParent":false,
"children":[]
},
{
"ids":"31543",
"label":"其它",
"codeType":"CODE_ZHFS",
"text":"其它",
"pId":null,
"id":"99",
"isParent":false,
"children":[]
}
]
},
"success":true,
"message":"成功"
}
\ No newline at end of file
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-08-25 19:21:14 * @Date: 2021-08-25 19:21:14
* @LastEditTime: 2021-10-19 11:55:21 * @LastEditTime: 2021-10-20 15:20:59
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\api\cbyp.js * @FilePath: \founder_vue\src\api\cbyp.js
...@@ -63,6 +63,12 @@ export const insertXzRgcbxx = params => ...@@ -63,6 +63,12 @@ export const insertXzRgcbxx = params =>
export const insertBshWhiteList = params => export const insertBshWhiteList = params =>
post(`${base.alyIP}/bshgl/insertBshWhiteList`, params); post(`${base.alyIP}/bshgl/insertBshWhiteList`, params);
//删除我收藏的案件 //删除我收藏的案件
export const deleteWscdaj = params => export const deleteWscdaj = params =>
post(`${base.alyIP}/wscdaj/deleteWscdaj`, params); post(`${base.alyIP}/wscdaj/deleteWscdaj`, params);
export const addBatchWscdaj = params =>
post(`${base.alyIP}/wscdaj/addBatchWscdaj`, params);
export const wscdajQry = params =>
post(`${base.alyIP}/wscdaj/wscdajQry`, params);
...@@ -237,6 +237,9 @@ ...@@ -237,6 +237,9 @@
</div> </div>
<span class="export-btn"> <span class="export-btn">
<el-button @click="newXsz()">新增线索组</el-button> <el-button @click="newXsz()">新增线索组</el-button>
<el-button @click="wdsc()" type="primary" size="mini"
>添加到我的收藏</el-button
>
</span> </span>
</div> </div>
<!-- <span class="export-btn"> <!-- <span class="export-btn">
...@@ -380,6 +383,45 @@ ...@@ -380,6 +383,45 @@
v-if="pageShow" v-if="pageShow"
> >
</el-pagination> </el-pagination>
<el-dialog
title="收藏描述"
:visible.sync="dialogFormVisible"
width="30%"
>
<el-form :model="form" ref="scForm">
<el-form-item
label="收藏描述"
label-width="80px"
style="margin: 10px 0"
prop="scms"
:rules="[
{ required: true, message: '请输入收藏描述', trigger: 'blur' },
]"
>
<el-input
type="textarea"
style="height: auto"
:autosize="{ minRows: 2 }"
placeholder="请输入内容"
v-model="form.scms"
>
</el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button
@click="
() => {
$set(form, 'scms', '');
dialogFormVisible = false;
}
"
>取 消</el-button
>
<el-button type="primary" @click="saveBtn">确 定</el-button>
</div>
</el-dialog>
</div> </div>
</div> </div>
</div> </div>
...@@ -392,7 +434,7 @@ import LazySelectTreeDialog from "@c/lazy_treeCode_components.vue"; ...@@ -392,7 +434,7 @@ import LazySelectTreeDialog from "@c/lazy_treeCode_components.vue";
import Http from "@/utils/http.js"; import Http from "@/utils/http.js";
import axios from "axios"; import axios from "axios";
import { esAsjQuery } from "@/api/queryAj.js"; import { esAsjQuery } from "@/api/queryAj.js";
import { insertXzRgcbxx } from "@/api/cbyp.js"; import { insertXzRgcbxx, addBatchWscdaj } from "@/api/cbyp.js";
import { get, post, postform } from "@/utils/http.js"; import { get, post, postform } from "@/utils/http.js";
export default { export default {
...@@ -448,6 +490,10 @@ export default { ...@@ -448,6 +490,10 @@ export default {
excelHeader: "案件标注", excelHeader: "案件标注",
cz: this.pageFlag, cz: this.pageFlag,
multipleTable: [], // 复选框中每条数据 multipleTable: [], // 复选框中每条数据
form: {
scms: "",
},
dialogFormVisible: false,
}; };
}, },
methods: { methods: {
...@@ -456,6 +502,36 @@ export default { ...@@ -456,6 +502,36 @@ export default {
debugger; debugger;
this.multipleTable = val; this.multipleTable = val;
}, },
saveBtn() {
this.$refs.scForm.validate((boo) => {
if (boo) {
let asjbhArr = this.multipleTable.map((i) => i.asjbh);
addBatchWscdaj({
asjbhs: asjbhArr.join(","),
scms: this.form.scms,
}).then((res) => {
if (res.code == 200) {
this.$message.success("添加收藏成功");
this.dialogFormVisible = false;
this.$set(this.form, "scms", "");
} else {
this.$message.error(res.message);
}
});
}
});
},
wdsc() {
if (this.multipleTable.length <= 0) {
return this.$alert("请选择案件后操作", "信息", {
confirmButtonText: "确定",
type: "warning",
});
} else {
this.dialogFormVisible = true;
}
},
// 新增线索组 // 新增线索组
newXsz() { newXsz() {
debugger; debugger;
...@@ -605,6 +681,7 @@ export default { ...@@ -605,6 +681,7 @@ export default {
) { ) {
self.formData[i] = ""; self.formData[i] = "";
} }
if (i == "zars") delete self.formData[i];
} }
if (self.formData["rows"]) self.formData["rows"] = 10; if (self.formData["rows"]) self.formData["rows"] = 10;
if (self.formData["limit"]) self.formData["limit"] = 10; if (self.formData["limit"]) self.formData["limit"] = 10;
......
...@@ -585,6 +585,10 @@ export default { ...@@ -585,6 +585,10 @@ export default {
cbxszbhs: val.xszajbh, cbxszbhs: val.xszajbh,
}).then((res) => { }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$message({
type: "success",
message: "删除成功!",
});
this.doQuery("yes"); this.doQuery("yes");
} else { } else {
this.$message({ this.$message({
...@@ -592,11 +596,7 @@ export default { ...@@ -592,11 +596,7 @@ export default {
message: "删除失败", message: "删除失败",
}); });
} }
this.$options.methods.doQuery(); // this.$options.methods.doQuery();
});
this.$message({
type: "success",
message: "删除成功!",
}); });
}) })
.catch(() => { .catch(() => {
...@@ -606,7 +606,7 @@ export default { ...@@ -606,7 +606,7 @@ export default {
}); });
}); });
} else if (type == "add") { } else if (type == "add") {
debugger; console.log(val);
this.$router.pushToTab({ this.$router.pushToTab({
path: "djwzba", path: "djwzba",
query: { query: {
...@@ -705,7 +705,7 @@ export default { ...@@ -705,7 +705,7 @@ export default {
}); });
post(this.cxUrl, formDatas).then((res) => { post(this.cxUrl, formDatas).then((res) => {
if (res.code === 200) { if (res.code === 200) {
let result = res.data.rows || res.data.data let result = res.data.rows || res.data.data;
result.forEach((item) => { result.forEach((item) => {
item.xszmc = `${item.cbajAjmc}(组号:${item.xszajbh})`; item.xszmc = `${item.cbajAjmc}(组号:${item.xszajbh})`;
item.cbajAjmc = `${item.cbajAjmc}(组号:${item.xszajbh})`; item.cbajAjmc = `${item.cbajAjmc}(组号:${item.xszajbh})`;
...@@ -769,8 +769,8 @@ export default { ...@@ -769,8 +769,8 @@ export default {
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.page_size = val; this.page_size = val;
if(this.formData.rows) this.formData.rows = val; if (this.formData.rows) this.formData.rows = val;
if(this.formData.limit) this.formData.limit = val; if (this.formData.limit) this.formData.limit = val;
this.doQuery("yes"); this.doQuery("yes");
}, },
clearData() { clearData() {
...@@ -788,8 +788,8 @@ export default { ...@@ -788,8 +788,8 @@ export default {
self.formData[i] = ""; self.formData[i] = "";
} }
} }
if(self.formData["rows"]) self.formData["rows"] = 10; if (self.formData["rows"]) self.formData["rows"] = 10;
if(self.formData["limit"]) self.formData["limit"] = 10; if (self.formData["limit"]) self.formData["limit"] = 10;
self.formData["page"] = 1; self.formData["page"] = 1;
}, },
formatJson(filterVal, jsonData) { formatJson(filterVal, jsonData) {
......
...@@ -401,7 +401,7 @@ ...@@ -401,7 +401,7 @@
</el-form> </el-form>
<!--按钮--> <!--按钮-->
<div class="btm-btns" v-if="name !== 'toAddXlajRelated'"> <div class="btm-btns btnGrounp" v-if="name !== 'toAddXlajRelated'">
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
...@@ -426,44 +426,51 @@ ...@@ -426,44 +426,51 @@
<div class=""> <div class="">
<el-row style="width: 99%; margin: 0 auto"> <el-row style="width: 99%; margin: 0 auto">
<el-col :span="24"> <el-col :span="24">
<span class="flTtitle">案件信息</span> <div
<!--可配置化图标--> style="
<div class="total"> display: flex;
<span> {{ tableDataLength }} </span> align-items: center;
</div> justify-content: space-between;
<span class="export-btn"> "
<div class="handleBtns" v-for="item in tableBtns" :key="item"> >
<el-button <div>
plain <span class="flTtitle">信息列表</span>
size="small" <span class="flTotal">{{ tableDataLength }}条信息</span>
@click="export2Excel"
v-if="item == 'add'"
class="export add"
><i class="el-icon-plus" style="margin-right: 2px"></i>添加
</el-button>
<el-button
plain
size="small"
@click="export2Excel"
v-else-if="item == 'view'"
class="export view"
><i class="el-icon-view" style="margin-right: 2px"></i
>查看线索组
</el-button>
</div> </div>
<!-- <el-button--> <span class="export-btn">
<!-- plain--> <div class="handleBtns" v-for="item in tableBtns" :key="item">
<!-- size="small"--> <el-button
<!-- @click="export2Excel"--> plain
<!-- class="export"--> size="small"
<!-- v-if="name !== 'toAddXlajRelated'"--> @click="export2Excel"
<!-- ><i--> v-if="item == 'add'"
<!-- class="iconfont iconshangchuan"--> class="export add"
<!-- style="margin-right: 2px"--> ><i class="el-icon-plus" style="margin-right: 2px"></i>添加
<!-- ></i--> </el-button>
<!-- >导出--> <el-button
<!-- </el-button>--> plain
</span> size="small"
@click="export2Excel"
v-else-if="item == 'view'"
class="export view"
><i class="el-icon-view" style="margin-right: 2px"></i
>查看线索组
</el-button>
</div>
<!-- <el-button-->
<!-- plain-->
<!-- size="small"-->
<!-- @click="export2Excel"-->
<!-- class="export"-->
<!-- v-if="name !== 'toAddXlajRelated'"-->
<!-- ><i-->
<!-- class="iconfont iconshangchuan"-->
<!-- style="margin-right: 2px"-->
<!-- ></i-->
<!-- >导出-->
<!-- </el-button>-->
</span>
</div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -621,6 +628,7 @@ ...@@ -621,6 +628,7 @@
</template> </template>
<script> <script>
import Bus from '@/utils/Bus'
import SelectTree from "@c/tree_components.vue"; import SelectTree from "@c/tree_components.vue";
import SelectTreeDialog from "@c/treeCode_components.vue"; import SelectTreeDialog from "@c/treeCode_components.vue";
import LazySelectTreeDialog from "@c/lazy_treeCode_components.vue"; import LazySelectTreeDialog from "@c/lazy_treeCode_components.vue";
...@@ -687,8 +695,8 @@ export default { ...@@ -687,8 +695,8 @@ export default {
// 添加 // 添加
addAj(row) { addAj(row) {
console.log(row); console.log(row);
var self = this var self = this;
debugger // debugger;
this.$confirm("确认添加案件?", "提示", { this.$confirm("确认添加案件?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -698,6 +706,7 @@ export default { ...@@ -698,6 +706,7 @@ export default {
cbxgfwbzh: self.$route.query.cbxgfwbzh, cbxgfwbzh: self.$route.query.cbxgfwbzh,
xszajbh: self.$route.query.xszajbh, xszajbh: self.$route.query.xszajbh,
asjbh: row.asjbh, asjbh: row.asjbh,
addType: ''
}).then((res) => { }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
self.$message.success("添加成功!"); self.$message.success("添加成功!");
...@@ -714,7 +723,7 @@ export default { ...@@ -714,7 +723,7 @@ export default {
}, },
goDetail(scope) { goDetail(scope) {
this.$router.pushToTab({ this.$router.pushToTab({
path: "ajbzDetail", path: "/ajbzDetail",
query: { query: {
asjbh: scope.asjbh, asjbh: scope.asjbh,
}, },
...@@ -759,10 +768,12 @@ export default { ...@@ -759,10 +768,12 @@ export default {
this.cxUrl(JSON.stringify(json)).then((response) => { this.cxUrl(JSON.stringify(json)).then((response) => {
if (response.code === 200) { if (response.code === 200) {
require.ensure([], () => { require.ensure([], () => {
const { export_json_to_excel } = require("../../utils/Export2Excel"); const {
export_json_to_excel,
} = require("../../utils/Export2Excel");
const list = response.data.rows; const list = response.data.rows;
const data = self.formatJson(filterVal, list); const data = self.formatJson(filterVal, list);
debugger; // debugger;
export_json_to_excel(tHeader, data, self.excelHeader); export_json_to_excel(tHeader, data, self.excelHeader);
}); });
loading.close(); loading.close();
...@@ -896,7 +907,7 @@ export default { ...@@ -896,7 +907,7 @@ export default {
let self = this, let self = this,
json = {}; json = {};
for (let i in self.formData) { for (let i in self.formData) {
debugger // debugger;
if (i == "ajlbdm") { if (i == "ajlbdm") {
if (self.formData[i].length > 0) { if (self.formData[i].length > 0) {
var str = ""; var str = "";
......
...@@ -10,6 +10,14 @@ ...@@ -10,6 +10,14 @@
}" }"
> >
<div class="cxtjWrap"> <div class="cxtjWrap">
<el-row>
<el-col :span="24">
<span class="flTtitle" v-if="name !== 'toAddXlajRelated'"
>查询条件</span
>
<span class="flTtitle" v-else></span>
</el-col>
</el-row>
<el-form <el-form
label-position="right" label-position="right"
label-width="140px" label-width="140px"
...@@ -106,7 +114,7 @@ ...@@ -106,7 +114,7 @@
<!--文本域--> <!--文本域-->
<el-input <el-input
type="textarea" type="textarea"
autosize :autosize="{ minRows: 2 }"
resize="none" resize="none"
:placeholder="item.placeholder" :placeholder="item.placeholder"
v-model="formData[item.id]" v-model="formData[item.id]"
...@@ -401,7 +409,7 @@ ...@@ -401,7 +409,7 @@
</el-form> </el-form>
<!--按钮--> <!--按钮-->
<div class="btm-btns" v-if="name !== 'toAddXlajRelated'"> <div class="btm-btns btnGrounp" v-if="name !== 'toAddXlajRelated'">
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
...@@ -433,44 +441,51 @@ ...@@ -433,44 +441,51 @@
<div class=""> <div class="">
<el-row style="width: 99%; margin: 0 auto"> <el-row style="width: 99%; margin: 0 auto">
<el-col :span="24"> <el-col :span="24">
<span class="flTtitle">案件信息</span> <div
<!--可配置化图标--> style="
<div class="total"> display: flex;
<span> {{ tableDataLength }} </span> align-items: center;
</div> justify-content: space-between;
<span class="export-btn"> "
<div class="handleBtns" v-for="item in tableBtns" :key="item"> >
<el-button <div>
plain <span class="flTtitle">案件信息</span>
size="small" <span class="flTotal">{{ tableDataLength }}条信息</span>
@click="export2Excel" </div>
v-if="item == 'add'" <span class="export-btn">
class="export add" <div class="handleBtns" v-for="item in tableBtns" :key="item">
><i class="el-icon-plus" style="margin-right: 2px"></i>添加 <el-button
</el-button> plain
size="small"
@click="export2Excel"
v-if="item == 'add'"
class="export add"
><i class="el-icon-plus" style="margin-right: 2px"></i>添加
</el-button>
<el-button
plain
size="small"
@click="export2Excel"
v-else-if="item == 'view'"
class="export view"
><i class="el-icon-view" style="margin-right: 2px"></i
>查看线索组
</el-button>
</div>
<el-button <el-button
plain plain
size="small" size="small"
@click="export2Excel" @click="export2Excel"
v-else-if="item == 'view'" class="export"
class="export view" v-if="name !== 'toAddXlajRelated'"
><i class="el-icon-view" style="margin-right: 2px"></i ><i
>查看线索组 class="iconfont iconshangchuan"
style="margin-right: 2px"
></i
>导出
</el-button> </el-button>
</div> </span>
<el-button </div>
plain
size="small"
@click="export2Excel"
class="export"
v-if="name !== 'toAddXlajRelated'"
><i
class="iconfont iconshangchuan"
style="margin-right: 2px"
></i
>导出
</el-button>
</span>
</el-col> </el-col>
</el-row> </el-row>
...@@ -627,6 +642,7 @@ export default { ...@@ -627,6 +642,7 @@ export default {
LazySelectTreeDialog, LazySelectTreeDialog,
}, },
props: { props: {
skey: String,
pageBs: String, pageBs: String,
cxQueryField: { cxQueryField: {
type: Array, type: Array,
...@@ -936,14 +952,17 @@ export default { ...@@ -936,14 +952,17 @@ export default {
}, },
mounted() { mounted() {
let self = this; let self = this;
console.log(this.tableInfor, this.skey, 111111111111);
/*获取字典*/ /*获取字典*/
this.getTreeData(); this.getTreeData();
if (!this.tableInfor || this.tableInfor.length <= 0) { if (this.skey == "add") {
self.doQuery("yes"); self.doQuery("yes");
this.key = 1;
} else { } else {
this.tableData = this.tableInfor; this.tableData = this.tableInfor;
this.pageShow = false; this.pageShow = false;
this.tableDataLength = this.tableInfor.length; this.tableDataLength = this.tableInfor.length;
this.key = 2;
this.closeLoading(); this.closeLoading();
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.itsmDataTable.doLayout(); this.$refs.itsmDataTable.doLayout();
...@@ -982,6 +1001,7 @@ export default { ...@@ -982,6 +1001,7 @@ export default {
}, },
tableInfor: { tableInfor: {
handler: function (val) { handler: function (val) {
console.log(this.key)
let self = this; let self = this;
this.getTreeData(); this.getTreeData();
if (this.name == "toAddXlajAdd") { if (this.name == "toAddXlajAdd") {
...@@ -1138,6 +1158,9 @@ export default { ...@@ -1138,6 +1158,9 @@ export default {
border-bottom: 1px dashed $base-color; border-bottom: 1px dashed $base-color;
} }
} }
.el-textarea {
height: auto !important;
}
.pageBtns { .pageBtns {
> div { > div {
display: inline-block; display: inline-block;
......
...@@ -275,8 +275,9 @@ ...@@ -275,8 +275,9 @@
pageBs != 'queryXczj' && pageBs != 'queryXczj' &&
pageBs != 'llygl' && pageBs != 'llygl' &&
pageBs != 'zczltj' && pageBs != 'zczltj' &&
pageBs != 'queryZjcl'&& pageBs != 'queryZjcl' &&
pageBs != 'wscdaj' pageBs != 'wscdaj' &&
pageBs != 'wscdajtj'
" "
> >
<i class="el-icon-plus"></i> 新增 <i class="el-icon-plus"></i> 新增
...@@ -415,6 +416,21 @@ ...@@ -415,6 +416,21 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column <el-table-column
align="center"
label="操作"
v-if="pageBs == 'wscdajtj'"
:width="'200'"
>
<span
@click="$emit('sctjcb', scope)"
class="edit"
style="margin-right: 16px"
slot-scope="scope"
>添加</span
>
</el-table-column>
<el-table-column
type="selection" type="selection"
width="55" width="55"
v-if=" v-if="
...@@ -492,13 +508,22 @@ ...@@ -492,13 +508,22 @@
v-html="scope.row[columnTitle.prop]" v-html="scope.row[columnTitle.prop]"
></span> ></span>
</div> </div>
<div v-else-if="columnTitle.prop == 'zpbw' && columnTitle.type == 'select'"> <div
<span v-if="scope.row[columnTitle.prop] == '1'">二代证(人像)</span> v-else-if="
columnTitle.prop == 'zpbw' && columnTitle.type == 'select'
"
>
<span v-if="scope.row[columnTitle.prop] == '1'"
>二代证(人像)</span
>
<span v-if="scope.row[columnTitle.prop] == '2'">正面照片</span> <span v-if="scope.row[columnTitle.prop] == '2'">正面照片</span>
<span v-if="scope.row[columnTitle.prop] == '3'">左侧面照片</span> <span v-if="scope.row[columnTitle.prop] == '3'">左侧面照片</span>
<span v-if="scope.row[columnTitle.prop] == '4'">右侧面照片</span> <span v-if="scope.row[columnTitle.prop] == '4'">右侧面照片</span>
<span v-if="scope.row[columnTitle.prop] == '5'">二代证(国徽)</span> <span v-if="scope.row[columnTitle.prop] == '5'"
>二代证(国徽)</span
>
</div> </div>
<div v-else-if="columnTitle.prop == 'xzgzryzt'"></div> <div v-else-if="columnTitle.prop == 'xzgzryzt'"></div>
<div <div
v-else-if=" v-else-if="
...@@ -718,6 +743,9 @@ ...@@ -718,6 +743,9 @@
: "查询" : "查询"
}} }}
</div> </div>
<div v-else-if="columnTitle.prop == 'sfcb'">
{{ scope.row[columnTitle.prop] == "1" ? "是" : "否" }}
</div>
<div v-else v-html="scope.row[columnTitle.prop]"> <div v-else v-html="scope.row[columnTitle.prop]">
{{ columnTitle.prop }} {{ columnTitle.prop }}
</div> </div>
...@@ -746,7 +774,8 @@ ...@@ -746,7 +774,8 @@
pageBs == 'queryLklz' || pageBs == 'queryLklz' ||
pageBs == 'queryCklz' || pageBs == 'queryCklz' ||
pageBs == 'zjclrz' || pageBs == 'zjclrz' ||
pageBs == 'qjgnsyrz' pageBs == 'qjgnsyrz' ||
pageBs == 'wscdajtj'
) )
" "
> >
...@@ -763,7 +792,8 @@ ...@@ -763,7 +792,8 @@
pageBs == 'rwbdjs' || pageBs == 'rwbdjs' ||
pageBs == 'queryRlqbxsSH' || pageBs == 'queryRlqbxsSH' ||
pageBs == 'queryZjcl' || pageBs == 'queryZjcl' ||
pageBs == 'llygl' pageBs == 'llygl' ||
pageBs == 'wscdaj'
) )
" "
>修改</span >修改</span
...@@ -1543,7 +1573,7 @@ export default { ...@@ -1543,7 +1573,7 @@ export default {
i != "dspbz" i != "dspbz"
) { ) {
self.formData[i] = ""; self.formData[i] = "";
} }
} }
if (self.formData["rows"]) self.formData["rows"] = 10; if (self.formData["rows"]) self.formData["rows"] = 10;
if (self.formData["page"]) self.formData["page"] = 1; if (self.formData["page"]) self.formData["page"] = 1;
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-10-18 09:54:58 * @Date: 2021-10-18 09:54:58
* @LastEditTime: 2021-10-19 18:32:33 * @LastEditTime: 2021-10-20 14:36:19
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\router\modules\ajbz.js * @FilePath: \founder_vue\src\router\modules\ajbz.js
...@@ -99,14 +99,7 @@ const menuLayouts = [ ...@@ -99,14 +99,7 @@ const menuLayouts = [
}, },
component: () => import("@/views/cbyp/xkcb.vue") component: () => import("@/views/cbyp/xkcb.vue")
}, },
{
path: "/ajsx",
name: "ajsx",
meta: {
title: '案件筛选'
},
component: () => import("@/views/cbyp/ajsx.vue")
},
{ {
...@@ -118,15 +111,7 @@ const menuLayouts = [ ...@@ -118,15 +111,7 @@ const menuLayouts = [
}, },
component: () => import("@/views/cbyp/qgaj.vue") component: () => import("@/views/cbyp/qgaj.vue")
}, },
{
path: "/hbxsz",
name: "hbxsz",
meta: {
title: "合并线索组",
auth: 5
},
component: () => import("@/views/cbyp/hbxsz.vue")
},
{ {
path: "/cbaAdd", path: "/cbaAdd",
name: "cbaAdd", name: "cbaAdd",
...@@ -136,24 +121,7 @@ const menuLayouts = [ ...@@ -136,24 +121,7 @@ const menuLayouts = [
}, },
component: () => import("@/views/cbyp/cbaAdd.vue") component: () => import("@/views/cbyp/cbaAdd.vue")
}, },
{
path: "/xzrgcb",
name: "xzrgcb",
meta: {
title: "新增人工串并",
auth: 5
},
component: () => import("@/views/cbyp/xzrgcb.vue")
},
{
path: "/toAddXlaj",
name: "toAddXlaj",
meta: {
title: "新增我的系列",
auth: 5
},
component: () => import("@/views/cbyp/toAddXlaj.vue")
},
{ {
path: "/qgxxxx", path: "/qgxxxx",
name: "qgxxxx", name: "qgxxxx",
...@@ -163,45 +131,8 @@ const menuLayouts = [ ...@@ -163,45 +131,8 @@ const menuLayouts = [
}, },
component: () => import("@/views/cbyp/qgxxxx.vue") component: () => import("@/views/cbyp/qgxxxx.vue")
}, },
{
path: "/tobjcba",
name: "tobjcba",
meta: {
title: "系列案件详情",
auth: 5
},
component: () => import("@/views/cbyp/tobjcba.vue")
},
{
path: "/djwzba",
name: "djwzba",
redirect: '/djwzba/xgaj',
meta: {
title: "登记为串并案",
auth: 5
},
component: () => import("@/views/cbyp/cba/djwzba.vue"),
children: [
{
path: "xgaj",
name: "xgaj",
meta: {
title: "相关案件",
auth: 5
},
component: () => import("@/views/cbyp/cba/xgaj.vue"),
},
{
path: "tjaj",
name: "tjaj",
meta: {
title: "添加案件",
auth: 5
},
component: () => import("@/views/cbyp/cba/tjaj.vue"),
}
]
}
]; ];
export default { export default {
......
export default [ export default [
{ {
path: "/", path: "/",
redirect: "/login" redirect: "/login"
},
{
path: "/jump",
name: "jump",
meta: {
title: '登录',
auth: "5",
isUpdata: false
}, },
{ component: () => import("@/views/index/test.vue")
path: "/jump", },
name: "jump", {
meta: { path: "/login",
title: '登录', name: "login",
auth: "5", meta: {
isUpdata: false title: '登录',
}, auth: "5",
component: () => import("@/views/index/test.vue") isUpdata: false
}, },
{ component: () => import("@/views/index/login.vue")
path: "/login", },
name: "login", {
meta: { path: "/home",
title: '登录', name: "home",
auth: "5", meta: {
isUpdata: false title: '桌面',
}, auth: "5",
component: () => import("@/views/index/login.vue") isUpdata: false
}, },
component: () => import("@/views/index/home.vue")
},
{
path: "/zdhome",
name: "zdhome",
meta: {
title: '阵地大屏',
auth: "5",
isUpdata: false
},
component: () => import("@/views/index/zdhome.vue")
},
{
path: "/zdxx",
name: "zdxx",
meta: {
title: '登录',
auth: "5",
isUpdata: false
},
component: () => import("@/views/zdxx/zdxx.vue")
},
{
path: "/qgAj",
name: "qgAj",
meta: {
title: '全国案件',
auth: "5",
isUpdata: false
},
component: () => import("@/views/kyxs/yhkxs/qgAj.vue")
},
{
path: "/qsAj",
name: "qsAj",
meta: {
title: '全省案件',
auth: "5",
isUpdata: false
},
component: () => import("@/views/kyxs/yhkxs/qsAj.vue")
},
{
path: "/tobjcba",
name: "tobjcba",
meta: {
title: "系列案件详情",
auth: 5
},
component: () => import("@/views/cbyp/tobjcba.vue")
},
{
path: "/hbxsz",
name: "hbxsz",
meta: {
title: "合并线索组",
auth: 5
},
component: () => import("@/views/cbyp/hbxsz.vue")
},
{
path: "/xzrgcb",
name: "xzrgcb",
meta: {
title: "新增人工串并",
auth: 5
},
children: [
{ {
path: "/home", path: "scaj",
name: "home", name: "scaj",
meta: { meta: {
title: '桌面', title: "收藏",
auth: "5", auth: 5
isUpdata: false
}, },
component: () => import("@/views/index/home.vue") component: () => import("@/views/cbyp/cba/scaj.vue"),
}, }
],
component: () => import("@/views/cbyp/xzrgcb.vue")
},
{
path: "/toAddXlaj",
name: "toAddXlaj",
meta: {
title: "新增我的系列",
auth: 5
},
children: [
{ {
path: "/zdhome", path: "scaj",
name: "zdhome", name: "scaj",
meta: { meta: {
title: '阵地大屏', title: "收藏",
auth: "5", auth: 5
isUpdata: false
}, },
component: () => import("@/views/index/zdhome.vue") component: () => import("@/views/cbyp/cba/scaj.vue"),
}, }
],
component: () => import("@/views/cbyp/toAddXlaj.vue")
},
{
path: "/ajsx",
name: "ajsx",
meta: {
title: '案件筛选'
},
component: () => import("@/views/cbyp/ajsx.vue")
},
{
path: "/djwzba",
name: "djwzba",
redirect: '/djwzba/xgaj',
meta: {
title: "登记为串并案",
auth: 5
},
component: () => import("@/views/cbyp/cba/djwzba.vue"),
children: [
{ {
path: "/zdxx", path: "xgaj",
name: "zdxx", name: "xgaj",
meta: { meta: {
title: '登录', title: "相关案件",
auth: "5", auth: 5
isUpdata: false
}, },
component: () => import("@/views/zdxx/zdxx.vue") component: () => import("@/views/cbyp/cba/xgaj.vue"),
}, },
{ {
path: "/qgAj", path: "tjaj",
name: "qgAj", name: "tjaj",
meta: { meta: {
title: '全国案件', title: "添加案件",
auth: "5", auth: 5
isUpdata: false
}, },
component: () => import("@/views/kyxs/yhkxs/qgAj.vue") component: () => import("@/views/cbyp/cba/tjaj.vue"),
}, },
{ {
path: "/qsAj", path: "scaj",
name: "qsAj", name: "scaj",
meta: { meta: {
title: '全省案件', title: "收藏",
auth: "5", auth: 5
isUpdata: false
}, },
component: () => import("@/views/kyxs/yhkxs/qsAj.vue") component: () => import("@/views/cbyp/cba/scaj.vue"),
}, }
]
}
] ]
\ No newline at end of file
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-09-08 09:15:53 * @Date: 2021-09-08 09:15:53
* @LastEditTime: 2021-09-08 16:35:47 * @LastEditTime: 2021-10-20 18:16:35
* @LastEditors: your name * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\store\modules\user.js * @FilePath: \founder_vue\src\store\modules\user.js
*/ */
...@@ -18,7 +18,7 @@ const state = { ...@@ -18,7 +18,7 @@ const state = {
topMenu: [], topMenu: [],
Breadcrumbs: [], Breadcrumbs: [],
leftMenu: [], leftMenu: [],
header:'' header: ''
}; };
const mutations = { const mutations = {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -622,9 +622,16 @@ export default { ...@@ -622,9 +622,16 @@ export default {
filterText1(val) { filterText1(val) {
this.$refs.tree1.filter(val); this.$refs.tree1.filter(val);
}, },
loadingIndex() {
if (this.loadingIndex == 0) {
this.loading.close();
}
},
}, },
data() { data() {
return { return {
loadingIndex: 0,
loading: "",
elementPos: { elementPos: {
left: null, left: null,
top: null, top: null,
...@@ -850,10 +857,10 @@ export default { ...@@ -850,10 +857,10 @@ export default {
}; };
}, },
created() { created() {
this.getQuery(); this.getQuery("yes");
this.getQuerys(); this.getQuerys("yes");
this.query(); this.query("yes");
this.getBz(); this.getBz("yes");
}, },
methods: { methods: {
toXk() { toXk() {
...@@ -883,13 +890,17 @@ export default { ...@@ -883,13 +890,17 @@ export default {
}); });
}); });
}, },
getBz() { getBz(boo) {
var self = this; var self = this;
if (boo) {
this.loadingIndex++;
}
getAsjbzxx({ getAsjbzxx({
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
self.bzztMs = res.data.rows.bzztMs; self.bzztMs = res.data.rows.bzztMs;
self.selectIndex1 = parseInt(res.data.rows.asjflzt); self.selectIndex1 = parseInt(res.data.rows.asjflzt);
this.loadingIndex--;
if (res.data.rows != null) { if (res.data.rows != null) {
self.ajzlbStr = res.data.rows.ajzlbStr; self.ajzlbStr = res.data.rows.ajzlbStr;
self.ajxzlbStr = res.data.rows.ajxzlbStr; self.ajxzlbStr = res.data.rows.ajxzlbStr;
...@@ -996,11 +1007,21 @@ export default { ...@@ -996,11 +1007,21 @@ export default {
this.$set(self.formLabelAlign2, 0, []); this.$set(self.formLabelAlign2, 0, []);
this.centerDialogVisibles1 = true; this.centerDialogVisibles1 = true;
}, },
query() { query(boo) {
var self = this; var self = this;
this.loading = this.$loading({
lock: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
if (boo) {
this.loadingIndex += 5;
}
getAsjxxDetail({ getAsjxxDetail({
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.loadingIndex--;
this.ajmc = res.data.rows.ajmc; this.ajmc = res.data.rows.ajmc;
this.ajlbdm_str = res.data.rows.ajlbdmStr; this.ajlbdm_str = res.data.rows.ajlbdmStr;
this.asjfssjKssjStr = res.data.rows.asjfssjKssjStr; this.asjfssjKssjStr = res.data.rows.asjfssjKssjStr;
...@@ -1012,38 +1033,43 @@ export default { ...@@ -1012,38 +1033,43 @@ export default {
// if (this.ajlbdm_str == "" || this.ajlbdm_str == null) { // if (this.ajlbdm_str == "" || this.ajlbdm_str == null) {
// this.ajlbdmSow = false; // this.ajlbdmSow = false;
// } // }
}), });
getXckyDetail({ getXckyDetail({
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.xcbh = res.data.rows.xcbh; this.loadingIndex--;
this.xcbhUrl = `${res.data.rows.xckyurl}${res.data.rows.xcbh}`; this.xcbh = res.data.rows.xcbh;
this.kydd = res.data.rows.kydd; this.xcbhUrl = `${res.data.rows.xckyurl}${res.data.rows.xcbh}`;
this.kysjks = res.data.rows.kysjks; this.kydd = res.data.rows.kydd;
this.kysjjs = res.data.rows.kysjjs; this.kysjks = res.data.rows.kysjks;
this.kyjcry = res.data.rows.kyjcry; this.kysjjs = res.data.rows.kysjjs;
this.jd = res.data.rows.jd; this.kyjcry = res.data.rows.kyjcry;
this.wd = res.data.rows.wd; this.jd = res.data.rows.jd;
this.kyjcqknr = res.data.rows.kyjcqknr; this.wd = res.data.rows.wd;
}), this.kyjcqknr = res.data.rows.kyjcqknr;
getZbfzxyrxxList({ });
asjbh: this.asjbh, getZbfzxyrxxList({
}).then((res) => { asjbh: this.asjbh,
this.xyrList1 = res.data.rows; }).then((res) => {
console.log(this.xyrList1, "1765111"); this.loadingIndex--;
}), this.xyrList1 = res.data.rows;
getGjcList({ console.log(this.xyrList1, "1765111");
asjbh: this.asjbh, });
}).then((res) => {
let newData = res.data.rows.map((item) => { getGjcList({
return item.gjc; asjbh: this.asjbh,
}); }).then((res) => {
this.word = newData.filter((item) => item != ""); this.loadingIndex--;
let newData = res.data.rows.map((item) => {
return item.gjc;
}); });
this.word = newData.filter((item) => item != "");
});
getFwbzhList({ getFwbzhList({
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.loadingIndex--;
this.fwbzhList = res.data.rows; this.fwbzhList = res.data.rows;
this.shrList = res.data.rows.filter((item) => item.rylx == "01"); this.shrList = res.data.rows.filter((item) => item.rylx == "01");
this.xyrList = res.data.rows.filter((item) => item.rylx == "02"); this.xyrList = res.data.rows.filter((item) => item.rylx == "02");
...@@ -1105,23 +1131,30 @@ export default { ...@@ -1105,23 +1131,30 @@ export default {
self.$message.success("标识号修改成功"); self.$message.success("标识号修改成功");
} }
}, },
getQuery() { getQuery(boo) {
if (boo) {
this.loadingIndex++;
}
queryCodeByType({ queryCodeByType({
type: "CODE_GABAJZLB", type: "CODE_GABAJZLB",
startId: "", startId: "",
}).then((res) => { }).then((res) => {
debugger; this.loadingIndex--;
this.data1 = this.sxdata1 = res.rows.filter((val) => { this.data1 = this.sxdata1 = res.rows.filter((val) => {
return val.parentId != ""; return val.parentId != "";
}); });
}); });
}, },
getQuerys() { getQuerys(boo) {
if (boo) {
this.loadingIndex++;
}
queryCodeByType({ queryCodeByType({
type: "CODE_GABAJXZLB", type: "CODE_GABAJXZLB",
startId: "", startId: "",
}).then((res) => { }).then((res) => {
debugger; debugger;
this.loadingIndex--;
this.data = this.sxdata = res.rows; this.data = this.sxdata = res.rows;
}); });
}, },
...@@ -1144,6 +1177,12 @@ export default { ...@@ -1144,6 +1177,12 @@ export default {
hanldRytab(val) { hanldRytab(val) {
console.log(val); console.log(val);
this.selectIndex2 = val; this.selectIndex2 = val;
let loading = this.$loading({
lock: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
if (val == 1) { if (val == 1) {
this.ryqh = true; this.ryqh = true;
this.shrqh = false; this.shrqh = false;
...@@ -1152,6 +1191,7 @@ export default { ...@@ -1152,6 +1191,7 @@ export default {
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.xyrList = res.data.rows; this.xyrList = res.data.rows;
loading.close();
}); });
} else if (val == 2) { } else if (val == 2) {
this.ryqh = false; this.ryqh = false;
...@@ -1161,6 +1201,7 @@ export default { ...@@ -1161,6 +1201,7 @@ export default {
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.shrListqh = res.data.rows; this.shrListqh = res.data.rows;
loading.close();
}); });
} else if (val == 3) { } else if (val == 3) {
this.ryqh = false; this.ryqh = false;
...@@ -1170,6 +1211,7 @@ export default { ...@@ -1170,6 +1211,7 @@ export default {
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.barList = res.data.rows; this.barList = res.data.rows;
loading.close();
}); });
} }
}, },
...@@ -1337,7 +1379,7 @@ export default { ...@@ -1337,7 +1379,7 @@ export default {
.contioner { .contioner {
width: calc(100% - 50px); width: calc(100% - 50px);
height: 980px; height: 980px;
background: #1f212c; background: rgba(0, 0, 0, 0.6);
margin: 20px; margin: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
......
...@@ -122,24 +122,6 @@ export default { ...@@ -122,24 +122,6 @@ export default {
codeTree: "CODE_GABAJXZLB", codeTree: "CODE_GABAJXZLB",
}, },
{ {
name: "作案时段",
id: "startTime",
id2: "endTime",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "作案地域",
id: "zady",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_XZQH",
},
{
name: "作案人数", name: "作案人数",
id: "zars", id: "zars",
type: "radio", type: "radio",
...@@ -154,20 +136,6 @@ export default { ...@@ -154,20 +136,6 @@ export default {
], ],
}, },
{ {
name: "性别",
id: "bhrxb",
type: "radio",
value: "",
placeholder: "",
col: "3",
radioData: [
{ label: "未知性别", val: "1" },
{ label: "男", val: "2" },
{ label: "女", val: "3" },
{ label: "未说明的性别", val: "4" },
],
},
{
name: "年龄", name: "年龄",
id: "bhrmlRange", id: "bhrmlRange",
type: "radio", type: "radio",
......
<!-- <template>
* @Author: your name <div class="Content" id="toAddXlaj">
* @Date: 2021-10-19 18:32:41 <div class="topTitle">
* @LastEditTime: 2021-10-19 18:32:42 <span>我的系列</span>
* @LastEditors: Please set LastEditors <div class="subTitle">
* @Description: In User Settings Edit <div class="ajTitle" @click="cut('add')">添加案件</div>
* @FilePath: \founder_vue\src\views\cbyp\ajsx.vue <div :class="{ bottom: true, hidden: key !== 'add' }"></div>
--> </div>
<div class="subTitle" @click="cut('related')">
<div class="ajTitle">收藏案件</div>
<div :class="{ bottom: true, hidden: key !== 'related' }"></div>
</div>
</div>
<right-content
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
:skey="key"
:pageBtns="pageBtns"
ref="rightContent"
:formType="formType"
@addTableEvent="addTableEvent"
@delTableItem="delTableItem"
@pageSave="pageSave"
:tableInfor="tableInfor"
:name="name"
></right-content>
</div>
</template>
<script>
import rightContent from "@c/ajbz/rgcb_wdxl/ptCxForm_components.vue";
import { insertCbzxx, addBatchWscdaj } from "@/api/cbyp.js";
import {
EsAsjQuery,
getTableTitleRedis,
EsShrQuery,
EsXyrQuery,
} from "@/api/dictionaryCode.js";
export default {
name: "toAddXlaj",
components: {
rightContent,
},
data() {
return {
pageBtns: ["add"],
formType: "haveTitle",
cxFormData: {
page: 1,
rows: 10,
asjbh: "",
sldwGajgjgdm: "",
asjfsddXzqhdm: "",
ajlbdm: "",
larqStart: "",
larqEnd: "",
asjfssjAsjfskssjStart: "",
asjfssjAsjfskssjEnd: "",
ajzlb: "",
ajxzlb: "",
xalbdmbcms: "",
zhfzxyrAsjxgrybh: "",
zhfzxyrCyzjZjhm: "",
zhfzxyrXm: "",
zhfzxyrCym: "",
zhfzxyrBmch: "",
zhfzxyrXbdm: "",
zhfzxyrCsrqRqgzxxStart: "",
zhfzxyrCsrqRqgzxxEnd: "",
zhfzxyrMzdm: "",
zhfzxyrGjdm: "",
zhfzxyrHjdzXzqhdm: "",
zhfzxyrXzzXzqhdm: "",
zhfzxyrTzMin: "",
zhfzxyrTzMax: "",
zhfzxyrZcMin: "",
zhfzxyrZcMax: "",
zhfsZhfsdm: "",
zhfzxyrFzxyrdaztdm: "",
zhfzxyrSfjsbrPdbz: "",
zhdwGajgjgdm: "",
zhrqStart: "",
zhrqEnd: "",
},
cxQueryField: [
{
title: "案件特征",
id: "1",
children: [
{
name: "案(事)件编号",
id: "asjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "受理单位",
id: "sldwGajgjgdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_UNIT",
value: "",
col: "3",
},
{
name: "案发地行政区划",
id: "asjfsddXzqhdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_XZQH",
value: "",
col: "3",
},
{
name: "案(事)件类别",
id: "ajlbdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_AJLB",
value: "",
col: "3",
},
{
name: "立案时间",
id: "larqStart",
id2: "larqEnd",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "案发时间",
id: "asjfssjAsjfskssjStart",
id2: "asjfssjAsjfskssjEnd",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "主案类别",
id: "ajzlb",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_GABAJZLB",
value: "",
col: "3",
},
{
name: "类案类别",
id: "ajxzlb",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_GABAJXZLB",
value: "",
col: "3",
},
// {
// name: "次类案类别",
// id: "xalbdmbcms",
// type: "code",
// codeOptions: [],
// codeTree: "CODE_XALBDMBCMS",
// value: "",
// col: "3",
// },
],
},
{
title: "人员特征",
id: "2",
children: [
{
name: "人员编号",
id: "zhfzxyrAsjxgrybh",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "证件号码",
id: "zhfzxyrCyzjZjhm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "姓名",
id: "zhfzxyrXm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "曾用名",
id: "zhfzxyrCym",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "别名绰号",
id: "zhfzxyrBmch",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "性别",
id: "zhfzxyrXbdm",
type: "code",
codeOptions: [],
codeTree: "CODE_XB",
value: "",
col: "3",
},
{
name: "出生日期",
id: "zhfzxyrCsrqRqgzxxStart",
id2: "zhfzxyrCsrqRqgzxxEnd",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "民族",
id: "zhfzxyrMzdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_MZ",
value: "",
col: "3",
},
{
name: "国籍",
id: "zhfzxyrGjdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_GJ",
value: "",
col: "3",
},
{
name: "户籍地行政区划",
id: "zhfzxyrHjdzXzqhdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_XZQH",
value: "",
col: "3",
},
{
name: "现住址行政区划",
id: "zhfzxyrXzzXzqhdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
placeholder: "请选择",
codeTree: "CODE_XZQH",
value: "",
col: "3",
},
{
name: "体重",
id: "zhfzxyrTzMin",
id2: "zhfzxyrTzMax",
type: "zdyText",
value: "",
placeholder: "请输入",
value2: "",
placeholder2: "请输入",
col: "3",
},
{
name: "足长",
id: "zhfzxyrZcMin",
id2: "zhfzxyrZcMax",
type: "zdyText",
value: "",
placeholder: "请输入",
value2: "",
placeholder2: "请输入",
col: "3",
},
{
name: "抓获方式",
id: "zhfsZhfsdm",
type: "codeTreeDialog",
codeOptions: [],
codeTree: "CODE_ZHFS",
value: "",
col: "3",
},
{
name: "人员状态",
id: "zhfzxyrFzxyrdaztdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
placeholder: "请选择",
codeTree: "CODE_DAZT",
value: "",
col: "3",
},
{
name: "是否有精神病",
id: "zhfzxyrSfjsbrPdbz",
type: "select",
value: "",
placeholder: "请选择",
col: "3",
selectData: [
{ value: "1", name: "是" },
{ value: "0", name: "否" },
],
},
{
name: "抓获单位",
id: "zhdwGajgjgdm",
type: "codeTreeDialog", //字典弹框
codeTree: "CODE_UNIT",
props: [], //字典弹框需要的字段
codeOptions: [],
placeholder: "请选择",
value: "",
col: "3",
},
{
name: "抓获日期",
id: "zhrqStart",
id2: "zhrqEnd",
type: "zdyDate",
value: "",
col: "3",
},
],
},
],
cxDefaultFormThead: [
{
label: "案件编号",
prop: "asjbh",
width: "220",
},
{
label: "案件类别",
prop: "ajlbdmMc",
width: "200",
},
{
label: "主案类别",
prop: "ajzlbMc",
width: "220",
},
{
label: "类案类别",
prop: "ajxzlbMc",
width: "220",
},
{
label: "案件名称",
prop: "ajmc",
width: "150",
},
{
label: "案发地点",
prop: "asjfsddDzmc",
width: "280",
},
{
label: "损失总价值",
prop: "ssjzrmby",
width: "180",
},
{
/*table默认得表头*/
label: "立案日期",
prop: "larq",
width: "200",
},
{
label: "立案单位名称",
prop: "ladwGajgjgdmMc",
width: "220",
},
{
label: "案发开始时间",
prop: "asjfssjAsjfskssj",
width: "220",
},
{
label: "简要案情",
prop: "jyaq",
width: "220",
},
],
cxUrl: EsAsjQuery,
selectItem: [],
tableInfor: [],
key: "add",
name: "toAddXlajAdd",
};
},
methods: {
/**
* @description: 点击添加表格内容添加到相关案件里面
* @param {*} arr
* @return {*}
*/
addTableEvent(arr) {
this.selectItem = arr;
this.$refs.rightContent.tableSelectItem = [];
this.$message.success("添加成功");
},
/**
* @description: 切换选项卡
* @param {*} key 选项卡key值
* @return {*}
*/
cut(key) {
this.key = key;
},
/**
* @description: 添加案件配置
* @param {*}
* @return {*}
*/
addPrps() {
this.tableInfor = [];
this.formType = "formType";
this.pageBtns = ["add"];
this.name = "toAddXlajAdd";
this.cxQueryField = [
{
title: "案件特征",
id: "1",
children: [
{
name: "案(事)件编号",
id: "asjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "受理单位",
id: "sldwGajgjgdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_UNIT",
value: "",
col: "3",
},
{
name: "案发地行政区划",
id: "asjfsddXzqhdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_XZQH",
value: "",
col: "3",
},
{
name: "案(事)件类别",
id: "ajlbdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_AJLB",
value: "",
col: "3",
},
{
name: "立案时间",
id: "larqStart",
id2: "larqEnd",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "案发时间",
id: "asjfssjAsjfskssjStart",
id2: "asjfssjAsjfskssjEnd",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "主案类别",
id: "ajzlb",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_GABAJZLB",
value: "",
col: "3",
},
{
name: "类案类别",
id: "ajxzlb",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_GABAJXZLB",
value: "",
col: "3",
},
// {
// name: "次类案类别",
// id: "xalbdmbcms",
// type: "code",
// codeOptions: [],
// codeTree: "CODE_XALBDMBCMS",
// value: "",
// col: "3",
// },
],
},
{
title: "人员特征",
id: "2",
children: [
{
name: "人员编号",
id: "zhfzxyrAsjxgrybh",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "证件号码",
id: "zhfzxyrCyzjZjhm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "姓名",
id: "zhfzxyrXm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "曾用名",
id: "zhfzxyrCym",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "别名绰号",
id: "zhfzxyrBmch",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "性别",
id: "zhfzxyrXbdm",
type: "code",
codeOptions: [],
codeTree: "CODE_XB",
value: "",
col: "3",
},
{
name: "出生日期",
id: "zhfzxyrCsrqRqgzxxStart",
id2: "zhfzxyrCsrqRqgzxxEnd",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "民族",
id: "zhfzxyrMzdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_MZ",
value: "",
col: "3",
},
{
name: "国籍",
id: "zhfzxyrGjdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_GJ",
value: "",
col: "3",
},
{
name: "户籍地行政区划",
id: "zhfzxyrHjdzXzqhdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
codeTree: "CODE_XZQH",
value: "",
col: "3",
},
{
name: "现住址行政区划",
id: "zhfzxyrXzzXzqhdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
placeholder: "请选择",
codeTree: "CODE_XZQH",
value: "",
col: "3",
},
{
name: "体重",
id: "zhfzxyrTzMin",
id2: "zhfzxyrTzMax",
type: "zdyText",
value: "",
placeholder: "请输入",
value2: "",
placeholder2: "请输入",
col: "3",
},
{
name: "足长",
id: "zhfzxyrZcMin",
id2: "zhfzxyrZcMax",
type: "zdyText",
value: "",
placeholder: "请输入",
value2: "",
placeholder2: "请输入",
col: "3",
},
{
name: "抓获方式",
id: "zhfsZhfsdm",
type: "code",
codeOptions: [],
codeTree: "CODE_ZHFS",
value: "",
col: "3",
},
{
name: "人员状态",
id: "zhfzxyrFzxyrdaztdm",
type: "codeTreeDialog", //字典弹框
props: [], //字典弹框需要的字段
codeOptions: [],
placeholder: "请选择",
codeTree: "CODE_DAZT",
value: "",
col: "3",
},
{
name: "是否有精神病",
id: "zhfzxyrSfjsbrPdbz",
type: "select",
value: "",
placeholder: "请选择",
col: "3",
selectData: [
{ value: "1", name: "是" },
{ value: "0", name: "否" },
],
},
{
name: "抓获单位",
id: "zhdwGajgjgdm",
type: "codeTreeDialog", //字典弹框
codeTree: "CODE_UNIT",
props: [], //字典弹框需要的字段
codeOptions: [],
placeholder: "请选择",
value: "",
col: "3",
},
{
name: "抓获日期",
id: "zhrqStart",
id2: "zhrqEnd",
type: "zdyDate",
value: "",
col: "3",
},
],
},
];
this.cxFormData = {
page: 1,
rows: 10,
asjbh: "",
sldwGajgjgdm: "",
asjfsddXzqhdm: "",
ajlbdm: "",
larqStart: "",
larqEnd: "",
asjfssjAsjfskssjStart: "",
asjfssjAsjfskssjEnd: "",
ajzlb: "",
ajxzlb: "",
xalbdmbcms: "",
zhfzxyrAsjxgrybh: "",
zhfzxyrCyzjZjhm: "",
zhfzxyrXm: "",
zhfzxyrCym: "",
zhfzxyrBmch: "",
zhfzxyrXbdm: "",
zhfzxyrCsrqRqgzxxStart: "",
zhfzxyrCsrqRqgzxxEnd: "",
zhfzxyrMzdm: "",
zhfzxyrGjdm: "",
zhfzxyrHjdzXzqhdm: "",
zhfzxyrXzzXzqhdm: "",
zhfzxyrTzMin: "",
zhfzxyrTzMax: "",
zhfzxyrZcMin: "",
zhfzxyrZcMax: "",
zhfsZhfsdm: "",
zhfzxyrFzxyrdaztdm: "",
zhfzxyrSfjsbrPdbz: "",
zhdwGajgjgdm: "",
zhrqStart: "",
zhrqEnd: "",
};
this.formType = "haveTitle";
},
/**
* @description: 相关案件配置
* @param {*}
* @return {*}
*/
relatedProps() {
this.tableInfor = this.selectItem;
this.formType = "formType";
this.pageBtns = ["save", "off"];
this.name = "toAddXlajRelated";
this.cxQueryField = [
{
name: "收藏描述",
id: "cbxxms",
type: "textarea",
value: "",
placeholder: "请输入",
col: "15",
},
];
this.cxFormData = {
cbxxms: "",
};
this.haveTitle = null;
},
pageSave(form) {
// debugger;
let scms = form.cbxxms;
if (this.tableInfor.length <= 0 || !this.tableInfor) {
this.$message.error("请添加数据后进行操作");
} else if (!scms) {
this.$message.error("请填写收藏描述");
} else {
let asjbhArr = this.tableInfor.map((i) => i.asjbh);
addBatchWscdaj({
asjbhs: asjbhArr.join(","),
scms,
}).then((res) => {
if (res.code == "200") {
this.$message.success("添加收藏成功");
this.tableInfor = [];
this.cxFormData = {
cbxxms: "",
};
} else {
this.$message.error(res.message);
}
});
}
},
/**
* @description: 删除相关案件的表格内容
* @param {*} asjbh
* @return {*}
*/
delTableItem(asjbh) {
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let index = this.tableInfor.findIndex((i) => i.asjbh == asjbh);
if (index >= 0) {
this.tableInfor.splice(index, 1);
this.$message({
type: "success",
message: "删除成功!",
});
}
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
},
watch: {
key(val) {
if (val == "add") {
this.addPrps();
} else {
this.relatedProps();
}
},
},
created() {},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
background: #f3f3f3;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
@import "@/assets/styles/rightContent.scss";
.topTitle {
width: 100%;
height: 56px;
background: #0061f7;
display: flex;
align-items: center;
span {
font-size: 18px;
font-weight: bold;
line-height: 24px;
color: #ffffff;
margin-left: 35px;
}
.subTitle {
width: 138px;
margin-left: 90px;
text-align: center;
margin-top: 19px;
cursor: pointer;
.ajTitle {
font-size: 14px;
font-weight: 400;
color: #ffffff;
opacity: 1;
}
.bottom {
height: 4px;
background: #f1970f;
opacity: 1;
margin-top: 7px;
}
.hidden {
visibility: hidden;
}
}
}
</style>
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-08-25 09:47:35 * @Date: 2021-08-25 09:47:35
* @LastEditTime: 2021-10-19 16:13:21 * @LastEditTime: 2021-10-20 15:10:09
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\cba\djwzba.vue * @FilePath: \founder_vue\src\views\cba\djwzba.vue
...@@ -49,6 +49,7 @@ export default { ...@@ -49,6 +49,7 @@ export default {
routerList: [ routerList: [
{ path: "/djwzba/xgaj", title: "相关案件" }, { path: "/djwzba/xgaj", title: "相关案件" },
{ path: "/djwzba/tjaj", title: "添加案件" }, { path: "/djwzba/tjaj", title: "添加案件" },
{ path: "/djwzba/scaj", title: "收藏案件" },
// { path: '/djwzba/', title: '我的收藏案件' } // { path: '/djwzba/', title: '我的收藏案件' }
], ],
cxFormData: { cxFormData: {
...@@ -90,6 +91,7 @@ export default { ...@@ -90,6 +91,7 @@ export default {
}, },
], ],
selectedArr: [], selectedArr: [],
selectAsjbhs: [],
restFlag: false, restFlag: false,
}; };
}, },
...@@ -100,6 +102,9 @@ export default { ...@@ -100,6 +102,9 @@ export default {
cbmcList.forEach((element) => { cbmcList.forEach((element) => {
this.selectedArr.push(element.ajmc); this.selectedArr.push(element.ajmc);
}); });
cbmcList.forEach((element) => {
this.selectAsjbhs.push(element.asjbh);
});
// this.str = arr.join(',') // this.str = arr.join(',')
}); });
Bus.$on("reset", () => { Bus.$on("reset", () => {
...@@ -110,17 +115,27 @@ export default { ...@@ -110,17 +115,27 @@ export default {
}, },
methods: { methods: {
async saveAj() { async saveAj() {
console.log(this.cxFormData.cblx);
let cblx = null; let cblx = null;
let asjbhs = null;
if (this.cxFormData.cblx.length) { if (this.cxFormData.cblx.length) {
cblx = this.cxFormData.cblx.join(","); cblx = this.cxFormData.cblx.join(",");
} }
if (this.selectedArr.length <= 0) {
this.$message.error("请选择相关案件");
return;
} else {
asjbhs = this.selectAsjbhs.join(",");
console.log(asjbhs);
}
console.log(this.cxFormData, cblx);
if (this.cxFormData.cbmc && cblx && this.cxFormData.cbxxms) { if (this.cxFormData.cbmc && cblx && this.cxFormData.cbxxms) {
let obj = { let obj = {
cbmc: this.cxFormData.cbmc, cbmc: this.cxFormData.cbmc,
cblx: cblx, cblx: cblx,
cbxxms: this.cxFormData.cbxxms, cbxxms: this.cxFormData.cbxxms,
glxxXszajbh: this.$route.query.xszajbh, glxxXszajbh: this.$route.query.xszajbh,
asjbhs,
flag: "",
}; };
let res = await addxszglasj(obj); let res = await addxszglasj(obj);
console.log(res); console.log(res);
...@@ -187,8 +202,8 @@ export default { ...@@ -187,8 +202,8 @@ export default {
font-size: 16px; font-size: 16px;
background: #fff; background: #fff;
border-bottom: 1px dashed #ccc; border-bottom: 1px dashed #ccc;
padding: 0 8px;
margin-bottom: 5px; margin-bottom: 5px;
margin: 0 20px 0;
.tabItem { .tabItem {
height: 100%; height: 100%;
line-height: 40px; line-height: 40px;
......
<!--
* @Author: your name
* @Date: 2021-09-11 10:30:21
* @LastEditTime: 2021-10-20 17:34:55
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\xsjsdb\queryrwbd.vue
-->
<template>
<div class="rightContent">
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@sctjcb="sctjcb"
ref="rightContent"
></right-content>
<!-- 反馈信息 -->
</div>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { insertCbxsajxx } from "@/api/cbyp.js";
import Bus from "@/utils/Bus";
export default {
name: "queryRwbd",
components: {
rightContent,
},
data() {
return {
header: "我收藏的案件",
pageBs: "wscdajtj",
cxFormData: {
limit: 10,
page: 1,
asjbh: "",
djsjStart: "",
djsjEnd: "",
sfcb: "",
},
cxQueryField: [
{
name: "案件编号",
id: "asjbh",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "收藏时间",
id: "djsjStart",
id2: "djsjEnd",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "是否串并",
id: "sfcb",
type: "codeTreeDialog",
codeTree: "CODE_IF",
props: [],
codeOptions: [],
value: "",
placeholder: "",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "案件编号",
prop: "asjbh",
},
{
label: "案件名称",
prop: "ajmc",
},
{
label: "案件类别",
prop: "ajlb",
},
{
label: "收藏时间",
prop: "djsj",
},
{
label: "是否串并",
prop: "sfcb",
},
{
label: "收藏描述",
prop: "scms",
},
],
cxUrl: "/wscdaj/wscdajQry",
xxzjbh: "",
Menu: [
{
id: "wscdaj",
label: "我收藏的案件",
index: "wscdaj",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
sctjcb(scope) {
var self = this;
// debugger;
this.$confirm("确认添加案件?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
insertCbxsajxx({
cbxgfwbzh: self.$route.query.cbxgfwbzh || '',
xszajbh: self.$route.query.xszajbh || '',
asjbh: scope.row.asjbh,
addType: "wscdaj",
}).then((res) => {
if (res.code == 200) {
self.$message.success("添加成功!");
} else {
self.$message.error(res.message);
}
});
});
Bus.$emit("updataTable");
},
},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
@import "@/assets/styles/rightContent.scss";
</style>
...@@ -52,36 +52,36 @@ export default { ...@@ -52,36 +52,36 @@ export default {
asjbh: "", asjbh: "",
sldwGajgjgdm: "", sldwGajgjgdm: "",
asjfsddXzqhdm: "", asjfsddXzqhdm: "",
ajlbdm: '', ajlbdm: "",
larqStart: "", larqStart: "",
larqEnd: "", larqEnd: "",
asjfssjAsjfskssjStart: "", asjfssjAsjfskssjStart: "",
asjfssjAsjfskssjEnd: "", asjfssjAsjfskssjEnd: "",
ajzlb: '', ajzlb: "",
ajxzlb: '', ajxzlb: "",
xalbdmbcms: "", xalbdmbcms: "",
zhfzxyrAsjxgrybh: "", zhfzxyrAsjxgrybh: "",
zhfzxyrCyzjZjhm: "", zhfzxyrCyzjZjhm: "",
zhfzxyrXm: "", zhfzxyrXm: "",
zhfzxyrCym: '', zhfzxyrCym: "",
zhfzxyrBmch: "", zhfzxyrBmch: "",
zhfzxyrXbdm: "", zhfzxyrXbdm: "",
zhfzxyrCsrqRqgzxxStart:'', zhfzxyrCsrqRqgzxxStart: "",
zhfzxyrCsrqRqgzxxEnd: '', zhfzxyrCsrqRqgzxxEnd: "",
zhfzxyrMzdm: '', zhfzxyrMzdm: "",
zhfzxyrGjdm: '', zhfzxyrGjdm: "",
zhfzxyrHjdzXzqhdm: '', zhfzxyrHjdzXzqhdm: "",
zhfzxyrXzzXzqhdm: '', zhfzxyrXzzXzqhdm: "",
zhfzxyrTzMin: '', zhfzxyrTzMin: "",
zhfzxyrTzMax: '', zhfzxyrTzMax: "",
zhfzxyrZcMin: '', zhfzxyrZcMin: "",
zhfzxyrZcMax: '', zhfzxyrZcMax: "",
zhfsZhfsdm: '', zhfsZhfsdm: "",
zhfzxyrFzxyrdaztdm: '', zhfzxyrFzxyrdaztdm: "",
zhfzxyrSfjsbrPdbz: '', zhfzxyrSfjsbrPdbz: "",
zhdwGajgjgdm: '', zhdwGajgjgdm: "",
zhrqStart: '', zhrqStart: "",
zhrqEnd: '', zhrqEnd: "",
}, },
cxQueryField: [ cxQueryField: [
{ {
...@@ -300,7 +300,7 @@ export default { ...@@ -300,7 +300,7 @@ export default {
{ {
name: "抓获方式", name: "抓获方式",
id: "zhfsZhfsdm", id: "zhfsZhfsdm",
type: "code", type: "codeTreeDialog",
codeOptions: [], codeOptions: [],
codeTree: "CODE_ZHFS", codeTree: "CODE_ZHFS",
value: "", value: "",
...@@ -720,36 +720,36 @@ export default { ...@@ -720,36 +720,36 @@ export default {
asjbh: "", asjbh: "",
sldwGajgjgdm: "", sldwGajgjgdm: "",
asjfsddXzqhdm: "", asjfsddXzqhdm: "",
ajlbdm: '', ajlbdm: "",
larqStart: "", larqStart: "",
larqEnd: "", larqEnd: "",
asjfssjAsjfskssjStart: "", asjfssjAsjfskssjStart: "",
asjfssjAsjfskssjEnd: "", asjfssjAsjfskssjEnd: "",
ajzlb: '', ajzlb: "",
ajxzlb: '', ajxzlb: "",
xalbdmbcms: "", xalbdmbcms: "",
zhfzxyrAsjxgrybh: "", zhfzxyrAsjxgrybh: "",
zhfzxyrCyzjZjhm: "", zhfzxyrCyzjZjhm: "",
zhfzxyrXm: "", zhfzxyrXm: "",
zhfzxyrCym: '', zhfzxyrCym: "",
zhfzxyrBmch: "", zhfzxyrBmch: "",
zhfzxyrXbdm: "", zhfzxyrXbdm: "",
zhfzxyrCsrqRqgzxxStart:'', zhfzxyrCsrqRqgzxxStart: "",
zhfzxyrCsrqRqgzxxEnd: '', zhfzxyrCsrqRqgzxxEnd: "",
zhfzxyrMzdm: '', zhfzxyrMzdm: "",
zhfzxyrGjdm: '', zhfzxyrGjdm: "",
zhfzxyrHjdzXzqhdm: '', zhfzxyrHjdzXzqhdm: "",
zhfzxyrXzzXzqhdm: '', zhfzxyrXzzXzqhdm: "",
zhfzxyrTzMin: '', zhfzxyrTzMin: "",
zhfzxyrTzMax: '', zhfzxyrTzMax: "",
zhfzxyrZcMin: '', zhfzxyrZcMin: "",
zhfzxyrZcMax: '', zhfzxyrZcMax: "",
zhfsZhfsdm: '', zhfsZhfsdm: "",
zhfzxyrFzxyrdaztdm: '', zhfzxyrFzxyrdaztdm: "",
zhfzxyrSfjsbrPdbz: '', zhfzxyrSfjsbrPdbz: "",
zhdwGajgjgdm: '', zhdwGajgjgdm: "",
zhrqStart: '', zhrqStart: "",
zhrqEnd: '', zhrqEnd: "",
}; };
this.formType = "haveTitle"; this.formType = "haveTitle";
}, },
...@@ -862,89 +862,89 @@ export default { ...@@ -862,89 +862,89 @@ export default {
}; };
</script> </script>
<style> <style>
.el-dialog__body { .el-dialog__body {
padding: 10px 15px !important; padding: 10px 15px !important;
} }
.rightContent .el-input__inner, .rightContent .el-input__inner,
#formCommonPage .el-input__inner { #formCommonPage .el-input__inner {
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
font-family: inherit; font-family: inherit;
background: #f3f3f3; background: #f3f3f3;
} }
.el-table__header-wrapper th, .el-table__header-wrapper th,
.el-table__header-wrapper tr { .el-table__header-wrapper tr {
background: #f4f6f7; background: #f4f6f7;
} }
.rightContent .el-input__icon, .rightContent .el-input__icon,
#formCommonPage .el-input__icon, #formCommonPage .el-input__icon,
.el-input__suffix-inner { .el-input__suffix-inner {
line-height: 36px; line-height: 36px;
} }
.rightContent .el-range-separator { .rightContent .el-range-separator {
position: relative; position: relative;
top: -4px; top: -4px;
} }
.rightContent .el-textarea__inner, .rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner { #formCommonPage .el-textarea__inner {
width: 100%; width: 100%;
font-family: inherit; font-family: inherit;
} }
.rightContent .el-range-input, .rightContent .el-range-input,
#formCommonPage .el-range-input { #formCommonPage .el-range-input {
vertical-align: top; vertical-align: top;
} }
.rightContent .el-date-editor .el-range__close-icon { .rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px; margin-top: -4px;
} }
.rightContent .el-form-item__error { .rightContent .el-form-item__error {
left: calc(66% - 27px); left: calc(66% - 27px);
top: 12px; top: 12px;
} }
.success-row { .success-row {
background-color: #fbf9f4 !important; background-color: #fbf9f4 !important;
} }
.Content .el-input, .Content .el-input,
.Content .el-date-editor--daterange.el-input__inner { .Content .el-date-editor--daterange.el-input__inner {
width: 100% !important; width: 100% !important;
} }
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
@import "@/assets/styles/rightContent.scss"; @import "@/assets/styles/rightContent.scss";
.topTitle { .topTitle {
width: 100%; width: 100%;
height: 56px; height: 56px;
background: #1f212c; background: #1f212c;
display: flex; display: flex;
align-items: center; align-items: center;
span { span {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
line-height: 24px; line-height: 24px;
color: #ffffff;
margin-left: 35px;
}
.subTitle {
width: 138px;
margin-left: 90px;
text-align: center;
margin-top: 19px;
cursor: pointer;
.ajTitle {
font-size: 14px;
font-weight: 400;
color: #ffffff; color: #ffffff;
margin-left: 35px; opacity: 0.8;
} }
.subTitle { .bottom {
width: 138px; height: 4px;
margin-left: 90px; background: #f1970f;
text-align: center; opacity: 1;
margin-top: 19px; margin-top: 7px;
cursor: pointer; }
.ajTitle { .hidden {
font-size: 14px; visibility: hidden;
font-weight: 400;
color: #ffffff;
opacity: 0.8;
}
.bottom {
height: 4px;
background: #f1970f;
opacity: 1;
margin-top: 7px;
}
.hidden {
visibility: hidden;
}
} }
} }
}
</style> </style>
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-08-25 09:47:52 * @Date: 2021-08-25 09:47:52
* @LastEditTime: 2021-10-19 15:27:31 * @LastEditTime: 2021-10-20 09:29:12
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\cba\xgaj.vue * @FilePath: \founder_vue\src\views\cba\xgaj.vue
...@@ -9,7 +9,13 @@ ...@@ -9,7 +9,13 @@
<template> <template>
<div class="xgal"> <div class="xgal">
<el-button type="danger" class="btn" @click="delAj">删除案件</el-button> <el-button type="danger" class="btn" @click="delAj">删除案件</el-button>
<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange"> <el-table
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center"> <el-table-column type="selection" width="55" align="center">
</el-table-column> </el-table-column>
<el-table-column label="案件编号" width="265" align="center"> <el-table-column label="案件编号" width="265" align="center">
...@@ -36,150 +42,144 @@ ...@@ -36,150 +42,144 @@
<el-table-column label="受理单位" width="160" align="center"> <el-table-column label="受理单位" width="160" align="center">
<template slot-scope="scope">{{ scope.row.sldw }}</template> <template slot-scope="scope">{{ scope.row.sldw }}</template>
</el-table-column> </el-table-column>
<el-table-column label="立案单位" width="160" align="center"> <el-table-column label="立案单位" width="160" align="center">
<template slot-scope="scope">{{ scope.row.ladwGajgjgdm }}</template> <template slot-scope="scope">{{ scope.row.ladwGajgjgdm }}</template>
</el-table-column> </el-table-column>
<el-table-column label="简要案情" width="420" align="center"> <el-table-column label="简要案情" width="420" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="ajxq_s"> <div class="ajxq_s">
<span <span class="none" v-html="scope.row['jyaq']"></span
class="none" ><a
v-html="scope.row['jyaq']" href="javascript:void(0);"
></span onclick='javascript:this.parentNode.style.display="none";this.parentNode.nextSibling.style.display="block"'
><a style="
href="javascript:void(0);" display: inline-block;
onclick='javascript:this.parentNode.style.display="none";this.parentNode.nextSibling.style.display="block"' width: 100%;
style=" text-align: right;
display: inline-block; color: #3692c6;
width: 100%; font-weight: 600;
text-align: right; "
color: #3692c6; id="open"
font-weight: 600; v-show="scope.row['jyaq'] != '' && scope.row['jyaq'] != null"
" >展开</a
id="open" >
v-show=" </div>
scope.row['jyaq'] != '' && <div class="ajxq_n" style="display: none">
scope.row['jyaq'] != null <span style="display: block" v-html="scope.row['jyaq']"></span
" ><a
>展开</a href="javascript:void(0);"
> onclick='javascript:this.parentNode.style.display="none";this.parentNode.previousSibling.style.display="block"'
</div> style="float: right; color: #3692c6; font-weight: 600"
<div class="ajxq_n" style="display: none"> id="stop"
<span v-show="scope.row['jyaq'] != '' && scope.row['jyaq'] != null"
style="display: block" >收起</a
v-html="scope.row['jyaq']" >
></span </div>
><a
href="javascript:void(0);"
onclick='javascript:this.parentNode.style.display="none";this.parentNode.previousSibling.style.display="block"'
style="float: right; color: #3692c6; font-weight: 600"
id="stop"
v-show="
scope.row['jyaq'] != '' &&
scope.row['jyaq'] != null
"
>收起</a
>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination background layout="prev, pager, next" @current-change="changePage" :total="total"> <div>
</el-pagination> <el-pagination
background
layout="prev, pager, next"
@current-change="changePage"
:total="total"
>
</el-pagination>
</div>
</div> </div>
</template> </template>
<script> <script>
import Bus from '@/utils/Bus' import Bus from "@/utils/Bus";
import { queryxszglasj, delxszglasj } from "@/api/cbyp.js"; import { queryxszglasj, delxszglasj } from "@/api/cbyp.js";
export default { export default {
data () { data() {
return { return {
tableData: [], tableData: [],
multipleSelection: [], multipleSelection: [],
total: 10 total: 10,
} };
}, },
mounted () { mounted() {
console.log(this.$route); console.log(this.$route);
this.getData(1, 10); this.getData(1, 10);
Bus.$on('reset', () => { Bus.$on("reset", () => {
this.$refs.multipleTable.clearSelection(); this.$refs.multipleTable.clearSelection();
}) });
Bus.$on('updataTable', () => { Bus.$on("updataTable", () => {
this.getData(1, 10); this.getData(1, 10);
}) });
}, },
methods: { methods: {
async delAj() { async delAj() {
let arr = [] let arr = [];
this.multipleSelection.forEach(item => { this.multipleSelection.forEach((item) => {
arr.push(item.asjbh) arr.push(item.asjbh);
}) });
let str = arr.join(',') let str = arr.join(",");
console.log(str); console.log(str);
let sfscxsz = 0 let sfscxsz = 0;
if(this.multipleSelection.length == this.total) { if (this.multipleSelection.length == this.total) {
sfscxsz = 1 sfscxsz = 1;
} else { } else {
sfscxsz = 0 sfscxsz = 0;
} }
let obj = { let obj = {
asjbhs: str, asjbhs: str,
xszajbh: this.$route.query.xszajbh, xszajbh: this.$route.query.xszajbh,
sfscxsz: sfscxsz sfscxsz: sfscxsz,
} };
let res = await delxszglasj(obj) let res = await delxszglasj(obj);
console.log(res); console.log(res);
if(res.code == 200) { if (res.code == 200) {
this.$message.success('删除成功!') this.$message.success("删除成功!");
this.getData(1, 10) this.getData(1, 10);
} else { } else {
this.$message.error('删除失败!') this.$message.error("删除失败!");
} }
},
async getData(page, limit) {
},
async getData (page, limit) {
let fromData = { let fromData = {
page, page,
limit, limit,
xszajbh: this.$route.query.xszajbh xszajbh: this.$route.query.xszajbh,
} };
let res = await queryxszglasj(fromData) let res = await queryxszglasj(fromData);
console.log(res); console.log(res);
if (res.code == 200) { if (res.code == 200) {
this.tableData = res.data.data this.tableData = res.data.data;
this.total = res.data.recordsTotal this.total = res.data.total;
} else { } else {
this.$message.error('请求数据失败!') this.$message.error("请求数据失败!");
} }
}, },
toggleSelection (rows) { toggleSelection(rows) {
if (rows) { if (rows) {
rows.forEach(row => { rows.forEach((row) => {
this.$refs.multipleTable.toggleRowSelection(row); this.$refs.multipleTable.toggleRowSelection(row);
}); });
} else { } else {
this.$refs.multipleTable.clearSelection(); this.$refs.multipleTable.clearSelection();
} }
}, },
handleSelectionChange (val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
Bus.$emit('addCbmc', this.multipleSelection) Bus.$emit("addCbmc", this.multipleSelection);
}, },
changePage (page) { changePage(page) {
console.log(page); console.log(page);
this.getData(page, 10) this.getData(page, 10);
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.xgal { .xgal {
button { padding: 0 20px;
margin: 5px; button {
} margin: 5px;
}
} }
</style> </style>
...@@ -397,7 +397,7 @@ export default { ...@@ -397,7 +397,7 @@ export default {
this.xszajbh = this.$route.query.xszajbh; this.xszajbh = this.$route.query.xszajbh;
this.cbxgfwbzh = this.$route.query.cbxgfwbzh == "bshcb" ? 0 : 1; this.cbxgfwbzh = this.$route.query.cbxgfwbzh == "bshcb" ? 0 : 1;
this.getShuju(); this.getShuju();
this.Loading = this.$loading({ this.Loading = this.$loading({
lock: true, lock: true,
text: "正在查询...", text: "正在查询...",
spinner: "el-icon-loading", spinner: "el-icon-loading",
...@@ -493,7 +493,7 @@ export default { ...@@ -493,7 +493,7 @@ export default {
debugger; debugger;
self.tableLoadingSelf = false; self.tableLoadingSelf = false;
self.tableLoadingOther = false; self.tableLoadingOther = false;
self.Loading.close() self.Loading.close();
}); });
}, },
}, },
...@@ -504,7 +504,7 @@ export default { ...@@ -504,7 +504,7 @@ export default {
#xszhb { #xszhb {
.top_title { .top_title {
height: 52px; height: 52px;
background: #1f212c; background: #0061f7;
padding-left: 32px; padding-left: 32px;
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -10,12 +10,18 @@ ...@@ -10,12 +10,18 @@
<div class="ajTitle">相关案件</div> <div class="ajTitle">相关案件</div>
<div :class="{ bottom: true, hidden: key !== 'related' }"></div> <div :class="{ bottom: true, hidden: key !== 'related' }"></div>
</div> </div>
<div class="subTitle" @click="cut('wdsc')">
<div class="ajTitle">我的收藏</div>
<div :class="{ bottom: true, hidden: key !== 'wdsc' }"></div>
</div>
</div> </div>
<right-content <right-content
v-if="key !== 'wdsc'"
:cxFormData="cxFormData" :cxFormData="cxFormData"
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead" :cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl" :cxUrl="cxUrl"
:skey="key"
:pageBtns="pageBtns" :pageBtns="pageBtns"
ref="rightContent" ref="rightContent"
:formType="formType" :formType="formType"
...@@ -25,12 +31,32 @@ ...@@ -25,12 +31,32 @@
:tableInfor="tableInfor" :tableInfor="tableInfor"
:name="name" :name="name"
></right-content> ></right-content>
<router-view v-if="key == 'wdsc'"></router-view>
<!-- <div class="rightContent">
<div class="Content">
<right-list
v-if="key == 'wdsc'"
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@sctjcb="sctjcb"
ref="rightList"
></right-list>
</div>
</div> -->
</div> </div>
</template> </template>
<script> <script>
import rightContent from "@c/ajbz/rgcb_wdxl/ptCxForm_components.vue"; import rightContent from "@c/ajbz/rgcb_wdxl/ptCxForm_components.vue";
import { insertCbzxx } from "@/api/cbyp.js"; import { insertCbzxx } from "@/api/cbyp.js";
import rightList from "@c/ptCxForm_components.vue";
import { insertCbxsajxx } from "@/api/cbyp.js";
import Bus from "@/utils/Bus";
import { import {
EsAsjQuery, EsAsjQuery,
getTableTitleRedis, getTableTitleRedis,
...@@ -41,6 +67,7 @@ export default { ...@@ -41,6 +67,7 @@ export default {
name: "toAddXlaj", name: "toAddXlaj",
components: { components: {
rightContent, rightContent,
rightList,
}, },
data() { data() {
return { return {
...@@ -300,7 +327,7 @@ export default { ...@@ -300,7 +327,7 @@ export default {
{ {
name: "抓获方式", name: "抓获方式",
id: "zhfsZhfsdm", id: "zhfsZhfsdm",
type: "code", type: "codeTreeDialog",
codeOptions: [], codeOptions: [],
codeTree: "CODE_ZHFS", codeTree: "CODE_ZHFS",
value: "", value: "",
...@@ -808,7 +835,6 @@ export default { ...@@ -808,7 +835,6 @@ export default {
this.haveTitle = null; this.haveTitle = null;
}, },
pageSave(form) { pageSave(form) {
debugger;
if (this.tableInfor.length <= 0 || !this.tableInfor) { if (this.tableInfor.length <= 0 || !this.tableInfor) {
this.$message.error("请添加数据后进行操作"); this.$message.error("请添加数据后进行操作");
} else { } else {
...@@ -819,16 +845,17 @@ export default { ...@@ -819,16 +845,17 @@ export default {
cbxxms: form.cbmc, cbxxms: form.cbmc,
glxxXszajbh: "", glxxXszajbh: "",
asjbhs: asjbhArr.join(","), asjbhs: asjbhArr.join(","),
flag: "xlaj",
}).then((res) => { }).then((res) => {
if (res.data.result == "1") { if (res.code == "200") {
this.$message.success("生成线索组成功"); this.$message.success("保存成功");
this.tableInfor = []; this.tableInfor = [];
this.cxFormData = { this.cxFormData = {
cbmc: "", cbmc: "",
cblx: "", cblx: "",
cbxxms: "", cbxxms: "",
}; };
} else if (res.data.result == "0") { } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
}); });
...@@ -865,10 +892,15 @@ export default { ...@@ -865,10 +892,15 @@ export default {
}, },
watch: { watch: {
key(val) { key(val) {
// debugger;
if (val == "add") { if (val == "add") {
this.$router.push("/toAddXlaj");
this.addPrps(); this.addPrps();
} else { } else if (val == "related") {
this.$router.push("/toAddXlaj");
this.relatedProps(); this.relatedProps();
} else if (val == "wdsc") {
this.$router.push("/toAddXlaj/scaj");
} }
}, },
}, },
...@@ -928,7 +960,7 @@ export default { ...@@ -928,7 +960,7 @@ export default {
.topTitle { .topTitle {
width: 100%; width: 100%;
height: 56px; height: 56px;
background: #1f212c; background: #0061f7;
display: flex; display: flex;
align-items: center; align-items: center;
span { span {
...@@ -948,7 +980,7 @@ export default { ...@@ -948,7 +980,7 @@ export default {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
opacity: 0.8; opacity: 1;
} }
.bottom { .bottom {
height: 4px; height: 4px;
......
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
<div class="contentBox"> <div class="contentBox">
<el-table <el-table
:data="messageTableData" :data="messageTableData"
stripe stripe
height="400" height="400"
style="width: 100%; margin-top: 20px" style="width: 100%; margin-top: 20px"
...@@ -175,7 +174,7 @@ ...@@ -175,7 +174,7 @@
<div class="titleBox"> <div class="titleBox">
<span>嫌疑人员</span> <span>嫌疑人员</span>
</div> </div>
<span class="zhankai" @click="zhan('boo2', boo2, $event)"> <span class="zhankai" @click="zhan('boo2', boo2, $event)">
<i class="el-icon-arrow-down" v-if="!boo2"></i> <i class="el-icon-arrow-down" v-if="!boo2"></i>
<i class="el-icon-arrow-up" v-else></i> <i class="el-icon-arrow-up" v-else></i>
{{ boo2 == true ? "收缩" : "展开" }}</span {{ boo2 == true ? "收缩" : "展开" }}</span
...@@ -183,7 +182,6 @@ ...@@ -183,7 +182,6 @@
<div class="contentBox"> <div class="contentBox">
<el-table <el-table
:data="criminalTableData" :data="criminalTableData"
stripe stripe
height="400" height="400"
style="width: 100%; margin-top: 20px" style="width: 100%; margin-top: 20px"
...@@ -255,15 +253,14 @@ ...@@ -255,15 +253,14 @@
<div class="titleBox"> <div class="titleBox">
<span>受害人员</span> <span>受害人员</span>
</div> </div>
<span class="zhankai" @click="zhan('boo3', boo3, $event)"> <span class="zhankai" @click="zhan('boo3', boo3, $event)">
<i class="el-icon-arrow-down" v-if="!boo3"></i> <i class="el-icon-arrow-down" v-if="!boo3"></i>
<i class="el-icon-arrow-up" v-else></i> <i class="el-icon-arrow-up" v-else></i>
{{ boo3 == true ? "收缩" : "展开" }}</span {{ boo3 == true ? "收缩" : "展开" }}</span
> >
<div class="contentBox"> <div class="contentBox">
<el-table <el-table
:data="victimTableData" :data="victimTableData"
stripe stripe
height="400" height="400"
style="width: 100%; margin-top: 20px" style="width: 100%; margin-top: 20px"
...@@ -359,7 +356,7 @@ export default { ...@@ -359,7 +356,7 @@ export default {
criminalTableData: [], criminalTableData: [],
victimTableData: [], victimTableData: [],
//线索组编号 //线索组编号
xlajbh: "L1500000000002021080008", xlajbh: "",
page01: 1, page01: 1,
page02: 1, page02: 1,
page03: 1, page03: 1,
...@@ -373,7 +370,7 @@ export default { ...@@ -373,7 +370,7 @@ export default {
}; };
}, },
created() { created() {
this.xlajbh = "L1500000000002021080008"; this.xlajbh = this.$route.query.xlajbh;
this.getMessage(); this.getMessage();
this.getCriminalMessage(); this.getCriminalMessage();
this.getVictimMessage(); this.getVictimMessage();
...@@ -387,7 +384,7 @@ export default { ...@@ -387,7 +384,7 @@ export default {
limit: this.rows, limit: this.rows,
}; };
queryCbzAsjGlxx(params).then((res) => { queryCbzAsjGlxx(params).then((res) => {
this.messageTableData = res.data.result; this.messageTableData = res.data.result || [];
this.totalrows01 = res.data.recordsTotal; this.totalrows01 = res.data.recordsTotal;
}); });
}, },
...@@ -408,7 +405,7 @@ export default { ...@@ -408,7 +405,7 @@ export default {
limit: this.rows, limit: this.rows,
}; };
getCbzXyry(params).then((res) => { getCbzXyry(params).then((res) => {
this.criminalTableData = res.data.result; this.criminalTableData = res.data.result || [];
this.totalrows02 = res.data.recordsTotal; this.totalrows02 = res.data.recordsTotal;
}); });
}, },
...@@ -419,7 +416,7 @@ export default { ...@@ -419,7 +416,7 @@ export default {
limit: this.rows, limit: this.rows,
}; };
getCbzBhry(params).then((res) => { getCbzBhry(params).then((res) => {
this.victimTableData = res.data.result; this.victimTableData = res.data.result || [];
this.totalrows03 = res.data.recordsTotal; this.totalrows03 = res.data.recordsTotal;
}); });
}, },
...@@ -451,33 +448,31 @@ export default { ...@@ -451,33 +448,31 @@ export default {
<style> <style>
.el-form-item { .el-form-item {
margin-bottom: 0px; margin-bottom: 0px;
} }
.el-form-item__label { .el-form-item__label {
line-height: 30px !important; line-height: 30px !important;
} }
.el-form-item__content { .el-form-item__content {
line-height: 30px !important; line-height: 30px !important;
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.el-form-item { .el-form-item {
margin-bottom: 0px; margin-bottom: 0px;
} }
.el-form-item__label { .el-form-item__label {
line-height: 30px !important; line-height: 30px !important;
} }
.el-form-item__content { .el-form-item__content {
line-height: 30px !important; line-height: 30px !important;
} }
.tobjcba { .tobjcba {
margin: 0; margin: 0;
padding: 0; padding: 0;
.title { .title {
height: 52px; height: 52px;
background: #1f212c; background: #0061f7;
padding-left: 32px; padding-left: 32px;
display: flex; display: flex;
align-items: center; align-items: center;
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-09-11 10:30:21 * @Date: 2021-09-11 10:30:21
* @LastEditTime: 2021-10-19 14:29:54 * @LastEditTime: 2021-10-20 14:39:05
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\xsjsdb\queryrwbd.vue * @FilePath: \founder_vue\src\views\xsjsdb\queryrwbd.vue
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
}); });
}, },
ajsx() { ajsx() {
this.$router.push("ajsx"); this.$router.pushToTab("/ajsx");
}, },
}, },
}; };
......
...@@ -10,12 +10,18 @@ ...@@ -10,12 +10,18 @@
<div class="ajTitle">查看线索组</div> <div class="ajTitle">查看线索组</div>
<div :class="{ bottom: true, hidden: key !== 'related' }"></div> <div :class="{ bottom: true, hidden: key !== 'related' }"></div>
</div> </div>
<div class="subTitle" @click="cut('wdsc')">
<div class="ajTitle">我的收藏</div>
<div :class="{ bottom: true, hidden: key !== 'wdsc' }"></div>
</div>
</div> </div>
<right-content <right-content
v-if="key !== 'wdsc'"
:cxFormData="cxFormData" :cxFormData="cxFormData"
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead" :cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl" :cxUrl="cxUrl"
:skey="key"
:pageBtns="pageBtns" :pageBtns="pageBtns"
ref="rightContent" ref="rightContent"
@addTableEvent="addTableEvent" @addTableEvent="addTableEvent"
...@@ -24,6 +30,8 @@ ...@@ -24,6 +30,8 @@
:tableInfor="tableInfor" :tableInfor="tableInfor"
:name="name" :name="name"
></right-content> ></right-content>
<router-view v-if="key == 'wdsc'"></router-view>
</div> </div>
</template> </template>
...@@ -335,7 +343,7 @@ export default { ...@@ -335,7 +343,7 @@ export default {
}); });
}, },
pageSave() { pageSave() {
debugger debugger;
if (this.tableInfor.length <= 0 || !this.tableInfor) { if (this.tableInfor.length <= 0 || !this.tableInfor) {
this.$message.error("请添加数据后进行操作"); this.$message.error("请添加数据后进行操作");
} else { } else {
...@@ -541,10 +549,15 @@ export default { ...@@ -541,10 +549,15 @@ export default {
created() {}, created() {},
watch: { watch: {
key(val) { key(val) {
// debugger;
if (val == "add") { if (val == "add") {
this.$router.push("/xzrgcb");
this.addPrps(); this.addPrps();
} else { } else if (val == "related") {
this.relatedProps(); this.relatedProps();
this.$router.push("/xzrgcb");
} else if (val == "wdsc") {
this.$router.push("/xzrgcb/scaj");
} }
}, },
}, },
...@@ -603,7 +616,7 @@ export default { ...@@ -603,7 +616,7 @@ export default {
.topTitle { .topTitle {
width: 100%; width: 100%;
height: 56px; height: 56px;
background: #1f212c; background: #0061f7;
display: flex; display: flex;
align-items: center; align-items: center;
span { span {
...@@ -623,7 +636,7 @@ export default { ...@@ -623,7 +636,7 @@ export default {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
opacity: 0.8; opacity: 1;
} }
.bottom { .bottom {
height: 4px; height: 4px;
......
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