bug
This commit is contained in:
		| @@ -7,7 +7,7 @@ | ||||
|       <template slot="content"> | ||||
|         <ai-card title="基本信息"> | ||||
|           <template #right v-if="params.id"> | ||||
|             <span style="color:#2266FF;margin-left: 16px;cursor: pointer;font-size: 12px;" v-if="isEdit==true" @click="getDetail(),isEdit=false">取消</span> | ||||
|             <span style="color:#2266FF;margin-left: 16px;cursor: pointer;font-size: 12px;" v-if="isEdit==true" @click="getDetail(params.id),isEdit=false">取消</span> | ||||
|             <span style="color:#2266FF;margin-left: 16px;cursor: pointer;font-size: 12px;" v-if="isEdit==true" @click="confirm()">保存</span> | ||||
|           </template> | ||||
|           <template #content> | ||||
| @@ -70,7 +70,7 @@ | ||||
|       <template slot="content"> | ||||
|         <ai-card title="基本信息"> | ||||
|           <template #right> | ||||
|               <span style="color:#2266FF;cursor: pointer;font-size: 12px;" class="iconfont iconEdit" v-if="isEdit==false" @click="isEdit=true,forms=data">修改</span> | ||||
|               <span style="color:#2266FF;cursor: pointer;font-size: 12px;" class="iconfont iconEdit" v-if="isEdit==false" @click="edit">修改</span> | ||||
|             </template> | ||||
|           <template #content> | ||||
|             <ai-wrapper> | ||||
| @@ -142,6 +142,10 @@ export default { | ||||
|         isRefresh: !!isRefresh, | ||||
|       }) | ||||
|     }, | ||||
|     edit() { | ||||
|       this.isEdit=true | ||||
|       this.forms = JSON.parse(JSON.stringify(this.data)) | ||||
|     }, | ||||
|     getDetail(id) { | ||||
|       this.instance.post(`/appcredittaxinfo/queryDetailById?id=${id}`).then(res => { | ||||
|         if (res.code === 0) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user