diff --git a/ruoyi-sh/src/views/system/shMenu/index.vue b/ruoyi-sh/src/views/system/shMenu/index.vue index 5e3a745..3c69098 100644 --- a/ruoyi-sh/src/views/system/shMenu/index.vue +++ b/ruoyi-sh/src/views/system/shMenu/index.vue @@ -31,6 +31,7 @@ + @@ -198,6 +200,7 @@ import { import request from '@/utils/request' import dayjs from 'dayjs' +import {updateNum} from "@/views/system/shMenu2/scriptSh"; export default { name: "Record", data() { @@ -322,6 +325,22 @@ export default { } } }, + /** + * 更新排序号 + */ + updateOrderNum(row) { + if (!row.orderNum || row.orderNum < 1) { + this.$message.warning("排序号必须为正整数"); + return; + } + + // 调用更新接口(需要在scriptSh.js中实现相应的更新方法) + updateNum({id: row.id, orderNum: row.orderNum}).then(response => { + this.$modal.msgSuccess("排序号更新成功"); + }).catch(() => { + this.$modal.msgError("排序号更新失败"); + }); + }, /** 查询测评记录列表 */ getList() { this.loading = true;