Commit 6d935433 authored by jack_liu's avatar jack_liu

修改

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