优化基地区级审核

This commit is contained in:
sk1551 2020-08-24 10:58:09 +08:00
parent 14e206c9ad
commit 99ea751b71
2 changed files with 14 additions and 5 deletions

View File

@ -254,6 +254,7 @@ export default {
name: "Jdcx", name: "Jdcx",
data() { data() {
return { return {
// //
loading: true, loading: true,
// //
@ -466,7 +467,7 @@ export default {
jdxshr: null, jdxshr: null,
jdxshzt: null, jdxshzt: null,
sbly: null, sbly: null,
qjshr: null, qjshr: 2,
qjshzt: null, qjshzt: null,
qjshyj: null, qjshyj: null,
jdpx: null, jdpx: null,
@ -511,7 +512,6 @@ export default {
const id = row.id || this.ids; const id = row.id || this.ids;
getJdcx(id).then((response) => { getJdcx(id).then((response) => {
this.form = response.data; this.form = response.data;
console.log(this.form);
this.open = true; this.open = true;
this.title = "修改基地区级审核"; this.title = "修改基地区级审核";
}); });
@ -521,6 +521,11 @@ export default {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if (this.form.id != null ) { if (this.form.id != null ) {
if (this.form.qjshzt == "0") {
this.form.dqzt = "8";
} else if (this.form.qjshzt == "1") {
this.form.dqzt = "9";
}
updateJdcx(this.form).then((response) => { updateJdcx(this.form).then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("修改成功"); this.msgSuccess("修改成功");
@ -529,6 +534,11 @@ export default {
} }
}); });
} else { } else {
if (this.form.qjshzt == "0") {
this.form.dqzt = "8";
} else if (this.form.qjshzt == "1") {
this.form.dqzt = "9";
}
addJdcx(this.form).then((response) => { addJdcx(this.form).then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("新增成功"); this.msgSuccess("新增成功");

View File

@ -261,7 +261,7 @@ export default {
methods: { methods: {
isShow(row) { isShow(row) {
console.log(row.dqzt); console.log(row.dqzt);
if (row.dqzt == "2" || row.dqzt == "9") { if (row.dqzt == "2" || row.dqzt == "9" || row.dqzt == "8") {
return false; return false;
} else { } else {
return true; return true;
@ -381,7 +381,6 @@ export default {
this.title = "基地校初选"; this.title = "基地校初选";
listJxjsjbxx(null).then((response) => { listJxjsjbxx(null).then((response) => {
this.jss = response.rows; this.jss = response.rows;
console.log(this.jss + '-------------');
}); });
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */