feat:修改评估图片等

This commit is contained in:
lixg
2023-02-26 19:17:34 +08:00
parent 94764e1307
commit 59569b7b34
4 changed files with 27 additions and 22 deletions

View File

@@ -2147,6 +2147,13 @@ export default defineComponent({
examInfo: {},
tableLoading: false,
columns1: [
{
title: "课程编号",
width: 130,
dataIndex: "offcourseNumber",
key: "offcourseNumber",
align: "center",
},
{
title: "名称",
width: 400,
@@ -2158,13 +2165,7 @@ export default defineComponent({
return text ? text : "-";
},
},
{
title: "课程编号",
width: 130,
dataIndex: "offcourseNumber",
key: "offcourseNumber",
align: "center",
},
{
title: "内容分类",
width: 130,

View File

@@ -133,7 +133,7 @@ export default {
allFormsData: [],
valueMore: "",
loading:false
loading: false,
});
// 详情
@@ -485,7 +485,7 @@ export default {
if (!checkVal(filterData)) {
return false;
}
state.loading = true
state.loading = true;
if (state.assessmentId) {
resultPost = {
@@ -499,7 +499,7 @@ export default {
"assessmentMinScore",
]);
editResearchMessage(resultPost).then((res) => {
state.loading = false
state.loading = false;
if (res.data.code === 200) {
message.success("编辑成功");
router.push({
@@ -517,6 +517,7 @@ export default {
"assessmentMaxScore",
"assessmentMinScore",
]);
console.log("创建评估参数", resultPost);
createResearch(resultPost).then((res) => {
if (res.data.code === 200) {
message.success("创建成功");

View File

@@ -165,14 +165,14 @@
</div>
</div>
<div class="del_btnbox">
<div class="del_btn btn1">
<div class="btnText" @click="handleCancelModal">取消</div>
<div class="del_btn btn1" @click="handleCancelModal">
<div class="btnText">取消</div>
</div>
<div class="del_btn btn2">
<div class="btnText" v-if="!addLoading" @click="handleSure">
确定
</div>
<div class="btnText" v-else>确定</div>
<div class="del_btn btn2" v-if="!addLoading" @click="handleSure">
<div class="btnText">确定</div>
</div>
<div class="del_btn btn2" v-else>
<div class="btnText">确定</div>
</div>
</div>
</div>

View File

@@ -64,10 +64,10 @@ export default {
setup(props, { emit }) {
const curItem = ref(props.item);
console.log("选项信息", curItem.value, process.env.VUE_APP_FILE_PATH);
if (curItem.value.imgVal) {
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: "",
@@ -109,7 +109,10 @@ export default {
fileUp(formData).then((res) => {
if (res.data.code === 200) {
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;