feat:去掉授权

This commit is contained in:
lixg
2022-12-11 16:44:53 +08:00
parent fd1b80f28a
commit 4014391139
4 changed files with 755 additions and 700 deletions

View File

@@ -812,6 +812,7 @@
handleEdit(record, String(record.courseform)); handleEdit(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
编辑 编辑
</a> </a>
@@ -821,10 +822,12 @@
handleCopy(record, String(record.courseform)); handleCopy(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
复制 复制
</a> </a>
<a-dropdown> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item <a-menu-item
@@ -879,13 +882,14 @@
授权 授权
<down-outlined /> <down-outlined />
</a> </a>
</a-dropdown> </a-dropdown> -->
<a <a
@click=" @click="
() => { () => {
handleDelete(record, String(record.courseform)); handleDelete(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
删除 删除
</a> </a>
@@ -911,6 +915,7 @@
handleRejectExit(record, String(record.courseform)); handleRejectExit(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
撤回 撤回
</a> </a>
@@ -920,10 +925,12 @@
handleCopy(record, String(record.courseform)); handleCopy(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
复制 复制
</a> </a>
<a-dropdown> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item <a-menu-item
@@ -978,7 +985,7 @@
授权 授权
<down-outlined /> <down-outlined />
</a> </a>
</a-dropdown> </a-dropdown> -->
</span> </span>
</template> </template>
<template <template
@@ -1002,6 +1009,7 @@
handleStart(record, String(record.courseform)); handleStart(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
开课 开课
</a> </a>
@@ -1011,6 +1019,7 @@
handleLook(record, String(record.courseform)); handleLook(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
查看 查看
</a> </a>
@@ -1030,6 +1039,7 @@
handleGuan22(record); handleGuan22(record);
} }
" "
style="display: inline-block; margin-left: 20px"
> >
管理 管理
</a> </a>
@@ -1039,10 +1049,12 @@
handleCopy(record, String(record.courseform)); handleCopy(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
复制 复制
</a> </a>
<a-dropdown> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item <a-menu-item
@@ -1097,7 +1109,7 @@
授权 授权
<down-outlined /> <down-outlined />
</a> </a>
</a-dropdown> </a-dropdown> -->
<span> <span>
<a <a
@click=" @click="
@@ -1105,6 +1117,7 @@
handleStop(record, String(record.courseform)); handleStop(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
停用 停用
</a> </a>
@@ -1132,6 +1145,7 @@
handleStart(record, String(record.courseform)); handleStart(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
开课 开课
</a> </a>
@@ -1141,6 +1155,7 @@
handleEdit(record, String(record.courseform)); handleEdit(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
编辑 编辑
</a> </a>
@@ -1160,6 +1175,7 @@
handleGuan22(record); handleGuan22(record);
} }
" "
style="display: inline-block; margin-left: 20px"
> >
管理 管理
</a> </a>
@@ -1169,10 +1185,12 @@
handleCopy(record, String(record.courseform)); handleCopy(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
复制 复制
</a> </a>
<a-dropdown> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item <a-menu-item
@@ -1227,13 +1245,14 @@
授权 授权
<down-outlined /> <down-outlined />
</a> </a>
</a-dropdown> </a-dropdown> -->
<a <a
@click=" @click="
() => { () => {
handleOpen(record, String(record.courseform)); handleOpen(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
启用 启用
</a> </a>
@@ -1243,6 +1262,7 @@
handleDelete(record, String(record.courseform)); handleDelete(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
删除 删除
</a> </a>
@@ -1269,6 +1289,7 @@
handleEdit(record, String(record.courseform)); handleEdit(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
编辑 编辑
</a> </a>
@@ -1278,10 +1299,12 @@
handleCopy(record, String(record.courseform)); handleCopy(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
复制 复制
</a> </a>
<a-dropdown> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item <a-menu-item
@@ -1336,13 +1359,14 @@
授权 授权
<down-outlined /> <down-outlined />
</a> </a>
</a-dropdown> </a-dropdown> -->
<a <a
@click=" @click="
() => { () => {
handleDelete(record, String(record.courseform)); handleDelete(record, String(record.courseform));
} }
" "
style="display: inline-block; margin-left: 20px"
> >
删除 删除
</a> </a>
@@ -2992,7 +3016,7 @@ const columns1 = [
}, },
{ {
title: "操作", title: "操作",
width: 300, width: 315,
className: "h", className: "h",
dataIndex: "operation", dataIndex: "operation",
key: "operation", key: "operation",

View File

@@ -1204,7 +1204,8 @@
> >
复制 复制
</a> </a>
<a-dropdown> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item <a-menu-item
@@ -1259,7 +1260,7 @@
授权 授权
<down-outlined /> <down-outlined />
</a> </a>
</a-dropdown> </a-dropdown> -->
<a <a
@click=" @click="
() => { () => {
@@ -1302,7 +1303,8 @@
> >
复制 复制
</a> </a>
<a-dropdown> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item <a-menu-item
@@ -1357,7 +1359,7 @@
授权 授权
<down-outlined /> <down-outlined />
</a> </a>
</a-dropdown> </a-dropdown> -->
</span> </span>
</template> </template>
<template <template
@@ -1420,7 +1422,8 @@
> >
复制 复制
</a> </a>
<a-dropdown> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item <a-menu-item
@@ -1475,7 +1478,7 @@
授权 授权
<down-outlined /> <down-outlined />
</a> </a>
</a-dropdown> </a-dropdown> -->
<span> <span>
<a <a
@click=" @click="
@@ -1549,7 +1552,8 @@
> >
复制 复制
</a> </a>
<a-dropdown> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item <a-menu-item
@@ -1604,7 +1608,7 @@
授权 授权
<down-outlined /> <down-outlined />
</a> </a>
</a-dropdown> </a-dropdown> -->
<a <a
@click=" @click="
() => { () => {
@@ -1657,7 +1661,8 @@
> >
复制 复制
</a> </a>
<a-dropdown> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-dropdown>
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item <a-menu-item
@@ -1712,7 +1717,7 @@
授权 授权
<down-outlined /> <down-outlined />
</a> </a>
</a-dropdown> </a-dropdown> -->
<a <a
@click=" @click="
() => { () => {

View File

@@ -74,15 +74,15 @@
<div class="datanull" v-if="tableDataTotal === 0"> <div class="datanull" v-if="tableDataTotal === 0">
<div class="nodata_box"> <div class="nodata_box">
<div class="left"> <div class="left">
<img src="../../assets/images/taskpage/left1.png"/> <img src="../../assets/images/taskpage/left1.png" />
</div> </div>
<div class="center"> <div class="center">
<img src="../../assets/images/leveladd/picture.png"/> <img src="../../assets/images/leveladd/picture.png" />
</div> </div>
<div class="text1">无数据</div> <div class="text1">无数据</div>
<div class="text2">请添加路径</div> <div class="text2">请添加路径</div>
<div class="right"> <div class="right">
<img src="../../assets/images/leveladd/right.png"/> <img src="../../assets/images/leveladd/right.png" />
</div> </div>
</div> </div>
</div> </div>
@@ -132,7 +132,7 @@
> >
<div class="out"> <div class="out">
<div class="top"> <div class="top">
<img class="topimg" src="../../assets/images/courseManage/add1.png"/> <img class="topimg" src="../../assets/images/courseManage/add1.png" />
<div class="topc">创建路径</div> <div class="topc">创建路径</div>
<div @click="handleOut" style="margin-left: 500px; cursor: pointer"> <div @click="handleOut" style="margin-left: 500px; cursor: pointer">
<img <img
@@ -158,8 +158,14 @@
<!-- placeholder="请输入学习路径名称"--> <!-- placeholder="请输入学习路径名称"-->
<!-- />--> <!-- />-->
<!-- <div class="showcount">{{ pathName.length }}/20</div>--> <!-- <div class="showcount">{{ pathName.length }}/20</div>-->
<NameInput placeholder="请输入路径名称" v-model:value="pathName" v-model:validate="validate" <NameInput
:maxlength="20" show-count :type="3"></NameInput> placeholder="请输入路径名称"
v-model:value="pathName"
v-model:validate="validate"
:maxlength="20"
show-count
:type="3"
></NameInput>
</div> </div>
</div> </div>
<div class="name" style="margin-left: 27px"> <div class="name" style="margin-left: 27px">
@@ -217,14 +223,14 @@
v-if="imgData.length > 5" v-if="imgData.length > 5"
class="learnBgItem learnBgMore" class="learnBgItem learnBgMore"
> >
查看更多 <img src="../../assets/images/projectadd/go.png"/> 查看更多 <img src="../../assets/images/projectadd/go.png" />
</div> </div>
</div> </div>
</div> </div>
<div class="info"> <div class="info">
<div class="inname">路径说明</div> <div class="inname">路径说明</div>
<div class="in"> <div class="in">
<a-textarea v-model:value="pathIntro" maxlength="150"/> <a-textarea v-model:value="pathIntro" maxlength="150" />
<div class="showcount">{{ pathIntro.length }}/150</div> <div class="showcount">{{ pathIntro.length }}/150</div>
</div> </div>
</div> </div>
@@ -237,7 +243,7 @@
class="aeLoading" class="aeLoading"
:style="{ display: lpLoading ? 'flex' : 'none' }" :style="{ display: lpLoading ? 'flex' : 'none' }"
> >
<a-spin :spinning="lpLoading" tip="添加中..."/> <a-spin :spinning="lpLoading" tip="添加中..." />
</div> </div>
</div> </div>
</div> </div>
@@ -253,7 +259,7 @@
> >
<div class="out"> <div class="out">
<div class="top"> <div class="top">
<img class="topimg" src="../../assets/images/courseManage/add1.png"/> <img class="topimg" src="../../assets/images/courseManage/add1.png" />
<div class="topc">编辑路径</div> <div class="topc">编辑路径</div>
<div @click="handleOut1" style="margin-left: 500px; cursor: pointer"> <div @click="handleOut1" style="margin-left: 500px; cursor: pointer">
<img <img
@@ -279,8 +285,15 @@
<!-- placeholder="请输入学习路径名称"--> <!-- placeholder="请输入学习路径名称"-->
<!-- />--> <!-- />-->
<!-- <div class="showcount">{{ pathName.length }}/20</div>--> <!-- <div class="showcount">{{ pathName.length }}/20</div>-->
<NameInput placeholder="请输入路径名称" v-model:value="pathName" v-model:validate="validate" <NameInput
:maxlength="20" show-count :type="3" :id="editPathId"></NameInput> placeholder="请输入路径名称"
v-model:value="pathName"
v-model:validate="validate"
:maxlength="20"
show-count
:type="3"
:id="editPathId"
></NameInput>
</div> </div>
</div> </div>
<div class="name" style="margin-left: 27px"> <div class="name" style="margin-left: 27px">
@@ -340,14 +353,14 @@
v-if="imgData.length > 5" v-if="imgData.length > 5"
class="learnBgItem learnBgMore" class="learnBgItem learnBgMore"
> >
查看更多 <img src="../../assets/images/projectadd/go.png"/> 查看更多 <img src="../../assets/images/projectadd/go.png" />
</div> </div>
</div> </div>
</div> </div>
<div class="info"> <div class="info">
<div class="inname">路径说明</div> <div class="inname">路径说明</div>
<div class="in"> <div class="in">
<a-textarea v-model:value="pathIntro" maxlength="150"/> <a-textarea v-model:value="pathIntro" maxlength="150" />
<div class="showcount">{{ pathIntro.length }}/150</div> <div class="showcount">{{ pathIntro.length }}/150</div>
</div> </div>
</div> </div>
@@ -432,7 +445,7 @@
</div> </div>
<!-- 加载动画 --> <!-- 加载动画 -->
<div class="aeLoading" :style="{ display: pubLoading ? 'flex' : 'none' }"> <div class="aeLoading" :style="{ display: pubLoading ? 'flex' : 'none' }">
<a-spin :spinning="pubLoading"/> <a-spin :spinning="pubLoading" />
</div> </div>
</a-modal> </a-modal>
<!-- 复制路径弹窗 --> <!-- 复制路径弹窗 -->
@@ -674,8 +687,8 @@
</div> </div>
</template> </template>
<script> <script>
import {reactive, toRefs, onMounted, watch, computed} from "vue"; import { reactive, toRefs, onMounted, watch, computed } from "vue";
import {useRouter} from "vue-router"; import { useRouter } from "vue-router";
// import OwnerShip from "../../components/drawers/Ownership"; // import OwnerShip from "../../components/drawers/Ownership";
// import PowerList from "../../components/drawers/PowerList"; // import PowerList from "../../components/drawers/PowerList";
// import QueryRight from "../../components/drawers/QueryRight"; // import QueryRight from "../../components/drawers/QueryRight";
@@ -684,14 +697,14 @@ import ProjPowerList from "../../components/drawers/ProjPowerList";
import ProjCheckShip from "../../components/drawers/ProjCheckPower"; import ProjCheckShip from "../../components/drawers/ProjCheckPower";
// import ManageRight from "../../components/drawers/ManageRight"; // import ManageRight from "../../components/drawers/ManageRight";
import * as api from "../../api/index1"; import * as api from "../../api/index1";
import {message} from "ant-design-vue"; import { message } from "ant-design-vue";
import { import {
commonData, commonData,
changeOwnership, changeOwnership,
// setCookie // setCookie
} from "../../api/method"; } from "../../api/method";
import {storage} from "../../api/storage"; import { storage } from "../../api/storage";
import {useStore} from "vuex"; import { useStore } from "vuex";
import OrgClass from "@/components/project/OrgClass"; import OrgClass from "@/components/project/OrgClass";
import NameInput from "@/components/project/NameInput"; import NameInput from "@/components/project/NameInput";
@@ -843,7 +856,7 @@ export default {
console.log("e", e, a); console.log("e", e, a);
}; };
const handleOut = () => { const handleOut = () => {
console.log(store.state) console.log(store.state);
// console.log("打开创建路径弹窗"); // console.log("打开创建路径弹窗");
state.pathName = ""; state.pathName = "";
state.pathBg = ""; state.pathBg = "";
@@ -1162,10 +1175,10 @@ export default {
className: "h", className: "h",
dataIndex: "opacation", dataIndex: "opacation",
key: "opacation", key: "opacation",
width:"20%", width: "20%",
align: "center", align: "center",
fixed: "right", fixed: "right",
scopedSlots: {customRender: "action"}, //引入的插槽 scopedSlots: { customRender: "action" }, //引入的插槽
customRender: (text) => { customRender: (text) => {
// console.log(text); // console.log(text);
return ( return (
@@ -1245,7 +1258,9 @@ export default {
> >
管理 管理
</div> </div>
<a-select {/**
// <!-- 2022-12-10注释 后面放开 -->
<a-select
style="width: 50px;margin-top:2px;margin-left:25px" style="width: 50px;margin-top:2px;margin-left:25px"
value="授权" value="授权"
dropdownClassName="tabledropdown" dropdownClassName="tabledropdown"
@@ -1287,6 +1302,7 @@ export default {
</div> </div>
</a-select-option> </a-select-option>
</a-select> </a-select>
*/}
</div> </div>
<div class="tableSelect"> <div class="tableSelect">
{text.record.state === "草稿" ? ( {text.record.state === "草稿" ? (
@@ -1469,7 +1485,7 @@ export default {
if (!state.validate) { if (!state.validate) {
message.destroy(); message.destroy();
message.warning("路径图名称重复"); message.warning("路径图名称重复");
return return;
} }
state.lpLoading = true; state.lpLoading = true;
let obj = { let obj = {
@@ -1511,7 +1527,7 @@ export default {
}); });
//添加归属权 [id: '966735050643083264', name: '丁舟航'] //添加归属权 [id: '966735050643083264', name: '丁舟航']
let selectPeopleArr = [ let selectPeopleArr = [
{id: res.data.data.createId, name: res.data.data.createName}, { id: res.data.data.createId, name: res.data.data.createName },
]; ];
changeOwnership( changeOwnership(
"learnPath", "learnPath",

View File

@@ -179,7 +179,14 @@
</div> </div>
<div class="inname">项目名称:</div> <div class="inname">项目名称:</div>
<div class="in"> <div class="in">
<NameInput placeholder="请输入项目名称" v-model:value="projectInfo.name" v-model:validate="projectInfo.validate" :maxlength="30" show-count :id="projectInfo.projectId"></NameInput> <NameInput
placeholder="请输入项目名称"
v-model:value="projectInfo.name"
v-model:validate="projectInfo.validate"
:maxlength="30"
show-count
:id="projectInfo.projectId"
></NameInput>
</div> </div>
</div> </div>
<div class="name"> <div class="name">
@@ -685,34 +692,34 @@
</div> </div>
</a-modal> </a-modal>
<!-- 创建项目提示框 --> <!-- 创建项目提示框 -->
<!-- <a-modal--> <!-- <a-modal-->
<!-- v-model:visible="reminderModal"--> <!-- v-model:visible="reminderModal"-->
<!-- :footer="null"--> <!-- :footer="null"-->
<!-- :closable="closeBack"--> <!-- :closable="closeBack"-->
<!-- wrapClassName="CopyModal"--> <!-- wrapClassName="CopyModal"-->
<!-- centered="true"--> <!-- centered="true"-->
<!-- >--> <!-- >-->
<!-- <div class="delete">--> <!-- <div class="delete">-->
<!-- <div class="del_header"></div>--> <!-- <div class="del_header"></div>-->
<!-- <div class="del_main">--> <!-- <div class="del_main">-->
<!-- <div class="header">--> <!-- <div class="header">-->
<!-- <div class="icon"></div>--> <!-- <div class="icon"></div>-->
<!-- <span>温馨提示</span>--> <!-- <span>温馨提示</span>-->
<!-- <div class="close_exit" @click="closeReminderModal"></div>--> <!-- <div class="close_exit" @click="closeReminderModal"></div>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="body">--> <!-- <div class="body">-->
<!-- <div style="margin-left: 60px; margin-right: 60px">--> <!-- <div style="margin-left: 60px; margin-right: 60px">-->
<!-- 请您根据自身需求选择对应项目类别多层项目与单层项目操作不同层级不同--> <!-- 请您根据自身需求选择对应项目类别多层项目与单层项目操作不同层级不同-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="del_btnbox">--> <!-- <div class="del_btnbox">-->
<!-- <div class="del_btn btn2" @click="okReminderModal">--> <!-- <div class="del_btn btn2" @click="okReminderModal">-->
<!-- <div class="btnText">好的</div>--> <!-- <div class="btnText">好的</div>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- </a-modal>--> <!-- </a-modal>-->
<!-- 项目提交审核弹窗 --> <!-- 项目提交审核弹窗 -->
<a-modal <a-modal
v-model:visible="reviewModal" v-model:visible="reviewModal"
@@ -963,7 +970,7 @@ export default {
} }
if (!state.projectInfo.validate) { if (!state.projectInfo.validate) {
message.destroy(); message.destroy();
message.warning('项目名称重复,请修改名称!'); message.warning("项目名称重复,请修改名称!");
return; return;
} }
api.createProject(state.projectInfo).then((res) => { api.createProject(state.projectInfo).then((res) => {
@@ -1489,6 +1496,8 @@ export default {
) : ( ) : (
"" ""
)} )}
{/**
//<!-- 2022-12-10注释 后面放开 -->
<div className="tableSelect"> <div className="tableSelect">
<a-select <a-select
style="width: 50px" style="width: 50px"
@@ -1536,6 +1545,7 @@ export default {
</a-select-option> </a-select-option>
</a-select> </a-select>
</div> </div>
*/}
{value.record.type === 1 ? ( {value.record.type === 1 ? (
<span <span
className="operation3" className="operation3"