修改bug
This commit is contained in:
parent
cfb2b6b168
commit
88fe823657
|
@ -209,13 +209,9 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -226,7 +222,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="topRight" title="删除此题"
|
||||
><Icon
|
||||
|
@ -302,13 +298,9 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -319,7 +311,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="topRight" title="删除此题"
|
||||
><Icon
|
||||
|
@ -396,13 +388,10 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -413,7 +402,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="topRight" title="删除此题"
|
||||
><Icon
|
||||
|
@ -437,7 +426,7 @@
|
|||
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||
</div>
|
||||
</template>
|
||||
<a-row v-if="item.wjAnswer">
|
||||
<a-row >
|
||||
<a-col :span="24">
|
||||
<a-textarea
|
||||
placeholder="请填写答案"
|
||||
|
@ -469,13 +458,10 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -486,7 +472,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="topRight" title="删除此题"
|
||||
><Icon
|
||||
|
@ -1099,6 +1085,10 @@ const disabledDate = (current: Dayjs) => {
|
|||
return current && current < dayjs().subtract(1, 'days').endOf('day');
|
||||
};
|
||||
|
||||
const scoreData = [
|
||||
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,60,70,80,90,100
|
||||
]
|
||||
|
||||
//表单验证
|
||||
const validatorRules = {
|
||||
title: [{ required: true, message: '请输入测验名称!' }],
|
||||
|
@ -1453,6 +1443,7 @@ function handleYytkSuccess(record) {
|
|||
wjLeixing,
|
||||
itemSelected: sfxz + '',
|
||||
wjSfqh: '0',
|
||||
sftjtk: record[i].sftjtk,
|
||||
picPath: record[i].picPath,
|
||||
wjxWjxxTmxxList: addwjxWjxxTmxxList,
|
||||
};
|
||||
|
@ -1479,6 +1470,7 @@ function handleYytkSuccess(record) {
|
|||
wjLeixing,
|
||||
itemSelected: sfxz,
|
||||
wjSfqh: '0',
|
||||
sftjtk: record[i].sftjtk,
|
||||
picPath: record[i].picPath,
|
||||
wjxWjxxTmxxList: addwjxWjxxTmxxList,
|
||||
};
|
||||
|
@ -1498,6 +1490,7 @@ function handleYytkSuccess(record) {
|
|||
wjLeixing,
|
||||
wjAnswer: huida,
|
||||
wjSfqh: '0',
|
||||
sftjtk: record[i].sftjtk,
|
||||
picPath: record[i].picPath
|
||||
};
|
||||
list.push(params);
|
||||
|
@ -1516,6 +1509,7 @@ function handleYytkSuccess(record) {
|
|||
wjLeixing,
|
||||
wjAnswer: huida,
|
||||
wjSfqh: '0',
|
||||
sftjtk: record[i].sftjtk,
|
||||
picPath: record[i].picPath
|
||||
};
|
||||
list.push(params);
|
||||
|
|
|
@ -32,15 +32,11 @@
|
|||
<template #extra>
|
||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||
<a-select style="width: 120px" v-model:value="item.wjScore" placeholder="请选择分数" v-if="item.wjSfqh=='0'">
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh=='0'" @click="handleQiehuan(item,'1')" style="color:#9e9e9e;">自定义分数</span>
|
||||
<!-- <span v-if="item.wjSfqh=='0'" @click="handleQiehuan(item,'1')" style="color:#9e9e9e;">自定义分数</span>
|
||||
<a-input-number v-model:value="item.wjScore" style="width:120px;" v-if="item.wjSfqh=='1'"></a-input-number>
|
||||
<span v-if="item.wjSfqh=='1'" @click="handleQiehuan(item,'0')" style="color:#9e9e9e;">返回</span>
|
||||
<span v-if="item.wjSfqh=='1'" @click="handleQiehuan(item,'0')" style="color:#9e9e9e;">返回</span> -->
|
||||
</a-tooltip >
|
||||
<a-tooltip placement="topRight" title="删除此题"><Icon icon="ant-design:delete-outlined" style="cursor: pointer;font-size: 20px;margin: 10px" @click="handleDelTigan(item,index)" /></a-tooltip >
|
||||
</template>
|
||||
|
@ -71,15 +67,12 @@
|
|||
<template #extra>
|
||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||
<a-select style="width: 120px" v-model:value="item.wjScore" placeholder="请选择分数" v-if="item.wjSfqh=='0'">
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh=='0'" @click="handleQiehuan(item,'1')" style="color:#9e9e9e;">自定义分数</span>
|
||||
<!-- <span v-if="item.wjSfqh=='0'" @click="handleQiehuan(item,'1')" style="color:#9e9e9e;">自定义分数</span>
|
||||
<a-input-number v-model:value="item.wjScore" style="width:120px;" v-if="item.wjSfqh=='1'"></a-input-number>
|
||||
<span v-if="item.wjSfqh=='1'" @click="handleQiehuan(item,'0')" style="color:#9e9e9e;">返回</span>
|
||||
<span v-if="item.wjSfqh=='1'" @click="handleQiehuan(item,'0')" style="color:#9e9e9e;">返回</span> -->
|
||||
</a-tooltip >
|
||||
<a-tooltip placement="topRight" title="删除此题"><Icon icon="ant-design:delete-outlined" style="cursor: pointer;font-size: 20px;margin: 10px" @click="handleDelTigan(item,index)" /></a-tooltip >
|
||||
</template>
|
||||
|
@ -111,15 +104,16 @@
|
|||
<template #extra>
|
||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||
<a-select style="width: 120px" v-model:value="item.wjScore" placeholder="请选择分数" v-if="item.wjSfqh=='0'">
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<!-- <a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option> -->
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh=='0'" @click="handleQiehuan(item,'1')" style="color:#9e9e9e;">自定义分数</span>
|
||||
<!-- <span v-if="item.wjSfqh=='0'" @click="handleQiehuan(item,'1')" style="color:#9e9e9e;">自定义分数</span>
|
||||
<a-input-number v-model:value="item.wjScore" style="width:120px;" v-if="item.wjSfqh=='1'"></a-input-number>
|
||||
<span v-if="item.wjSfqh=='1'" @click="handleQiehuan(item,'0')" style="color:#9e9e9e;">返回</span>
|
||||
<span v-if="item.wjSfqh=='1'" @click="handleQiehuan(item,'0')" style="color:#9e9e9e;">返回</span> -->
|
||||
</a-tooltip >
|
||||
<a-tooltip placement="topRight" title="删除此题"><Icon icon="ant-design:delete-outlined" style="cursor: pointer;font-size: 20px;margin: 10px" @click="handleDelTigan(item,index)" /></a-tooltip >
|
||||
</template>
|
||||
|
@ -175,6 +169,9 @@ const tmxxPar = ref<any>({});
|
|||
const wjLeixing = ref<string>('');
|
||||
const { createMessage } = useMessage();
|
||||
|
||||
const scoreData = [
|
||||
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,60,70,80,90,100
|
||||
]
|
||||
const emit = defineEmits(['register', 'success']);
|
||||
//添加单选题
|
||||
function addTigan(type){
|
||||
|
|
|
@ -89,13 +89,9 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span
|
||||
<!-- <span
|
||||
v-if="item.wjSfqh == '0'"
|
||||
@click="handleQiehuan(item, '1')"
|
||||
style="color: #9e9e9e"
|
||||
|
@ -114,7 +110,7 @@
|
|||
style="color: #9e9e9e"
|
||||
:disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -182,13 +178,14 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
<!-- <a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option> -->
|
||||
</a-select>
|
||||
<span
|
||||
<!-- <span
|
||||
v-if="item.wjSfqh == '0'"
|
||||
@click="handleQiehuan(item, '1')"
|
||||
style="color: #9e9e9e"
|
||||
|
@ -207,7 +204,7 @@
|
|||
style="color: #9e9e9e"
|
||||
:disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -276,13 +273,14 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
<!-- <a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option> -->
|
||||
</a-select>
|
||||
<span
|
||||
<!-- <span
|
||||
v-if="item.wjSfqh == '0'"
|
||||
@click="handleQiehuan(item, '1')"
|
||||
style="color: #9e9e9e"
|
||||
|
@ -301,7 +299,7 @@
|
|||
style="color: #9e9e9e"
|
||||
:disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -349,13 +347,14 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
<!-- <a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option> -->
|
||||
</a-select>
|
||||
<span
|
||||
<!-- <span
|
||||
v-if="item.wjSfqh == '0'"
|
||||
@click="handleQiehuan(item, '1')"
|
||||
style="color: #9e9e9e"
|
||||
|
@ -374,7 +373,7 @@
|
|||
style="color: #9e9e9e"
|
||||
:disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -450,6 +449,9 @@ const formData = reactive<Record<string, any>>({
|
|||
endTime: '',
|
||||
// qpublish: '',
|
||||
});
|
||||
const scoreData = [
|
||||
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,60,70,80,90,100
|
||||
]
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
|
||||
|
|
|
@ -135,13 +135,9 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -152,7 +148,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="topRight" title="删除此题"
|
||||
><Icon
|
||||
|
@ -224,13 +220,9 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -241,7 +233,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="topRight" title="删除此题"
|
||||
><Icon
|
||||
|
@ -314,13 +306,14 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
<!-- <a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option> -->
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -331,7 +324,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="topRight" title="删除此题"
|
||||
><Icon
|
||||
|
@ -385,13 +378,9 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -402,7 +391,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="topRight" title="删除此题"
|
||||
><Icon
|
||||
|
@ -482,6 +471,9 @@ const wjLeixing = ref<string>('6');
|
|||
//注册model
|
||||
const [registerModal, { openModal }] = useModal();
|
||||
const { createConfirm, createMessage, createWarningModal } = useMessage();
|
||||
const scoreData = [
|
||||
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,60,70,80,90,100
|
||||
]
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
|
|
|
@ -22,13 +22,14 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
<!-- <a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option> -->
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -39,7 +40,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -103,13 +104,14 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
<!-- <a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option> -->
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -120,7 +122,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -186,13 +188,9 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -203,7 +201,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -249,13 +247,9 @@
|
|||
v-if="item.wjSfqh == '0'"
|
||||
:disabled="editDisabled"
|
||||
>
|
||||
<a-select-option value="5">5</a-select-option>
|
||||
<a-select-option value="4">4</a-select-option>
|
||||
<a-select-option value="3">3</a-select-option>
|
||||
<a-select-option value="2">2</a-select-option>
|
||||
<a-select-option value="1">1</a-select-option>
|
||||
<a-select-option :value="item" v-for="(item) in scoreData">{{item}}</a-select-option>
|
||||
</a-select>
|
||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
<!-- <span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>自定义分数</span
|
||||
>
|
||||
<a-input-number
|
||||
|
@ -266,7 +260,7 @@
|
|||
></a-input-number>
|
||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
||||
>返回</span
|
||||
>
|
||||
> -->
|
||||
</a-tooltip>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -333,6 +327,9 @@ export default defineComponent({
|
|||
const editDisabled = ref<boolean>(true);
|
||||
const tiganData = ref<any>([]);
|
||||
const { createConfirm, createMessage, createWarningModal } = useMessage();
|
||||
const scoreData = [
|
||||
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,60,70,80,90,100
|
||||
]
|
||||
const formData = reactive<Record<string, any>>({
|
||||
id: '',
|
||||
wjTitle: '',
|
||||
|
@ -534,6 +531,7 @@ export default defineComponent({
|
|||
isShow,
|
||||
tiganData,
|
||||
editDisabled,
|
||||
scoreData,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue