Browse Source

feat:[模板管理][update]

luojie
luojie 3 weeks ago
parent
commit
83171d64a9
2 changed files with 3 additions and 3 deletions
  1. +1
    -2
      src/components/Template/CustomTable.vue
  2. +2
    -1
      src/components/Template/HandleFormItem.vue

+ 1
- 2
src/components/Template/CustomTable.vue View File

@ -1024,8 +1024,7 @@ export default {
this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource));
this.localDataSource[rowIndex] = { ...this.localDataSource[rowIndex], ...data };
this.localDataSource = [...this.localDataSource];
console.log(signData,"signData")
if(signData && signData.remark){
if(updateFields.length > 0){
updateFields.map((key)=>{
const ref = this.$refs[key+rowIndex];
if(ref){

+ 2
- 1
src/components/Template/HandleFormItem.vue View File

@ -1244,7 +1244,8 @@ console.log("fillll")
//
handleUpdateRecord(data, recordData) {
const baseInfo = this.getCommonRecordInfo();
if (!this.oldValue && !this.inputValue) {
//recordData
if (!this.oldValue && !this.inputValue && !recordData) {
return
}
let finallyKey = this.fieldKey;

Loading…
Cancel
Save