Commit 11685485 by lichengming
parents 4d33b278 2d5b7f26
...@@ -47,15 +47,15 @@ ...@@ -47,15 +47,15 @@
<Col span="24"> <Col span="24">
<!-- <btn-list :msg="btn" :open="searchOpen" :showSearchBtn="false" @on-result-change="_btnClick"--> <!-- <btn-list :msg="btn" :open="searchOpen" :showSearchBtn="false" @on-result-change="_btnClick"-->
<!-- class="contHide"></btn-list>--> <!-- class="contHide"></btn-list>-->
<Button @click="_add()" type="success">添加</Button> <Button type="success" @click="_add()">添加</Button>
</Col> </Col>
<Col span="24"> <Col span="24">
<PTVXETable <PTVXETable
ref="pageTable" ref="pageTable"
:form-id="formId" :form-id="formId"
:tableHeight="500" :table-height="500"
:getPage="getPage" :get-page="getPage"
:iconMsg="iconMsg" :icon-msg="iconMsg"
@on-result-change="_tableResultChange"> @on-result-change="_tableResultChange">
<vxe-table-column <vxe-table-column
v-for="item in pageColumns" v-for="item in pageColumns"
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="item.key==='name'" @click.stop="_handleRow(scope)"> <div v-if="item.key==='name'" @click.stop="_handleRow(scope)">
<el-input v-model="scope.row.name" blur placeholder="请输入或选择样品名称" <el-input v-model="scope.row.name" blur placeholder="请输入或选择样品名称" @click.native="_selectAptitude(scope.$index)"
></el-input> ></el-input>
</div> </div>
<div v-if="item.key==='spec'" @click.stop="_handleRow(scope)"> <div v-if="item.key==='spec'" @click.stop="_handleRow(scope)">
...@@ -94,9 +94,9 @@ ...@@ -94,9 +94,9 @@
<!-- ></el-input>--> <!-- ></el-input>-->
<el-input <el-input
v-model="scope.row.quantity" v-model="scope.row.quantity"
@keydown.native="channelInputLimit"
type="number" type="number"
placeholder="请输入或选择数量" placeholder="请输入或选择数量"
@keydown.native="channelInputLimit"
/> />
</div> </div>
</template> </template>
...@@ -231,6 +231,10 @@ export default { ...@@ -231,6 +231,10 @@ export default {
break break
} }
}, },
_selectAptitude(data) {
console.log(data)
},
_handleRow(data) { _handleRow(data) {
this.currentRow = data.row this.currentRow = data.row
this.currentIndex = data.rowIndex this.currentIndex = data.rowIndex
......
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