fix(Design): 修复 IP地址限制功能
- 修改了 MatrixQuestion 组件的样式,添加 scoped 属性以提高代码的可维护性 - 修正了 Create 组件中 IP 地址限制相关的设置,将 'is_number' 更改为 'ip_number',解决了 IP 地址限制功能不工作的问题
This commit is contained in:
@@ -189,7 +189,7 @@ const errorMessage = defineModel('errorMessage', {
|
|||||||
</template>
|
</template>
|
||||||
</van-field>
|
</van-field>
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss">
|
<style lang="scss" scoped>
|
||||||
@import '@/assets/css/theme';
|
@import '@/assets/css/theme';
|
||||||
|
|
||||||
.matrix-table {
|
.matrix-table {
|
||||||
|
|||||||
@@ -263,7 +263,7 @@
|
|||||||
size="0.5rem"
|
size="0.5rem"
|
||||||
:active-value="1"
|
:active-value="1"
|
||||||
:inactive-value="0"
|
:inactive-value="0"
|
||||||
@change="saveSetting('is_ip_number', ['is_number'])"
|
@change="saveSetting('is_ip_number', ['ip_number'])"
|
||||||
></van-switch>
|
></van-switch>
|
||||||
</template>
|
</template>
|
||||||
</van-cell>
|
</van-cell>
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
class="child-group"
|
class="child-group"
|
||||||
>
|
>
|
||||||
<van-field
|
<van-field
|
||||||
v-model="questionInfo.survey.is_number"
|
v-model="questionInfo.survey.ip_number"
|
||||||
label="同一个IP地址只能作答"
|
label="同一个IP地址只能作答"
|
||||||
:border="false"
|
:border="false"
|
||||||
input-align="right"
|
input-align="right"
|
||||||
|
|||||||
Reference in New Issue
Block a user