|
|
@ -4,6 +4,21 @@ |
|
|
|
<div class="table-page-search-wrapper"> |
|
|
|
<div class="table-page-search-wrapper"> |
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery"> |
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery"> |
|
|
|
<a-row :gutter="24"> |
|
|
|
<a-row :gutter="24"> |
|
|
|
|
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
|
|
|
|
<a-form-model-item label="吊挂编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="organizer"> |
|
|
|
|
|
|
|
<a-input v-model="queryParam.code" placeholder="请输入吊挂编号"></a-input> |
|
|
|
|
|
|
|
</a-form-model-item> |
|
|
|
|
|
|
|
</a-col><a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
|
|
|
|
<a-form-model-item label="工站编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="organizer"> |
|
|
|
|
|
|
|
<a-input v-model="queryParam.point" placeholder="请输入工站编号"></a-input> |
|
|
|
|
|
|
|
</a-form-model-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
|
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
|
|
|
|
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
|
|
|
|
|
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
</a-form> |
|
|
|
</a-form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -13,11 +28,11 @@ |
|
|
|
<div class="table-operator"> |
|
|
|
<div class="table-operator"> |
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('吊挂工位表')">导出</a-button> |
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('吊挂工位表')">导出</a-button> |
|
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
|
|
|
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">--> |
|
|
|
<a-button type="primary" icon="import">导入</a-button> |
|
|
|
<!-- <a-button type="primary" icon="import">导入</a-button>--> |
|
|
|
</a-upload> |
|
|
|
<!-- </a-upload>--> |
|
|
|
<!-- 高级查询区域 --> |
|
|
|
<!-- 高级查询区域 --> |
|
|
|
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
|
|
|
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>--> |
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0"> |
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0"> |
|
|
|
<a-menu slot="overlay"> |
|
|
|
<a-menu slot="overlay"> |
|
|
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
|
|
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
|
|
@ -47,43 +62,12 @@ |
|
|
|
class="j-table-force-nowrap" |
|
|
|
class="j-table-force-nowrap" |
|
|
|
@change="handleTableChange"> |
|
|
|
@change="handleTableChange"> |
|
|
|
|
|
|
|
|
|
|
|
<template slot="htmlSlot" slot-scope="text"> |
|
|
|
|
|
|
|
<div v-html="text"></div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<template slot="imgSlot" slot-scope="text"> |
|
|
|
|
|
|
|
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span> |
|
|
|
|
|
|
|
<img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<template slot="fileSlot" slot-scope="text"> |
|
|
|
|
|
|
|
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span> |
|
|
|
|
|
|
|
<a-button |
|
|
|
|
|
|
|
v-else |
|
|
|
|
|
|
|
:ghost="true" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
icon="download" |
|
|
|
|
|
|
|
size="small" |
|
|
|
|
|
|
|
@click="downloadFile(text)"> |
|
|
|
|
|
|
|
下载 |
|
|
|
|
|
|
|
</a-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
<a @click="handleEdit(record)">编辑</a> |
|
|
|
<a @click="handleEdit(record)">编辑</a> |
|
|
|
|
|
|
|
|
|
|
|
<a-divider type="vertical"/> |
|
|
|
<a-divider type="vertical"/> |
|
|
|
<a-dropdown> |
|
|
|
|
|
|
|
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
|
|
|
|
|
|
|
<a-menu slot="overlay"> |
|
|
|
|
|
|
|
<a-menu-item> |
|
|
|
|
|
|
|
<a @click="handleDetail(record)">详情</a> |
|
|
|
|
|
|
|
</a-menu-item> |
|
|
|
|
|
|
|
<a-menu-item> |
|
|
|
|
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
|
|
|
<a>删除</a> |
|
|
|
<a>删除</a> |
|
|
|
</a-popconfirm> |
|
|
|
</a-popconfirm> |
|
|
|
</a-menu-item> |
|
|
|
|
|
|
|
</a-menu> |
|
|
|
|
|
|
|
</a-dropdown> |
|
|
|
|
|
|
|
</span> |
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
|
|
</a-table> |
|
|
|
</a-table> |
|
|
@ -124,7 +108,7 @@ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title:'吊挂编号', |
|
|
|
title:'吊挂编号', |
|
|
|
align:"center", |
|
|
|
align:"center", |
|
|
|
dataIndex: 'code_dictText' |
|
|
|
dataIndex: 'code' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title:'工站编号', |
|
|
|
title:'工站编号', |
|
|
@ -132,7 +116,7 @@ |
|
|
|
dataIndex: 'point' |
|
|
|
dataIndex: 'point' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title:'工位id', |
|
|
|
title:'工位名称', |
|
|
|
align:"center", |
|
|
|
align:"center", |
|
|
|
dataIndex: 'stationId_dictText' |
|
|
|
dataIndex: 'stationId_dictText' |
|
|
|
}, |
|
|
|
}, |
|
|
@ -178,6 +162,3 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
|
|
|
|
@import '~@assets/less/common.less'; |
|
|
|
|
|
|
|
</style> |
|
|
|
|