Commit 08b4840b by 刘玉帅

xq

parent 00da1f2a
<!--
* @Author: your name
* @Date: 2021-09-01 09:45:29
* @LastEditTime: 2021-09-08 17:07:06
* @LastEditTime: 2021-09-09 09:52:46
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\rwgl\rympfk.vue
......@@ -150,7 +150,7 @@
</el-select>
</el-form-item>
<div class="data">
<el-form-item label="活动时间" class="col">
<el-form-item label="排查管理日期" class="col">
<el-date-picker
type="datetime"
placeholder="选择日期"
......@@ -183,6 +183,8 @@
</template>
<script>
import { get, postJson } from "@/utils/http.js";
import utils from "@/utils/util.js";
export default {
data() {
return {
......@@ -200,43 +202,33 @@ export default {
cxDefaultFormThead: [
{
label: "姓名",
prop: "XM",
prop: "xm",
width: "auto",
},
{
label: "身份证号",
prop: "SFZH",
prop: "sfzh",
width: "auto",
},
{
label: "手机号码",
prop: "SJH",
width: "auto",
},
{
label: "地址",
prop: "DM",
width: "auto",
},
{
label: "备注",
prop: "BZ",
prop: "sjh",
width: "auto",
},
{
label: "归属地",
prop: "GSD",
prop: "gsd",
width: "auto",
},
],
tableData: [
{
XM: "",
SFZH: "",
SJH: "",
DM: "",
BZ: "",
GSD: "",
xm: "",
sfzh: "",
sjh: "",
gsd: "",
},
],
form: {
......@@ -299,15 +291,43 @@ export default {
}
console.log("提交");
},
getList(ryglid){
let self = this;
postJson("/xqapi/ryfkb/selectRyfkb", {ryglid:ryglid}).then(res=>{
console.log(res);
if(res.code == '200'){
let searchList = utils.deepClone(res.data)
console.log(searchList);
self.sizeForm.RYLY = searchList.ryfkb.ryly
self.sizeForm.LJRQ = searchList.ryfkb.ljrq
self.sizeForm.date1 = searchList.ryfkb.pcglrq
self.sizeForm.JKJC = searchList.ryfkb.jkjc
self.sizeForm.JCJG = searchList.ryfkb.jcjg
self.sizeForm.GLFS = searchList.ryfkb.glfs
self.sizeForm.RYLB = searchList.ryfkb.rylb
self.sizeForm.BZ = searchList.ryfkb.bz
}
})
},
},
mounted() {
console.log(this.$route.params);
if (this.$route.params.infofk) {
localStorage.setItem("Infofk", JSON.stringify(this.$route.params.infofk));
console.log(localStorage);
}
console.log(localStorage.getItem("Info"));
this.tableData[0] = JSON.parse(localStorage.getItem("Infofk"));
console.log(JSON.parse(this.$route.params.infofk));
let list = JSON.parse(this.$route.params.infofk)
this.tableData[0] = list
this.getList(list.ryid)
// if (this.$route.params.infofk) {
// localStorage.setItem("Infofk", JSON.stringify(this.$route.params.infofk));
// console.log(localStorage);
// }
// console.log(localStorage.getItem("Info"));
// this.tableData[0] = JSON.parse(localStorage.getItem("Infofk"));
},
updated() {
// if (this.$refs.data.value) {
......
<!--
* @Author: your name
* @Date: 2021-08-27 15:52:57
* @LastEditTime: 2021-09-08 18:45:44
* @LastEditTime: 2021-09-09 09:27:32
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\rymp.vue
......@@ -155,8 +155,8 @@ export default {
width: "auto",
},
{
label: "地址",
prop: "DM",
label: "手机号",
prop: "sjh",
width: "auto",
},
{
......@@ -233,7 +233,7 @@ export default {
this.xqinfo = msg[0];
this.rymplbdialogVisible = true;
} else if (msg[1] == "fk") {
this.$router.push({ name: "rympfk", params: {infofk: msg[0] }});
this.$router.push({ name: "rympfk", params: {infofk:JSON.stringify(msg[0] )}});
} else if (msg[1] == "th") {
this.dialogFormVisible = true
}
......
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