升级活动备案提交
This commit is contained in:
+47
-46
@@ -68,19 +68,18 @@
|
|||||||
</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: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -88,64 +87,66 @@ export default {
|
|||||||
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
|
this.queryParam.otaId = otaId
|
||||||
postAction('/ota/otaBaSjQtsjxx/add' ,this.queryParam).then(res=>{
|
postAction('/ota/otaBaSjQtsjxx/add', this.queryParam).then(res => {
|
||||||
if(res.code==200){
|
if (res.code == 200) {
|
||||||
this.$message.success(this.$t('SavedSuccessfully'))
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
this.getData()
|
this.getData()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
last(){
|
last() {
|
||||||
this.save()
|
this.save()
|
||||||
this.$emit('otherup')
|
this.$emit('otherup')
|
||||||
},
|
},
|
||||||
dateChange(item) {
|
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') : ''
|
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
|
||||||
},
|
},
|
||||||
submit(){
|
submit() {
|
||||||
|
this.save()
|
||||||
this.$router.push('upgradeactivity')
|
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 {
|
|
||||||
|
.box {
|
||||||
height: 500px;
|
height: 500px;
|
||||||
padding: 0 24px 24px 24px;
|
padding: 0 24px 24px 24px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-title-text-add {
|
.box-title-text-add {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-text-add {
|
.title-text-add {
|
||||||
width: 114px;
|
width: 114px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -158,9 +159,9 @@ export default {
|
|||||||
height: 42px;
|
height: 42px;
|
||||||
line-height: 42px;
|
line-height: 42px;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-text-add-input {
|
.title-text-add-input {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -173,34 +174,34 @@ export default {
|
|||||||
line-height: 42px;
|
line-height: 42px;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-text-text {
|
.title-text-text {
|
||||||
margin-top: 9px;
|
margin-top: 9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.itemModel {
|
.itemModel {
|
||||||
width: calc(100% - 130px);
|
width: calc(100% - 130px);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-input {
|
.box-input {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.formAdd {
|
.formAdd {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 670px;
|
width: 670px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bootom-button{
|
.bootom-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
left: 40%;
|
left: 40%;
|
||||||
text-align: center!important;
|
text-align: center !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user