Commit 0e1c5fe5 by xue_wengang

Merge branch 'dev_xzeq' of http://47.92.108.28/changchao/founder_vue into dev_xzeq

parents 5dc351e5 bcfb9167
...@@ -31,3 +31,7 @@ export const insertZjbzjg = params => ...@@ -31,3 +31,7 @@ export const insertZjbzjg = params =>
export const insertZwbzjg = params => export const insertZwbzjg = params =>
postform(`${base.alyIP}/zwbzhc/insertZwbzjg`, params); postform(`${base.alyIP}/zwbzhc/insertZwbzjg`, params);
export const selectZwbzjgList = params =>
postform(`${base.alyIP}/zwbzhc/selectZwbzjgList`, params);
export const selectZjbzjgList = params =>
postform(`${base.alyIP}/ZjZjbzxx/selectZjbzjgList`, params);
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<script> <script>
import formCompontent from "@c/form.vue"; import formCompontent from "@c/form.vue";
import { insertZjbzjg,selectRyxxById, updateDnabzjg} from "@/api/dswtzxx.js"; import { insertZjbzjg,selectZjbzjgList, updateDnabzjg} from "@/api/dswtzxx.js";
export default { export default {
name: "addryxx", name: "addryxx",
components: { components: {
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
for(var i in this.fileBase64) { for(var i in this.fileBase64) {
params.set(i,this.fileBase64[i]) params.set(i,this.fileBase64[i])
} }
if(this.$route.query.rybh){ if(this.$route.query.xxzjbh){
updateDnabzjg(params).then(res=>{ updateDnabzjg(params).then(res=>{
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.$router.push("bzxxZj"); this.$router.push("bzxxZj");
...@@ -200,12 +200,9 @@ ...@@ -200,12 +200,9 @@
}); });
var self = this; var self = this;
let params = new FormData(); let params = new FormData();
let params1 = new FormData(); params.append("xxzjbh", this.xxzjbh);
params.append("rybh", this.rybh); selectZjbzjgList(params).then((res) => {
params1.append("asjxgrybh", this.rybh); var result = res.data.rows[0];
selectRyxxById(params).then((res) => {
var result = res.data.rows;
this.result = result; this.result = result;
self.propFormField.forEach((fieldItem) => { self.propFormField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) { if (fieldItem.data && fieldItem.data.length > 0) {
...@@ -246,9 +243,9 @@ ...@@ -246,9 +243,9 @@
if (this.$route.query.type) { if (this.$route.query.type) {
this.type = this.$route.query.type; this.type = this.$route.query.type;
} }
if (this.$route.query.rybh) { if (this.$route.query.xxzjbh) {
this.title = "DNA比中结果"; this.title = "DNA比中结果";
this.rybh = this.$route.query.rybh; this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
} }
}, },
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<script> <script>
import formCompontent from "@c/form.vue"; import formCompontent from "@c/form.vue";
import { insertZwbzjg,selectRyxxById, updateDnabzjg} from "@/api/dswtzxx.js"; import { insertZwbzjg,selectZwbzjgList, updateDnabzjg} from "@/api/dswtzxx.js";
export default { export default {
name: "addryxx", name: "addryxx",
components: { components: {
...@@ -176,31 +176,15 @@ ...@@ -176,31 +176,15 @@
}); });
var self = this; var self = this;
let params = new FormData(); let params = new FormData();
let params1 = new FormData(); params.append("xxzjbh", this.xxzjbh);
params.append("rybh", this.rybh);
params1.append("asjxgrybh", this.rybh);
selectRyxxById(params).then((res) => { selectZwbzjgList(params).then((res) => {
var result = res.data.rows; var result = res.data.rows[0];
this.result = result; this.result = result;
self.propFormField.forEach((fieldItem) => { self.propFormField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) { if (fieldItem.data && fieldItem.data.length > 0) {
fieldItem.data.forEach((i) => { fieldItem.data.forEach((i) => {
if (i.id == "R_ZMZP_File") {
if (res.data.fjlist && res.data.fjlist.length > 0) {
console.log(9999);
let arr = res.data.fjlist.map((i) => ({
name: i.dzwjmc,
url: i.dzwjwz,
xxzjbh: i.xxzjbh,
}));
this.$set(this.formLabelAlign, i.id, arr);
}
} else if (i.id == "zljsdwdm") {
this.$set(this.formLabelAlign, i.id, result[i.id].split(","));
} else {
this.$set(this.formLabelAlign, i.id, result[i.id]); this.$set(this.formLabelAlign, i.id, result[i.id]);
}
}); });
} }
this.$forceUpdate(); this.$forceUpdate();
...@@ -219,11 +203,11 @@ ...@@ -219,11 +203,11 @@
this.fileBase64[j.type] this.fileBase64[j.type]
} }
} }
if (this.$route.query.type) { if (this.$route.query.xxzjbh) {
this.type = this.$route.query.type; this.type = this.$route.query.type;
} }
if (this.$route.query.rybh) { if (this.$route.query.xxzjbh) {
this.rybh = this.$route.query.rybh; this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
} }
}, },
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
ref="rightContent" ref="rightContent"
> >
<template #btnGroup="scope"> <template #btnGroup="scope">
<el-button @click="edit(scope.scope)" type="text">修改</el-button>
<el-button @click="dele(scope.scope)" type="text">删除</el-button> <el-button @click="dele(scope.scope)" type="text">删除</el-button>
</template> </template>
</right-content> </right-content>
...@@ -174,8 +175,8 @@ ...@@ -174,8 +175,8 @@
}, },
edit(scope) { edit(scope) {
this.$router.push({ this.$router.push({
path: "addryxx", path: "bzxxAddzj",
query: { rybh: scope.row.rybh, type: "xd" }, query: { xxzjbh: scope.row.xxzjbh },
}); });
}, },
dele(scope) { dele(scope) {
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
ref="rightContent" ref="rightContent"
> >
<template #btnGroup="scope"> <template #btnGroup="scope">
<el-button @click="edit(scope.scope)" type="text">修改</el-button>
<el-button @click="dele(scope.scope)" type="text">删除</el-button> <el-button @click="dele(scope.scope)" type="text">删除</el-button>
</template> </template>
</right-content> </right-content>
...@@ -171,13 +172,13 @@ ...@@ -171,13 +172,13 @@
add(){ add(){
this.$router.push({ this.$router.push({
path: "bzxxAddzw", path: "bzxxAddzw",
query: { rybh: this.$route.query.rybh},
}); });
}, },
edit(scope) { edit(scope) {
console.log(scope);
this.$router.push({ this.$router.push({
path: "addryxx", path: "bzxxAddzw",
query: { rybh: scope.row.rybh, type: "xd" }, query: { xxzjbh: scope.row.xxzjbh },
}); });
}, },
dele(scope) { dele(scope) {
......
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