Commit ddcc1336 by 叶富雄

只需针对第一条数据编辑修改 updateDna

parent 4f09ad00
......@@ -15,10 +15,8 @@
<script>
import formCompontent from "@c/form.vue";
import { updateRyxx} from "@/api/dswtzxx.js";
import {
insertDna,
updateDna,
selectDnaList
} from "@/api/dswtz/dnaxx.js";
export default {
......@@ -44,22 +42,25 @@
value: "",
placeholder: "请输入",
col: "2",
prop:'checkEmpty'
},
{
name: "公民身份号码:",
id: "gmsfhm",
type: "dates",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
prop:'emptyAbleIdentity'
},
{
name: "DNA编号:",
id: "rydnabh",
type: "dates",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
prop:'checkEmpty'
},
{
......@@ -85,7 +86,8 @@
methods: {
submit(params) {
params.append('rybh',this.rybh)
insertDna(params)
params.append("xxzjbh", this.xxzjbh);
updateDna(params)
},
handleRemove(val) {
......@@ -102,9 +104,9 @@
var self = this;
let params = new FormData();
params.append("rybh", this.rybh);
selectDnaList(params).then((res) => {
var result = res.data.rows;
var result = res.data.rows[0];
this.xxzjbh = result.xxzjbh
this.result = result;
self.propFormField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) {
......
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