Commit fa636826 by xue_wengang

列表展示总数、民警信息拦至少两个人,嫌疑人默认男

parent 288b44cc
......@@ -283,7 +283,7 @@
:page-sizes="[10, 15, 20, 30,50]"
:page-size="pageObj.pageData.size"
background
layout="sizes,prev, pager, next,jumper"
layout="total,sizes,prev, pager, next,jumper"
:total="pageObj.total">
</el-pagination>
</div>
......
......@@ -424,6 +424,7 @@ export default {
this.tableData = res.data.rows
this.pageObj.total = res.data.total
this.downLoading = false
this.$emit('getMjData', this.tableData)
}
},
cancelBtn () {
......
......@@ -484,7 +484,7 @@ export default {
imageUrlZmcl: '',
xyrxm: '',
xyrsfzh: '',
xyrxb: '',
xyrxb: '1',
xyrhjd: '',
xyrsxzm: '',
xyrszwz: '',
......
......@@ -389,7 +389,8 @@ export default {
}
},
// 获取民警数据
getMjData (item) {
getMjData(item) {
console.log(132131,item);
this.tableDataMj = item
},
// 获取嫌疑人数据
......@@ -450,8 +451,15 @@ export default {
}
},
// 保存
addForm (formName) {
this.$refs[formName].validate(async (valid) => {
addForm(formName) {
if (this.tableDataMj && this.tableDataMj.length < 2) {
this.$alert("民警信息至少两个人", "提示", {
confirmButtonText: "确定",
type: "warning",
})
return
}
this.$refs[formName].validate(async (valid) => {
if (valid) {
this.loadingBtn = true
let params = new FormData()
......
......@@ -52,14 +52,20 @@
class="hbyp"
type="text"
:loading="loadingBack"
v-if="
scope.scope.xzzt != 0 && scope.scope.xzzt != 5
"
v-if="scope.scope.xzzt != 0 && scope.scope.xzzt != 5"
v-permission="['C1902', 'F010101']"
size="mini"
@click="bhBtn(scope.scope)"
>驳回</el-button
>
<el-button
class="hbyp"
type="text"
:loading="loadingBack"
size="mini"
@click="tiQingShenPi(scope.scope)"
>协作完成</el-button
>
</template>
</Mytable>
</div>
......@@ -218,21 +224,21 @@ export default {
},
{
isOperation: true,
type: "basic",
type: "basicSlot",
label: "操作",
width: "180",
align: "center",
fixed: "right",
sortable: false,
operation: [
{
operation: "edit",
type: "text",
label: "协作完成",
icon: "",
option: "tiQingShenPi",
color: "#1a81e1",
},
// {
// operation: "edit",
// type: "text",
// label: "协作完成",
// icon: "",
// option: "tiQingShenPi",
// color: "#1a81e1",
// },
],
},
],
......@@ -345,16 +351,14 @@ export default {
this.pageObj.pageData.page = 1;
this.getList();
},
async rowOperation(row, index, item) {
if (index == 0) {
const params = new FormData();
params.append("xxzjbh", row.xxzjbh);
params.append("xzzt", "3");
let res = await shXzqqXx(params);
if (res && res.code == 200) {
this.$message.success("已协作完成!");
this.getList();
}
async tiQingShenPi(row) {
const params = new FormData();
params.append("xxzjbh", row.xxzjbh);
params.append("xzzt", "3");
let res = await shXzqqXx(params);
if (res && res.code == 200) {
this.$message.success("已协作完成!");
this.getList();
}
},
rowBtn(row, index) {
......
......@@ -58,6 +58,13 @@
@click="bhBtn(scope.scope)"
>驳回</el-button
>
<el-button
class="hbyp"
type="text"
size="mini"
@click="toXyr(scope.scope)"
>录入抓获人信息</el-button
>
</template>
</Mytable>
</div>
......@@ -69,6 +76,7 @@
import Mytable from "@/components/Mytable.vue";
import {
selectAll, //协助查询
shXzqqXx, //审批
} from "@/api/statistical.js";
import SelectTreeDialog from "@c/treeCode_components.vue";
import { mapGetters } from "vuex";
......@@ -155,7 +163,7 @@ export default {
},
{
isOperation: true,
type: "basic",
type: "basicSlot",
label: "操作",
width: "180",
align: "center",
......@@ -257,15 +265,13 @@ export default {
this.pageObj.pageData.page = 1;
this.getList();
},
rowOperation(row, index, item) {
if (item == "zhr") {
this.$router.pushToTab({
path: "/addZhrxx",
query: {
id: row.xxzjbh,
},
});
}
toXyr(row) {
this.$router.pushToTab({
path: "/addZhrxx",
query: {
id: row.xxzjbh,
},
});
},
rowBtn(row, index) {
this.$router.pushToTab({
......
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