Commit 9f46d679 by xue_wengang

Merge branch 'dev_xzeq' of http://47.92.108.28/changchao/founder_vue into dev_xzeq

parents 5fcd0838 ff90da09
...@@ -35,6 +35,8 @@ export const TqRlqbxx = params => ...@@ -35,6 +35,8 @@ export const TqRlqbxx = params =>
//一键分析 //一键分析
export const doAnalyse = params => export const doAnalyse = params =>
postform(`${base.alyIP}/rlqb/doAnalyse`, params); postform(`${base.alyIP}/rlqb/doAnalyse`, params);
//发送信息
export const insertUserMessage = params =>
postform(`${base.alyIP}/rlqb/insertUserMessage`, params);
...@@ -1669,6 +1669,16 @@ export default { ...@@ -1669,6 +1669,16 @@ export default {
} }
} }
}, },
"formLabelAlign.sffs"(val) {
var boo = false
if(val == 1) {
boo = true
this.$emit("insertMessage",boo)
}else {
boo = false
this.$emit("insertMessage",boo)
}
}
}, },
computed: {}, computed: {},
}; };
......
...@@ -363,7 +363,9 @@ ...@@ -363,7 +363,9 @@
pageBs != 'sqqxgl' && pageBs != 'sqqxgl' &&
pageBs != 'queryMyyhz' && pageBs != 'queryMyyhz' &&
pageBs != 'hpyprwSp' && pageBs != 'hpyprwSp' &&
pageBs != 'queryfzxyr' pageBs != 'queryfzxyr' &&
pageBs != 'qyeryrlqbxsfs' &&
pageBs != 'qyeryrlqbxsBJ'
" "
> >
<i class="el-icon-plus"></i> 新增 <i class="el-icon-plus"></i> 新增
...@@ -520,8 +522,11 @@ ...@@ -520,8 +522,11 @@
width="100%" width="100%"
size="small" size="small"
v-if="listMode != 2" v-if="listMode != 2"
@select="select"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@expand-change="rowExpand" @expand-change="rowExpand"
@select-all="onSelectAll"
@row-click="rowClick"
> >
<el-table-column type="expand" v-if="pageASs == 'queryZj'"> <el-table-column type="expand" v-if="pageASs == 'queryZj'">
<template slot-scope="props"> <template slot-scope="props">
...@@ -595,7 +600,8 @@ ...@@ -595,7 +600,8 @@
pageBs == 'queryZdjyhd' || pageBs == 'queryZdjyhd' ||
pageBs == 'zdxxgl' || pageBs == 'zdxxgl' ||
pageBs == 'queryZjcl' || pageBs == 'queryZjcl' ||
pageBs == 'zdryGl' pageBs == 'zdryGl' ||
pageBs == 'qyeryrlqbxsBJ'
" "
> >
</el-table-column> </el-table-column>
...@@ -959,7 +965,8 @@ ...@@ -959,7 +965,8 @@
pageBs == 'bxqjsdzczl' || pageBs == 'bxqjsdzczl' ||
pageBs == 'queryZjcl' || pageBs == 'queryZjcl' ||
pageBs == 'queryJcgz' || pageBs == 'queryJcgz' ||
pageBs == 'queryZjclLb' pageBs == 'queryZjclLb' ||
pageBs == 'qyeryrlqbxsBJ'
) )
" "
> >
...@@ -989,6 +996,9 @@ ...@@ -989,6 +996,9 @@
pageBs == 'cxyhz' || pageBs == 'cxyhz' ||
pageBs == 'queryHbyp' || pageBs == 'queryHbyp' ||
pageBs == 'hpyprwSp' || pageBs == 'hpyprwSp' ||
pageBs == 'wfqdzczl' ||
pageBs == 'qyeryrlqbxsfs' ||
pageBs == 'qyeryrlqbxsBJ' ||
pageBs == 'queryMyyhz' || pageBs == 'queryMyyhz' ||
pageBs == 'wfqdzczl' pageBs == 'wfqdzczl'
) )
...@@ -1097,6 +1107,9 @@ ...@@ -1097,6 +1107,9 @@
pageBs != 'wfzdzczl' && pageBs != 'wfzdzczl' &&
pageBs != 'queryHbyp' && pageBs != 'queryHbyp' &&
pageBs != 'hpyprwSp' && pageBs != 'hpyprwSp' &&
pageBs != 'queryfzxyr' &&
pageBs != 'qyeryrlqbxsfs' &&
pageBs != 'qyeryrlqbxsBJ' &&
pageBs != 'queryMyyhz' && pageBs != 'queryMyyhz' &&
pageBs != 'queryfzxyr' pageBs != 'queryfzxyr'
" "
...@@ -1114,6 +1127,12 @@ ...@@ -1114,6 +1127,12 @@
v-if="pageBs == 'queryRlqbxs'" v-if="pageBs == 'queryRlqbxs'"
>发送消息</span >发送消息</span
> >
<span
@click="sendMessageTo(scope)"
class="edit"
v-if="pageBs == 'qyeryrlqbxsfs'"
>发送消息</span
>
<!-- <span <!-- <span
@click="$emit('qxfp', scope)" @click="$emit('qxfp', scope)"
class="dele" class="dele"
...@@ -1615,6 +1634,8 @@ export default { ...@@ -1615,6 +1634,8 @@ export default {
zjhm: "", zjhm: "",
imageUrl: "", imageUrl: "",
imgRaw: {}, imgRaw: {},
//选中当前行
selectData: [],
}; };
}, },
methods: { methods: {
...@@ -1642,13 +1663,45 @@ export default { ...@@ -1642,13 +1663,45 @@ export default {
}; };
this.$emit("bjBack", obj); this.$emit("bjBack", obj);
}, },
select(selection, row) {
if (this.pageBs == "qyeryrlqbxsBJ") {
// 清除所有选中
this.$refs.itsmDataTable.clearSelection();
if (selection.length === 0) return;
// 将当前点击项选中
this.$refs.itsmDataTable.toggleRowSelection(row, true);
}
},
handleChange(file) { handleChange(file) {
this.imageUrl = URL.createObjectURL(file.raw); this.imageUrl = URL.createObjectURL(file.raw);
this.imgRaw = file.raw; this.imgRaw = file.raw;
}, },
handleSelectionChange(row) { handleSelectionChange(row) {
this.selectData = row;
this.$emit("selectionChange", row); this.$emit("selectionChange", row);
}, },
onSelectAll() {
if (this.pageBs == "qyeryrlqbxsBJ") {
this.$refs.itsmDataTable.clearSelection();
}
},
rowClick(row) {
if (this.pageBs == "qyeryrlqbxsBJ") {
var selectData = this.selectData;
this.$refs.itsmDataTable.clearSelection();
if (selectData.length === 1) {
selectData.forEach((item) => {
if (item === row) {
this.$refs.itsmDataTable.toggleRowSelection(row, false);
} else {
this.$refs.itsmDataTable.toggleRowSelection(row, true);
}
});
} else {
this.$refs.itsmDataTable.toggleRowSelection(row, true);
}
}
},
EditCode() { EditCode() {
var self = this; var self = this;
if (this.zdyCodeEdit.length > 0) { if (this.zdyCodeEdit.length > 0) {
...@@ -1694,6 +1747,9 @@ export default { ...@@ -1694,6 +1747,9 @@ export default {
send(scope) { send(scope) {
this.$emit("send", scope.row); this.$emit("send", scope.row);
}, },
sendMessageTo(scope) {
this.$emit("sendMessageTo", scope.row);
},
bqDetail(item, zjhm) { bqDetail(item, zjhm) {
this.bqShuju = []; this.bqShuju = [];
if (item == "团伙作案" || item == "结伙作案") { if (item == "团伙作案" || item == "结伙作案") {
......
...@@ -355,7 +355,7 @@ const jdcxsgl = [ ...@@ -355,7 +355,7 @@ const jdcxsgl = [
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
// prop: "wpNumbers", prop: "wpNumbers",
}, },
{ {
name: "警综物品编号:", name: "警综物品编号:",
...@@ -364,7 +364,7 @@ const jdcxsgl = [ ...@@ -364,7 +364,7 @@ const jdcxsgl = [
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
// prop: "wpNumbers", prop: "wpNumbers",
}, },
{ {
name: "机动车使用性质:", name: "机动车使用性质:",
......
...@@ -8,29 +8,23 @@ ...@@ -8,29 +8,23 @@
:pageBs="pageBs" :pageBs="pageBs"
@examine="examine" @examine="examine"
@messageTq="messageTq" @messageTq="messageTq"
@insertMessage="insertMessage"
> >
</form-compontent> </form-compontent>
<el-dialog <el-dialog title="提取信息" :visible.sync="dialogVisiable" width="35%">
title="提取信息" <el-table :data="resultTq" style="width: 100%">
:visible.sync="dialogVisiable"
width="35%"
>
<el-table
:data="resultTq"
style="width: 100%">
<el-table-column <el-table-column
align="center" align="center"
prop="xxzjbh" prop="xxzjbh"
label="信息主键编号" label="信息主键编号"
width="500"> width="500"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="操作" width="150">
label="操作"
width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<span <span
@click="extra(scope.row)" @click="extra(scope.row)"
style="margin-right: 16px;color:blue;cursor: pointer;" style="margin-right: 16px; color: blue; cursor: pointer"
>提取</span >提取</span
> >
</template> </template>
...@@ -38,26 +32,43 @@ ...@@ -38,26 +32,43 @@
</el-table> </el-table>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisiable = false">取 消</el-button> <el-button @click="dialogVisiable = false">取 消</el-button>
<el-button type="primary" @click="dialogVisiable = false">确 定</el-button> <el-button type="primary" @click="dialogVisiable = false"
>确 定</el-button
>
</span> </span>
</el-dialog> </el-dialog>
<right-content
v-show="listVisiable"
style="margin-top: -85px; margin-left: 20px"
:pageBs="sendMessage.pageBs"
:cxFormData="sendMessage.cxFormData"
:cxQueryField="sendMessage.cxQueryField"
:cxDefaultFormThead="sendMessage.cxDefaultFormThead"
:cxUrl="sendMessage.cxUrl"
ref="rightContent"
@selectionChange="selectionChange"
></right-content>
</div> </div>
</template> </template>
<script> <script>
import formCompontent from "@c/form.vue"; import formCompontent from "@c/form.vue";
import { kysscj, xstgz, ryxsgl, jdcxsgl, fjdcxsgl } from "@/utils/params.js"; import { kysscj, xstgz, ryxsgl, jdcxsgl, fjdcxsgl } from "@/utils/params.js";
import rightContent from "@c/ptCxForm_components.vue";
import { import {
insertKyxs, insertKyxs,
updateKyxsxx, updateKyxsxx,
getKyxsByxxzjbh, getKyxsByxxzjbh,
insertTqsp, insertTqsp,
TqRlqbxx TqRlqbxx,
} from "@/api/rlqbxs.js"; } from "@/api/rlqbxs.js";
export default { export default {
name: "addRlqbxs", name: "addRlqbxs",
components: { components: {
formCompontent, formCompontent,
rightContent,
}, },
data() { data() {
return { return {
...@@ -175,6 +186,26 @@ export default { ...@@ -175,6 +186,26 @@ export default {
}, },
], ],
}, },
{
title: "是否发送",
id: 6,
objStr: "",
index: 5,
data: [
{
name: "是否发送:",
id: "sffs",
type: "radio",
radioData: [
{ name: "是", value: "1" },
{ name: "否", value: "0" },
],
value: "0",
placeholder: "请选择",
col: "2",
},
],
},
], ],
formLabelAlign: {}, formLabelAlign: {},
xxzjbh: "", xxzjbh: "",
...@@ -208,12 +239,61 @@ export default { ...@@ -208,12 +239,61 @@ export default {
}, },
], ],
dialogVisiable: false, dialogVisiable: false,
listVisiable: false,
resultTq: [], resultTq: [],
identitycard: "",
unitcode: "",
sendMessage: {
pageBs: "qyeryrlqbxsBJ",
cxFormData: {
page: 1,
limit: 5,
username: "",
identitycard: "",
},
cxQueryField: [
{
name: "姓名",
id: "username",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "身份证号码",
id: "identitycard",
type: "text",
value: "",
placeholder: "",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "姓名",
prop: "username",
},
{
label: "身份证",
prop: "identitycard",
},
{
label: "所属单位",
prop: "unitname",
},
],
cxUrl: "/rlqb/getUserListN",
},
}; };
}, },
methods: { methods: {
submit(params) { submit(params) {
console.log(params); console.log(params);
if (this.listVisiable == true) {
params.append("kyxs.identitycard", this.identitycard);
params.append("kyxs.unitcode", this.unitcode);
}
let loading = this.$loading({ let loading = this.$loading({
lock: true, lock: true,
text: "正在保存...", text: "正在保存...",
...@@ -254,30 +334,43 @@ export default { ...@@ -254,30 +334,43 @@ export default {
}, },
messageTq(item) { messageTq(item) {
console.log(item); console.log(item);
var params = new FormData() var params = new FormData();
params.append("xm",item.xm) params.append("xm", item.xm);
params.append("zjhm",item.zjhm) params.append("zjhm", item.zjhm);
TqRlqbxx(params).then((res) => { TqRlqbxx(params).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.$message.success("提取成功") this.$message.success("提取成功");
var result = res.data.rows var result = res.data.rows;
// this.resultTq =result // this.resultTq =result
result.map((item,index) => { result.map((item, index) => {
// this.resultTq.push({ xxzjbh:item }) // this.resultTq.push({ xxzjbh:item })
this.$set(this.resultTq,index,{xxzjbh:item}) this.$set(this.resultTq, index, { xxzjbh: item });
}) });
console.log(this.resultTq); console.log(this.resultTq);
this.dialogVisiable = true this.dialogVisiable = true;
} else { } else {
loading.close(); loading.close();
this.$message.error("提取失败") this.$message.error("提取失败");
} }
}); });
}, },
insertMessage(boo) {
this.listVisiable = boo;
},
extra(item) { extra(item) {
console.log(item); console.log(item);
this.xxzjbh = item.xxzjbh this.xxzjbh = item.xxzjbh;
this.getshuju() this.getshuju();
},
// addTolist(obj) {
// console.log(obj);
// this.identitycard = obj.identitycard;
// this.unitcode = obj.unitcode;
// },
selectionChange(obj) {
console.log(obj);
this.identitycard = obj[0].identitycard;
this.unitcode = obj[0].unitcode;
}, },
getshuju() { getshuju() {
var self = this; var self = this;
......
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