|
@@ -123,6 +123,7 @@
|
|
|
<a-button type="danger" size="small" @click='addList'>新增</a-button>
|
|
|
<a-button size="small" @click='editList'>修改</a-button>
|
|
|
<a-button size="small" @click="delectList">删除</a-button>
|
|
|
+ <a-button size="small" @click="detailList">详情</a-button>
|
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl">
|
|
|
<a-button size="small">导入</a-button>
|
|
|
</a-upload>
|
|
@@ -478,6 +479,16 @@
|
|
|
this.queryParam.pageSize = pagination.pageSize
|
|
|
this.getTableList()
|
|
|
},
|
|
|
+ detailList(){
|
|
|
+ if(this.selectedRowKeys.length==0){
|
|
|
+ this.$message.warning('请选择数据!')
|
|
|
+ }else if(this.selectedRowKeys.length>1){
|
|
|
+ this.$message.warning('请选择一条数据!')
|
|
|
+ }else{
|
|
|
+ this.$refs.safetyStockListDetail.visible=true
|
|
|
+ this.$refs.safetyStockListDetail.getEditData(this.selectedRowKeys[0])
|
|
|
+ }
|
|
|
+ },
|
|
|
//双击
|
|
|
clickRow(record, index){
|
|
|
return {
|