|
|
@@ -44,11 +44,11 @@ export default {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
- type: {
|
|
|
+ tableId: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
},
|
|
|
- tableId: {
|
|
|
+ tableName: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
},
|
|
|
@@ -61,7 +61,8 @@ export default {
|
|
|
return {
|
|
|
dialogVisible: this.visible,
|
|
|
dialogLoading: false,
|
|
|
- toolbars: [{ key: 'cancel', label: '关闭' }]
|
|
|
+ toolbars: [{ key: 'cancel', label: '关闭' }],
|
|
|
+ type: ''
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -71,7 +72,7 @@ export default {
|
|
|
},
|
|
|
immediate: true
|
|
|
},
|
|
|
- type: {
|
|
|
+ tableId: {
|
|
|
handler: function (val, oldVal) {
|
|
|
const btn1 = [
|
|
|
{ key: 'confirm', label: '确认' },
|
|
|
@@ -80,7 +81,12 @@ export default {
|
|
|
const btn2 = [
|
|
|
{ key: 'cancel', label: '关闭' }
|
|
|
]
|
|
|
- this.toolbars = val ? btn1 : btn2
|
|
|
+ if (val) {
|
|
|
+ this.toolbars = btn1
|
|
|
+ this.type = '1'
|
|
|
+ } else {
|
|
|
+ this.toolbars = btn2
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -136,7 +142,7 @@ export default {
|
|
|
qian_ming_id_: ryjbqkDatas[0].qian_zi_tu_wen_
|
|
|
}
|
|
|
let returnParams = {
|
|
|
- tableName: this.type,
|
|
|
+ tableName: this.tableName,
|
|
|
paramWhere: [tempObj]
|
|
|
}
|
|
|
curdPost('add', JSON.stringify(returnParams)).then(() => { console.log('确认接收到发放文件') }).then(
|