|
@@ -63,10 +63,8 @@ const topicIndex = ref<number>(1)
|
|
|
|
|
|
//下一题的方法
|
|
|
const nextTopic = () => {
|
|
|
-
|
|
|
//判断当前索引下的数组中是否有isCheck为空
|
|
|
//先判断这个是不是
|
|
|
-
|
|
|
if (scaleList.value[topicIndex.value - 1].isCheck == '') {
|
|
|
ElMessage({
|
|
|
message: '请选择当前题目',
|
|
@@ -77,10 +75,6 @@ const nextTopic = () => {
|
|
|
//判断当前是不是最后一题
|
|
|
//如果是最后一题就不++了
|
|
|
if (topicIndex.value == scaleList.value.length) {
|
|
|
- // ElMessage({
|
|
|
- // message: '已经是最后一题了',
|
|
|
- // type: "warning",
|
|
|
- // })
|
|
|
return
|
|
|
}
|
|
|
topicIndex.value++
|
|
@@ -100,6 +94,8 @@ const subScaleData = async () => {
|
|
|
}
|
|
|
//开始调用提交数据的方法
|
|
|
|
|
|
+ // testRecord: JSON.stringify(productData()),
|
|
|
+
|
|
|
//开始处理数据
|
|
|
// productData()
|
|
|
let params = {
|
|
@@ -113,7 +109,6 @@ const subScaleData = async () => {
|
|
|
testRecord: JSON.stringify(productData()),
|
|
|
type: '0',
|
|
|
userName: userInfo.userInfo.userName,
|
|
|
- // userNo: isHaveManage ? userInfo.userInfo.userNo : '20240726001',
|
|
|
userNo: userInfo.userInfo.userNo,
|
|
|
}
|
|
|
const res = await saveScaleApi(params)
|