Commit 74db2f5f authored by 胡占生's avatar 胡占生 🇨🇳

fix: 修复我的算法编辑功能

parent 366ef055
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
type="primary" type="primary"
plain plain
@click="handState('2')" @click="handState('2')"
v-if="!listState"
>已下载</el-button> >已下载</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
...@@ -85,6 +86,7 @@ ...@@ -85,6 +86,7 @@
type="primary" type="primary"
plain plain
@click="handState('3')" @click="handState('3')"
v-if="!listState"
>已删除</el-button> >已删除</el-button>
</el-col> </el-col>
</el-row> </el-row>
...@@ -252,11 +254,11 @@ ...@@ -252,11 +254,11 @@
function handleEnable(row){ function handleEnable(row){
const params={ const params={
algorithmStatus: row.algorithmStatus=='1'?"0":"1", algorithmStatus: row.algorithmStatus=='1'?"0":"1",
id:row.id id:row.userAlgorithmId
} }
updateAlgState(params).then((res) => { updateMyAlgState(params).then((res) => {
console.log("🚀 ~ updateAlgState ~ res:", res) console.log("🚀 ~ updateAlgState ~ res:", res)
getList() getMyList()
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment