mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 12:56:45 +08:00
feat:修改面授课
This commit is contained in:
@@ -131,9 +131,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {toRefs, reactive} from "vue";
|
||||
import { toRefs, reactive } from "vue";
|
||||
import * as api from "../../api/index1";
|
||||
import {message} from "ant-design-vue";
|
||||
import { message } from "ant-design-vue";
|
||||
|
||||
export default {
|
||||
name: "ProjPowerList",
|
||||
@@ -218,7 +218,7 @@ export default {
|
||||
width: 70,
|
||||
// align: "left",
|
||||
className: "classify",
|
||||
scopedSlots: {customRender: "action"}, //引入的插槽
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
customRender: (text) => {
|
||||
// console.log(text.record.checked1);
|
||||
return (
|
||||
@@ -270,9 +270,12 @@ export default {
|
||||
key: "opacation",
|
||||
width: 100,
|
||||
align: "center",
|
||||
scopedSlots: {customRender: "action"}, //引入的插槽
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
customRender: (text) => {
|
||||
return (text.record.state === '归属权' ? '' : <div
|
||||
return text.record.state === "归属权" ? (
|
||||
""
|
||||
) : (
|
||||
<div
|
||||
className="opa"
|
||||
onClick={() => {
|
||||
console.log("text.record.id", text.record.id);
|
||||
@@ -535,7 +538,6 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.ProjPowerList {
|
||||
// width: 80%;
|
||||
.ant-drawer-content-wrapper {
|
||||
|
||||
@@ -1,26 +1,42 @@
|
||||
<template>
|
||||
<a-drawer :visible="ACertificate" class="drawerStyle AddCertificate" width="80%" title="添加证书" placement="right"
|
||||
@after-visible-change="afterVisibleChange">
|
||||
<a-drawer
|
||||
:visible="ACertificate"
|
||||
class="drawerStyle AddCertificate"
|
||||
width="80%"
|
||||
title="添加证书"
|
||||
placement="right"
|
||||
@after-visible-change="afterVisibleChange"
|
||||
>
|
||||
<div class="drawerMain">
|
||||
<div class="header">
|
||||
<div class="headerTitle">
|
||||
{{ ACertificateEditId ? "编辑" : "添加" }}证书
|
||||
</div>
|
||||
<img style="width: 29px; height: 29px; cursor: pointer" src="../../../assets/images/basicinfo/close.png"
|
||||
@click="closeDrawer" />
|
||||
<img
|
||||
style="width: 29px; height: 29px; cursor: pointer"
|
||||
src="../../../assets/images/basicinfo/close.png"
|
||||
@click="closeDrawer"
|
||||
/>
|
||||
</div>
|
||||
<div class="contentMain">
|
||||
<div class="main_left">
|
||||
<div class="main_item">
|
||||
<div class="signbox">
|
||||
<div class="sign">
|
||||
<img src="@/assets/images/coursewareManage/asterisk.png" alt="" />
|
||||
<img
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 3px">证书名称:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-input v-model:value="certificateName" style="width: 400px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入证书名称" maxlength="20" />
|
||||
<a-input
|
||||
v-model:value="certificateName"
|
||||
style="width: 400px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入证书名称"
|
||||
maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -47,14 +63,32 @@
|
||||
<div class="main_item" style="align-items: flex-start">
|
||||
<div class="signbox">
|
||||
<div class="sign">
|
||||
<img src="@/assets/images/coursewareManage/asterisk.png" alt="" />
|
||||
<img
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 3px">证书封面:</span>
|
||||
</div>
|
||||
<div class="btnbox" style="flex-direction: column; align-items: flex-start">
|
||||
<a-upload v-model:file-list="fileList" name="file" style="width: 200px" list-type="picture-card"
|
||||
class="avatar-uploader" :show-upload-list="false" :before-upload="beforeUpload">
|
||||
<img v-if="imageUrl" :src="imageUrl" alt="avatar" />
|
||||
<div
|
||||
class="btnbox"
|
||||
style="flex-direction: column; align-items: flex-start"
|
||||
>
|
||||
<a-upload
|
||||
v-model:file-list="fileList"
|
||||
name="file"
|
||||
style="width: 200px"
|
||||
list-type="picture-card"
|
||||
class="avatar-uploader"
|
||||
:show-upload-list="false"
|
||||
:before-upload="beforeUpload"
|
||||
>
|
||||
<img
|
||||
v-if="imageUrl"
|
||||
:src="imageUrl"
|
||||
alt="avatar"
|
||||
style="width: 170px; height: 200px"
|
||||
/>
|
||||
<div v-else>
|
||||
<loading-outlined v-if="loading"></loading-outlined>
|
||||
<plus-outlined v-else></plus-outlined>
|
||||
@@ -71,58 +105,90 @@
|
||||
<span style="margin-right: 3px">证书说明:</span>
|
||||
</div>
|
||||
<div class="textarea" style="width: 400px">
|
||||
<a-textarea v-model:value="certificateRemark" placeholder="请输入证书说明" allow-clear :rows="8" show-count
|
||||
:maxlength="200" />
|
||||
<a-textarea
|
||||
v-model:value="certificateRemark"
|
||||
placeholder="请输入证书说明"
|
||||
allow-clear
|
||||
:rows="8"
|
||||
show-count
|
||||
:maxlength="200"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main_item" style="margin-bottom: 16px">
|
||||
<div class="signbox">
|
||||
<div class="sign">
|
||||
<img src="@/assets/images/coursewareManage/asterisk.png" alt="" />
|
||||
<img
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<span style="
|
||||
<span
|
||||
style="
|
||||
margin-right: 3px;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
">设置获得条件</span>
|
||||
"
|
||||
>设置获得条件</span
|
||||
>
|
||||
</div>
|
||||
<div class="btnbox"></div>
|
||||
</div>
|
||||
|
||||
<div class="main_item" style="
|
||||
<div
|
||||
class="main_item"
|
||||
style="
|
||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||
width: ;
|
||||
margin-left: 35px;
|
||||
padding-top: 30px;
|
||||
margin-top: 0px;
|
||||
">
|
||||
"
|
||||
>
|
||||
<div class="signbox" style="width: 30px">
|
||||
<span style="margin-right: 3px; font-size: 16px; color: #333"></span>
|
||||
<span
|
||||
style="margin-right: 3px; font-size: 16px; color: #333"
|
||||
></span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-radio-group v-model:value="condition" @change="selectCondition">
|
||||
<a-radio-group
|
||||
v-model:value="condition"
|
||||
@change="selectCondition"
|
||||
>
|
||||
<a-radio v-model:checked="checked" :value="1">
|
||||
完成项目
|
||||
<a-popover>
|
||||
<template #content>
|
||||
<div style="font-size: 12px; color: rgba(153, 153, 153, 1)">
|
||||
<div
|
||||
style="font-size: 12px; color: rgba(153, 153, 153, 1)"
|
||||
>
|
||||
后续新增自动包括
|
||||
</div>
|
||||
</template>
|
||||
<img style="width: 16px; height: 16px" src="../../../assets/images/project/tishi.png" />
|
||||
<img
|
||||
style="width: 16px; height: 16px"
|
||||
src="../../../assets/images/project/tishi.png"
|
||||
/>
|
||||
</a-popover>
|
||||
</a-radio>
|
||||
|
||||
<br />
|
||||
<div style="
|
||||
<div
|
||||
style="
|
||||
height: 60px;
|
||||
margin-left: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
">
|
||||
<a-radio-group v-model:value="large" size="small" @change="selectlarge" :disabled="condition !== 1">
|
||||
"
|
||||
>
|
||||
<a-radio-group
|
||||
v-model:value="large"
|
||||
size="small"
|
||||
@change="selectlarge"
|
||||
:disabled="condition !== 1"
|
||||
>
|
||||
<a-radio-button value="1">全部任务</a-radio-button>
|
||||
<a-radio-button value="2">完成必修任务</a-radio-button>
|
||||
</a-radio-group>
|
||||
@@ -131,84 +197,132 @@
|
||||
完成阶段
|
||||
</a-radio>
|
||||
<br />
|
||||
<div style="
|
||||
<div
|
||||
style="
|
||||
height: 60px;
|
||||
margin-left: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
">
|
||||
<a-select ref="select" size="small" placeholder="请选择阶段" v-model:value="selectStageName"
|
||||
style="width: 120px" @focus="focus" @change="selectStage" :options="stageList" :fieldNames="{
|
||||
"
|
||||
>
|
||||
<a-select
|
||||
ref="select"
|
||||
size="small"
|
||||
placeholder="请选择阶段"
|
||||
v-model:value="selectStageName"
|
||||
style="width: 120px"
|
||||
@focus="focus"
|
||||
@change="selectStage"
|
||||
:options="stageList"
|
||||
:fieldNames="{
|
||||
key: 'id',
|
||||
title: 'name',
|
||||
value: 'name',
|
||||
}" :disabled="condition !== 2">
|
||||
}"
|
||||
:disabled="condition !== 2"
|
||||
>
|
||||
</a-select>
|
||||
</div>
|
||||
<a-radio v-model:checked="checked" :value="3">
|
||||
完成任务
|
||||
</a-radio>
|
||||
<br />
|
||||
<div style="
|
||||
<div
|
||||
style="
|
||||
height: 60px;
|
||||
margin-left: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
">
|
||||
<a-select ref="select" size="small" placeholder="请选择任务" v-model:value="selectTaskName"
|
||||
style="width: 120px" @focus="focus" @change="selectTask" :options="taskList" :fieldNames="{
|
||||
"
|
||||
>
|
||||
<a-select
|
||||
ref="select"
|
||||
size="small"
|
||||
placeholder="请选择任务"
|
||||
v-model:value="selectTaskName"
|
||||
style="width: 120px"
|
||||
@focus="focus"
|
||||
@change="selectTask"
|
||||
:options="taskList"
|
||||
:fieldNames="{
|
||||
key: 'id',
|
||||
title: 'name',
|
||||
value: 'name',
|
||||
}" :disabled="condition !== 3">
|
||||
}"
|
||||
:disabled="condition !== 3"
|
||||
>
|
||||
</a-select>
|
||||
</div>
|
||||
<a-radio v-model:checked="checked" :value="4">
|
||||
考试合格
|
||||
</a-radio>
|
||||
<br />
|
||||
<div style="
|
||||
<div
|
||||
style="
|
||||
height: 60px;
|
||||
margin-left: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
">
|
||||
<a-select ref="select" size="small" placeholder="请选择考试" v-model:value="selectExamName"
|
||||
style="width: 120px" @focus="focus" @change="selectExam" :options="examList" :fieldNames="{
|
||||
"
|
||||
>
|
||||
<a-select
|
||||
ref="select"
|
||||
size="small"
|
||||
placeholder="请选择考试"
|
||||
v-model:value="selectExamName"
|
||||
style="width: 120px"
|
||||
@focus="focus"
|
||||
@change="selectExam"
|
||||
:options="examList"
|
||||
:fieldNames="{
|
||||
key: 'id',
|
||||
title: 'name',
|
||||
value: 'name',
|
||||
}" :disabled="condition !== 4">
|
||||
}"
|
||||
:disabled="condition !== 4"
|
||||
>
|
||||
</a-select>
|
||||
</div>
|
||||
<a-radio v-model:checked="checked" :value="5">
|
||||
获得积分
|
||||
</a-radio>
|
||||
<br />
|
||||
<div style="
|
||||
<div
|
||||
style="
|
||||
height: 60px;
|
||||
margin-left: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
">
|
||||
<div style="
|
||||
"
|
||||
>
|
||||
<div
|
||||
style="
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
line-height: 20px;
|
||||
margin-right: 5px;
|
||||
">
|
||||
"
|
||||
>
|
||||
高于
|
||||
</div>
|
||||
<a-input-number id="inputNumber" v-model:value="score" :min="1" :max="projectPoints" style="width: 70px"
|
||||
:disabled="condition !== 5" />
|
||||
<div style="
|
||||
<a-input-number
|
||||
id="inputNumber"
|
||||
v-model:value="score"
|
||||
:min="1"
|
||||
:max="projectPoints"
|
||||
style="width: 70px"
|
||||
:disabled="condition !== 5"
|
||||
/>
|
||||
<div
|
||||
style="
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
line-height: 20px;
|
||||
margin-left: 5px;
|
||||
">
|
||||
"
|
||||
>
|
||||
分可获得,当前项目积分为 {{ projectPoints }} 分
|
||||
</div>
|
||||
</div>
|
||||
@@ -486,7 +600,7 @@ export default {
|
||||
formDatas.append("file", file);
|
||||
fileUp(formDatas).then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
console.log(file)
|
||||
console.log(file);
|
||||
state.imageUrl = process.env.VUE_APP_FILE_PATH + res.data.data;
|
||||
state.imageName = process.env.VUE_APP_FILE_PATH + res.data.data;
|
||||
}
|
||||
@@ -494,8 +608,6 @@ export default {
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
|
||||
//查看证书
|
||||
const getcertificate = () => {
|
||||
let obj = {
|
||||
|
||||
@@ -8,9 +8,7 @@
|
||||
>
|
||||
<div class="drawerMain" id="ProjCheckship" style="">
|
||||
<div class="header">
|
||||
<div class="headerTitle">
|
||||
权限名单
|
||||
</div>
|
||||
<div class="headerTitle">权限名单</div>
|
||||
<img
|
||||
style="width: 29px; height: 29px; cursor: pointer"
|
||||
src="../../assets/images/basicinfo/close.png"
|
||||
@@ -38,14 +36,26 @@
|
||||
style="background: #4ea6ff; color: #fff; width: 100px"
|
||||
@click="search"
|
||||
>
|
||||
<template #icon><img style="margin-right: 10px" src="../../assets/images/courseManage/search0.png"/>
|
||||
<template #icon
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/courseManage/search0.png"
|
||||
/>
|
||||
</template>
|
||||
搜索
|
||||
</a-button>
|
||||
</a-col>
|
||||
<a-col :span="2">
|
||||
<a-button class="cus-btn white" style="width: 100px" @click="reset">
|
||||
<template #icon><img style="margin-right: 10px" src="../../assets/images/leveladd/reset.png"/>
|
||||
<a-button
|
||||
class="cus-btn white"
|
||||
style="width: 100px"
|
||||
@click="reset"
|
||||
>
|
||||
<template #icon
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/leveladd/reset.png"
|
||||
/>
|
||||
</template>
|
||||
重置
|
||||
</a-button>
|
||||
@@ -62,7 +72,17 @@
|
||||
<template #action="{ record }">
|
||||
<a-space :size="2">
|
||||
<slot name="extension" v-bind:data="{ record }"></slot>
|
||||
<a-button v-if="record.type!==6 && record.type!==9 && record.type!==12" @click="del(record.id)" type="link" danger>删除</a-button>
|
||||
<a-button
|
||||
v-if="
|
||||
record.type !== 6 &&
|
||||
record.type !== 9 &&
|
||||
record.type !== 12
|
||||
"
|
||||
@click="del(record.id)"
|
||||
type="link"
|
||||
danger
|
||||
>删除</a-button
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
@@ -78,12 +98,19 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import {computed, createVNode, defineProps, defineExpose, ref, watch} from "vue";
|
||||
import {usePage} from "@/api/request";
|
||||
import {STUDENT_LIST} from "@/api/apis";
|
||||
import {delStudentList} from "@/api/index1";
|
||||
import {ExclamationCircleOutlined} from "@ant-design/icons-vue";
|
||||
import {Modal} from "ant-design-vue";
|
||||
import {
|
||||
computed,
|
||||
createVNode,
|
||||
defineProps,
|
||||
defineExpose,
|
||||
ref,
|
||||
watch,
|
||||
} from "vue";
|
||||
import { usePage } from "@/api/request";
|
||||
import { STUDENT_LIST } from "@/api/apis";
|
||||
import { delStudentList } from "@/api/index1";
|
||||
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
||||
import { Modal } from "ant-design-vue";
|
||||
|
||||
const props = defineProps({
|
||||
type: Number,
|
||||
@@ -104,13 +131,13 @@ const initParams = {
|
||||
studentName: "",
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
type: props.type || '',
|
||||
type: props.type || "",
|
||||
types: props.types,
|
||||
pid: props.id || '',
|
||||
}
|
||||
pid: props.id || "",
|
||||
};
|
||||
|
||||
const searchParams = ref(initParams)
|
||||
const searchName = ref('')
|
||||
const searchParams = ref(initParams);
|
||||
const searchName = ref("");
|
||||
|
||||
const columns = ref([
|
||||
{
|
||||
@@ -143,7 +170,18 @@ const columns = ref([
|
||||
key: "type",
|
||||
width: 30,
|
||||
align: "center",
|
||||
customRender: ({record: {type}}) => ({4: "查看权", 5: "管理权", 6: "归属权",7: "查看权", 8: "管理权", 9: "归属权",10: "查看权", 11: "管理权", 12: "归属权"}[type])
|
||||
customRender: ({ record: { type } }) =>
|
||||
({
|
||||
4: "查看权",
|
||||
5: "管理权",
|
||||
6: "归属权",
|
||||
7: "查看权",
|
||||
8: "管理权",
|
||||
9: "归属权",
|
||||
10: "查看权",
|
||||
11: "管理权",
|
||||
12: "归属权",
|
||||
}[type]),
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
@@ -151,18 +189,23 @@ const columns = ref([
|
||||
key: "operation",
|
||||
width: 50,
|
||||
align: "center",
|
||||
slots: {customRender: "action"},
|
||||
slots: { customRender: "action" },
|
||||
},
|
||||
])
|
||||
]);
|
||||
|
||||
const {data: studentList, fetch: searchStu, total, loading} = usePage(STUDENT_LIST, searchParams)
|
||||
const {
|
||||
data: studentList,
|
||||
fetch: searchStu,
|
||||
total,
|
||||
loading,
|
||||
} = usePage(STUDENT_LIST, searchParams);
|
||||
|
||||
const stuPagination = computed(() => ({
|
||||
total:total.value,
|
||||
total: total.value,
|
||||
showSizeChanger: false,
|
||||
current: searchParams.value.pageNo,
|
||||
pageSize: searchParams.value.pageSize,
|
||||
onChange: changePagination
|
||||
onChange: changePagination,
|
||||
}));
|
||||
|
||||
const openDrawer = () => {
|
||||
@@ -173,22 +216,22 @@ const changePagination = (page) => {
|
||||
searchParams.value.pageNo = page;
|
||||
};
|
||||
|
||||
function search(){
|
||||
searchParams.value.studentName = searchName.value
|
||||
searchParams.value.pageNo = 1
|
||||
function search() {
|
||||
searchParams.value.studentName = searchName.value;
|
||||
searchParams.value.pageNo = 1;
|
||||
}
|
||||
function del(id) {
|
||||
Modal.confirm({
|
||||
title: () => '确定删除?',
|
||||
title: () => "确定删除?",
|
||||
icon: () => createVNode(ExclamationCircleOutlined),
|
||||
content: () => '数据删除后不可恢复!',
|
||||
okText: () => '确定',
|
||||
okType: 'danger',
|
||||
cancelText: () => '取消',
|
||||
content: () => "数据删除后不可恢复!",
|
||||
okText: () => "确定",
|
||||
okType: "danger",
|
||||
cancelText: () => "取消",
|
||||
onOk() {
|
||||
if(id){
|
||||
loading.value = true
|
||||
delStudentList({ids: [id]}).then(() => searchStu())
|
||||
if (id) {
|
||||
loading.value = true;
|
||||
delStudentList({ ids: [id] }).then(() => searchStu());
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -198,20 +241,20 @@ const closeDrawer = () => {
|
||||
visiable.value = false;
|
||||
};
|
||||
|
||||
function reset(){
|
||||
searchParams.value = initParams
|
||||
searchName.value=''
|
||||
function reset() {
|
||||
searchParams.value = initParams;
|
||||
searchName.value = "";
|
||||
}
|
||||
|
||||
watch(visiable, () => {
|
||||
visiable.value && searchStu()
|
||||
searchParams.value = initParams
|
||||
visiable.value && searchStu();
|
||||
searchParams.value = initParams;
|
||||
});
|
||||
|
||||
defineExpose({
|
||||
searchStu,
|
||||
loading
|
||||
})
|
||||
loading,
|
||||
});
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.cus-btn {
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
<template>
|
||||
<div class="TableStudent">
|
||||
<a-row type="flex" gutter="12" style="padding-left: 20px; margin-right: 0px">
|
||||
<a-row
|
||||
type="flex"
|
||||
gutter="12"
|
||||
style="padding-left: 20px; margin-right: 0px"
|
||||
>
|
||||
<a-col>
|
||||
<a-form-item title="姓名:">
|
||||
<a-input class="cus-input" v-model:value="tableParam.studentName" placeholder="请输入姓名" />
|
||||
<a-input
|
||||
class="cus-input"
|
||||
v-model:value="tableParam.studentName"
|
||||
placeholder="请输入姓名"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- <a-col v-if="type === 1">
|
||||
@@ -19,39 +27,73 @@
|
||||
<a-col v-if="type === 1">
|
||||
<a-form-item title="部门:">
|
||||
<div class="select in" style="width: 270px">
|
||||
<OrgClass v-model:value="tableParam.studentDepartId" v-model:name="tableParam.studentDepartName"></OrgClass>
|
||||
<OrgClass
|
||||
v-model:value="tableParam.studentDepartId"
|
||||
v-model:name="tableParam.studentDepartName"
|
||||
></OrgClass>
|
||||
</div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col v-if="type === 1">
|
||||
<a-form-item title="优秀学员:">
|
||||
<div class="select">
|
||||
<a-select v-model:value="tableParam.topFlag" style="width: 260px; height: 40px" placeholder="是否为优秀学员"
|
||||
:options="topFlagList" @change="selectProjectName" allowClear showSearch></a-select>
|
||||
<a-select
|
||||
v-model:value="tableParam.topFlag"
|
||||
style="width: 260px; height: 40px"
|
||||
placeholder="是否为优秀学员"
|
||||
:options="topFlagList"
|
||||
@change="selectProjectName"
|
||||
allowClear
|
||||
showSearch
|
||||
></a-select>
|
||||
</div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col>
|
||||
<a-button class="cus-btn" style="background: #4ea6ff; color: #fff; width: 100px" @click="getStuList">
|
||||
<a-button
|
||||
class="cus-btn"
|
||||
style="background: #4ea6ff; color: #fff; width: 100px"
|
||||
@click="getStuList"
|
||||
>
|
||||
<template #icon>
|
||||
<img style="margin-right: 10px" src="../../assets/images/courseManage/search0.png" /></template>
|
||||
<img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/courseManage/search0.png"
|
||||
/></template>
|
||||
搜索
|
||||
</a-button>
|
||||
</a-col>
|
||||
<a-col :span="2">
|
||||
<a-button class="cus-btn white" style="width: 100px" @click="reset">
|
||||
<template #icon>
|
||||
<img style="margin-right: 10px" src="../../assets/images/leveladd/reset.png" /></template>
|
||||
<img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/leveladd/reset.png"
|
||||
/></template>
|
||||
重置
|
||||
</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-row type="flex" gutter="12" style="padding-left: 20px; margin-right: 0px" v-if="checkPer(permissions)">
|
||||
<a-row
|
||||
type="flex"
|
||||
gutter="12"
|
||||
style="padding-left: 20px; margin-right: 0px"
|
||||
v-if="checkPer(permissions)"
|
||||
>
|
||||
<a-col :span="1.5">
|
||||
<CommonStudent :type="type" :id="id" @finash="submitCall" :stage="stage">
|
||||
<CommonStudent
|
||||
:type="type"
|
||||
:id="id"
|
||||
@finash="submitCall"
|
||||
:stage="stage"
|
||||
>
|
||||
<a-button class="cus-btn" style="background: #4ea6ff; color: #fff">
|
||||
<template #icon><img style="margin-right: 10px" src="../../assets/images/courseManage/add0.png" /></template>
|
||||
<template #icon
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/courseManage/add0.png"
|
||||
/></template>
|
||||
添加学员
|
||||
</a-button>
|
||||
</CommonStudent>
|
||||
@@ -59,7 +101,11 @@
|
||||
<!-- 新加导入学员 批量换组 导出学习信息 -->
|
||||
<a-col :span="1.5" v-if="type === 1 || type === 2">
|
||||
<a-button class="cus-btn white" @click="showImpStu">
|
||||
<template #icon><img style="margin-right: 10px" src="../../assets/images/basicinfo/in2.png" /></template>
|
||||
<template #icon
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/basicinfo/in2.png"
|
||||
/></template>
|
||||
导入学员
|
||||
</a-button>
|
||||
</a-col>
|
||||
@@ -82,7 +128,11 @@
|
||||
</a-col>
|
||||
<a-col :span="1.5">
|
||||
<a-button class="cus-btn white" @click="bathDel">
|
||||
<template #icon><img style="margin-right: 10px" src="../../assets/images/projectadd/delete.png" /></template>
|
||||
<template #icon
|
||||
><img
|
||||
style="margin-right: 10px"
|
||||
src="../../assets/images/projectadd/delete.png"
|
||||
/></template>
|
||||
批量删除
|
||||
</a-button>
|
||||
</a-col>
|
||||
@@ -97,10 +147,19 @@
|
||||
<div class="stmm_btn btn4" @click="hideShow">
|
||||
<div class="btn4_sub">
|
||||
<span style="color: #4ea6ff; margin-right: 4px"> 批量操作 </span>
|
||||
<div class="b_zk" :style="{ display: hideshow ? 'block' : 'none' }"></div>
|
||||
<div class="b_sq" :style="{ display: hideshow ? 'none' : 'block' }"></div>
|
||||
<div
|
||||
class="b_zk"
|
||||
:style="{ display: hideshow ? 'block' : 'none' }"
|
||||
></div>
|
||||
<div
|
||||
class="b_sq"
|
||||
:style="{ display: hideshow ? 'none' : 'block' }"
|
||||
></div>
|
||||
</div>
|
||||
<div class="btn4_sup" :style="{ display: hideshow ? 'none' : 'block' }">
|
||||
<div
|
||||
class="btn4_sup"
|
||||
:style="{ display: hideshow ? 'none' : 'block' }"
|
||||
>
|
||||
<div class="btnsbox">
|
||||
<div class="btn4_tit" @click="showEScoreModal">
|
||||
<span>批量录入成绩</span>
|
||||
@@ -121,14 +180,25 @@
|
||||
<div class="export"></div>
|
||||
<div class="btnText">导出</div>
|
||||
</div>
|
||||
<div class="stmm_btn btn5" style="margin-left: 15px" @click="exportHomeWorkShow">
|
||||
<div
|
||||
class="stmm_btn btn5"
|
||||
style="margin-left: 15px"
|
||||
@click="exportHomeWorkShow"
|
||||
>
|
||||
<div class="btnText">导出作业</div>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<div style="margin-top: 20px">
|
||||
<a-table :columns="tablecolumns" :data-source="tableData.list" :pagination="stuPagination"
|
||||
:loading="tableData.loading" :scroll="{ x: 1500 }" row-key="id" :row-selection="stuRowSelection">
|
||||
<a-table
|
||||
:columns="tablecolumns"
|
||||
:data-source="tableData.list"
|
||||
:pagination="stuPagination"
|
||||
:loading="tableData.loading"
|
||||
:scroll="{ x: 1500 }"
|
||||
row-key="id"
|
||||
:row-selection="stuRowSelection"
|
||||
>
|
||||
<template #action="{ record }">
|
||||
<!-- <div style="display:flex;justify-content: center;align-items: center;">-->
|
||||
<!-- <div v-if="props.type == 1" @click="excellentStudent(record)"
|
||||
@@ -149,28 +219,57 @@
|
||||
<a-space :size="2">
|
||||
<slot name="extension" v-bind:data="{ record }"></slot>
|
||||
|
||||
<a-button v-if="type === 3 && record.status !== 0 && checkPer(permissions)"
|
||||
@click="updateStatus(0, record.id)" type="link">通过</a-button>
|
||||
<a-button v-if="type === 3 && record.status !== 0 && checkPer(permissions)"
|
||||
@click="updateStatus(2, record.id)" type="link">拒绝</a-button>
|
||||
<a-button v-if="checkPer(permissions)" :disabled="record.isLeader === '1'" @click="del(record.id, record)"
|
||||
type="link" danger>删除</a-button>
|
||||
<a-button
|
||||
v-if="type === 3 && record.status !== 0 && checkPer(permissions)"
|
||||
@click="updateStatus(0, record.id)"
|
||||
type="link"
|
||||
>通过</a-button
|
||||
>
|
||||
<a-button
|
||||
v-if="type === 3 && record.status !== 0 && checkPer(permissions)"
|
||||
@click="updateStatus(2, record.id)"
|
||||
type="link"
|
||||
>拒绝</a-button
|
||||
>
|
||||
<a-button
|
||||
v-if="checkPer(permissions)"
|
||||
:disabled="record.isLeader === '1'"
|
||||
@click="del(record.id, record)"
|
||||
type="link"
|
||||
danger
|
||||
>删除</a-button
|
||||
>
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 批量调整关卡弹窗 -->
|
||||
<ChangeLevelModal v-model:visiblene="visiblene" :stage="stage" :ids="stuSelectKeys" @finash="submitCall" />
|
||||
<ChangeLevelModal
|
||||
v-model:visiblene="visiblene"
|
||||
:stage="stage"
|
||||
:ids="stuSelectKeys"
|
||||
@finash="submitCall"
|
||||
/>
|
||||
|
||||
<!-- 换组弹窗 -->
|
||||
<ChangeGroupModal v-model:changegroupV="checkgroupParam.changegroupV" :groupList="groupList" :checkBatch="checkgroupParam.checkBatch"
|
||||
:checkgroupStuId="stuSelectKeys" />
|
||||
<ChangeGroupModal
|
||||
v-model:changegroupV="checkgroupParam.changegroupV"
|
||||
:groupList="groupList"
|
||||
:checkBatch="checkgroupParam.checkBatch"
|
||||
:checkgroupStuId="stuSelectKeys"
|
||||
/>
|
||||
<!-- 批量调整关卡弹窗 -->
|
||||
<!-- 取消学员弹窗 -->
|
||||
<div>
|
||||
<a-modal v-model:visible="canclestu" :footer="null" :closable="close" wrapClassName="canclestu" centered="true"
|
||||
@cancel="closeModal1">
|
||||
<a-modal
|
||||
v-model:visible="canclestu"
|
||||
:footer="null"
|
||||
:closable="close"
|
||||
wrapClassName="canclestu"
|
||||
centered="true"
|
||||
@cancel="closeModal1"
|
||||
>
|
||||
<div class="delete">
|
||||
<div class="del_header"></div>
|
||||
<div class="del_main">
|
||||
@@ -196,7 +295,13 @@
|
||||
<!-- 取消学员弹窗 -->
|
||||
<!-- 优秀学员弹窗 -->
|
||||
<div>
|
||||
<a-modal v-model:visible="canclestu1" :footer="null" :closable="close" wrapClassName="canclestu1" centered="true">
|
||||
<a-modal
|
||||
v-model:visible="canclestu1"
|
||||
:footer="null"
|
||||
:closable="close"
|
||||
wrapClassName="canclestu1"
|
||||
centered="true"
|
||||
>
|
||||
<div class="delete">
|
||||
<div class="del_header"></div>
|
||||
<div class="del_main">
|
||||
@@ -220,18 +325,35 @@
|
||||
</a-modal>
|
||||
</div>
|
||||
<!-- 查看学员 传入查看学员的id-->
|
||||
<see-stu v-model:Seevisible="Seevisible" v-model:checkStuId="checkStuId" v-model:projectId="projectId" />
|
||||
<see-stu
|
||||
v-model:Seevisible="Seevisible"
|
||||
v-model:checkStuId="checkStuId"
|
||||
v-model:projectId="projectId"
|
||||
/>
|
||||
|
||||
<!-- 导入作业成绩抽屉 -->
|
||||
<EScore v-model:eScorevisible="eScorevisible" :type="3" :id="id" :pid="id" v-model:searchTaskList="getStuList" />
|
||||
<EScore
|
||||
v-model:eScorevisible="eScorevisible"
|
||||
:type="3"
|
||||
:id="id"
|
||||
:pid="id"
|
||||
v-model:searchTaskList="getStuList"
|
||||
/>
|
||||
<!-- 导出作业提示框 -->
|
||||
<ExportHomeWork v-model:exportHomeWorkV="exportHomeWorkV" :downloadUrl="downloadUrl" />
|
||||
<ExportHomeWork
|
||||
v-model:exportHomeWorkV="exportHomeWorkV"
|
||||
:downloadUrl="downloadUrl"
|
||||
/>
|
||||
|
||||
<!-- 导入学员抽屉 -->
|
||||
<!-- :courseId="projectTaskInfo.courseId"
|
||||
:courseType="2" -->
|
||||
<imp-stu v-model:AddImpStuvisible="AddImpStuvisible" @AddImpStuvisibleClose="AddImpStuvisibleClose" :courseId="id"
|
||||
:courseType="type" />
|
||||
<imp-stu
|
||||
v-model:AddImpStuvisible="AddImpStuvisible"
|
||||
@AddImpStuvisibleClose="AddImpStuvisibleClose"
|
||||
:courseId="id"
|
||||
:courseType="type"
|
||||
/>
|
||||
</template>
|
||||
<script setup>
|
||||
import { computed, createVNode, defineProps, onMounted, ref, watch } from "vue";
|
||||
@@ -276,7 +398,7 @@ const props = defineProps({
|
||||
groupList: {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
}
|
||||
},
|
||||
});
|
||||
const topFlagList = ref([
|
||||
{
|
||||
@@ -407,7 +529,7 @@ const checkgroupParam = ref({
|
||||
changegroupV: false, //学员名称
|
||||
checkgroupList: "", //学员小组
|
||||
checkgroupStuId: null,
|
||||
checkBatch: true
|
||||
checkBatch: true,
|
||||
});
|
||||
|
||||
const stuSelectKeys = ref([]);
|
||||
@@ -417,7 +539,6 @@ const tableData = ref({
|
||||
loading: false,
|
||||
});
|
||||
|
||||
|
||||
const stuRowSelection = computed(() => ({
|
||||
columnWidth: 20,
|
||||
selectedRowKeys: stuSelectKeys.value,
|
||||
@@ -427,9 +548,9 @@ const stuRowSelection = computed(() => ({
|
||||
|
||||
//显示学员换组弹窗
|
||||
function showChangeGroupModal() {
|
||||
console.log("批量")
|
||||
const d = props.groupList
|
||||
console.log("d" + d)
|
||||
console.log("批量");
|
||||
const d = props.groupList;
|
||||
console.log("d" + d);
|
||||
// debugger
|
||||
checkgroupParam.value.changegroupV = true;
|
||||
checkgroupParam.value.checkBatch = true;
|
||||
@@ -439,7 +560,8 @@ function showChangeGroupModal() {
|
||||
function exportTaskStu() {
|
||||
console.log("props.datasource", props);
|
||||
window.open(
|
||||
`${process.env.VUE_APP_BASE_API
|
||||
`${
|
||||
process.env.VUE_APP_BASE_API
|
||||
}/admin/student/exportTaskStudent?type=${1}&pid=${props.id}`
|
||||
);
|
||||
}
|
||||
@@ -447,7 +569,8 @@ function exportTaskStu() {
|
||||
function exportTaskStuRouter() {
|
||||
console.log("props.datasource", props, props.id);
|
||||
window.open(
|
||||
`${process.env.VUE_APP_BASE_API
|
||||
`${
|
||||
process.env.VUE_APP_BASE_API
|
||||
}/admin/student/exportTaskStudent?type=${2}&pid=${props.id}`
|
||||
);
|
||||
}
|
||||
@@ -496,8 +619,6 @@ function getStuList() {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
function reset() {
|
||||
tableParam.value.studentName = "";
|
||||
tableParam.value.groupName = ""; //学员小组
|
||||
@@ -513,16 +634,20 @@ function bathDel() {
|
||||
return message.warning("请先选中学员");
|
||||
}
|
||||
// 判断选择的人员中是否有小组长
|
||||
let arr = [...tableData.value.list].filter(x => [...stuSelectKeys.value].some(id => id === x.id)).filter(item => item.isLeader === '1');
|
||||
let arr = [...tableData.value.list]
|
||||
.filter((x) => [...stuSelectKeys.value].some((id) => id === x.id))
|
||||
.filter((item) => item.isLeader === "1");
|
||||
if (arr.length > 0) {
|
||||
return message.warning("选择人员中:" + arr[0].studentName + "是小组长,请勿删除!");
|
||||
return message.warning(
|
||||
"选择人员中:" + arr[0].studentName + "是小组长,请勿删除!"
|
||||
);
|
||||
}
|
||||
tableData.value.loading = true;
|
||||
delStudentList({ ids: stuSelectKeys.value }).then(() => getStuList());
|
||||
}
|
||||
|
||||
function del(id, row) {
|
||||
if (row.isLeader === '1') {
|
||||
if (row.isLeader === "1") {
|
||||
return message.warning("" + row.name + "是小组长,请勿删除!");
|
||||
}
|
||||
|
||||
@@ -659,7 +784,8 @@ const exportStu = () => {
|
||||
console.log("props.datasource", props);
|
||||
if (props.id != undefined) {
|
||||
window.open(
|
||||
`${process.env.VUE_APP_BASE_API
|
||||
`${
|
||||
process.env.VUE_APP_BASE_API
|
||||
}/admin/student/exportTaskStudent?type=${3}&pid=${props.id}&thirdType=2`
|
||||
);
|
||||
}
|
||||
@@ -712,7 +838,6 @@ defineExpose({ getStuList, startLoading });
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.TableStudent {
|
||||
|
||||
table tr th.ant-table-selection-column,
|
||||
table tr td.ant-table-selection-column {
|
||||
padding-left: 3px;
|
||||
@@ -787,8 +912,10 @@ defineExpose({ getStuList, startLoading });
|
||||
position: absolute;
|
||||
width: calc(100%);
|
||||
height: 40px;
|
||||
background: linear-gradient(rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%);
|
||||
background: linear-gradient(
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.batchOpera {
|
||||
|
||||
@@ -367,15 +367,13 @@
|
||||
>管理
|
||||
</a-button>
|
||||
<DropDown v-if="checkPer(record.permissions)" value="授权">
|
||||
<OwnerTableModelStudent
|
||||
:types="[10, 11, 12]"
|
||||
:id="record.offcourseId"
|
||||
<OwnerTableModelStudent :types="[10, 11, 12]" :id="record.id"
|
||||
>权限名单</OwnerTableModelStudent
|
||||
>
|
||||
<CommonStudent :type="10" :id="record.offcourseId" title="查看权"
|
||||
<CommonStudent :type="10" :id="record.id" title="查看权"
|
||||
>查看权</CommonStudent
|
||||
>
|
||||
<CommonStudent :type="11" :id="record.offcourseId" title="管理权"
|
||||
<CommonStudent :type="11" :id="record.id" title="管理权"
|
||||
>管理权</CommonStudent
|
||||
>
|
||||
</DropDown>
|
||||
@@ -1690,6 +1688,7 @@ import ProjPowerList from "../../components/drawers/ProjPowerList";
|
||||
import ProjCheckShip from "../../components/drawers/ProjCheckPower";
|
||||
import AssessmentList from "../../components/drawers/AssessmentList.vue";
|
||||
import dialog from "@/utils/dialog";
|
||||
// import { queryAssessmentDetailList } from "@/api/indexResearch";
|
||||
import {
|
||||
list,
|
||||
detail,
|
||||
@@ -3655,8 +3654,8 @@ export default defineComponent({
|
||||
completeType: type,
|
||||
endTime: endTime,
|
||||
evalFlag: Number(state.assessmentId) > 0 && state.checked4 ? 1 : 0,
|
||||
evaluateId: Number(state.assessmentId),
|
||||
testId: state.EditTestId,
|
||||
assessmentId: Number(state.assessmentId),
|
||||
testId: state.examInfo.examinationName ? state.EditTestId : 0,
|
||||
homeWorkId: state.EditWorkId,
|
||||
name: state.xjkkinputV1,
|
||||
signFlag: state.xjkkradioV1 === 0 ? 1 : 0, //是否允许未报名的签到:1是0否
|
||||
@@ -3712,7 +3711,11 @@ export default defineComponent({
|
||||
(res) => (state.examInfo = res.data.data)
|
||||
);
|
||||
}
|
||||
|
||||
// if(item.evalFlag){
|
||||
// queryAssessmentDetailList({assessmentId:item.assessmentId }).then(
|
||||
// (res) => (state.examInfo = res.data.data)
|
||||
// );
|
||||
// }
|
||||
console.log("获取面授课开课详情", item);
|
||||
state.xjkkinputV2 = item.address;
|
||||
state.checked1 = item.applyFlag === 1 ? true : false;
|
||||
@@ -4466,12 +4469,13 @@ export default defineComponent({
|
||||
});
|
||||
};
|
||||
const handleCopy = async (id) => {
|
||||
console.log("复制Id", id);
|
||||
dialog({
|
||||
content: "确定复制该课程吗?",
|
||||
ok: async () => {
|
||||
message.success("复制成功");
|
||||
state.tableLoading = true;
|
||||
await copyCourse({ offcourseId: id });
|
||||
await copyCourse({ courseId: id });
|
||||
getTableDate();
|
||||
},
|
||||
});
|
||||
@@ -4624,7 +4628,7 @@ export default defineComponent({
|
||||
|
||||
// 管理开课
|
||||
const handleGuan22 = (item) => {
|
||||
// console.log('点击面授课管理',item)
|
||||
console.log("点击面授课管理", item);
|
||||
// if (String(item.courseform) === "1") {
|
||||
// return;
|
||||
// }
|
||||
@@ -4740,28 +4744,26 @@ export default defineComponent({
|
||||
//授权
|
||||
//权限名单
|
||||
const showPrower = (record) => {
|
||||
// console.log("record", record);
|
||||
console.log("权限名单", record);
|
||||
state.selectCourseId = record.offcourseId;
|
||||
state.corpowerlistvisible = true;
|
||||
};
|
||||
//归属权
|
||||
const showOwnPrower = (record) => {
|
||||
// console.log("record", record);
|
||||
console.log("归属权", record);
|
||||
state.selectCourseId = record.offcourseId;
|
||||
state.ownpowervisible = true;
|
||||
};
|
||||
//查看权
|
||||
const showViewPrower = (record) => {
|
||||
// console.log("record", record);
|
||||
console.log("查看权", record);
|
||||
state.selectCourseId = record.offcourseId;
|
||||
state.authClassify = 1;
|
||||
state.viewpowervisible = true;
|
||||
};
|
||||
//管理权
|
||||
const showManagePrower = (record) => {
|
||||
// console.log("record", record);
|
||||
console.log(22222222);
|
||||
console.log(record);
|
||||
console.log("管理权", record);
|
||||
state.selectCourseId = record.offcourseId;
|
||||
state.shipType = 1;
|
||||
state.authClassify = 2;
|
||||
|
||||
@@ -64,8 +64,8 @@
|
||||
style="width: 100px; height: 100px"
|
||||
/>
|
||||
</div>
|
||||
<div class="mbl_items">
|
||||
<div class="item_nam" style="margin-bottom: 102px">
|
||||
<div class="mbl_items" style="align-items: flex-start">
|
||||
<div class="item_nam">
|
||||
<div class="asterisk_icon">
|
||||
<img
|
||||
style="width: 10px; height: 10px"
|
||||
@@ -73,7 +73,9 @@
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 14px">目标人群</span>
|
||||
<span style="margin-right: 14px; margin-top: 3px"
|
||||
>目标人群</span
|
||||
>
|
||||
</div>
|
||||
<div class="item_inp">
|
||||
<div class="i1_input">
|
||||
@@ -883,5 +885,29 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
}
|
||||
.ant-select-disabled.ant-select:not(.ant-select-customize-input)
|
||||
.ant-select-selector {
|
||||
color: #000000;
|
||||
}
|
||||
.ant-select-disabled.ant-select:not(.ant-select-customize-input)
|
||||
.ant-select-selector {
|
||||
background-color: rgba(255, 255, 255, 0);
|
||||
}
|
||||
.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
||||
border: 0px !important;
|
||||
}
|
||||
.select .ant-select-selector {
|
||||
border: 0px !important;
|
||||
}
|
||||
.ant-select-arrow {
|
||||
display: none;
|
||||
}
|
||||
.ant-select-disabled.ant-select-multiple .ant-select-selection-item {
|
||||
color: #000000;
|
||||
border: 0px !important;
|
||||
}
|
||||
.ant-select-multiple .ant-select-selection-item {
|
||||
background: rgba(255, 255, 255, 0);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -593,9 +593,9 @@ export default defineComponent({
|
||||
selectBandName: [],
|
||||
selectBandId: [],
|
||||
//资源归属
|
||||
sourceBelongId: [],
|
||||
sourceBelongName: [],
|
||||
sourceBelongFullName: [],
|
||||
sourceBelongId: null,
|
||||
sourceBelongName: null,
|
||||
sourceBelongFullName: null,
|
||||
});
|
||||
const store = useStore();
|
||||
console.log(store, 666);
|
||||
@@ -606,7 +606,12 @@ export default defineComponent({
|
||||
const jobType = computed(() => store.state.job_type);
|
||||
//获取band
|
||||
const bandList = computed(() => store.state.band);
|
||||
const userInfo = computed(() => store.state.userInfo);
|
||||
console.log("jobTypebandList", jobType, bandList);
|
||||
if (userInfo.value.departId && userInfo.value.departName) {
|
||||
state.sourceBelongName = userInfo.value.departName;
|
||||
state.sourceBelongId = userInfo.value.departId;
|
||||
}
|
||||
watch(
|
||||
() => state.fen_lei,
|
||||
() => {
|
||||
@@ -718,9 +723,9 @@ export default defineComponent({
|
||||
state.selectBandName = [];
|
||||
state.selectBandId = [];
|
||||
//资源归属
|
||||
state.sourceBelongId = [];
|
||||
state.sourceBelongName = [];
|
||||
state.sourceBelongFullName = [];
|
||||
state.sourceBelongId = null;
|
||||
state.sourceBelongName = null;
|
||||
state.sourceBelongFullName = null;
|
||||
// valueHtml.value = "";
|
||||
console.log("清空");
|
||||
};
|
||||
@@ -754,7 +759,15 @@ export default defineComponent({
|
||||
fileUp(formData).then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
// 最后插入图片 url alt href
|
||||
insertFn(res.data.data, file.name, res.data.data);
|
||||
console.log(
|
||||
"上传图片结果",
|
||||
process.env.VUE_APP_FILE_PATH + res.data.data
|
||||
);
|
||||
insertFn(
|
||||
process.env.VUE_APP_FILE_PATH + res.data.data,
|
||||
file.name,
|
||||
res.data.data
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -64,7 +64,11 @@ export default {
|
||||
setup(props, { emit }) {
|
||||
const curItem = ref(props.item);
|
||||
console.log("选项信息", curItem.value, process.env.VUE_APP_FILE_PATH);
|
||||
curItem.value.imgVal = process.env.VUE_APP_FILE_PATH + curItem.value.imgVal;
|
||||
if (curItem.value.imgVal) {
|
||||
curItem.value.imgVal =
|
||||
process.env.VUE_APP_FILE_PATH + curItem.value.imgVal;
|
||||
}
|
||||
|
||||
const state = reactive({
|
||||
hasImgName: "",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user