Commit 1946ff44 by 史敦盼

架构资产添加停用功能

1 parent c1f7e25c
Showing with 39 additions and 0 deletions
......@@ -265,6 +265,14 @@
>发布</el-button
>
<el-button
icon="el-icon-remove-outline"
type="primary"
size="mini"
@click="stopItem(scope.row)"
:disabled="scope.row.state != 1"
>停用</el-button
>
<el-button
class="shanChu_btn"
icon="el-icon-delete"
size="mini"
......@@ -1501,6 +1509,37 @@ export default {
}
})
},
stopItem(row) {
this.$confirm(`是否确认停用?`, '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
const params = {
assetId: row.assetId,
state: 0,
archiType: this.archiType,
assetNumber: row.assetNumber,
archiBelongId: row.archiBelongId
}
editZiChanJiaGouTable(params).then((res) => {
if (res.code == 200) {
this.get_table()
Message({
type: 'success',
message: '停用成功!',
})
} else {
Message({
type: 'error',
message: res.msg,
})
}
})
})
.catch(() => {})
},
releaseItem(row) {
//发布
MessageBox.confirm('确定发布?', '提示', {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!