mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
fix:修改学员操作样式
This commit is contained in:
28
src/App.vue
28
src/App.vue
@@ -1,27 +1,27 @@
|
||||
<template>
|
||||
<div id="container" v-if="!isLogin">
|
||||
<nav-top/>
|
||||
<nav-top />
|
||||
<div style="display: flex">
|
||||
<nav-left/>
|
||||
<nav-left />
|
||||
<div style="flex: 1; display: flex; flex-direction: column; width: 0">
|
||||
<open-pages/>
|
||||
<bread-crumb/>
|
||||
<open-pages />
|
||||
<bread-crumb />
|
||||
<main>
|
||||
<a-config-provider :locale="zhCN">
|
||||
<router-view/>
|
||||
<router-view />
|
||||
</a-config-provider>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="container" v-if="isLogin">
|
||||
<router-view/>
|
||||
<router-view />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {computed, defineComponent, ref} from "vue";
|
||||
import {useRouter, useRoute} from "vue-router";
|
||||
import {useStore} from "vuex";
|
||||
import { computed, defineComponent, ref } from "vue";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import { useStore } from "vuex";
|
||||
import NavLeft from "@/components/NavLeft";
|
||||
import NavTop from "@/components/NavTop";
|
||||
import OpenPages from "@/components/OpenPages";
|
||||
@@ -44,7 +44,7 @@ export default defineComponent({
|
||||
const store = useStore();
|
||||
const isLogin = ref(false);
|
||||
// console.log("router", router.getRoutes(), route);
|
||||
console.log("版本0.9.16------------");
|
||||
console.log("版本0.9.17------------");
|
||||
const routes = computed(() => {
|
||||
return router.getRoutes().filter((e) => e.meta?.isLink);
|
||||
});
|
||||
@@ -78,7 +78,7 @@ export default defineComponent({
|
||||
return;
|
||||
}
|
||||
const memberInitInfo = await api1
|
||||
.getMemberInfo({keyWord: "", pageNo: 1, pageSize: 10})
|
||||
.getMemberInfo({ keyWord: "", pageNo: 1, pageSize: 10 })
|
||||
.then((res) => res.data.data.rows);
|
||||
store.commit("SET_MEMBER_INFO", memberInitInfo);
|
||||
localStorage.setItem("memberInitInfo", JSON.stringify(memberInitInfo));
|
||||
@@ -94,13 +94,13 @@ export default defineComponent({
|
||||
if (localStory) {
|
||||
list = localStorage.getItem(key);
|
||||
if (list) {
|
||||
store.commit("SET_DICT", {key, data: JSON.parse(list)});
|
||||
store.commit("SET_DICT", { key, data: JSON.parse(list) });
|
||||
return;
|
||||
}
|
||||
}
|
||||
list = await getDictList(key);
|
||||
localStory && localStorage.setItem(key, JSON.stringify(list));
|
||||
store.commit("SET_DICT", {key, data: list});
|
||||
store.commit("SET_DICT", { key, data: list });
|
||||
}
|
||||
|
||||
const getDictList = (param) =>
|
||||
@@ -222,7 +222,7 @@ export default defineComponent({
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.cus-select{
|
||||
.cus-select {
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {reactive, ref, toRefs, watch} from "vue";
|
||||
import {getCookie} from "@/api/method";
|
||||
import { reactive, ref, toRefs, watch } from "vue";
|
||||
import { getCookie } from "@/api/method";
|
||||
import JSONBigInt from 'json-bigint';
|
||||
|
||||
const JSONBigIntStr = JSONBigInt({ storeAsString: true });
|
||||
@@ -139,16 +139,16 @@ export async function request(_url, params) {
|
||||
}
|
||||
const body = method !== 'get' ? params || {} : {}
|
||||
url = process.env.VUE_APP_BOE_API_URL + url
|
||||
return fetch(url,{
|
||||
return fetch(url, {
|
||||
method,
|
||||
headers:{
|
||||
headers: {
|
||||
token: getCookie('token'),
|
||||
...method !== 'get' ? {'Content-Type': 'application/json'} : {}
|
||||
...method !== 'get' ? { 'Content-Type': 'application/json' } : {}
|
||||
},
|
||||
...method !== 'get' ? {body: JSON.stringify(body)} : {}
|
||||
}).then(res=>{
|
||||
...method !== 'get' ? { body: JSON.stringify(body) } : {}
|
||||
}).then(res => {
|
||||
return res.text()
|
||||
}).then(res=>{
|
||||
}).then(res => {
|
||||
return JSONBigIntStr.parse(res)
|
||||
})
|
||||
// return axios({
|
||||
|
||||
@@ -7,13 +7,14 @@
|
||||
:validate="validate"
|
||||
@blur="validateProName"
|
||||
@change="validateProName"
|
||||
|
||||
/>
|
||||
<div style="color:red;font-size: 10px" v-if="value && !validate">名称重复,请重新输入</div>
|
||||
<div style="color: red; font-size: 10px" v-if="value && !validate">
|
||||
名称重复,请重新输入
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import {defineProps, defineEmits, watch, ref, onMounted} from "vue";
|
||||
import {validateName} from "@/api/index1";
|
||||
import { defineProps, defineEmits, watch, ref, onMounted } from "vue";
|
||||
import { validateName } from "@/api/index1";
|
||||
|
||||
const props = defineProps({
|
||||
value: {
|
||||
@@ -21,7 +22,7 @@ const props = defineProps({
|
||||
},
|
||||
validate: {
|
||||
type: Boolean,
|
||||
default:true
|
||||
default: true,
|
||||
},
|
||||
id: {
|
||||
type: String,
|
||||
@@ -31,53 +32,58 @@ const props = defineProps({
|
||||
},
|
||||
type: {
|
||||
type: Number,
|
||||
default: 1
|
||||
default: 1,
|
||||
},
|
||||
maxlength: {
|
||||
type: Number,
|
||||
default: 30
|
||||
default: 30,
|
||||
},
|
||||
showCount: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
default: false,
|
||||
},
|
||||
});
|
||||
|
||||
const emit = defineEmits({})
|
||||
const emit = defineEmits({});
|
||||
|
||||
const modelV = ref()
|
||||
const modelV = ref();
|
||||
|
||||
onMounted(()=>{
|
||||
modelV.value = props.value
|
||||
})
|
||||
onMounted(() => {
|
||||
modelV.value = props.value;
|
||||
});
|
||||
|
||||
watch(() => props.value, () => {
|
||||
watch(
|
||||
() => props.value,
|
||||
() => {
|
||||
if (props.value !== modelV.value) {
|
||||
modelV.value = props.value
|
||||
modelV.value = props.value;
|
||||
}
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
watch(modelV, () => {
|
||||
emit('update:value', modelV.value)
|
||||
})
|
||||
emit("update:value", modelV.value);
|
||||
});
|
||||
|
||||
function validateProName() {
|
||||
emit('update:finished', false);
|
||||
props.value && validateName({name: props.value, type: props.type, id: props.id}).then(res => {
|
||||
if(props.value==""){
|
||||
emit('update:validate', res.data.data === 1)
|
||||
}else{
|
||||
emit('update:validate', res.data.data !== 1)
|
||||
emit('update:finished', true);
|
||||
emit("update:finished", false);
|
||||
props.value &&
|
||||
validateName({ name: props.value, type: props.type, id: props.id }).then(
|
||||
(res) => {
|
||||
console.log("resresresres", res);
|
||||
if (props.value == "") {
|
||||
emit("update:validate", res.data.data === 1);
|
||||
} else {
|
||||
emit("update:validate", res.data.data !== 1);
|
||||
emit("update:finished", true);
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.in{
|
||||
.pro{
|
||||
.in {
|
||||
.pro {
|
||||
.ant-input-affix-wrapper {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
@@ -97,7 +103,7 @@ function validateProName() {
|
||||
}
|
||||
}
|
||||
|
||||
.in{
|
||||
.in {
|
||||
.ant-input-affix-wrapper {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
@@ -113,11 +119,11 @@ function validateProName() {
|
||||
border-radius: 8px;
|
||||
transition: all 0.3s;
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.b_input,.i1_input{
|
||||
|
||||
.b_input,
|
||||
.i1_input {
|
||||
.ant-input-affix-wrapper {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
@@ -133,7 +139,6 @@ function validateProName() {
|
||||
border-radius: 8px;
|
||||
transition: all 0.3s;
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -66,7 +66,13 @@
|
||||
:row-selection="stuRowSelection"
|
||||
>
|
||||
<template #action="{ record }">
|
||||
<a-row gutter="12">
|
||||
<div
|
||||
@click="del(record.id)"
|
||||
style="color: #4ea6ff; font-size: 14px; text-align: center"
|
||||
>
|
||||
删除
|
||||
</div>
|
||||
<!-- <a-row gutter="12">
|
||||
<a-col>
|
||||
<slot name="extension" v-bind:data="{ record }"></slot>
|
||||
</a-col>
|
||||
@@ -76,8 +82,14 @@
|
||||
<div @click="del(record.id)">删除</div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@click="del(record.id)"
|
||||
style="color: #4ea6ff; font-size: 14px; text-align: center"
|
||||
>
|
||||
删除
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-row> -->
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
|
||||
@@ -2036,7 +2036,9 @@
|
||||
<div class="cstm_items main_item">
|
||||
<div class="signbox"></div>
|
||||
<div class="btnbox">
|
||||
<button class="xkbtn" @click="showDrawerAddHomework">配置作业</button>
|
||||
<button class="xkbtn" @click="showDrawerAddHomework">
|
||||
配置作业
|
||||
</button>
|
||||
<div v-if="EditWorkId > 0">
|
||||
<a-tag closable @close="logW" color="processing">
|
||||
<span style="font-size: 14px; line-height: 33px">
|
||||
@@ -2277,167 +2279,167 @@
|
||||
</div>
|
||||
<div class="stmm_i5">
|
||||
<TableStudent :type="3" :id="offcourseId" :columns="stuColumns">
|
||||
<!-- <template #extension = "data">-->
|
||||
<!-- <div style="display: flex">-->
|
||||
<!-- <button @click="handlJoinStu(data)">成绩录入</button>-->
|
||||
<!-- </div>-->
|
||||
<!-- </template>-->
|
||||
<!-- <template #extension = "data">-->
|
||||
<!-- <div style="display: flex">-->
|
||||
<!-- <button @click="handlJoinStu(data)">成绩录入</button>-->
|
||||
<!-- </div>-->
|
||||
<!-- </template>-->
|
||||
</TableStudent>
|
||||
</div>
|
||||
<div class="tableBox" style="margin-top: 20px">
|
||||
<!-- <a-table-->
|
||||
<!-- :columns="columns7"-->
|
||||
<!-- :data-source="tableData7"-->
|
||||
<!-- :loading="tableDataTotal3 === -1 ? true : false"-->
|
||||
<!-- :scroll="{ x: 800 }"-->
|
||||
<!-- expandRowByClick="true"-->
|
||||
<!-- @expand="expandTable"-->
|
||||
<!-- :pagination="false"-->
|
||||
<!-- :row-selection="{-->
|
||||
<!-- selectedRowKeys: selectedRowKeys7,-->
|
||||
<!-- onChange: onSelectChange7,-->
|
||||
<!-- }"-->
|
||||
<!-- >-->
|
||||
<!-- <template #bodyCell="{ record, column }">-->
|
||||
<!-- <!– 操作1 –>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '0' ||-->
|
||||
<!-- record.status === '待审核') &&-->
|
||||
<!-- column.key === 'overstatus'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '-1' ||-->
|
||||
<!-- record.status === '已拒绝') &&-->
|
||||
<!-- column.key === 'overstatus'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '1' ||-->
|
||||
<!-- record.status === '已通过') &&-->
|
||||
<!-- column.key === 'overstatus'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handlJoinStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 成绩录入-->
|
||||
<!-- </a>-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleOverStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 结业-->
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <!– 操作2 –>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '0' ||-->
|
||||
<!-- record.status === '待审核') &&-->
|
||||
<!-- column.key === 'operation'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleSucessStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 通过-->
|
||||
<!-- </a>-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleRejectStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 拒绝-->
|
||||
<!-- </a>-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleDeleteStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 删除-->
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '1' ||-->
|
||||
<!-- record.status === '已通过') &&-->
|
||||
<!-- column.key === 'operation'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleDeleteStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 删除-->
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '-1' ||-->
|
||||
<!-- record.status === '已拒绝') &&-->
|
||||
<!-- column.key === 'operation'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleDeleteStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 删除-->
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </template>-->
|
||||
<!-- </a-table>-->
|
||||
<!-- <div class="tableBox" style="margin-top: 50px">-->
|
||||
<!-- <div class="pa">-->
|
||||
<!-- <a-pagination-->
|
||||
<!-- :showSizeChanger="false"-->
|
||||
<!-- showQuickJumper="true"-->
|
||||
<!-- hideOnSinglePage="true"-->
|
||||
<!-- :pageSize="pageSize3"-->
|
||||
<!-- :current="currentPage3"-->
|
||||
<!-- :total="tableDataTotal3"-->
|
||||
<!-- class="pagination"-->
|
||||
<!-- @change="handelChangePage3"-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <a-table-->
|
||||
<!-- :columns="columns7"-->
|
||||
<!-- :data-source="tableData7"-->
|
||||
<!-- :loading="tableDataTotal3 === -1 ? true : false"-->
|
||||
<!-- :scroll="{ x: 800 }"-->
|
||||
<!-- expandRowByClick="true"-->
|
||||
<!-- @expand="expandTable"-->
|
||||
<!-- :pagination="false"-->
|
||||
<!-- :row-selection="{-->
|
||||
<!-- selectedRowKeys: selectedRowKeys7,-->
|
||||
<!-- onChange: onSelectChange7,-->
|
||||
<!-- }"-->
|
||||
<!-- >-->
|
||||
<!-- <template #bodyCell="{ record, column }">-->
|
||||
<!-- <!– 操作1 –>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '0' ||-->
|
||||
<!-- record.status === '待审核') &&-->
|
||||
<!-- column.key === 'overstatus'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '-1' ||-->
|
||||
<!-- record.status === '已拒绝') &&-->
|
||||
<!-- column.key === 'overstatus'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '1' ||-->
|
||||
<!-- record.status === '已通过') &&-->
|
||||
<!-- column.key === 'overstatus'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handlJoinStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 成绩录入-->
|
||||
<!-- </a>-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleOverStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 结业-->
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <!– 操作2 –>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '0' ||-->
|
||||
<!-- record.status === '待审核') &&-->
|
||||
<!-- column.key === 'operation'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleSucessStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 通过-->
|
||||
<!-- </a>-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleRejectStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 拒绝-->
|
||||
<!-- </a>-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleDeleteStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 删除-->
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '1' ||-->
|
||||
<!-- record.status === '已通过') &&-->
|
||||
<!-- column.key === 'operation'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleDeleteStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 删除-->
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- <template-->
|
||||
<!-- v-if="-->
|
||||
<!-- (String(record.applyStatus) === '-1' ||-->
|
||||
<!-- record.status === '已拒绝') &&-->
|
||||
<!-- column.key === 'operation'-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- <span class="table-operation">-->
|
||||
<!-- <a-->
|
||||
<!-- @click="-->
|
||||
<!-- () => {-->
|
||||
<!-- handleDeleteStu(record);-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- >-->
|
||||
<!-- 删除-->
|
||||
<!-- </a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </template>-->
|
||||
<!-- </a-table>-->
|
||||
<!-- <div class="tableBox" style="margin-top: 50px">-->
|
||||
<!-- <div class="pa">-->
|
||||
<!-- <a-pagination-->
|
||||
<!-- :showSizeChanger="false"-->
|
||||
<!-- showQuickJumper="true"-->
|
||||
<!-- hideOnSinglePage="true"-->
|
||||
<!-- :pageSize="pageSize3"-->
|
||||
<!-- :current="currentPage3"-->
|
||||
<!-- :total="tableDataTotal3"-->
|
||||
<!-- class="pagination"-->
|
||||
<!-- @change="handelChangePage3"-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -3303,38 +3305,38 @@ const columns7 = [
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "签到状态",
|
||||
width: 200,
|
||||
dataIndex: "signstatus",
|
||||
key: "7",
|
||||
align: "center",
|
||||
customRender: ({ record }) => {
|
||||
switch (String(record.signStatus)) {
|
||||
case "0":
|
||||
return "未签到";
|
||||
case "1":
|
||||
return "已签到";
|
||||
case "2":
|
||||
return "请假";
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "评估状态",
|
||||
width: 200,
|
||||
dataIndex: "evastatus",
|
||||
key: "8",
|
||||
align: "center",
|
||||
customRender: ({ record }) => {
|
||||
switch (String(record.evalStatus)) {
|
||||
case "0":
|
||||
return "未评估";
|
||||
case "1":
|
||||
return "已评估";
|
||||
}
|
||||
},
|
||||
},
|
||||
// {
|
||||
// title: "签到状态",
|
||||
// width: 200,
|
||||
// dataIndex: "signstatus",
|
||||
// key: "7",
|
||||
// align: "center",
|
||||
// customRender: ({ record }) => {
|
||||
// switch (String(record.signStatus)) {
|
||||
// case "0":
|
||||
// return "未签到";
|
||||
// case "1":
|
||||
// return "已签到";
|
||||
// case "2":
|
||||
// return "请假";
|
||||
// }
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// title: "评估状态",
|
||||
// width: 200,
|
||||
// dataIndex: "evastatus",
|
||||
// key: "8",
|
||||
// align: "center",
|
||||
// customRender: ({ record }) => {
|
||||
// switch (String(record.evalStatus)) {
|
||||
// case "0":
|
||||
// return "未评估";
|
||||
// case "1":
|
||||
// return "已评估";
|
||||
// }
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// title: "结业状态",
|
||||
// width: 100,
|
||||
@@ -3392,10 +3394,10 @@ export default defineComponent({
|
||||
const CourseModalRef = ref(null);
|
||||
|
||||
const state = reactive({
|
||||
stuColumns:[
|
||||
stuColumns: [
|
||||
{
|
||||
title: "报名状态",
|
||||
width: '10%',
|
||||
width: "10%",
|
||||
dataIndex: "status",
|
||||
key: "5",
|
||||
align: "center",
|
||||
@@ -3412,7 +3414,7 @@ export default defineComponent({
|
||||
},
|
||||
{
|
||||
title: "加入方式",
|
||||
width: '10%',
|
||||
width: "10%",
|
||||
dataIndex: "join",
|
||||
key: "6",
|
||||
align: "center",
|
||||
@@ -3425,38 +3427,38 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "签到状态",
|
||||
width: '10%',
|
||||
dataIndex: "signstatus",
|
||||
key: "7",
|
||||
align: "center",
|
||||
customRender: ({ record }) => {
|
||||
switch (String(record.signStatus)) {
|
||||
case "0":
|
||||
return "未签到";
|
||||
case "1":
|
||||
return "已签到";
|
||||
case "2":
|
||||
return "请假";
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "评估状态",
|
||||
width: '10%',
|
||||
dataIndex: "evastatus",
|
||||
key: "8",
|
||||
align: "center",
|
||||
customRender: ({ record }) => {
|
||||
switch (String(record.evalStatus)) {
|
||||
case "0":
|
||||
return "未评估";
|
||||
case "1":
|
||||
return "已评估";
|
||||
}
|
||||
},
|
||||
},
|
||||
// {
|
||||
// title: "签到状态",
|
||||
// width: '10%',
|
||||
// dataIndex: "signstatus",
|
||||
// key: "7",
|
||||
// align: "center",
|
||||
// customRender: ({ record }) => {
|
||||
// switch (String(record.signStatus)) {
|
||||
// case "0":
|
||||
// return "未签到";
|
||||
// case "1":
|
||||
// return "已签到";
|
||||
// case "2":
|
||||
// return "请假";
|
||||
// }
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// title: "评估状态",
|
||||
// width: '10%',
|
||||
// dataIndex: "evastatus",
|
||||
// key: "8",
|
||||
// align: "center",
|
||||
// customRender: ({ record }) => {
|
||||
// switch (String(record.evalStatus)) {
|
||||
// case "0":
|
||||
// return "未评估";
|
||||
// case "1":
|
||||
// return "已评估";
|
||||
// }
|
||||
// },
|
||||
// },
|
||||
],
|
||||
shipType: 1,
|
||||
addLoading: false,
|
||||
@@ -3678,7 +3680,7 @@ export default defineComponent({
|
||||
|
||||
imageUrl: "",
|
||||
imgList: [],
|
||||
validate:true,
|
||||
validate: true,
|
||||
|
||||
pageSize2: 10,
|
||||
currentPage2: 0,
|
||||
@@ -3717,16 +3719,16 @@ export default defineComponent({
|
||||
addStudentList: null, //选中列表
|
||||
|
||||
newCourseName: null, //新建开课名称
|
||||
EditWorkId:null,
|
||||
EditWorkId: null,
|
||||
assessment: {},
|
||||
assessmentId: null,
|
||||
workName:null,
|
||||
EditTestId:null,
|
||||
testName:null,
|
||||
workName: null,
|
||||
EditTestId: null,
|
||||
testName: null,
|
||||
assessmentName: "",
|
||||
assessmentVisible: false,
|
||||
addhomeworkvisible:false,
|
||||
addtestvisible:false,
|
||||
addhomeworkvisible: false,
|
||||
addtestvisible: false,
|
||||
codevisible: false, //二维码弹窗
|
||||
codeInfo: null, //二维码内容
|
||||
codeUrl: codeUrl,
|
||||
@@ -4035,7 +4037,6 @@ export default defineComponent({
|
||||
let startTime = "";
|
||||
let endTime = "";
|
||||
if (state.projectTime) {
|
||||
|
||||
startTime = toDate(
|
||||
new Date(state.projectTime[0].$d).getTime() / 1000,
|
||||
"Y-M-D"
|
||||
@@ -4044,7 +4045,6 @@ export default defineComponent({
|
||||
new Date(state.projectTime[1].$d).getTime() / 1000,
|
||||
"Y-M-D"
|
||||
);
|
||||
|
||||
}
|
||||
let res = await list({
|
||||
pageNo: state.currentPage1,
|
||||
@@ -4863,7 +4863,7 @@ export default defineComponent({
|
||||
beginTime: startTime,
|
||||
completeType: type,
|
||||
endTime: endTime,
|
||||
evalFlag: Number(state.assessmentId) >0 &&state.checked4 ? 1 : 0,
|
||||
evalFlag: Number(state.assessmentId) > 0 && state.checked4 ? 1 : 0,
|
||||
evaluateId: Number(state.assessmentId),
|
||||
testId: state.EditTestId,
|
||||
homeWorkId: state.EditWorkId,
|
||||
@@ -4910,25 +4910,26 @@ export default defineComponent({
|
||||
if (res.data.code === 200) return res.data.data;
|
||||
});
|
||||
|
||||
if(item.evaluateId){
|
||||
if (item.evaluateId) {
|
||||
api
|
||||
.queryAppraiseDetailById({assessmentId: item.evaluateId})
|
||||
.queryAppraiseDetailById({ assessmentId: item.evaluateId })
|
||||
.then((res) => {
|
||||
state.assessmentName = res.data.data.assessmentName;
|
||||
})
|
||||
.catch();
|
||||
}
|
||||
if(item.homeWorkId){
|
||||
queryWorkDetailById({workId:item.homeWorkId}).then((res)=>{
|
||||
if (item.homeWorkId) {
|
||||
queryWorkDetailById({ workId: item.homeWorkId }).then((res) => {
|
||||
state.workName = res.data.data.workName;
|
||||
});
|
||||
}
|
||||
if(item.testId){
|
||||
queryExaminationDetailById({ examinationId: item.testId }).then((res)=>{
|
||||
if (item.testId) {
|
||||
queryExaminationDetailById({ examinationId: item.testId }).then(
|
||||
(res) => {
|
||||
state.testName = res.data.data.examinationName;
|
||||
});
|
||||
}
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
console.log("res");
|
||||
console.log("获取面授课详情", item);
|
||||
|
||||
@@ -100,12 +100,20 @@
|
||||
<div class="name">
|
||||
<div class="inname">评估名称</div>
|
||||
<div class="in">
|
||||
<a-input
|
||||
<!-- <a-input
|
||||
v-model:value="assessmentName"
|
||||
show-count
|
||||
:maxlength="15"
|
||||
style="border-radius: 8px"
|
||||
/>
|
||||
/> -->
|
||||
<NameInput
|
||||
placeholder="请输入路径名称"
|
||||
v-model:value="assessmentName"
|
||||
v-model:validate="validate"
|
||||
:maxlength="15"
|
||||
show-count
|
||||
:type="4"
|
||||
></NameInput>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn">
|
||||
@@ -184,9 +192,12 @@ import { useRouter } from "vue-router";
|
||||
import { toDate } from "../../api/method.js";
|
||||
import store from "@/store";
|
||||
import { message } from "ant-design-vue";
|
||||
|
||||
import NameInput from "@/components/project/NameInput";
|
||||
export default {
|
||||
name: "learningPath",
|
||||
components: {
|
||||
NameInput,
|
||||
},
|
||||
setup() {
|
||||
const router = useRouter();
|
||||
const state = reactive({
|
||||
@@ -295,6 +306,8 @@ export default {
|
||||
copy_hs: false,
|
||||
back_hs: false,
|
||||
pub_hs: false,
|
||||
|
||||
validate: true,
|
||||
});
|
||||
const tableDataFunc = () => {
|
||||
const columns = [
|
||||
@@ -314,7 +327,7 @@ export default {
|
||||
title: "名称",
|
||||
dataIndex: "manager",
|
||||
key: "manager",
|
||||
width:"30%",
|
||||
width: "30%",
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
@@ -326,7 +339,7 @@ export default {
|
||||
title: "状态",
|
||||
dataIndex: "state",
|
||||
key: "state",
|
||||
width:"10%",
|
||||
width: "10%",
|
||||
align: "center",
|
||||
className: "h",
|
||||
customRender: ({ record }) => {
|
||||
@@ -344,7 +357,7 @@ export default {
|
||||
title: "创建人",
|
||||
dataIndex: "creater",
|
||||
key: "creater",
|
||||
width:"10%",
|
||||
width: "10%",
|
||||
align: "center",
|
||||
className: "h",
|
||||
customRender: ({ text }) => {
|
||||
@@ -355,7 +368,7 @@ export default {
|
||||
title: "发布时间",
|
||||
dataIndex: "pubtime",
|
||||
key: "pubtime",
|
||||
width:"10%",
|
||||
width: "10%",
|
||||
align: "center",
|
||||
className: "h",
|
||||
customRender: ({ text }) => {
|
||||
@@ -366,7 +379,7 @@ export default {
|
||||
title: "创建时间",
|
||||
dataIndex: "cretime",
|
||||
key: "cretime",
|
||||
width:"10%",
|
||||
width: "10%",
|
||||
align: "center",
|
||||
className: "h",
|
||||
customRender: ({ text }) => {
|
||||
@@ -378,7 +391,7 @@ export default {
|
||||
className: "h",
|
||||
dataIndex: "opacation",
|
||||
key: "opacation",
|
||||
width:"20%",
|
||||
width: "20%",
|
||||
align: "center",
|
||||
fixed: "right",
|
||||
},
|
||||
@@ -433,7 +446,7 @@ export default {
|
||||
<div class="operation">
|
||||
{value.state === "2" ? (
|
||||
<div class="fb">
|
||||
{ /**
|
||||
{/**
|
||||
<div class="jc"
|
||||
onClick={() => {
|
||||
handleToManagepage(value, "/managepage");
|
||||
@@ -441,7 +454,7 @@ export default {
|
||||
>
|
||||
管理
|
||||
</div>
|
||||
*/ }
|
||||
*/}
|
||||
<div
|
||||
class="jc"
|
||||
onClick={() => {
|
||||
@@ -577,6 +590,11 @@ export default {
|
||||
message.error("请输入评估名称");
|
||||
return false;
|
||||
}
|
||||
if (!state.validate) {
|
||||
message.destroy();
|
||||
message.warning("评估名称重复");
|
||||
return;
|
||||
}
|
||||
store.commit("SET_assessmentName", state.assessmentName);
|
||||
router.push("/researchadd");
|
||||
handleCancel();
|
||||
@@ -677,6 +695,7 @@ export default {
|
||||
// 复制
|
||||
if (state.copy_hs) {
|
||||
let resultPost = restData(state.copyItem);
|
||||
resultPost.assessmentName = resultPost.assessmentName + "(1)";
|
||||
console.log("resultPost");
|
||||
console.log(resultPost);
|
||||
createResearch(resultPost).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user