mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
提交
This commit is contained in:
@@ -146,7 +146,7 @@
|
||||
|
||||
<script>
|
||||
import { reactive, toRefs, watch, ref } from "vue";
|
||||
import { getGrowStudentDetail } from "@/api/growthpath";
|
||||
import { getGrowStudentDetail, markComplete } from "@/api/growthpath";
|
||||
import { message } from "ant-design-vue";
|
||||
import { TASK_TYPE } from "@/utils/constGrown";
|
||||
import { checkGrowthPer } from "@/utils/utils";
|
||||
@@ -233,10 +233,15 @@ export default {
|
||||
slots: { customRender: "action" },
|
||||
},
|
||||
]);
|
||||
const formData = ref()
|
||||
const openDrawer = (row) => {
|
||||
state.seevisible = true;
|
||||
formData.value = row
|
||||
getData();
|
||||
};
|
||||
const getData = () => {
|
||||
state.loading = true;
|
||||
getGrowStudentDetail({ id: row.id })
|
||||
getGrowStudentDetail({ id: formData.value.id })
|
||||
.then((res) => {
|
||||
state.loading = false;
|
||||
state.info = res.data.data;
|
||||
@@ -250,11 +255,20 @@ export default {
|
||||
state.seevisible = false;
|
||||
};
|
||||
|
||||
const setPermissions = (row) => {
|
||||
markComplete({ id: row.id }).then((res) => {
|
||||
getData();
|
||||
message.success("操作成功");
|
||||
});
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
closeDrawer,
|
||||
openDrawer,
|
||||
setPermissions,
|
||||
columns,
|
||||
getData,
|
||||
formData,
|
||||
checkGrowthPer,
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user