ota数据导入 模板下载
This commit is contained in:
+13
-4
@@ -2,10 +2,9 @@
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
<a-icon type="import" :rotate="270"/>
|
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" :accept="'.zip'" />
|
||||||
{{$t('dataimport')}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="operator-text">
|
<div @click='handleModule' class="operator-text">
|
||||||
<a-icon type="download"/>
|
<a-icon type="download"/>
|
||||||
{{$t('templateDownload')}}
|
{{$t('templateDownload')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -220,11 +219,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
|
||||||
|
import ImportFile from '@/components/ImportFileData/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'basicInformation',
|
name: 'basicInformation',
|
||||||
components:{
|
components:{
|
||||||
|
ImportFile
|
||||||
},
|
},
|
||||||
// props:['otaId'],
|
// props:['otaId'],
|
||||||
data() {
|
data() {
|
||||||
@@ -234,6 +235,10 @@
|
|||||||
formInline:{},
|
formInline:{},
|
||||||
projectNameList:[],
|
projectNameList:[],
|
||||||
formRules:[],
|
formRules:[],
|
||||||
|
url: {
|
||||||
|
exportData: '/ota/otaBaCxList/exportData',
|
||||||
|
importZipUrl: '/ota/otaBaCxList/importData',//导入
|
||||||
|
},
|
||||||
form:{},
|
form:{},
|
||||||
projectNameList1:['传统动力汽车','节能汽车','新能源汽车','其他'],
|
projectNameList1:['传统动力汽车','节能汽车','新能源汽车','其他'],
|
||||||
projectNameList2:[],
|
projectNameList2:[],
|
||||||
@@ -247,6 +252,10 @@
|
|||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 模板下载
|
||||||
|
handleModule() {
|
||||||
|
downloadFile('ota/otaBaCxList/exportTemplate', '车型及功能备案' + '.zip', {})
|
||||||
|
},
|
||||||
getSelect(){
|
getSelect(){
|
||||||
getAction('/ota/otaBaCxList/list').then(res=>{
|
getAction('/ota/otaBaCxList/list').then(res=>{
|
||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
|
|||||||
+14
-5
@@ -2,10 +2,9 @@
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
<a-icon type="import" :rotate="270"/>
|
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" :accept="'.zip'" />
|
||||||
{{$t('dataimport')}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="operator-text">
|
<div @click='handleModule' class="operator-text">
|
||||||
<a-icon type="download"/>
|
<a-icon type="download"/>
|
||||||
{{$t('templateDownload')}}
|
{{$t('templateDownload')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -103,16 +102,22 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
|
||||||
|
import ImportFile from '@/components/ImportFileData/index'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'beupgradedonline',
|
name: 'beupgradedonline',
|
||||||
components:{
|
components:{
|
||||||
uploadFile
|
uploadFile,
|
||||||
|
ImportFile
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
url: {
|
||||||
|
exportData: '/ota/otaBaCxList/exportData',
|
||||||
|
importZipUrl: '/ota/otaBaCxList/importData',//导入
|
||||||
|
},
|
||||||
dataSource: [
|
dataSource: [
|
||||||
{
|
{
|
||||||
gnmc:'前向碰撞预警(FCW)'
|
gnmc:'前向碰撞预警(FCW)'
|
||||||
@@ -281,6 +286,10 @@
|
|||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 模板下载
|
||||||
|
handleModule() {
|
||||||
|
downloadFile('ota/otaBaCxList/exportTemplate', '车型及功能备案' + '.zip', {})
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
||||||
Object.keys(queryParam).forEach(val => {
|
Object.keys(queryParam).forEach(val => {
|
||||||
|
|||||||
+14
-5
@@ -2,10 +2,9 @@
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
<a-icon type="import" :rotate="270"/>
|
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" :accept="'.zip'" />
|
||||||
{{$t('dataimport')}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="operator-text">
|
<div @click='handleModule' class="operator-text">
|
||||||
<a-icon type="download"/>
|
<a-icon type="download"/>
|
||||||
{{$t('templateDownload')}}
|
{{$t('templateDownload')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -279,18 +278,24 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
|
||||||
|
import ImportFile from '@/components/ImportFileData/index'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'upgradeRequirements',
|
name: 'upgradeRequirements',
|
||||||
components:{
|
components:{
|
||||||
uploadFile
|
uploadFile,
|
||||||
|
ImportFile
|
||||||
},
|
},
|
||||||
props:['otaId'],
|
props:['otaId'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
radioList:9,
|
radioList:9,
|
||||||
|
url: {
|
||||||
|
exportData: '/ota/otaBaCxList/exportData',
|
||||||
|
importZipUrl: '/ota/otaBaCxList/importData',//导入
|
||||||
|
},
|
||||||
dataSource: [
|
dataSource: [
|
||||||
{
|
{
|
||||||
key: 'wlaqyqSl',
|
key: 'wlaqyqSl',
|
||||||
@@ -857,6 +862,10 @@ export default {
|
|||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 模板下载
|
||||||
|
handleModule() {
|
||||||
|
downloadFile('ota/otaBaCxList/exportTemplate', '车型及功能备案' + '.zip', {})
|
||||||
|
},
|
||||||
getData(){
|
getData(){
|
||||||
getAction('/ota/otaBaCxJsfzbacs/queryByOtaId',{otaId:localStorage.getItem('otaId')}).then(res=>{
|
getAction('/ota/otaBaCxJsfzbacs/queryByOtaId',{otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|||||||
+14
-5
@@ -2,10 +2,9 @@
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
<a-icon type="import" :rotate="270"/>
|
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" :accept="'.zip'" />
|
||||||
{{$t('dataimport')}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="operator-text">
|
<div @click='handleModule' class="operator-text">
|
||||||
<a-icon type="download"/>
|
<a-icon type="download"/>
|
||||||
{{$t('templateDownload')}}
|
{{$t('templateDownload')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -44,17 +43,23 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
|
||||||
|
import ImportFile from '@/components/ImportFileData/index'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'safetyPrecautions',
|
name: 'safetyPrecautions',
|
||||||
components:{
|
components:{
|
||||||
uploadFile
|
uploadFile,
|
||||||
|
ImportFile
|
||||||
},
|
},
|
||||||
props:['otaId'],
|
props:['otaId'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
url: {
|
||||||
|
exportData: '/ota/otaBaCxList/exportData',
|
||||||
|
importZipUrl: '/ota/otaBaCxList/importData',//导入
|
||||||
|
},
|
||||||
dataSource: [
|
dataSource: [
|
||||||
{
|
{
|
||||||
key: '1',
|
key: '1',
|
||||||
@@ -166,6 +171,10 @@
|
|||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 模板下载
|
||||||
|
handleModule() {
|
||||||
|
downloadFile('ota/otaBaCxList/exportTemplate', '车型及功能备案' + '.zip', {})
|
||||||
|
},
|
||||||
getData(){
|
getData(){
|
||||||
getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaId:localStorage.getItem('otaId')}).then(res=>{
|
getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
|
|||||||
+16
-10
@@ -2,12 +2,11 @@
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
<a-icon type="import" :rotate="270" />
|
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" :accept="'.zip'" />
|
||||||
{{ $t('dataimport') }}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="operator-text">
|
<div @click='handleModule' class="operator-text">
|
||||||
<a-icon type="download" />
|
<a-icon type="download"/>
|
||||||
{{ $t('templateDownload') }}
|
{{$t('templateDownload')}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-table ref="table" size="middle" :pagination="false" :scroll="{ x: '100%', y: 'calc(100vh - 140px)' }" rowKey="key"
|
<a-table ref="table" size="middle" :pagination="false" :scroll="{ x: '100%', y: 'calc(100vh - 140px)' }" rowKey="key"
|
||||||
@@ -33,16 +32,22 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
|
||||||
|
import ImportFile from '@/components/ImportFileData/index'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'upgradeRequirements',
|
name: 'upgradeRequirements',
|
||||||
components: {
|
components: {
|
||||||
uploadFile
|
uploadFile,
|
||||||
|
ImportFile
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
url: {
|
||||||
|
exportData: '/ota/otaBaCxList/exportData',
|
||||||
|
importZipUrl: '/ota/otaBaCxList/importData',//导入
|
||||||
|
},
|
||||||
dataSource: [
|
dataSource: [
|
||||||
{
|
{
|
||||||
key: '1',
|
key: '1',
|
||||||
@@ -115,8 +120,6 @@ export default {
|
|||||||
certifyingmaterials: '',
|
certifyingmaterials: '',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
url: {
|
|
||||||
},
|
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@@ -197,7 +200,10 @@ export default {
|
|||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 模板下载
|
||||||
|
handleModule() {
|
||||||
|
downloadFile('ota/otaBaCxList/exportTemplate', '车型及功能备案' + '.zip', {})
|
||||||
|
},
|
||||||
getData(){
|
getData(){
|
||||||
console.log(localStorage.getItem('otaId'));
|
console.log(localStorage.getItem('otaId'));
|
||||||
getAction('/ota/otaBaCxZxsjyq/queryByOtaId',{otaId:localStorage.getItem('otaId')}).then(res=>{
|
getAction('/ota/otaBaCxZxsjyq/queryByOtaId',{otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||||
|
|||||||
@@ -2,10 +2,9 @@
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
<a-icon type="import" :rotate="270"/>
|
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" :accept="'.zip'" />
|
||||||
{{$t('dataimport')}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="operator-text">
|
<div @click='handleModule' class="operator-text">
|
||||||
<a-icon type="download"/>
|
<a-icon type="download"/>
|
||||||
{{$t('templateDownload')}}
|
{{$t('templateDownload')}}
|
||||||
</div>
|
</div>
|
||||||
@@ -99,16 +98,22 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
|
||||||
|
import ImportFile from '@/components/ImportFileData/index'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'upgradedonline',
|
name: 'upgradedonline',
|
||||||
components:{
|
components:{
|
||||||
uploadFile,
|
uploadFile,
|
||||||
|
ImportFile
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
url: {
|
||||||
|
exportData: '/ota/otaBaCxList/exportData',
|
||||||
|
importZipUrl: '/ota/otaBaCxList/importData',//导入
|
||||||
|
},
|
||||||
dataSource: [
|
dataSource: [
|
||||||
{
|
{
|
||||||
xtlb:'动力系统'
|
xtlb:'动力系统'
|
||||||
@@ -276,6 +281,10 @@
|
|||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 模板下载
|
||||||
|
handleModule() {
|
||||||
|
downloadFile('ota/otaBaCxList/exportTemplate', '车型及功能备案' + '.zip', {})
|
||||||
|
},
|
||||||
getData(){
|
getData(){
|
||||||
getAction('/ota/otaBaCxKsjxtmccs/queryByOtaId',{otaId:localStorage.getItem('otaId')}).then(res=>{
|
getAction('/ota/otaBaCxKsjxtmccs/queryByOtaId',{otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|||||||
Reference in New Issue
Block a user