Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2022-10-10 17:12:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e486630cf57b8881c959f5e717c97aa10713c72f
e486630c
1 parent
236ca55b
货站品名增加品名查询条件
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
src/views/basicInformation/goodsStation/index.vue
src/views/basicInformation/goodsStation/index.vue
View file @
e486630
...
...
@@ -8,6 +8,11 @@
<el-input v-model="selectionData.goodsStation" placeholder="请输入货站名称" maxlength="50" clearable />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="品名">
<el-input v-model="selectionData.goodsName" placeholder="请输入货站名称" maxlength="50" clearable />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div style="display:flex;padding:10px 20px">
...
...
@@ -28,6 +33,10 @@
class="upload-demo" v-hasPermi="['base:goodsStation:add']">
<el-button type="primary" icon="el-icon-upload2" size="small">导入Excel</el-button>
</el-upload>
<el-button icon="el-icon-download" type="primary" size="small" style="margin-left:10px"
@click="downloadExcel">
导出Excel
</el-button>
</div>
<Tables ref="goodsStation" ductName="goodsStation" :data="tableData" :headerData="tableHeader" :selection="true"
:order="true" :selectFixed="false" :totalCount="totalCount" :loading="loading"
...
...
@@ -43,8 +52,7 @@
</el-table-column>
</template>
</Tables>
<Dialog :open="open" @close="close" />
<UpDateResult :dialogVisible="resultOpen" :resultData="errorData" @close="resultClose" />
<Dialog :open="open" :openStatus="openStatus" @close="close" />
</div>
</template>
...
...
@@ -64,6 +72,7 @@ export default {
return {
selectionData: {
goodsStation: '',
goodsName: '',
size: 20,
page: 1
},
...
...
@@ -74,9 +83,9 @@ export default {
errorData: [],
tableHeight: null,
totalCount: 0,
openStatus: '',
loading: false,
open: false,
resultOpen: false,
}
},
created() {
...
...
@@ -118,6 +127,7 @@ export default {
//新增
add() {
this.open = true
this.openStatus = 'add'
},
//删除
del(val) {
...
...
@@ -160,6 +170,11 @@ export default {
console.log(err)
})
},
//导出
downloadExcel() {
this.open = true
this.openStatus = 'downloadExcel'
},
//复选
tableSelect(val) {
this.checkData = val.selection
...
...
@@ -186,15 +201,14 @@ export default {
type: "warning",
});
} else {
this.$message.warning(res.msg);
this.errorData = res.data;
if (this.errorData.length > 0) {
this.resultOpen = true
this.$message.warning(res.msg);
this.errorData = res.data;
this.$router.push({ name: 'UpDateResult', params: { data: this.errorData, from: 'FlightInformationImport' } })
}
}
} else {
this.$message.success(res.msg);
this.errorData = res.data;
this.selection(1)
}
});
...
...
@@ -233,6 +247,7 @@ export default {
},
close() {
this.open = false
this.openStatus = ''
this.selection(1)
},
resultClose() {
...
...
Please
register
or
login
to post a comment