Commit 16b9edf3 by gao_yingdong

人力情报线索提供者,身份提取, 和删除

parent afd7d711
...@@ -35,7 +35,7 @@ export const TqRlqbxx = params => ...@@ -35,7 +35,7 @@ export const TqRlqbxx = params =>
// 根据身份证号提取人力情报 // 根据身份证号提取人力情报
export const TqRlqByZjhm = params => export const TqRlqByZjhm = params =>
postform(`${base.alyIP}/rlqb/TqRlqByZjhm`, params); post(`${base.alyIP}/rlqb/TqRlqByZjhm`, params);
//一键分析 //一键分析
export const doAnalyse = params => export const doAnalyse = params =>
......
...@@ -516,11 +516,11 @@ ...@@ -516,11 +516,11 @@
}}{{ realIndex + 1 }}:</span }}{{ realIndex + 1 }}:</span
> >
<span class="addContent"> <span class="addContent">
<!-- <i <i
:class="'zdyicon ' + item2.iconClass" :class="'zdyicon ' + item2.iconClass"
v-if="!type2" v-if="realIndex != 0"
@click="deleteObj(reakData, item2)" @click="deleteObj(reakData, item2)"
></i> --> ></i>
<el-form-item <el-form-item
v-for="item4 in item3.name" v-for="item4 in item3.name"
:label="item4.name" :label="item4.name"
...@@ -559,11 +559,14 @@ ...@@ -559,11 +559,14 @@
:disabled="item4.disabled" :disabled="item4.disabled"
@focus="item4.focus || ''" @focus="item4.focus || ''"
> >
<!-- v-if="realIndex == 0" --> <!-- v-if="realIndex == 0" -->
<template slot="append" <template slot="append"
><span ><span
@click=" @click="
messageTq(formLabelAlign[item2.id][0]) messageTq(
reakData[item4.id],
realIndex
)
" "
>提取</span >提取</span
></template ></template
...@@ -834,7 +837,10 @@ ...@@ -834,7 +837,10 @@
</div> </div>
</div> </div>
<div class="addChildBtn"> <div class="addChildBtn">
<el-button type="primary" @click="handelFrom(item2,index2)"> <el-button
type="primary"
@click="handelFrom(item2, index2)"
>
<i class="el-icon-plus"></i><span>添加</span> <i class="el-icon-plus"></i><span>添加</span>
</el-button> </el-button>
</div> </div>
...@@ -978,16 +984,9 @@ export default { ...@@ -978,16 +984,9 @@ export default {
ajDt(item) { ajDt(item) {
this.$emit("ajDt", item); this.$emit("ajDt", item);
}, },
messageTq(item) { messageTq(item, index) {
console.log(item); debugger;
var itemSend = {}; this.$emit("messageTq", item, index);
if (item.xm && item.xm != "") {
itemSend.xm = item.xm;
}
if (item.zjhm && item.zjhm != "") {
itemSend.zjhm = item.zjhm;
}
this.$emit("messageTq", itemSend);
}, },
choosePeople(item) { choosePeople(item) {
console.log(item); console.log(item);
...@@ -1593,8 +1592,8 @@ export default { ...@@ -1593,8 +1592,8 @@ export default {
return isJPG && isLt2M; return isJPG && isLt2M;
}, },
//新增表单数据 //新增表单数据
handelFrom(obj,index2) { handelFrom(obj, index2) {
debugger debugger;
console.log(index2); console.log(index2);
console.log(obj); console.log(obj);
let self = this, let self = this,
...@@ -1665,6 +1664,24 @@ export default { ...@@ -1665,6 +1664,24 @@ export default {
}); });
} }
}, },
deleteObj(obj) {
debugger;
let self = this;
self.propFormField.forEach((val) => {
val.data.forEach((f) => {
if (f.childrenAsAdd) {
f.childrenAsAdd.forEach((val2) => {
self.formLabelAlign[val2.id].forEach((val3, index) => {
if (val3 == obj) {
self.formLabelAlign[val2.id].splice(index, 1);
this.$message.success("删除成功");
}
});
});
}
});
});
},
}, },
mounted() { mounted() {
var self = this; var self = this;
...@@ -1900,7 +1917,7 @@ $-header-fontSize: 18px; ...@@ -1900,7 +1917,7 @@ $-header-fontSize: 18px;
// 表单内内容 // 表单内内容
.formContent { .formContent {
width: 1200px !important; width: 1200px !important;
margin: 0 auto; margin: 0 auto;
margin-bottom: 88px; margin-bottom: 88px;
// background: #ffffff; // background: #ffffff;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
:propTitle="title" :propTitle="title"
:pageBs="pageBs" :pageBs="pageBs"
@examine="examine" @examine="examine"
@messageTq="messageTq" @messageTq="messageTq(arguments)"
@insertMessage="insertMessage" @insertMessage="insertMessage"
@examineSave="examineSave" @examineSave="examineSave"
></form-compontent> ></form-compontent>
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
name: xstgz, name: xstgz,
}, },
], ],
iconClass: "el-icon-close", iconClass: "el-icon-delete",
}, },
], ],
}, },
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
name: ryxsgl, name: ryxsgl,
}, },
], ],
iconClass: "el-icon-close", iconClass: "el-icon-delete",
}, },
], ],
}, },
...@@ -406,17 +406,20 @@ export default { ...@@ -406,17 +406,20 @@ export default {
} }
}, },
messageTq(item) { messageTq(item) {
debugger
let self = this; let self = this;
console.log(item); // console.log(item);
// console.log(self.formField); // // console.log(self.formField);
console.log(self.formLabelAlign); // console.log(self.formLabelAlign);
if (!item || (!!item && item == "")) { // if (!item || (!!item && item == "")) {
this.$message.error("请填写身份证号码"); // this.$message.error("请填写身份证号码");
return; // return;
} else { // } else {
var params = new FormData(); // var params = new FormData();
params.append("zjhm", item); // params.append("zjhm", item);
TqRlqByZjhm(params).then((res) => { TqRlqByZjhm({
zjhm: item[0]
}).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;
...@@ -426,31 +429,33 @@ export default { ...@@ -426,31 +429,33 @@ export default {
console.log(i); console.log(i);
if (i.data && i.data.length > 0) { if (i.data && i.data.length > 0) {
i.data.forEach((j, jIndex) => { i.data.forEach((j, jIndex) => {
debugger
if (j.childrenAsAdd) { if (j.childrenAsAdd) {
j.childrenAsAdd.forEach((m, mIndex) => { j.childrenAsAdd.forEach((m, mIndex) => {
if (self.formLabelAlign[m.id][mIndex].zjhm == result.zjhm) { m.list.forEach((f) => {
console.log(123); f.name.forEach((h) => {
debugger debugger
console.log(m.id); self.$set(
console.log(result[m.id]); self.formLabelAlign[m.id][item[1]],
h.id,
self.$set( result[h.id]
self.formLabelAlign, );
m.id[mIndex], });
result || [] });
);
}
}); });
} }
}); });
console.log(
self.formField,
2222222222222222,
self.formLabelAlign
);
} }
}); });
} else { } else {
this.$message.error("提取失败"); this.$message.error("提取失败");
} }
}); });
} // }
}, },
insertMessage(boo) { insertMessage(boo) {
this.listVisiable = boo; this.listVisiable = boo;
......
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