升级活动备案提交

This commit is contained in:
范强强
2023-04-16 15:49:42 +08:00
parent e553977e17
commit ab9c90c03e
@@ -68,139 +68,140 @@
</template> </template>
<script> <script>
import { getAction, postAction, deleteAction } from '@/api/manage' import { getAction, postAction, deleteAction } from '@/api/manage'
import moment from 'moment' import moment from 'moment'
export default { export default {
name: 'basicInformation', name: 'basicInformation',
components:{ components: {},
}, data() {
data() { return {
return { confirmLoading: false,
confirmLoading: false, disabled: false,
disabled: false, queryParam: {
queryParam:{ sjjzsj: ''
sjjzsj:'' }
} }
} },
}, mounted() {
mounted() { this.getData()
this.getData() },
}, methods: {
methods: { getData() {
getData(){ let otaIdT = localStorage.getItem('otaIdT')
let otaIdT=localStorage.getItem('otaIdT') if (otaIdT == null) {
if(otaIdT==null){ otaIdT = ''
otaIdT=''
} }
let otaId=localStorage.getItem('otaId') let otaId = localStorage.getItem('otaId')
if(otaId==null){ if (otaId == null) {
otaId='' otaId = ''
} }
getAction('/ota/otaBaSjQtsjxx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{ getAction('/ota/otaBaSjQtsjxx/queryByOtaId', { otaIdT: otaIdT, otaId: otaId }).then(res => {
if(res.code == 200){ if (res.code == 200) {
this.queryParam= res.result ==null ? {} :res.result this.queryParam = res.result == null ? {} : res.result
} }
}) })
}, },
save(){ save() {
let otaId = localStorage.getItem('otaId') let otaId = localStorage.getItem('otaId')
if(otaId == null || otaId == undefined){ if (otaId == null || otaId == undefined) {
otaId='' otaId = ''
}
this.queryParam.otaId = otaId
postAction('/ota/otaBaSjQtsjxx/add' ,this.queryParam).then(res=>{
if(res.code==200){
this.$message.success(this.$t('SavedSuccessfully'))
this.getData()
} }
}) this.queryParam.otaId = otaId
}, postAction('/ota/otaBaSjQtsjxx/add', this.queryParam).then(res => {
if (res.code == 200) {
last(){ this.$message.success(this.$t('SavedSuccessfully'))
this.save() this.getData()
this.$emit('otherup') }
}, })
dateChange(item) { },
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
}, last() {
submit(){ this.save()
this.$router.push('upgradeactivity') this.$emit('otherup')
}, },
dateChange(item) {
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
},
submit() {
this.save()
this.$router.push('upgradeactivity')
}
}
} }
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@import'~@assets/less/common.less'; @import '~@assets/less/common.less';
.box {
height: 500px;
padding: 0 24px 24px 24px;
box-sizing: border-box;
}
.box-title-text-add { .box {
line-height: 1.4; height: 500px;
display: flex; padding: 0 24px 24px 24px;
box-sizing: border-box;
}
} .box-title-text-add {
line-height: 1.4;
display: flex;
.title-text-add { }
width: 114px;
text-align: right;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 42px;
line-height: 42px;
margin-top: 3px;
}
.title-text-add-input { .title-text-add {
width: 80%; width: 114px;
display: inline-block; text-align: right;
font-weight: 500; display: inline-block;
font-size: 14px; font-weight: 500;
margin-right: 16px; font-size: 14px;
overflow: hidden; margin-right: 16px;
text-overflow: ellipsis; overflow: hidden;
white-space: nowrap; text-overflow: ellipsis;
height: 42px; white-space: nowrap;
line-height: 42px; height: 42px;
margin-top: 3px; line-height: 42px;
margin-bottom: 20px; margin-top: 3px;
} }
.title-text-text { .title-text-add-input {
margin-top: 9px; width: 80%;
} display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 42px;
line-height: 42px;
margin-top: 3px;
margin-bottom: 20px;
}
.itemModel { .title-text-text {
width: calc(100% - 130px); margin-top: 9px;
display: inline-block; }
margin-top: 2px;
}
.box-input { .itemModel {
display: inline-block; width: calc(100% - 130px);
width: 100%; display: inline-block;
height: 38px; margin-top: 2px;
margin-top: 2px; }
}
.formAdd { .box-input {
margin: 0 auto; display: inline-block;
width: 670px; width: 100%;
} height: 38px;
margin-top: 2px;
}
.bootom-button{ .formAdd {
position: absolute; margin: 0 auto;
bottom: 0px; width: 670px;
left: 40%; }
text-align: center!important;
} .bootom-button {
position: absolute;
bottom: 0px;
left: 40%;
text-align: center !important;
}
</style> </style>