Browse Source

addEditFromApiPop

master
安虹睿 1 year ago
parent
commit
1c08900885
  1. 13
      Code/Fe/src/components/addEditFromApiPop/index.vue
  2. 1
      Code/Fe/src/components/umyTable/index.vue

13
Code/Fe/src/components/addEditFromApiPop/index.vue

@ -74,6 +74,15 @@
</el-select> </el-select>
<!-- 文本框 --> <!-- 文本框 -->
<!-- <el-input
v-else
type="textarea"
autosize
resize="none"
v-model="formData[item.prop]"
:placeholder="item.placeholder || '请输入' + item.label"
:disabled="Boolean(item.disabled)"
></el-input> -->
<el-input <el-input
v-else v-else
v-model="formData[item.prop]" v-model="formData[item.prop]"
@ -185,7 +194,9 @@ export default {
this.formItemData = JSON.parse(JSON.stringify(_dtoList)) this.formItemData = JSON.parse(JSON.stringify(_dtoList))
// //
if(this.handleType == 'edit' && this.editRowData){ if(this.handleType == 'edit' && this.editRowData){
this.formData = JSON.parse(JSON.stringify(this.editRowData))
}else{
this.formData = {}
} }
// //
this.formRules={} this.formRules={}

1
Code/Fe/src/components/umyTable/index.vue

@ -215,6 +215,7 @@
stripe stripe
:border="true" :border="true"
style="width: 100%" style="width: 100%"
height="500"
> >
<el-table-column <el-table-column
v-for="(head) in showJsonHeader" v-for="(head) in showJsonHeader"

Loading…
Cancel
Save