|
@@ -57,7 +57,7 @@
|
|
<a @click="handleDelete(record)">删除</a>
|
|
<a @click="handleDelete(record)">删除</a>
|
|
<operation-button
|
|
<operation-button
|
|
@click="handleUpLoad(record)"
|
|
@click="handleUpLoad(record)"
|
|
- >上传图片</operation-button>
|
|
|
|
|
|
+ > {{ record.sbFileList.length>0?'查看图片':'上传图片' }} </operation-button>
|
|
</span>
|
|
</span>
|
|
</a-table>
|
|
</a-table>
|
|
</a-card>
|
|
</a-card>
|
|
@@ -186,7 +186,7 @@ export default {
|
|
},
|
|
},
|
|
save () {
|
|
save () {
|
|
const { form: { validateFieldsAndScroll } } = this
|
|
const { form: { validateFieldsAndScroll } } = this
|
|
- // this.confirmLoading = true
|
|
|
|
|
|
+ this.confirmLoading = true
|
|
validateFieldsAndScroll((errors, values) => {
|
|
validateFieldsAndScroll((errors, values) => {
|
|
if (errors) {
|
|
if (errors) {
|
|
Object.values(errors).map(item => {
|
|
Object.values(errors).map(item => {
|
|
@@ -213,6 +213,7 @@ export default {
|
|
handleCancel (values) {
|
|
handleCancel (values) {
|
|
this.visible = false
|
|
this.visible = false
|
|
this.modal = {}
|
|
this.modal = {}
|
|
|
|
+ this.confirmLoading = false
|
|
this.sbInfoDTOS = []
|
|
this.sbInfoDTOS = []
|
|
this.form.resetFields()
|
|
this.form.resetFields()
|
|
this.$emit('ok', values)
|
|
this.$emit('ok', values)
|