|
|
@ -1,9 +1,29 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<a-card :bordered="false"> |
|
|
|
<a-card :bordered="false"> |
|
|
|
|
|
|
|
<p style="font-size: 30px;color:#333;padding-left: 35%">{{biaoTi}}</p> |
|
|
|
<!-- 查询区域 --> |
|
|
|
<!-- 查询区域 --> |
|
|
|
<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="7" :lg="7" :md="8" :sm="24"> |
|
|
|
|
|
|
|
<a-form-item label="模块编号"> |
|
|
|
|
|
|
|
<a-input placeholder="模块编号" v-model="queryParam.styleModuleId"></a-input> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
|
|
|
|
<a-form-item label="模块名称"> |
|
|
|
|
|
|
|
<j-dict-select-tag placeholder="请选择模块名称" dictCode="zy_cloths_modular,modular_name,id" |
|
|
|
|
|
|
|
v-model="queryParam.modularId"></j-dict-select-tag> |
|
|
|
|
|
|
|
</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> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
</a-form> |
|
|
|
</a-form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -11,19 +31,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!-- 操作按钮区域 --> |
|
|
|
<!-- 操作按钮区域 --> |
|
|
|
<div class="table-operator"> |
|
|
|
<div class="table-operator"> |
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
|
|
|
<a-button type="primary" icon="rollback" @click="fanHui()">返回</a-button> |
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('工单管理下面的产品模块')">导出</a-button> |
|
|
|
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>--> |
|
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
|
|
|
<!-- <a-button type="primary" icon="download" @click="handleExportXls('工单管理下面的产品模块')">导出</a-button>--> |
|
|
|
<a-button type="primary" icon="import">导入</a-button> |
|
|
|
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">--> |
|
|
|
</a-upload> |
|
|
|
<!-- <a-button type="primary" icon="import">导入</a-button>--> |
|
|
|
<!-- 高级查询区域 --> |
|
|
|
<!-- </a-upload>--> |
|
|
|
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>--> |
|
|
|
|
|
|
|
<!-- <a-dropdown v-if="selectedRowKeys.length > 0">--> |
|
|
|
|
|
|
|
<!-- <a-menu slot="overlay">--> |
|
|
|
|
|
|
|
<!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>--> |
|
|
|
|
|
|
|
<!-- </a-menu>--> |
|
|
|
|
|
|
|
<!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>--> |
|
|
|
|
|
|
|
<!-- </a-dropdown>--> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- table区域-begin --> |
|
|
|
<!-- table区域-begin --> |
|
|
@ -68,7 +82,7 @@ |
|
|
|
</template> |
|
|
|
</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 @click="handleDetail(record)">详情</a> |
|
|
|
<a @click="handleDetail(record)">详情</a> |
|
|
|
<a-divider type="vertical" /> |
|
|
|
<a-divider type="vertical" /> |
|
|
@ -100,6 +114,8 @@ |
|
|
|
data () { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
description: '工单管理下面的产品模块管理页面', |
|
|
|
description: '工单管理下面的产品模块管理页面', |
|
|
|
|
|
|
|
biaoTi:'', |
|
|
|
|
|
|
|
loadRouteType: false, |
|
|
|
// 表头 |
|
|
|
// 表头 |
|
|
|
columns: [ |
|
|
|
columns: [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -118,12 +134,13 @@ |
|
|
|
dataIndex: 'productId' |
|
|
|
dataIndex: 'productId' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title:'款式模块id', |
|
|
|
// title:'款式模块id', |
|
|
|
|
|
|
|
title:'模块编号', |
|
|
|
align:"center", |
|
|
|
align:"center", |
|
|
|
dataIndex: 'styleModuleId' |
|
|
|
dataIndex: 'styleModuleId' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title:'模块id', |
|
|
|
title:'模块名称', |
|
|
|
align:"center", |
|
|
|
align:"center", |
|
|
|
dataIndex: 'moduleId' |
|
|
|
dataIndex: 'moduleId' |
|
|
|
}, |
|
|
|
}, |
|
|
@ -159,7 +176,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
|
this.getSuperFieldList(); |
|
|
|
// this.getSuperFieldList(); |
|
|
|
|
|
|
|
this.loadParameter(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
importExcelUrl: function(){ |
|
|
|
importExcelUrl: function(){ |
|
|
@ -167,6 +185,19 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
fanHui(){ |
|
|
|
|
|
|
|
this.$router.push({ |
|
|
|
|
|
|
|
/*返回产品*/ |
|
|
|
|
|
|
|
path: '/WorkProduct',/*在引号中填写返回vue*/ |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
loadParameter() { |
|
|
|
|
|
|
|
if (this.loadRouteType === false) { |
|
|
|
|
|
|
|
this.biaoTi=this.$route.query.productName+" 产品模块管理"; |
|
|
|
|
|
|
|
console.log("***********",this.$route.query.productName) |
|
|
|
|
|
|
|
this.loadRouteType = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
initDictConfig(){ |
|
|
|
initDictConfig(){ |
|
|
|
}, |
|
|
|
}, |
|
|
|
getSuperFieldList(){ |
|
|
|
getSuperFieldList(){ |
|
|
|