2023-1-9产品部件工序修缮

zhc4dev
lenovo 2 years ago
parent 00ce5ee23e
commit 5e36a9c53f
  1. 16
      ant-design-vue-jeecg/src/views/pdcomponentprocess/ProductComponentProcessList.vue
  2. 8
      ant-design-vue-jeecg/src/views/pdmodulecomponent/ProductModuleComponentList.vue

@ -1,5 +1,6 @@
<template> <template>
<a-card :bordered="false"> <a-card :bordered="false">
<p style="font-size: 30px;color:#333">{{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">
@ -33,6 +34,7 @@
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<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 @click="fanhui" 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>-->
@ -127,6 +129,8 @@
productId:'', productId:'',
processId:'', processId:'',
componentId:'', componentId:'',
biaoTi: '',
idt:'',
// //
columns: [ columns: [
{ {
@ -188,6 +192,7 @@
} }
}, },
created() { created() {
this.idt=this.$route.query.product;
this.getSuperFieldList(); this.getSuperFieldList();
}, },
computed: { computed: {
@ -214,6 +219,15 @@
this.$message.warning(res.message); this.$message.warning(res.message);
} }
})}, })},
fanhui(){
this.$router.push({
/*返回产品*/
path: '/pdmodulecomponent/ProductModuleComponentList',/*在引号中填写返回vue*/
query:{
id:this.idt,
}
});
},
initDictConfig(){ initDictConfig(){
}, },
valueChange(value){ valueChange(value){
@ -232,7 +246,7 @@
loadParameter() { loadParameter() {
if (this.loadRouteType === false) { if (this.loadRouteType === false) {
this.id = this.$route.query.id; this.id = this.$route.query.id;
console.log("***********") this.biaoTi = this.$route.query.styleNames+"部件工序管理";
this.loadRouteType = true; this.loadRouteType = true;
} }
}, },

@ -83,7 +83,7 @@
</a-button> </a-button>
</template> </template>
<span slot="action1" slot-scope="text, record"> <span slot="action1" slot-scope="text, record">
<a @click="bujian(record.id)">管理</a> <a @click="bujian(record.id,record.componentId_dictText,idt)">管理</a>
</span> </span>
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
@ -122,6 +122,7 @@
description: '产品模块部件表管理页面', description: '产品模块部件表管理页面',
component:'', component:'',
productId:'', productId:'',
idt:'',
// //
columns: [ columns: [
{ {
@ -188,6 +189,7 @@
} }
}, },
created() { created() {
this.idt=this.$route.query.id;
this.getSuperFieldList(); this.getSuperFieldList();
}, },
computed: { computed: {
@ -214,11 +216,13 @@
this.$message.warning(res.message); this.$message.warning(res.message);
} }
})}, })},
bujian(id){ bujian(id,name,product){
this.$router.push({ this.$router.push({
path: '/pdcomponentprocess/ProductComponentProcessList', path: '/pdcomponentprocess/ProductComponentProcessList',
query: { // query: { //
'id': id, 'id': id,
name:name,
product:product
} }
}); });
}, },

Loading…
Cancel
Save