|
@@ -6,7 +6,7 @@
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
<a-form-model-item label="导入文件名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fileAddress">
|
|
<a-form-model-item label="导入文件名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fileAddress">
|
|
<!-- <a-input v-model="model.file_address" placeholder="请输入导入文件名称" ></a-input> -->
|
|
<!-- <a-input v-model="model.file_address" placeholder="请输入导入文件名称" ></a-input> -->
|
|
- <j-upload v-model="model.fileAddress" text="上传"></j-upload>
|
|
|
|
|
|
+ <j-upload v-model="model.fileAddress" :number="1" :multiple="false" text="上传"></j-upload>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
@@ -33,6 +33,7 @@
|
|
<script>
|
|
<script>
|
|
|
|
|
|
import { httpAction, getAction } from '@/api/manage'
|
|
import { httpAction, getAction } from '@/api/manage'
|
|
|
|
+ import { importJX } from '@/api/api'
|
|
import { validateDuplicateValue } from '@/utils/util'
|
|
import { validateDuplicateValue } from '@/utils/util'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -66,7 +67,7 @@
|
|
url: {
|
|
url: {
|
|
add: "/projectImportList/projectImportList/add",
|
|
add: "/projectImportList/projectImportList/add",
|
|
edit: "/projectImportList/projectImportList/edit",
|
|
edit: "/projectImportList/projectImportList/edit",
|
|
- queryById: "/projectImportList/projectImportList/queryById"
|
|
|
|
|
|
+ queryById: "/projectImportList/projectImportList/queryById",
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -102,10 +103,14 @@
|
|
httpurl+=this.url.edit;
|
|
httpurl+=this.url.edit;
|
|
method = 'put';
|
|
method = 'put';
|
|
}
|
|
}
|
|
|
|
+ console.log(111111)
|
|
httpAction(httpurl,this.model,method).then((res)=>{
|
|
httpAction(httpurl,this.model,method).then((res)=>{
|
|
if(res.success){
|
|
if(res.success){
|
|
that.$message.success(res.message);
|
|
that.$message.success(res.message);
|
|
that.$emit('ok');
|
|
that.$emit('ok');
|
|
|
|
+ importJX(that.model).then((res) =>{
|
|
|
|
+ console.log(2222,res)
|
|
|
|
+ })
|
|
}else{
|
|
}else{
|
|
that.$message.warning(res.message);
|
|
that.$message.warning(res.message);
|
|
}
|
|
}
|