Commit d723515f authored by 乐宝呗666's avatar 乐宝呗666

修改互动和启用禁用

parent bd1f729f
......@@ -16,7 +16,7 @@
placeholder="请选择展板"
:right-icon="showBoard ? 'arrow-up' : 'arrow-down'"
@click="showBoard = true"
:rules="[{ required: true }]"
:rules="[{ required: true ,message: '请选择展板' ,trigger:'change'}]"
/>
<van-popup v-model="showBoard" position="bottom">
<van-picker
......@@ -33,12 +33,18 @@
readonly
input-align="right"
/>
<van-cell
class="calendar-icon"
title="学习时间"
<van-field
class="field-form-item"
readonly
clickable
name="studyTime"
input-align="right"
:value="form.studyTime || ''"
label="学习时间"
placeholder="请选择学习时间"
:right-icon="form.studyTime || cellIcon"
@click="onDisplay"
:icon="form.studyTime || cellIcon"
:rules="[{ required: true ,message: '请选择学习时间',trigger:'change' }]"
/>
<van-popup v-model="show" position="bottom">
<van-datetime-picker
......@@ -140,6 +146,8 @@
v-model="form.content"
maxlength="500"
show-word-limit
placeholder="我有话对党说..."
:rules="[{ required: true ,message: '请输入内容,最多500个字'}]"
/>
</div>
<div class="commit-page-button">
......@@ -499,7 +507,10 @@ export default {
.van-cell__value {
color: #333;
}
::v-deep .van-field__error-message {
text-align: right;
background: #fff;
}
::v-deep .field-textarea {
min-height: 80px;
padding: 0;
......
......@@ -6,8 +6,6 @@
type="search"
v-model="searchVal"
shape="round"
right-icon="search"
left-icon
placeholder="请输入学习内容名称"
@search="onRefresh"
/>
......@@ -32,7 +30,7 @@
<van-button
@click="optFn(item)"
square
v-if="item.auditStatus==='APPROVED_FINAL' "
:disabled="item.auditStatus!=='APPROVED_FINAL' "
:text="active ? '启用' : '禁用'"
type="danger"
:class="{
......@@ -182,7 +180,7 @@ export default {
line-height: 30px;
}
}
::v-deep .van-field__right-icon {
::v-deep .van-field__left-icon {
color: #ac9374;
.van-icon {
font-size: 20px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment