|
|
@ -111,7 +111,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { getAccountList ,outAsset,addedAsset,updateBlackList,auditList} from '../../../api/index'; |
|
|
import { getAccountList ,coerceRemove,addedAsset,updateBlackList,auditList} from '../../../api/index'; |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
@ -214,7 +214,7 @@ export default { |
|
|
if (row.asset_status==3) { |
|
|
if (row.asset_status==3) { |
|
|
this.addedAsset(row.id) |
|
|
this.addedAsset(row.id) |
|
|
}else if(row.asset_status==2){ |
|
|
}else if(row.asset_status==2){ |
|
|
this.outAsset(row.id) |
|
|
this.coerceRemove(row.id) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 上架资产 |
|
|
// 上架资产 |
|
|
@ -231,13 +231,20 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
// 资产下架 |
|
|
// 资产下架 |
|
|
outAsset(id){ |
|
|
coerceRemove(id){ |
|
|
let data={id:id} |
|
|
let data={id:id} |
|
|
outAsset(data).then(res => { |
|
|
const loading = this.$loading({ |
|
|
|
|
|
lock: true, |
|
|
|
|
|
text: 'Loading', |
|
|
|
|
|
spinner: 'el-icon-loading', |
|
|
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
|
|
}); |
|
|
|
|
|
coerceRemove(data).then(res => { |
|
|
console.log(res); |
|
|
console.log(res); |
|
|
if (res.code==100) { |
|
|
if (res.code==100) { |
|
|
this.$message.success('操作成功~'); |
|
|
this.$message.success('操作成功~'); |
|
|
this.getData() |
|
|
this.getData() |
|
|
|
|
|
loading.close(); |
|
|
}else{ |
|
|
}else{ |
|
|
this.$message.error(res.msg); |
|
|
this.$message.error(res.msg); |
|
|
} |
|
|
} |
|
|
|