|
|
|
@ -2,41 +2,41 @@ |
|
|
|
|
<a-card :bordered="false"> |
|
|
|
|
|
|
|
|
|
<!-- 查询区域 --> |
|
|
|
|
<div class="table-page-search-wrapper"> |
|
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery"> |
|
|
|
|
<a-row :gutter="24"> |
|
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
|
<a-form-item label="工位ID"> |
|
|
|
|
<a-input placeholder="请输入工位ID" v-model="queryParam.stationId"></a-input> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
|
<a-form-item label="工具ID"> |
|
|
|
|
<a-input placeholder="请输入工具ID" v-model="queryParam.toolsId"></a-input> |
|
|
|
|
</a-form-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> |
|
|
|
|
<a @click="handleToggleSearch" style="margin-left: 8px"> |
|
|
|
|
{{ toggleSearchStatus ? '收起' : '展开' }} |
|
|
|
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> |
|
|
|
|
</a> |
|
|
|
|
</span> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
</a-form> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div class="table-page-search-wrapper">--> |
|
|
|
|
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">--> |
|
|
|
|
<!-- <a-row :gutter="24">--> |
|
|
|
|
<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">--> |
|
|
|
|
<!-- <a-form-item label="工位ID">--> |
|
|
|
|
<!-- <a-input placeholder="请输入工位ID" v-model="queryParam.stationId"></a-input>--> |
|
|
|
|
<!-- </a-form-item>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">--> |
|
|
|
|
<!-- <a-form-item label="工具ID">--> |
|
|
|
|
<!-- <a-input placeholder="请输入工具ID" v-model="queryParam.toolsId"></a-input>--> |
|
|
|
|
<!-- </a-form-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>--> |
|
|
|
|
<!-- <a @click="handleToggleSearch" style="margin-left: 8px">--> |
|
|
|
|
<!-- {{ toggleSearchStatus ? '收起' : '展开' }}--> |
|
|
|
|
<!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>--> |
|
|
|
|
<!-- </a>--> |
|
|
|
|
<!-- </span>--> |
|
|
|
|
<!-- </a-col>--> |
|
|
|
|
<!-- </a-row>--> |
|
|
|
|
<!-- </a-form>--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
|
|
|
|
<!-- 操作按钮区域 --> |
|
|
|
|
<div class="table-operator"> |
|
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</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-button type="primary" icon="import">导入</a-button>--> |
|
|
|
|
<!-- </a-upload>--> |
|
|
|
|
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"--> |
|
|
|
|
<!-- @change="handleImportExcel">--> |
|
|
|
|
<!-- <a-button type="primary" icon="import">导入</a-button>--> |
|
|
|
|
<!-- </a-upload>--> |
|
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0"> |
|
|
|
|
<a-menu slot="overlay"> |
|
|
|
|
<a-menu-item key="1" @click="batchDel"> |
|
|
|
@ -74,19 +74,21 @@ |
|
|
|
|
@change="handleTableChange"> |
|
|
|
|
|
|
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
|
<a @click="handleEdit(record)">编辑</a> |
|
|
|
|
|
|
|
|
|
<a-divider type="vertical"/> |
|
|
|
|
<a-dropdown> |
|
|
|
|
<a class="ant-dropdown-link">更多 <a-icon type="down"/></a> |
|
|
|
|
<a-menu slot="overlay"> |
|
|
|
|
<a-menu-item> |
|
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
|
|
|
|
<!-- <a @click="handleEdit(record)">编辑</a>--> |
|
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
|
|
|
|
<a>删除</a> |
|
|
|
|
</a-popconfirm> |
|
|
|
|
</a-menu-item> |
|
|
|
|
</a-menu> |
|
|
|
|
</a-dropdown> |
|
|
|
|
</a-popconfirm> |
|
|
|
|
<!-- <a-divider type="vertical"/>--> |
|
|
|
|
<!-- <a-dropdown>--> |
|
|
|
|
<!-- <a class="ant-dropdown-link">更多 <a-icon type="down"/></a>--> |
|
|
|
|
<!-- <a-menu slot="overlay">--> |
|
|
|
|
<!-- <a-menu-item>--> |
|
|
|
|
<!-- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">--> |
|
|
|
|
<!-- <a>删除</a>--> |
|
|
|
|
<!-- </a-popconfirm>--> |
|
|
|
|
<!-- </a-menu-item>--> |
|
|
|
|
<!-- </a-menu>--> |
|
|
|
|
<!-- </a-dropdown>--> |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
</a-table> |
|
|
|
@ -106,7 +108,7 @@ import {JeecgListMixin} from '@/mixins/JeecgListMixin' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: "StationToolList", |
|
|
|
|
mixins: [JeecgListMixin,mixinDevice], |
|
|
|
|
mixins: [JeecgListMixin, mixinDevice], |
|
|
|
|
components: { |
|
|
|
|
StationToolModal |
|
|
|
|
}, |
|
|
|
@ -156,7 +158,8 @@ export default { |
|
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: {fanHui() { |
|
|
|
|
methods: { |
|
|
|
|
fanHui() { |
|
|
|
|
this.$router.push({ |
|
|
|
|
path: '/team/StationList', |
|
|
|
|
// query: { // 路由携带参数 |
|
|
|
@ -165,7 +168,8 @@ export default { |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
}); |
|
|
|
|
},} |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style scoped> |
|
|
|
|