|
@@ -14,13 +14,13 @@ nameId:接口id
|
|
|
nameKey:接口字段
|
|
|
*/
|
|
|
export default {
|
|
|
- props: ['id','nameId','nameKey','type','disabled','data','message'],
|
|
|
+ props: ['id','nameId','nameKey','type','disabled','data','message','isNumber'],
|
|
|
data () {
|
|
|
return {
|
|
|
param: {
|
|
|
"id":this.nameId,
|
|
|
"content":{
|
|
|
- "sa_contractid": this.$route.query.id,
|
|
|
+ // "sa_contractid": this.$route.query.id,
|
|
|
[this.nameKey]:[this.id]
|
|
|
}
|
|
|
}
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async deleteRow() {
|
|
|
- this.param.content[this.nameKey] = [this.id]
|
|
|
+ this.param.content[this.nameKey] = this.isNumber ? this.id : [this.id]
|
|
|
let res = await this.$api.requested(this.param)
|
|
|
this.tool.showMessage(res,() => {
|
|
|
this.$emit('deleteSuccess',this.data ? this.data : '')
|