|
@ -31,7 +31,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { add, edit } from '@/api/system/fileLibrary/listBrowsing' |
|
|
|
|
|
|
|
|
import { add, edit, order } from '@/api/system/fileLibrary/listBrowsing' |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -62,10 +62,11 @@ export default { |
|
|
this.loading = true |
|
|
this.loading = true |
|
|
if (this.title === '新增字段') { |
|
|
if (this.title === '新增字段') { |
|
|
add(this.formData.fields).then((res) => { |
|
|
add(this.formData.fields).then((res) => { |
|
|
this.$message({ message: '保存成功', type: 'success', offset: 8 }) |
|
|
|
|
|
|
|
|
// this.$message({ message: '保存成功', type: 'success', offset: 8 }) |
|
|
this.cuDialogVisible = false |
|
|
this.cuDialogVisible = false |
|
|
this.loading = false |
|
|
this.loading = false |
|
|
this.$emit('refresh') |
|
|
|
|
|
|
|
|
// this.$emit('refresh') |
|
|
|
|
|
this.handleSort(this.formData.fields) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
edit(this.formData.fields).then((res) => { |
|
|
edit(this.formData.fields).then((res) => { |
|
@ -79,6 +80,12 @@ export default { |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
handleSort(sortTableData) { |
|
|
|
|
|
order(sortTableData).then(() => { |
|
|
|
|
|
this.$message({ message: '保存成功', type: 'success', offset: 8 }) |
|
|
|
|
|
this.$emit('refresh') |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|