BUG 26095
This commit is contained in:
@@ -194,7 +194,8 @@ export default {
|
||||
methods: {
|
||||
toSetting() {
|
||||
let {formConfig} = this
|
||||
uni.navigateTo({url: `./FormSetting?${qs.stringify({formConfig})}`})
|
||||
localStorage.setItem("toFormSetting", JSON.stringify(formConfig))
|
||||
uni.navigateTo({url: `./FormSetting`})
|
||||
},
|
||||
back() {
|
||||
uni.navigateBack({})
|
||||
|
||||
@@ -77,8 +77,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
props: ['formConfig'],
|
||||
computed: {
|
||||
isEdit() {
|
||||
return this.$route.query.type == 'edit'
|
||||
@@ -104,24 +104,27 @@ export default {
|
||||
wechatId: '0',
|
||||
periodValidityEndTime: '',
|
||||
isShowTime: false,
|
||||
periodValidityType: '0'
|
||||
periodValidityType: '0',
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.id) {
|
||||
this.getInfo(this.id)
|
||||
} else if (this.formConfig) {
|
||||
const res = this.formConfig
|
||||
} else this.getFormSetting()
|
||||
},
|
||||
methods: {
|
||||
getFormSetting() {
|
||||
let params = localStorage.getItem("toFormSetting"), res = {}
|
||||
params && (res = JSON.parse(params))
|
||||
localStorage.removeItem("toFormSetting")
|
||||
this.periodValidityType = res.periodValidityType || '0'
|
||||
this.commitType = res.commitType || '1'
|
||||
this.commitType = res.commitType || "1"
|
||||
this.actionNotice = res.actionNotice === '1'
|
||||
this.dynamicNotice = res.dynamicNotice === '1'
|
||||
if (res.periodValidityType === '1') {
|
||||
this.periodValidityEndTime = res.periodValidityEndTime
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
},
|
||||
onTimeChange(e) {
|
||||
this.periodValidityEndTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user