mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
feat:修改评估图片等
This commit is contained in:
@@ -2147,6 +2147,13 @@ export default defineComponent({
|
|||||||
examInfo: {},
|
examInfo: {},
|
||||||
tableLoading: false,
|
tableLoading: false,
|
||||||
columns1: [
|
columns1: [
|
||||||
|
{
|
||||||
|
title: "课程编号",
|
||||||
|
width: 130,
|
||||||
|
dataIndex: "offcourseNumber",
|
||||||
|
key: "offcourseNumber",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "名称",
|
title: "名称",
|
||||||
width: 400,
|
width: 400,
|
||||||
@@ -2158,13 +2165,7 @@ export default defineComponent({
|
|||||||
return text ? text : "-";
|
return text ? text : "-";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "课程编号",
|
|
||||||
width: 130,
|
|
||||||
dataIndex: "offcourseNumber",
|
|
||||||
key: "offcourseNumber",
|
|
||||||
align: "center",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "内容分类",
|
title: "内容分类",
|
||||||
width: 130,
|
width: 130,
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ export default {
|
|||||||
|
|
||||||
allFormsData: [],
|
allFormsData: [],
|
||||||
valueMore: "",
|
valueMore: "",
|
||||||
loading:false
|
loading: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
// 详情
|
// 详情
|
||||||
@@ -485,7 +485,7 @@ export default {
|
|||||||
if (!checkVal(filterData)) {
|
if (!checkVal(filterData)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
state.loading = true
|
state.loading = true;
|
||||||
|
|
||||||
if (state.assessmentId) {
|
if (state.assessmentId) {
|
||||||
resultPost = {
|
resultPost = {
|
||||||
@@ -499,7 +499,7 @@ export default {
|
|||||||
"assessmentMinScore",
|
"assessmentMinScore",
|
||||||
]);
|
]);
|
||||||
editResearchMessage(resultPost).then((res) => {
|
editResearchMessage(resultPost).then((res) => {
|
||||||
state.loading = false
|
state.loading = false;
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
message.success("编辑成功");
|
message.success("编辑成功");
|
||||||
router.push({
|
router.push({
|
||||||
@@ -517,6 +517,7 @@ export default {
|
|||||||
"assessmentMaxScore",
|
"assessmentMaxScore",
|
||||||
"assessmentMinScore",
|
"assessmentMinScore",
|
||||||
]);
|
]);
|
||||||
|
console.log("创建评估参数", resultPost);
|
||||||
createResearch(resultPost).then((res) => {
|
createResearch(resultPost).then((res) => {
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
message.success("创建成功");
|
message.success("创建成功");
|
||||||
|
|||||||
@@ -165,14 +165,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="del_btnbox">
|
<div class="del_btnbox">
|
||||||
<div class="del_btn btn1">
|
<div class="del_btn btn1" @click="handleCancelModal">
|
||||||
<div class="btnText" @click="handleCancelModal">取消</div>
|
<div class="btnText">取消</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="del_btn btn2">
|
<div class="del_btn btn2" v-if="!addLoading" @click="handleSure">
|
||||||
<div class="btnText" v-if="!addLoading" @click="handleSure">
|
<div class="btnText">确定</div>
|
||||||
确定
|
</div>
|
||||||
</div>
|
<div class="del_btn btn2" v-else>
|
||||||
<div class="btnText" v-else>确定</div>
|
<div class="btnText">确定</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -64,10 +64,10 @@ export default {
|
|||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
const curItem = ref(props.item);
|
const curItem = ref(props.item);
|
||||||
console.log("选项信息", curItem.value, process.env.VUE_APP_FILE_PATH);
|
console.log("选项信息", curItem.value, process.env.VUE_APP_FILE_PATH);
|
||||||
if (curItem.value.imgVal) {
|
// if (curItem.value.imgVal) {
|
||||||
curItem.value.imgVal =
|
// curItem.value.imgVal =
|
||||||
process.env.VUE_APP_FILE_PATH + curItem.value.imgVal;
|
// process.env.VUE_APP_FILE_PATH + curItem.value.imgVal;
|
||||||
}
|
// }
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
hasImgName: "",
|
hasImgName: "",
|
||||||
@@ -109,7 +109,10 @@ export default {
|
|||||||
fileUp(formData).then((res) => {
|
fileUp(formData).then((res) => {
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
state.hasImgName = file.name;
|
state.hasImgName = file.name;
|
||||||
emit("src", { id: curItem.value.id, src: res.data.data });
|
emit("src", {
|
||||||
|
id: curItem.value.id,
|
||||||
|
src: process.env.VUE_APP_FILE_PATH + res.data.data,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user