|
|
@ -101,6 +101,7 @@ |
|
|
|
:src="`https://ss-cloud.ahduima.com/xjxc/pic/${row.imageUrl}`" |
|
|
|
:src="`https://ss-cloud.ahduima.com/xjxc/pic/${row.imageUrl}`" |
|
|
|
:preview-src-list="[`https://ss-cloud.ahduima.com/xjxc/pic/${row.imageUrl}`]" |
|
|
|
:preview-src-list="[`https://ss-cloud.ahduima.com/xjxc/pic/${row.imageUrl}`]" |
|
|
|
:lazy="true" |
|
|
|
:lazy="true" |
|
|
|
|
|
|
|
preview-teleported |
|
|
|
style="width: 80px" |
|
|
|
style="width: 80px" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -142,9 +143,10 @@ |
|
|
|
<template #default="{ row }"> |
|
|
|
<template #default="{ row }"> |
|
|
|
<el-image |
|
|
|
<el-image |
|
|
|
v-if="row.imageUrl" |
|
|
|
v-if="row.imageUrl" |
|
|
|
:src="`https://ss-cloud.ahduima.com/xjxc/pic/${row.imageUrl}`" |
|
|
|
:src="getShowImg(row)" |
|
|
|
:preview-src-list="[`https://ss-cloud.ahduima.com/xjxc/pic/${row.imageUrl}`]" |
|
|
|
:preview-src-list="[getShowImg(row)]" |
|
|
|
:lazy="true" |
|
|
|
:lazy="true" |
|
|
|
|
|
|
|
preview-teleported |
|
|
|
style="width: 80px" |
|
|
|
style="width: 80px" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -189,7 +191,8 @@ watch( |
|
|
|
|
|
|
|
|
|
|
|
const queryParams = ref({ |
|
|
|
const queryParams = ref({ |
|
|
|
carTypeId: '1001', |
|
|
|
carTypeId: '1001', |
|
|
|
subject: '1' |
|
|
|
subject: '1', |
|
|
|
|
|
|
|
source: props.source |
|
|
|
}) |
|
|
|
}) |
|
|
|
const mjIndex = ref(0) |
|
|
|
const mjIndex = ref(0) |
|
|
|
const mjList = ref([]) |
|
|
|
const mjList = ref([]) |
|
|
@ -203,6 +206,10 @@ onMounted(() => { |
|
|
|
searchMj() |
|
|
|
searchMj() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getShowImg(row) { |
|
|
|
|
|
|
|
return row.imageUrl.includes('http') ? row.imageUrl : `https://ss-cloud.ahduima.com/xjxc/pic/${row.imageUrl}` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function addMjItem() { |
|
|
|
function addMjItem() { |
|
|
|
addMj(queryParams.value).then((res) => { |
|
|
|
addMj(queryParams.value).then((res) => { |
|
|
|
if (res) { |
|
|
|
if (res) { |
|
|
@ -231,7 +238,7 @@ function removeMj(item) { |
|
|
|
message |
|
|
|
message |
|
|
|
.confirm('是否确认删除密卷?') |
|
|
|
.confirm('是否确认删除密卷?') |
|
|
|
.then(function () { |
|
|
|
.then(function () { |
|
|
|
return delMj(item.secretId) |
|
|
|
return delMj(item.secretId, queryParams.value.source) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
searchMj() |
|
|
|
searchMj() |
|
|
@ -243,7 +250,7 @@ function clearMjDetail(item) { |
|
|
|
message |
|
|
|
message |
|
|
|
.confirm('是否确认清空密卷题目?') |
|
|
|
.confirm('是否确认清空密卷题目?') |
|
|
|
.then(function () { |
|
|
|
.then(function () { |
|
|
|
return clearMj(item.secretId) |
|
|
|
return clearMj(item.secretId, queryParams.value.source) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
getQuestionList() |
|
|
|
getQuestionList() |
|
|
@ -277,7 +284,7 @@ function takeoutMj(row) { |
|
|
|
message |
|
|
|
message |
|
|
|
.confirm('是否确认将该题移出密卷?') |
|
|
|
.confirm('是否确认将该题移出密卷?') |
|
|
|
.then(function () { |
|
|
|
.then(function () { |
|
|
|
return delMjQuestion(row.id) |
|
|
|
return delMjQuestion(row.id, queryParams.value.source) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
getQuestionList() |
|
|
|
getQuestionList() |
|
|
@ -287,7 +294,8 @@ function takeoutMj(row) { |
|
|
|
} |
|
|
|
} |
|
|
|
function getQuestionList() { |
|
|
|
function getQuestionList() { |
|
|
|
getMjQuestionList({ |
|
|
|
getMjQuestionList({ |
|
|
|
secretId: mjList.value[mjIndex.value].secretId |
|
|
|
secretId: mjList.value[mjIndex.value].secretId, |
|
|
|
|
|
|
|
source: queryParams.value.source |
|
|
|
}).then((resp) => { |
|
|
|
}).then((resp) => { |
|
|
|
tableList.value = resp |
|
|
|
tableList.value = resp |
|
|
|
}) |
|
|
|
}) |
|
|
@ -295,7 +303,8 @@ function getQuestionList() { |
|
|
|
function sureAddQues(row) { |
|
|
|
function sureAddQues(row) { |
|
|
|
addMjQuestion({ |
|
|
|
addMjQuestion({ |
|
|
|
secretId: mjList.value[mjIndex.value].secretId, |
|
|
|
secretId: mjList.value[mjIndex.value].secretId, |
|
|
|
subId: row.subId |
|
|
|
subId: row.subId, |
|
|
|
|
|
|
|
source: queryParams.value.source |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then((resp) => { |
|
|
|
.then((resp) => { |
|
|
|
if (resp) { |
|
|
|
if (resp) { |
|
|
|