mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 14:26:45 +08:00
Merge branch 'master' of http://gitlab.dongwu-inc.com:10080/BOE/fe-manage
This commit is contained in:
@@ -458,7 +458,7 @@
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 14px">内容分类</span>
|
||||
<span style="margin-right: 14px">课程分类</span>
|
||||
</div>
|
||||
<div class="item_inp">
|
||||
<div class="select i6_input">
|
||||
@@ -2117,6 +2117,13 @@
|
||||
<!-- 添加授权侧弹窗 -->
|
||||
<corpowerlist v-model:corpowerlistVisible="corpowerlistvisible" />
|
||||
<!-- 添加授权侧弹窗 -->
|
||||
<!-- 添加查看权侧弹窗 -->
|
||||
<course-view v-model:courseviewvisible="courseviewvisible" />
|
||||
<!-- 添加查看权侧弹窗 -->
|
||||
<!-- 添加归属权侧弹窗 -->
|
||||
<course-owner v-model:courseownervisible="courseownervisible" />
|
||||
<!-- 添加归属权侧弹窗 -->
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -2132,6 +2139,8 @@ import {
|
||||
import { message } from "ant-design-vue";
|
||||
import OwnPower from "../../components/drawers/OwnPower.vue";
|
||||
import Corpowerlist from "../../components/drawers/CorPowerlist.vue";
|
||||
import CourseView from "../../components/drawers/CourseView.vue"
|
||||
import CourseOwner from "../../components/drawers/CourseOwner.vue"
|
||||
import {
|
||||
list,
|
||||
edit,
|
||||
@@ -2176,7 +2185,7 @@ const columns1 = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "内容分类",
|
||||
title: "课程分类",
|
||||
width: 130,
|
||||
dataIndex: "content",
|
||||
key: "1",
|
||||
@@ -2600,6 +2609,8 @@ export default defineComponent({
|
||||
Corpowerlist,
|
||||
Editor,
|
||||
Toolbar,
|
||||
CourseView,
|
||||
CourseOwner,
|
||||
},
|
||||
setup() {
|
||||
const state = reactive({
|
||||
@@ -2995,7 +3006,8 @@ export default defineComponent({
|
||||
//抽屉状态
|
||||
ownpowervisible: false,
|
||||
corpowerlistvisible: false,
|
||||
|
||||
courseviewvisible:false,
|
||||
courseownervisible:false,
|
||||
offcourseId: null,
|
||||
projectName: "",
|
||||
name: "",
|
||||
@@ -3202,25 +3214,402 @@ export default defineComponent({
|
||||
|
||||
// 渲染列表1操作
|
||||
const getTableDate = async () => {
|
||||
// let datas = state.tableData1;
|
||||
let startTime = "";
|
||||
let endTime = "";
|
||||
if (state.projectTime) {
|
||||
startTime = parseInt(
|
||||
new Date(state.projectTime[0].$d).getTime() / 1000
|
||||
);
|
||||
endTime = parseInt(new Date(state.projectTime[1].$d).getTime() / 1000);
|
||||
}
|
||||
let res = await list({
|
||||
pageNo: state.currentPage1,
|
||||
pageSize: state.pageSize1,
|
||||
auditStatus: state.auditStatus,
|
||||
categoryId: state.categoryId,
|
||||
projectName: state.projectName,
|
||||
name: state.name,
|
||||
createName: state.createName,
|
||||
endTime: endTime,
|
||||
beginTime: startTime,
|
||||
let datas = state.tableData1;
|
||||
// // let startTime = "";
|
||||
// // let endTime = "";
|
||||
// if (state.projectTime) {
|
||||
// // startTime = toDate(
|
||||
// // new Date(state.projectTime[0].$d).getTime() / 1000,
|
||||
// // "Y-M-D"
|
||||
// // );
|
||||
// // endTime = toDate(
|
||||
// // new Date(state.projectTime[1].$d).getTime() / 1000,
|
||||
// // "Y-M-D"
|
||||
// // );
|
||||
// }
|
||||
// let res = await list({
|
||||
// pageNo: state.currentPage1,
|
||||
// pageSize: state.pageSize1,
|
||||
// auditStatus: state.auditStatus,
|
||||
// categoryId: state.categoryId,
|
||||
// projectName: state.projectName,
|
||||
// name: state.name,
|
||||
// createName: state.createName,
|
||||
// // endTime: endTime,
|
||||
// // beginTime: startTime,
|
||||
// });
|
||||
// const { rows, total } = res.data.data;
|
||||
// state.tableDataTotal1 = total;
|
||||
// const datas = traverseArr(rows, {
|
||||
// key: "createId",
|
||||
// num: "createId",
|
||||
// name: "name",
|
||||
// content: "categoryId",
|
||||
// courseform: "",
|
||||
// project: "projectName",
|
||||
// stunum: "studentCnt",
|
||||
// grade: "score",
|
||||
// status: "auditStatus",
|
||||
// ynpub: "publishStatus",
|
||||
// creator: "createName",
|
||||
// createtime: "createTime",
|
||||
// pubtime: "publishTime",
|
||||
// kkty: "",
|
||||
// offcourseId: "offcourseId",
|
||||
// });
|
||||
datas.map((value) => {
|
||||
{
|
||||
//单层项目
|
||||
value.operation = (
|
||||
<div class="operation" style="justify-content: flex-start;">
|
||||
<div class="nSelect">
|
||||
{value.status === "2" || value.status === "已审核" ? (
|
||||
<div class="nselect">
|
||||
<div class="ops1">
|
||||
<div
|
||||
class="jc"
|
||||
style={{ width: "30px" }}
|
||||
onClick={() => {
|
||||
handleStart(value);
|
||||
}}
|
||||
>
|
||||
开课
|
||||
</div>
|
||||
</div>
|
||||
<div class="ops2">
|
||||
<div
|
||||
class="jc"
|
||||
style={{ width: "30px" }}
|
||||
onClick={() => {
|
||||
if (value.courseform === "线上") {
|
||||
state.om_1 = true;
|
||||
state.ft_1 = false;
|
||||
} else if (value.courseform === "面授") {
|
||||
state.om_1 = true;
|
||||
state.ft_1 = true;
|
||||
}
|
||||
}}
|
||||
>
|
||||
管理
|
||||
</div>
|
||||
</div>
|
||||
<div class="ops3">
|
||||
<div
|
||||
class="jc"
|
||||
onClick={() => {
|
||||
state.delete_hs = true;
|
||||
state.copy_hs = true;
|
||||
}}
|
||||
style={{ width: "30px" }}
|
||||
>
|
||||
复制
|
||||
</div>
|
||||
</div>
|
||||
<div class="tableSelect">
|
||||
<div class="ops4">
|
||||
<a-select
|
||||
style="width: 50px;margin-top:2px;margin-left:25px"
|
||||
value="授权"
|
||||
// options={state.projectNameList}
|
||||
dropdownClassName="tabledropdown"
|
||||
>
|
||||
<a-select-option
|
||||
value="权限名单"
|
||||
label="权限名单"
|
||||
style="padding-left:22px;"
|
||||
onClick={() => {
|
||||
state.corpowerlistvisible = true;
|
||||
}}
|
||||
>
|
||||
<div>权限名单</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="归属权"
|
||||
label="归属权"
|
||||
style="padding-left:30px;"
|
||||
onClick={() => {
|
||||
state.ownpowervisible = true;
|
||||
}}
|
||||
>
|
||||
<div>归属权</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="查看权"
|
||||
label="查看权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
<div>查看权</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="管理权"
|
||||
label="管理权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
<div>管理权</div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tableSelect">
|
||||
<div class="ops5">
|
||||
<a-select
|
||||
style="width: 50px;margin-top:2px;margin-left:25px;margin-right:10px"
|
||||
value="更多"
|
||||
// options={state.projectNameList}
|
||||
dropdownClassName="tabledropdown"
|
||||
>
|
||||
<a-select-option
|
||||
value="二维码"
|
||||
label="二维码"
|
||||
style="padding-left:28px"
|
||||
onClick={() => {
|
||||
if (value.courseform === "线上") {
|
||||
state.QR_hs = true;
|
||||
state.olQR_hs = true;
|
||||
} else if (value.courseform === "面授") {
|
||||
state.QR_hs = true;
|
||||
state.ftQR_hs = true;
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div>二维码</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="取消"
|
||||
label="取消"
|
||||
style="padding-left:35px"
|
||||
onClick={() => {
|
||||
console.log("点击了");
|
||||
}}
|
||||
>
|
||||
<div>取消</div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div></div>
|
||||
)}
|
||||
{value.status === "1" || value.status === "待审核" ? (
|
||||
<div class="nselect">
|
||||
<div class="ops1">
|
||||
<div
|
||||
class="jc"
|
||||
style={{ width: "30px" }}
|
||||
onClick={() => {
|
||||
handleStart(value);
|
||||
}}
|
||||
>
|
||||
开课
|
||||
</div>
|
||||
</div>
|
||||
<div class="ops1">
|
||||
<div class="jc" style={{ width: "30px" }}></div>
|
||||
</div>
|
||||
<div class="ops1">
|
||||
<div class="jc" style={{ width: "30px" }}></div>
|
||||
</div>
|
||||
<div class="tableSelect">
|
||||
<div class="ops4">
|
||||
<a-select
|
||||
style="width: 50px;margin-top:2px;margin-left:25px"
|
||||
value="授权"
|
||||
// options={state.projectNameList}
|
||||
dropdownClassName="tabledropdown"
|
||||
>
|
||||
<a-select-option
|
||||
value="权限名单"
|
||||
label="权限名单"
|
||||
style="padding-left:22px;"
|
||||
onClick={() => {
|
||||
state.corpowerlistvisible = true;
|
||||
}}
|
||||
>
|
||||
<div>权限名单</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="归属权"
|
||||
label="归属权"
|
||||
style="padding-left:30px;"
|
||||
onClick={() => {
|
||||
state.ownpowervisible = true;
|
||||
}}
|
||||
>
|
||||
<div>归属权</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="查看权"
|
||||
label="查看权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
<div>查看权</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="管理权"
|
||||
label="管理权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
<div>管理权</div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ops5">
|
||||
<div
|
||||
class="jc"
|
||||
style="margin-left:22px"
|
||||
onClick={() => {
|
||||
handleRejectExit(value);
|
||||
}}
|
||||
>
|
||||
撤回
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div></div>
|
||||
)}
|
||||
{value.status === "0" || value.status === "未提交" ? (
|
||||
<div class="nselect">
|
||||
<div class="ops1">
|
||||
<div
|
||||
class="jc"
|
||||
style={{ width: "30px" }}
|
||||
onClick={() => {
|
||||
handleStart(value);
|
||||
}}
|
||||
>
|
||||
开课
|
||||
</div>
|
||||
</div>
|
||||
<div class="ops2">
|
||||
<div
|
||||
class="jc"
|
||||
style={{ width: "30px" }}
|
||||
onClick={() => {
|
||||
handleEdit(value);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</div>
|
||||
</div>
|
||||
<div class="ops3" style={{ "margin-right": "10px" }}>
|
||||
<div
|
||||
class="jc"
|
||||
onClick={() => {
|
||||
state.delete_hs = true;
|
||||
state.copy_hs = true;
|
||||
}}
|
||||
style={{ width: "30px" }}
|
||||
>
|
||||
复制
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div></div>
|
||||
)}
|
||||
{value.status === "-1" || value.status === "审核未通过" ? (
|
||||
<div class="nselect">
|
||||
<div class="ops1">
|
||||
<div
|
||||
class="jc"
|
||||
style={{ width: "30px" }}
|
||||
onClick={() => {
|
||||
handleStart(value);
|
||||
}}
|
||||
>
|
||||
开课
|
||||
</div>
|
||||
</div>
|
||||
<div class="ops2">
|
||||
<div
|
||||
class="jc"
|
||||
style={{ width: "30px" }}
|
||||
onClick={() => {
|
||||
handleEdit(value);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</div>
|
||||
</div>
|
||||
<div class="ops3">
|
||||
<div
|
||||
class="jc"
|
||||
onClick={() => {
|
||||
state.delete_hs = true;
|
||||
state.copy_hs = true;
|
||||
}}
|
||||
style={{ width: "30px" }}
|
||||
>
|
||||
复制
|
||||
</div>
|
||||
</div>
|
||||
<div class="tableSelect">
|
||||
<div class="ops4">
|
||||
<a-select
|
||||
style="width: 50px;margin-top:2px;margin-left:25px"
|
||||
value="授权"
|
||||
// options={state.projectNameList}
|
||||
dropdownClassName="tabledropdown"
|
||||
>
|
||||
<a-select-option
|
||||
value="权限名单"
|
||||
label="权限名单"
|
||||
style="padding-left:22px;"
|
||||
onClick={() => {
|
||||
state.corpowerlistvisible = true;
|
||||
}}
|
||||
>
|
||||
<div>权限名单</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="归属权"
|
||||
label="归属权"
|
||||
style="padding-left:30px;"
|
||||
onClick={() => {
|
||||
state.ownpowervisible = true;
|
||||
}}
|
||||
>
|
||||
<div>归属权</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="查看权"
|
||||
label="查看权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
<div>查看权</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="管理权"
|
||||
label="管理权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
<div>管理权</div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ops5">
|
||||
<div
|
||||
class="jc"
|
||||
onClick={() => {
|
||||
handleDelete(value);
|
||||
}}
|
||||
style="margin-left:22px"
|
||||
>
|
||||
删除
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div></div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
const { rows, total } = res.data.data;
|
||||
state.tableDataTotal1 = total;
|
||||
@@ -3602,10 +3991,6 @@ export default defineComponent({
|
||||
},
|
||||
]);
|
||||
const options2 = ref([
|
||||
{
|
||||
value: "value2",
|
||||
label: "请选择内容分类",
|
||||
},
|
||||
{
|
||||
value: "leadership",
|
||||
label: "领导力",
|
||||
|
||||
Reference in New Issue
Block a user