|
|
|
@ -1,5 +1,13 @@ |
|
|
|
|
<template> |
|
|
|
|
<a-card :bordered="false"> |
|
|
|
|
<!-- <a-card :bordered="false">--> |
|
|
|
|
<a-modal |
|
|
|
|
width="70%" |
|
|
|
|
title="评分项管理" |
|
|
|
|
:visible="visible" |
|
|
|
|
:confirm-loading="confirmLoading" |
|
|
|
|
@ok="handleOk" |
|
|
|
|
@cancel="handleCancel" |
|
|
|
|
> |
|
|
|
|
<!-- 查询区域 --> |
|
|
|
|
<!-- <div class="table-page-search-wrapper">--> |
|
|
|
|
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">--> |
|
|
|
@ -11,7 +19,7 @@ |
|
|
|
|
|
|
|
|
|
<!-- 操作按钮区域 --> |
|
|
|
|
<div class="table-operator"> |
|
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
|
|
|
|
<a-button @click="handleAdd1(yid)" 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"> |
|
|
|
@ -76,9 +84,9 @@ |
|
|
|
|
</a-button> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<span slot="action2" slot-scope="text, record"> |
|
|
|
|
<a @click="viewVid(record)">查看</a> |
|
|
|
|
</span> |
|
|
|
|
<!-- <span slot="action2" slot-scope="text, record">--> |
|
|
|
|
<!-- <a @click="viewVid(record)">查看</a>--> |
|
|
|
|
<!-- </span>--> |
|
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
|
<a @click="handleEdit(record)">编辑</a> |
|
|
|
|
|
|
|
|
@ -107,8 +115,8 @@ |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<zy-cloths-modular-compent-modal ref="modalForm" @ok="modalFormOk"></zy-cloths-modular-compent-modal> |
|
|
|
|
<ZyClothsMccList ref="ZyClothsMccList"></ZyClothsMccList> |
|
|
|
|
</a-card> |
|
|
|
|
<!-- <ZyClothsMccList ref="ZyClothsMccList"></ZyClothsMccList>--> |
|
|
|
|
</a-modal> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
@ -123,12 +131,14 @@ export default { |
|
|
|
|
name: 'ZyClothsModularCompentList', |
|
|
|
|
mixins: [JeecgListMixin, mixinDevice], |
|
|
|
|
components: { |
|
|
|
|
ZyClothsMccList, |
|
|
|
|
ZyClothsModularCompentModal |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
description: '制衣模块部件中间表管理页面', |
|
|
|
|
visible: false, |
|
|
|
|
confirmLoading: false, |
|
|
|
|
yid:'', |
|
|
|
|
// 表头 |
|
|
|
|
columns: [ |
|
|
|
|
{ |
|
|
|
@ -146,11 +156,11 @@ export default { |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'nums' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '模块部件名称', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'modularType_dictText' |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// title: '模块部件名称', |
|
|
|
|
// align: "center", |
|
|
|
|
// dataIndex: 'modularType_dictText' |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// title:'制衣模块类型', |
|
|
|
|
// align:"center", |
|
|
|
@ -168,17 +178,27 @@ export default { |
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
title: '创建时间', |
|
|
|
|
title: '模块名称', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'createTime' |
|
|
|
|
dataIndex: 'modularId_dictText' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '制衣部件', |
|
|
|
|
dataIndex: 'action2', |
|
|
|
|
title: '部件名称', |
|
|
|
|
align: "center", |
|
|
|
|
width: "100", |
|
|
|
|
scopedSlots: {customRender: 'action2'} |
|
|
|
|
dataIndex: 'partsName_dictText' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '创建时间', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'createTime' |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// title: '制衣部件', |
|
|
|
|
// dataIndex: 'action2', |
|
|
|
|
// align: "center", |
|
|
|
|
// width: "100", |
|
|
|
|
// scopedSlots: {customRender: 'action2'} |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
title: '操作', |
|
|
|
|
dataIndex: 'action', |
|
|
|
@ -209,11 +229,36 @@ export default { |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
viewVid(record){ |
|
|
|
|
this.$refs.ZyClothsMccList.showModal(); |
|
|
|
|
this.$refs.ZyClothsMccList.edit(record); |
|
|
|
|
this.$refs.ZyClothsMccList.disableSubmit = false; |
|
|
|
|
edit1(record) { |
|
|
|
|
this.model = Object.assign({}, record); |
|
|
|
|
//this.ax= this.model.id; |
|
|
|
|
//console.log(topicid); |
|
|
|
|
this.yid = this.model.id; |
|
|
|
|
this.queryParam.modularId = this.model.id; |
|
|
|
|
console.log( "aaaaaaa "+this.queryParam.modularId); |
|
|
|
|
this.loadData(); |
|
|
|
|
this.visible = true; |
|
|
|
|
}, |
|
|
|
|
showModal1() { |
|
|
|
|
this.visible = true; |
|
|
|
|
}, |
|
|
|
|
handleOk(e) { |
|
|
|
|
this.ModalText = 'The modal will be closed after two seconds'; |
|
|
|
|
this.confirmLoading = true; |
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.visible = false; |
|
|
|
|
this.confirmLoading = false; |
|
|
|
|
}, 2000); |
|
|
|
|
}, |
|
|
|
|
handleCancel(e) { |
|
|
|
|
console.log('Clicked cancel button'); |
|
|
|
|
this.visible = false; |
|
|
|
|
}, |
|
|
|
|
// viewVid(record){ |
|
|
|
|
// this.$refs.ZyClothsMccList.showModal(); |
|
|
|
|
// this.$refs.ZyClothsMccList.edit(record); |
|
|
|
|
// this.$refs.ZyClothsMccList.disableSubmit = false; |
|
|
|
|
// }, |
|
|
|
|
initDictConfig() { |
|
|
|
|
}, |
|
|
|
|
getSuperFieldList() { |
|
|
|
|