Commit 16ee8283 by 叶富雄

Merge remote-tracking branch 'origin/dev_xzeq' into dev_xzeq

parents 57740659 6312020a
...@@ -37,3 +37,8 @@ export const bkxxSp = params => ...@@ -37,3 +37,8 @@ export const bkxxSp = params =>
// 1.2.4.7 线索布控结果查询 // 1.2.4.7 线索布控结果查询
export const getTaskResult = params => export const getTaskResult = params =>
post(`${base.alyIP}/xsbk/getTaskResult`, params); post(`${base.alyIP}/xsbk/getTaskResult`, params);
// 1.2.4.7 线索布控删除
export const deleteBkxx = params =>
post(`${base.alyIP}/xsbk/deleteBkxx`, params);
\ No newline at end of file
...@@ -20,11 +20,7 @@ ...@@ -20,11 +20,7 @@
<script> <script>
import formCompontent from "@c/form.vue"; import formCompontent from "@c/form.vue";
import { import { addBkxx, updateBkxx, getBkxxByXxzjbh } from "@/api/xshb/xsbk.js";
addBkxx,
updateBkxx,
getBkxxByXxzjbh,
} from "@/api/xshb/xsbk.js";
export default { export default {
name: "adjustXsbks", name: "adjustXsbks",
components: { components: {
...@@ -41,15 +37,15 @@ export default { ...@@ -41,15 +37,15 @@ export default {
objStr: "", objStr: "",
index: 0, index: 0,
data: [ data: [
{ // {
name: "线索编号:", // name: "线索编号:",
id: "xsbh", // id: "xsbh",
type: "text", // type: "text",
value: "", // value: "",
prop: "checkEmpty", // prop: "checkEmpty",
placeholder: "请输入", // placeholder: "请输入",
col: "2", // col: "2",
}, // },
{ {
name: "布控对象类型:", name: "布控对象类型:",
id: "bkdxLxdm", id: "bkdxLxdm",
...@@ -156,7 +152,7 @@ export default { ...@@ -156,7 +152,7 @@ export default {
disabled: false, disabled: false,
}, },
], ],
xxzjbh:'',//信息主键编号 xxzjbh: "", //信息主键编号
}; };
}, },
methods: { methods: {
...@@ -177,8 +173,53 @@ export default { ...@@ -177,8 +173,53 @@ export default {
}, },
//新增保存 //新增保存
addSubmit(params, loading) { addSubmit(params, loading) {
params.append(
"glxxlx",
this.$route.query.glxxlx ? this.$route.query.glxxlx : "0001"
);
params.append(
"glxxXxzjbh",
this.$route.query.glxxXxzjbh ? this.$route.query.glxxXxzjbh : ""
);
addBkxx(params).then((res) => { addBkxx(params).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
if (res.data.flag == 1) {
this.$confirm(`${res.data.result}`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
params.append("saveFlag", "true");
addBkxx(params).then((res) => {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
this.$router.push("/xsbk");
sessionStorage.setItem("routerPath", "xsbk");
setTimeout(() => {
this.$bus.$emit("routerPath");
}, 20);
},
});
});
})
.catch(() => {
loading.close();
this.$message({
type: "info",
message: "已取消重新布控",
});
});
} else if (res.data.flag == 2) {
this.$message({
type: "error",
message: `${res.data.result}`,
});
loading.close();
} else if (res.data.flag == 0) {
this.$alert("保存成功!", "提示", { this.$alert("保存成功!", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
type: "success", type: "success",
...@@ -191,6 +232,7 @@ export default { ...@@ -191,6 +232,7 @@ export default {
}, 20); }, 20);
}, },
}); });
}
} else { } else {
loading.close(); loading.close();
} }
...@@ -282,21 +324,17 @@ export default { ...@@ -282,21 +324,17 @@ export default {
this.title = "修改线索布控信息"; this.title = "修改线索布控信息";
this.xxzjbh = this.$route.query.xxzjbh; this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
}else{ } else {
//新增时,需要回显登录人的信息 //新增时,需要回显登录人的信息
let userInfo = JSON.parse(sessionStorage.getItem("userInfo")); let userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
this.propFormField[0].data.forEach(el=>{ this.propFormField[0].data.forEach((el) => {
let value = ''; let value = "";
if(el.id == 'sqrLxdh') value = userInfo.phone if (el.id == "sqrLxdh") value = userInfo.phone;
if(el.id == 'sqrJh') value = userInfo.account if (el.id == "sqrJh") value = userInfo.account;
if(el.id == 'sqrZjhm') value = userInfo.identitycard if (el.id == "sqrZjhm") value = userInfo.identitycard;
if(el.id == 'sqrXm') value = userInfo.realname if (el.id == "sqrXm") value = userInfo.realname;
this.$set( this.$set(this.formLabelAlign, el.id, value);
this.formLabelAlign, });
el.id,
value
);
})
} }
}, },
}; };
......
...@@ -37,14 +37,14 @@ export default { ...@@ -37,14 +37,14 @@ export default {
id: 1, id: 1,
objStr: "", //对象中的对应字段 objStr: "", //对象中的对应字段
data: [ data: [
{ // {
label: "线索编号:", // label: "线索编号:",
prop: "xsbh", // prop: "xsbh",
col: "3", // col: "3",
}, // },
{ {
label: "布控对象类型:", label: "布控对象类型:",
prop: "bkdxLxdm", prop: "bkdxLxdmStr",
col: "3", col: "3",
}, },
{ {
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
@click="edit(scope.scope)" @click="edit(scope.scope)"
>修改</span >修改</span
> >
<span class="hbyp" @click="dele(scope.scope)">删除</span>
<span <span
v-if="scope.scope.row.bkzt == '01'" v-if="scope.scope.row.bkzt == '01'"
class="hbyp" class="hbyp"
...@@ -47,7 +48,12 @@ ...@@ -47,7 +48,12 @@
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import { backBkxx, bkxxSp, getTaskResult } from "@/api/xshb/xsbk.js"; import {
backBkxx,
bkxxSp,
getTaskResult,
deleteBkxx,
} from "@/api/xshb/xsbk.js";
export default { export default {
name: "xsbk", name: "xsbk",
components: { components: {
...@@ -124,8 +130,8 @@ export default { ...@@ -124,8 +130,8 @@ export default {
], ],
cxDefaultFormThead: [ cxDefaultFormThead: [
{ {
label: "线索编号", label: "信息主键编号",
prop: "xsbh", prop: "xxzjbh",
toInfor: true, toInfor: true,
width: "250", width: "250",
}, },
...@@ -244,10 +250,12 @@ export default { ...@@ -244,10 +250,12 @@ export default {
* @description 结果查询 * @description 结果查询
*/ */
toJGCX(scope) { toJGCX(scope) {
debugger;
this.$router.pushToTab({ this.$router.pushToTab({
path: "/queryXsbkResult", path: "/queryXsbkResult",
query: { query: {
xxzjbh: scope.row.xxzjbh, xxzjbh: scope.row.xxzjbh,
type: scope.row.bkdxLxdm,
}, },
}); });
}, },
...@@ -278,6 +286,33 @@ export default { ...@@ -278,6 +286,33 @@ export default {
} }
}); });
}, },
// 删除
dele(scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteBkxx({
xxzjbh: scope.row.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
}, },
watch: {}, watch: {},
}; };
......
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