权限调整
This commit is contained in:
parent
c7e0c6402a
commit
8e187aad9b
7
src/components/BasicListLayout/index.vue
Normal file
7
src/components/BasicListLayout/index.vue
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<template>
|
||||||
|
<ListLayout v-bind="$attrs" v-on="$listeners" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import ListLayout from './ListLayout.vue';
|
||||||
|
</script>
|
||||||
@ -46,7 +46,6 @@
|
|||||||
import { showToast } from "@/utils/uniapp";
|
import { showToast } from "@/utils/uniapp";
|
||||||
import { cloneDeep, map } from "lodash";
|
import { cloneDeep, map } from "lodash";
|
||||||
import { fractionRuleApi } from "@/api/base/server";
|
import { fractionRuleApi } from "@/api/base/server";
|
||||||
import { evaluationSqApi, evaluationCxtjApi } from "@/api/base/evaluationApi";
|
|
||||||
import { useUserStore } from "@/store/modules/user";
|
import { useUserStore } from "@/store/modules/user";
|
||||||
|
|
||||||
const { getJs, getUser } = useUserStore();
|
const { getJs, getUser } = useUserStore();
|
||||||
@ -330,19 +329,7 @@ async function submit() {
|
|||||||
|
|
||||||
uni.showLoading({ title: "提交中..." });
|
uni.showLoading({ title: "提交中..." });
|
||||||
|
|
||||||
// 调用积分申请API
|
|
||||||
const result = await evaluationSqApi(params);
|
|
||||||
|
|
||||||
if (result && result.resultCode === 1) {
|
|
||||||
showToast({ title: "提交成功", icon: "success" });
|
|
||||||
// 返回上一页
|
|
||||||
uni.navigateBack();
|
|
||||||
} else {
|
|
||||||
showToast({
|
|
||||||
title: result?.resultMsg || "提交失败",
|
|
||||||
icon: "none"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("提交积分申请失败:", error);
|
console.error("提交积分申请失败:", error);
|
||||||
showToast({
|
showToast({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user