Commit 6d935433 authored by jack_liu's avatar jack_liu

修改

parent ccb2388c
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
ref="queryForm" ref="queryForm"
:model="queryParams" :model="queryParams"
:inline="true" :inline="true"
label-width="60px" label-width="60px">
>
<el-form-item style="flex-basis: 50%" prop="ptype"> <el-form-item style="flex-basis: 50%" prop="ptype">
<el-input <el-input
v-model.trim="queryParams.ptype" v-model.trim="queryParams.ptype"
...@@ -15,22 +14,26 @@ ...@@ -15,22 +14,26 @@
:maxlength="100" :maxlength="100"
size="small" size="small"
style="width: 350px" style="width: 350px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery">
>
<template slot="prepend">ptype</template></el-input> <template slot="prepend">ptype</template></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" size="small" icon="el-icon-search" @click="handleQuery">查询</el-button> <el-button
type="primary"
size="small"
icon="el-icon-search"
@click="handleQuery"
>查询</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table <el-table
ref="dictTable" ref="dictTable"
:gutter="40" :gutter="40"
border border
v-loading="loading"
row-key="index" row-key="index"
:data="dictList" :data="dictList"
@selection-change="handleDictSelectionChange" @selection-change="handleDictSelectionChange">
>
<el-table-column <el-table-column
:reserve-selection="true" :reserve-selection="true"
type="selection" type="selection"
...@@ -80,20 +83,22 @@ export default { ...@@ -80,20 +83,22 @@ export default {
return { return {
dictList: [], dictList: [],
// 遮罩层 // 遮罩层
loading: true, loading: false,
// 选中数组 // 选中数组
multipleSelection: [], multipleSelection: [],
dictSelection: [], dictSelection: [],
queryParams: { queryParams: {
ptype: '',
key: 'GX_CODE' key: 'GX_CODE'
} }
} }
}, },
created() { created() {
this.listData() this.listData()
}, },
methods: { methods: {
listData() { listData() {
this.loading = true
getDictData(this.queryParams).then(res => { getDictData(this.queryParams).then(res => {
console.log(res) console.log(res)
this.dictList = res.data this.dictList = res.data
...@@ -108,7 +113,7 @@ export default { ...@@ -108,7 +113,7 @@ export default {
return return
} }
submit({ submit({
list: this.dictSelection, list: this.dictSelection.map(item => item.dictValue),
ptype: this.queryParams.ptype ptype: this.queryParams.ptype
}).then(res => { }).then(res => {
if (res.code === 200) { if (res.code === 200) {
......
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