升级活动备案提交
This commit is contained in:
+116
-115
@@ -68,139 +68,140 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
||||
import moment from 'moment'
|
||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
||||
import moment from 'moment'
|
||||
|
||||
export default {
|
||||
name: 'basicInformation',
|
||||
components:{
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
confirmLoading: false,
|
||||
disabled: false,
|
||||
queryParam:{
|
||||
sjjzsj:''
|
||||
export default {
|
||||
name: 'basicInformation',
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
confirmLoading: false,
|
||||
disabled: false,
|
||||
queryParam: {
|
||||
sjjzsj: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getData(){
|
||||
let otaIdT=localStorage.getItem('otaIdT')
|
||||
if(otaIdT==null){
|
||||
otaIdT=''
|
||||
},
|
||||
mounted() {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
let otaIdT = localStorage.getItem('otaIdT')
|
||||
if (otaIdT == null) {
|
||||
otaIdT = ''
|
||||
}
|
||||
let otaId=localStorage.getItem('otaId')
|
||||
if(otaId==null){
|
||||
otaId=''
|
||||
let otaId = localStorage.getItem('otaId')
|
||||
if (otaId == null) {
|
||||
otaId = ''
|
||||
}
|
||||
getAction('/ota/otaBaSjQtsjxx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
|
||||
if(res.code == 200){
|
||||
this.queryParam= res.result ==null ? {} :res.result
|
||||
getAction('/ota/otaBaSjQtsjxx/queryByOtaId', { otaIdT: otaIdT, otaId: otaId }).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.queryParam = res.result == null ? {} : res.result
|
||||
}
|
||||
})
|
||||
},
|
||||
save(){
|
||||
let otaId = localStorage.getItem('otaId')
|
||||
if(otaId == null || otaId == undefined){
|
||||
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()
|
||||
},
|
||||
save() {
|
||||
let otaId = localStorage.getItem('otaId')
|
||||
if (otaId == null || otaId == undefined) {
|
||||
otaId = ''
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
last(){
|
||||
this.save()
|
||||
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.$router.push('upgradeactivity')
|
||||
},
|
||||
this.queryParam.otaId = otaId
|
||||
postAction('/ota/otaBaSjQtsjxx/add', this.queryParam).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$message.success(this.$t('SavedSuccessfully'))
|
||||
this.getData()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
last() {
|
||||
this.save()
|
||||
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>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import'~@assets/less/common.less';
|
||||
.box {
|
||||
height: 500px;
|
||||
padding: 0 24px 24px 24px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@import '~@assets/less/common.less';
|
||||
|
||||
.box-title-text-add {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
.box {
|
||||
height: 500px;
|
||||
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 {
|
||||
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;
|
||||
}
|
||||
.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-text {
|
||||
margin-top: 9px;
|
||||
}
|
||||
.title-text-add-input {
|
||||
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 {
|
||||
width: calc(100% - 130px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.title-text-text {
|
||||
margin-top: 9px;
|
||||
}
|
||||
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
height: 38px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.itemModel {
|
||||
width: calc(100% - 130px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.formAdd {
|
||||
margin: 0 auto;
|
||||
width: 670px;
|
||||
}
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
height: 38px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.bootom-button{
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
left: 40%;
|
||||
text-align: center!important;
|
||||
}
|
||||
.formAdd {
|
||||
margin: 0 auto;
|
||||
width: 670px;
|
||||
}
|
||||
|
||||
.bootom-button {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
left: 40%;
|
||||
text-align: center !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user