Commit fa636826 by xue_wengang

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

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