Commit ebde50c1 by xue_wengang

字典修改

parent f5dae13d
......@@ -475,7 +475,7 @@ export default {
//判断是否有下级
codeResult.data.rows.forEach((realCodeItem) => {
realCodeItem.label =
realCodeItem.label + "[" + realCodeItem.id + "]";
realCodeItem.label;
if (realCodeItem.parentFlag == "true") {
realCodeItem.leaf = false;
} else {
......
......@@ -593,13 +593,13 @@
</div>
<div class="pageBtns">
<div v-for="item in pageBtns" :key="item">
<el-button
<!-- <el-button
type="primary"
icon="el-icon-plus"
v-if="item == 'add'"
@click="addTableItem"
>添加</el-button
>
> -->
<el-button
type="danger"
icon="el-icon-close"
......
......@@ -102,7 +102,7 @@ export default {
},
{
name: "是否认定为串并案",
id: "ajsfcb",
id: "cbypSfycb",
type: "radio",
value: "0",
placeholder: "",
......@@ -126,7 +126,7 @@ export default {
// },
{
name: "破案状态",
id: "paztRedio",
id: "pazt",
type: "radio",
value: "",
placeholder: "",
......@@ -161,7 +161,7 @@ export default {
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_Ajlb",
codeTree: "CODE_AJLB",
},
{
name: "简要案情",
......
......@@ -96,14 +96,14 @@ export default {
mounted() {
Bus.$on("addCbmc", (cbmcList) => {
// console.log(cbmcList)
this.selectedArr = []
this.selectedArr = [];
cbmcList.forEach((element) => {
this.selectedArr.push(element.ajmc);
});
// this.str = arr.join(',')
});
Bus.$on("reset", () => {
debugger
debugger;
this.restFlag = true;
this.createMc();
});
......@@ -115,23 +115,27 @@ export default {
if (this.cxFormData.cblx.length) {
cblx = this.cxFormData.cblx.join(",");
}
let obj = {
cbmc: this.cxFormData.cbmc,
cblx: cblx,
cbxxms: this.cxFormData.cbxxms,
glxxXszajbh: this.$route.query.xszajbh,
};
let res = await addxszglasj(obj);
console.log(res);
if (res.code == 200) {
this.$message.success("添加成功!");
if (this.cxFormData.cbmc && cblx && this.cxFormData.cbxxms) {
let obj = {
cbmc: this.cxFormData.cbmc,
cblx: cblx,
cbxxms: this.cxFormData.cbxxms,
glxxXszajbh: this.$route.query.xszajbh,
};
let res = await addxszglasj(obj);
console.log(res);
if (res.code == 200) {
this.$message.success("添加成功!");
} else {
this.$message.error("添加失败!");
}
Bus.$emit("updataTable");
this.cxFormData.cbmc = "";
this.cxFormData.cblx = "";
this.cxFormData.cbxxms = "";
} else {
this.$message.error("添加失败!");
this.$message.error("请填写串并依据或串并描述或串并类型");
}
Bus.$emit("updataTable");
this.cxFormData.cbmc = "";
this.cxFormData.cblx = "";
this.cxFormData.cbxxms = "";
},
switchTab(path) {
this.$router.push({
......@@ -143,13 +147,13 @@ export default {
});
},
createMc() {
debugger
debugger;
if (this.restFlag) {
this.$set(this.cxFormData, "cbmc", '');
this.restFlag = false
this.$set(this.cxFormData, "cbmc", "");
this.restFlag = false;
} else {
if (this.selectedArr.length >= 2) {
let str = ''
let str = "";
let arr = [];
this.selectedArr.forEach((item) => {
arr.push(item);
......
......@@ -829,7 +829,7 @@ export default {
cbxxms: "",
};
} else if (res.data.result == "0") {
this.$message.error("生成线索组失败");
this.$message.error(res.message);
}
});
}
......
......@@ -99,7 +99,7 @@ export default {
value: '',
col: '3',
codeOptions: [],
codeTree: 'CODE_CBYB_KD'
codeTree: 'CODE_CBYP_KD'
},
{
name: '串并时间',
......
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