Commit 025485fb authored by Hagsn3's avatar Hagsn3

修改代码

parent 8ea3868d
...@@ -295,40 +295,40 @@ ...@@ -295,40 +295,40 @@
<!-- 导入配置对话框 --> <!-- 导入配置对话框 -->
<el-dialog class="importDialog" :title="importControls.title" :visible="importControls.open" width="700px" append-to-body :close-on-click-modal="false" @close="cancelFileFrom"> <el-dialog class="importDialog" :title="importControls.title" :visible="importControls.open" width="700px" append-to-body :close-on-click-modal="false" @close="cancelFileFrom">
<el-form :model="typeFrom"> <el-form :model="typeFrom">
<el-form-item > <el-form-item>
<el-input <!-- <el-input-->
<!-- v-model="typeFrom.type"-->
<!-- placeholder="typeFrom"-->
<!-- :maxlength="2"-->
<!-- size="small"-->
<!-- disabled-->
<!-- style="width: 150px"-->
<!-- >-->
<!-- </el-input>-->
<el-select
v-model="typeFrom.type" v-model="typeFrom.type"
placeholder="typeFrom" placeholder="typeFrom"
:maxlength="2" :maxlength="2"
size="small" size="small"
disabled disabled
style="width: 150px" style="width: 150px"
> >
</el-input> <el-option
<!-- <el-select--> v-for="(dict,index) in typeList"
<!-- v-model="typeFrom.type"--> :key="index"
<!-- placeholder="typeFrom"--> :label="dict.label"
<!-- :maxlength="2"--> :value="dict.value"
<!-- size="small"--> />
<!-- disabled--> </el-select>
<!-- style="width: 150px"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="(dict,index) in typeList"-->
<!-- :key="index"-->
<!-- :label="dict.label"-->
<!-- :value="dict.value"-->
<!-- />-->
<!-- </el-select>-->
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="importOne"> <div class="importOne">
<div> <div>
<!-- 下载模型按钮 --> <!-- 下载模型按钮 -->
<div class="downloadTemplateDiv"> <div class="downloadTemplateDiv">
<el-button class="downloadTemplateDivButton" type="primary" :loading="downloadTemplateLoading" size="small" @click="downloadTemplate">下载模板</el-button> <el-button class="downloadTemplateDivButton" type="primary" :loading="downloadTemplateLoading" size="small" @click="downloadTemplate">下载模板</el-button>
</div> </div>
<div class="uploadCont"> <div v-if="typeFrom.type === '1'" class="uploadCont">
<el-upload <el-upload
accept=".xlsx, .xls" accept=".xlsx, .xls"
:headers="importControls.headers" :headers="importControls.headers"
...@@ -469,13 +469,17 @@ export default { ...@@ -469,13 +469,17 @@ export default {
return { return {
// 类型表单 // 类型表单
typeFrom: { typeFrom: {
type: 'jb' type: '1'
}, },
// 类型下拉框 // 类型下拉框
typeList: [ typeList: [
{ {
label: 'jb', label: 'jb',
value: '1' value: '1'
},
{
label: 'jl',
value: '20'
} }
], ],
// 导入列表 // 导入列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment