问卷表单
This commit is contained in:
@@ -70,16 +70,8 @@
|
||||
</div>
|
||||
<div @click="confirm">{{ type === 'edit' ? '发布' : '确定' }}</div>
|
||||
</div>
|
||||
<u-modal :show="isShowModal" :content="tips"></u-modal>
|
||||
<u-datetime-picker
|
||||
mode="datetime"
|
||||
:value="periodValidityEndTime"
|
||||
:show="isShowTime"
|
||||
:show-time-tag="true"
|
||||
@cancel="isShowTime = false"
|
||||
@close="isShowTime = false"
|
||||
@confirm="onTimeChange">
|
||||
</u-datetime-picker>
|
||||
<u-modal v-model="isShowModal" :content="tips"></u-modal>
|
||||
<u-picker mode="time" :show="isShowTime" :show-time-tag="true" @close="isShowTime = false" @confirm="onTimeChange" :params="params"></u-picker>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -89,6 +81,14 @@ export default {
|
||||
|
||||
data () {
|
||||
return {
|
||||
params: {
|
||||
year: true,
|
||||
month: true,
|
||||
day: true,
|
||||
hour: true,
|
||||
minute: true,
|
||||
second: true
|
||||
},
|
||||
tips: '',
|
||||
isShowModal: false,
|
||||
actionNotice: true,
|
||||
@@ -121,8 +121,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
onTimeChange (e) {
|
||||
this.isShowTime = false
|
||||
this.periodValidityEndTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss')
|
||||
this.periodValidityEndTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`
|
||||
},
|
||||
|
||||
back () {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
<ai-empty v-if="!list.length && isMore"></ai-empty>
|
||||
</div>
|
||||
<u-popup :show="isShow" :closeable="false" mode="bottom" @close="isShow = false">
|
||||
<u-popup v-model="isShow" :closeable="false" mode="bottom">
|
||||
<div class="popup">
|
||||
<h2>{{ info.title }}</h2>
|
||||
<div class="operate-list">
|
||||
@@ -83,8 +83,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AiTopFixed from '@/components/AiTopFixed'
|
||||
import AiEmpty from '@/components/AiEmpty/AiEmpty'
|
||||
import {mapActions} from 'vuex'
|
||||
|
||||
export default {
|
||||
@@ -107,11 +105,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
AiEmpty,
|
||||
AiTopFixed
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact'])
|
||||
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
|
||||
|
||||
Reference in New Issue
Block a user