Commit 93bf10c2 authored by 李苏's avatar 李苏 💬

rowItem=>singleItem

parent 1db34564
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="整改说明" ref="clff" prop="clff"> <el-form-item label="整改说明" ref="clff" prop="clff">
<el-input type="textarea" v-model="rowItem.clff" ></el-input> <el-input type="textarea" v-model="singleItem.clff" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -31,11 +31,11 @@ ...@@ -31,11 +31,11 @@
} }
}, },
async mounted() { async mounted() {
this.rowItem=_.cloneDeep(this.app.rowItem) this.singleItem=_.cloneDeep(this.app.singleItem)
}, },
data() { data() {
return { return {
rowItem:{ singleItem:{
clff:'' clff:''
}, },
...@@ -43,10 +43,11 @@ ...@@ -43,10 +43,11 @@
methods: { methods: {
save(){ save(){
let params={ let params={
id:this.rowItem.id, id:this.singleItem.id,
clff:this.rowItem.clff, clff:this.singleItem.clff,
} }
doZg(params).then(res=>{ doZg(params).then(res=>{
if(res.success){ if(res.success){
this.$success('提交成功') this.$success('提交成功')
this.app.$refs['TablePager'].reLoad() this.app.$refs['TablePager'].reLoad()
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="复查说明" ref="fcsm" prop="fcsm"> <el-form-item label="复查说明" ref="fcsm" prop="fcsm">
<el-input type="textarea" v-model="rowItem.fcsm" ></el-input> <el-input type="textarea" v-model="singleItem.fcsm" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
} }
}, },
async mounted() { async mounted() {
this.rowItem=_.cloneDeep(this.app.rowItem) this.singleItem=_.cloneDeep(this.app.singleItem)
this.fcjg=this.rowItem.fcjg this.fcjg=this.singleItem.fcjg
console.log(this.rowItem) console.log(this.singleItem)
}, },
data() { data() {
return { return {
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
label: '不通过' label: '不通过'
}], }],
fcjg:'Y', fcjg:'Y',
rowItem:{ singleItem:{
fcsm:'' fcsm:''
}, },
...@@ -65,8 +65,8 @@ ...@@ -65,8 +65,8 @@
save(){ save(){
let params={ let params={
fcjg:this.fcjg, fcjg:this.fcjg,
fcsm:this.rowItem.fcsm, fcsm:this.singleItem.fcsm,
id:this.rowItem.id id:this.singleItem.id
} }
doFc(params).then(res=>{ doFc(params).then(res=>{
if(res.success){ if(res.success){
......
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="责任人" ref="zrr" prop="zrr"> <el-form-item label="责任人" ref="zrr" prop="zrr">
<personSelector :label="rowItem.zrrName||'暂无'" @selected='zrrSelected' ></personSelector> <personSelector :label="singleItem.zrrName||'暂无'" @selected='zrrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="复查人" ref="fcr" prop="fcr"> <el-form-item label="复查人" ref="fcr" prop="fcr">
<!-- <el-input :readonly="readonly" v-model="form.zrr" ></el-input> --> <!-- <el-input :readonly="readonly" v-model="form.zrr" ></el-input> -->
<personSelector :label="rowItem.fcrName||'暂无'" @selected='fcrSelected' ></personSelector> <personSelector :label="singleItem.fcrName||'暂无'" @selected='fcrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
} }
}, },
async mounted() { async mounted() {
this.rowItem=_.cloneDeep(this.app.rowItem) this.singleItem=_.cloneDeep(this.app.singleItem)
}, },
name: 'role', name: 'role',
data() { data() {
return { return {
rowItem:{ singleItem:{
zrr:'', zrr:'',
zrrName:'', zrrName:'',
fcr:'', fcr:'',
...@@ -53,9 +53,9 @@ ...@@ -53,9 +53,9 @@
methods: { methods: {
save(){ save(){
let params={ let params={
id:this.rowItem.id, id:this.singleItem.id,
fcr:this.rowItem.fcr, fcr:this.singleItem.fcr,
zrr:this.rowItem.zrr, zrr:this.singleItem.zrr,
} }
doFp(params).then(res=>{ doFp(params).then(res=>{
if(res.success){ if(res.success){
...@@ -67,10 +67,10 @@ save(){ ...@@ -67,10 +67,10 @@ save(){
}) })
}, },
zrrSelected(row){ zrrSelected(row){
this.rowItem.zrr=row.id this.singleItem.zrr=row.id
}, },
fcrSelected(row){ fcrSelected(row){
this.rowItem.fcr=row.id this.singleItem.fcr=row.id
} }
} }
} }
......
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