|
@@ -71,7 +71,7 @@
|
|
<el-form-item label="机构介绍" prop="jgjs" class="contenrFlex" >
|
|
<el-form-item label="机构介绍" prop="jgjs" class="contenrFlex" >
|
|
<el-col style="width: 300px">
|
|
<el-col style="width: 300px">
|
|
<el-input v-model="form2.jgjs" :rows="12" type="textarea" />
|
|
<el-input v-model="form2.jgjs" :rows="12" type="textarea" />
|
|
- <el-input v-model="form2.id" type="text" />
|
|
|
|
|
|
+ <el-input v-model="form2.zt" type="text" />
|
|
</el-col>
|
|
</el-col>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
@@ -1453,6 +1453,7 @@ export default {
|
|
id:null,
|
|
id:null,
|
|
jgid:null,
|
|
jgid:null,
|
|
jgjs:null,
|
|
jgjs:null,
|
|
|
|
+ zt:null,
|
|
}
|
|
}
|
|
this.form = {
|
|
this.form = {
|
|
id: null,
|
|
id: null,
|
|
@@ -1560,7 +1561,10 @@ export default {
|
|
this.loading = true
|
|
this.loading = true
|
|
getJgjs(id).then(response => {
|
|
getJgjs(id).then(response => {
|
|
if(response.data!=null) {
|
|
if(response.data!=null) {
|
|
- this.form2 = response.data
|
|
|
|
|
|
+ this.form2 = response.data;
|
|
|
|
+ this.form2.zt="1";
|
|
|
|
+ }else{
|
|
|
|
+ this.form2.zt="0";
|
|
}
|
|
}
|
|
})
|
|
})
|
|
getJcxx(id).then(response => {
|
|
getJcxx(id).then(response => {
|
|
@@ -1632,17 +1636,17 @@ export default {
|
|
}
|
|
}
|
|
console.log(pamar, 'pamar')
|
|
console.log(pamar, 'pamar')
|
|
|
|
|
|
- if(this.form2.id!=null){
|
|
|
|
- updateJgjs(this.form2);
|
|
|
|
|
|
+ if(this.form2.zt!="0"){
|
|
|
|
+ delJgjs(this.form2.jgid).then(response =>{
|
|
|
|
+ this.form2.jgid=this.form.id;
|
|
|
|
+ addJgjs(this.form2);
|
|
|
|
+ this.form2.zt="1";
|
|
|
|
+ });
|
|
|
|
+ // updateJgjs(this.form2);
|
|
}else{
|
|
}else{
|
|
this.form2.jgid=this.form.id;
|
|
this.form2.jgid=this.form.id;
|
|
addJgjs(this.form2);
|
|
addJgjs(this.form2);
|
|
- getJgjs(this.form.id).then(response => {
|
|
|
|
- alert("222");
|
|
|
|
- if(response.data!=null) {
|
|
|
|
- this.form2 = response.data;
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this.form2.zt="1";
|
|
}
|
|
}
|
|
|
|
|
|
if (this.form.id != null) {
|
|
if (this.form.id != null) {
|