|
|
@ -11,8 +11,8 @@ |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
<a-form-item label="成衣名称"> |
|
|
|
<a-form-item label="款式"> |
|
|
|
<a-input placeholder="请输入成衣名称" v-model="queryParam.clothName"></a-input> |
|
|
|
<a-input placeholder="请输入款式" v-model="queryParam.styleId"></a-input> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
@ -108,6 +108,11 @@ |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: 跳转到模块样板 |
|
|
|
|
|
|
|
<span slot="action1" slot-scope="text, record"> |
|
|
|
|
|
|
|
<a @click="jumpPage(record)">模块样板</a> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
|
|
<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"/> |
|
|
@ -115,6 +120,7 @@ |
|
|
|
<!-- <a @click="fuzhi(record)">复制</a>--> |
|
|
|
<!-- <a @click="fuzhi(record)">复制</a>--> |
|
|
|
<!-- <a-divider type="vertical" />--> |
|
|
|
<!-- <a-divider type="vertical" />--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <a @click="handleDetail(record.id)">详情</a>--> |
|
|
|
<a @click="handleDetail(record)">详情</a> |
|
|
|
<a @click="handleDetail(record)">详情</a> |
|
|
|
|
|
|
|
|
|
|
|
<a-divider type="vertical"/> |
|
|
|
<a-divider type="vertical"/> |
|
|
@ -132,7 +138,6 @@ |
|
|
|
<a-menu-item> |
|
|
|
<a-menu-item> |
|
|
|
<!–<a @click="handleDetail(record)">详情</a>–> |
|
|
|
<!–<a @click="handleDetail(record)">详情</a>–> |
|
|
|
<a @click="openDetail(record.id)">详情</a> |
|
|
|
<a @click="openDetail(record.id)">详情</a> |
|
|
|
|
|
|
|
|
|
|
|
</a-menu-item> |
|
|
|
</a-menu-item> |
|
|
|
<a-menu-item> |
|
|
|
<a-menu-item> |
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
|
|
@ -146,7 +151,7 @@ |
|
|
|
</a-table> |
|
|
|
</a-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<ZyClothSampleDetail ref="ZyClothSampleDetail"></ZyClothSampleDetail> |
|
|
|
<ZyClothSampleDetail ref="ZyClothSampleDetail"></ZyClothSampleDetail> |
|
|
|
<zy-cloth-sample-modal ref="modalForm" @ok="modalFormOk"></zy-cloth-sample-modal> |
|
|
|
<zy-cloth-sample-modal ref="modalForm" @ok="modalFormOk" v-bind="superFieldList"></zy-cloth-sample-modal> |
|
|
|
</a-card> |
|
|
|
</a-card> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -188,23 +193,27 @@ export default { |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '款式', |
|
|
|
title: '款式', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'styleId' |
|
|
|
dataIndex: 'styleId', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '型号', |
|
|
|
title: '型号', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'stylemodelId' |
|
|
|
dataIndex: 'stylemodelId_dictText', |
|
|
|
}, |
|
|
|
//dictCode: 'modenumber', |
|
|
|
/*{ |
|
|
|
|
|
|
|
title: '模块样板', |
|
|
|
|
|
|
|
align: "center", |
|
|
|
|
|
|
|
dataIndex: 'modelSample' |
|
|
|
|
|
|
|
},*/ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '模块样板', |
|
|
|
|
|
|
|
align: "center", |
|
|
|
|
|
|
|
dataIndex: 'modelSample_dictText' |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// title: '模块样板', |
|
|
|
|
|
|
|
// align: "center", |
|
|
|
|
|
|
|
// dataIndex: 'modelSample_dictText' |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// title: '管理模块', |
|
|
|
|
|
|
|
// dataIndex: 'action1', |
|
|
|
|
|
|
|
// align: "center", |
|
|
|
|
|
|
|
// fixed: "right", |
|
|
|
|
|
|
|
// width: 110, |
|
|
|
|
|
|
|
// scopedSlots: {customRender: 'action1'} |
|
|
|
|
|
|
|
// }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '用户名', |
|
|
|
title: '用户名', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
@ -216,27 +225,21 @@ export default { |
|
|
|
dataIndex: 'createTime' |
|
|
|
dataIndex: 'createTime' |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/*{ |
|
|
|
|
|
|
|
title: '成衣名称', |
|
|
|
|
|
|
|
align: "center", |
|
|
|
|
|
|
|
dataIndex: 'clothName' |
|
|
|
|
|
|
|
},*/ |
|
|
|
|
|
|
|
/*{ |
|
|
|
|
|
|
|
title: '描述', |
|
|
|
|
|
|
|
align: "center", |
|
|
|
|
|
|
|
dataIndex: 'descr' |
|
|
|
|
|
|
|
},*/ |
|
|
|
|
|
|
|
/*{ |
|
|
|
/*{ |
|
|
|
title: '图片', |
|
|
|
title: '图片', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'url', |
|
|
|
dataIndex: 'url', |
|
|
|
scopedSlots: {customRender: 'imgSlot'} |
|
|
|
scopedSlots: {customRender: 'imgSlot'} |
|
|
|
},*/ |
|
|
|
},*/ |
|
|
|
/*{ |
|
|
|
|
|
|
|
title: '用户类型', |
|
|
|
{ |
|
|
|
|
|
|
|
title: '管理模块', |
|
|
|
|
|
|
|
dataIndex: 'action1', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'type' |
|
|
|
fixed: "right", |
|
|
|
},*/ |
|
|
|
width: 110, |
|
|
|
|
|
|
|
scopedSlots: {customRender: 'action1'} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|
title: '操作', |
|
|
@ -249,6 +252,7 @@ export default { |
|
|
|
], |
|
|
|
], |
|
|
|
url: { |
|
|
|
url: { |
|
|
|
list: "/zyclothsample/zyClothSample/list", |
|
|
|
list: "/zyclothsample/zyClothSample/list", |
|
|
|
|
|
|
|
edit: "/zyclothsample/zyClothSample/edit", |
|
|
|
delete: "/zyclothsample/zyClothSample/delete", |
|
|
|
delete: "/zyclothsample/zyClothSample/delete", |
|
|
|
deleteBatch: "/zyclothsample/zyClothSample/deleteBatch", |
|
|
|
deleteBatch: "/zyclothsample/zyClothSample/deleteBatch", |
|
|
|
exportXlsUrl: "/zyclothsample/zyClothSample/exportXls", |
|
|
|
exportXlsUrl: "/zyclothsample/zyClothSample/exportXls", |
|
|
@ -261,7 +265,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
|
this.getSuperFieldList(); |
|
|
|
this.getSuperFieldList(); |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
importExcelUrl: function () { |
|
|
|
importExcelUrl: function () { |
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
|
|
@ -270,27 +275,42 @@ export default { |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
initDictConfig() { |
|
|
|
initDictConfig() { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
jumpPage(record) { |
|
|
|
|
|
|
|
this.$router.push({ |
|
|
|
|
|
|
|
path: '/src/views/sample/ZyModuleSampleList', |
|
|
|
|
|
|
|
// query: { //路由携带参数 |
|
|
|
|
|
|
|
// 'id': record.id, |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
lookFile(fileUrl) { |
|
|
|
lookFile(fileUrl) { |
|
|
|
let file = window._CONFIG['domianURL'] + "/sys/common/static/" + fileUrl |
|
|
|
let file = window._CONFIG['domianURL'] + "/sys/common/static/" + fileUrl |
|
|
|
let Base64 = require('js-base64').Base64; |
|
|
|
let Base64 = require('js-base64').Base64; |
|
|
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(file)) |
|
|
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(file)) |
|
|
|
window.open(url); |
|
|
|
window.open(url); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
, |
|
|
|
getSuperFieldList() { |
|
|
|
getSuperFieldList() { |
|
|
|
let fieldList = []; |
|
|
|
let fieldList = []; |
|
|
|
fieldList.push({type: 'string', value: 'nums', text: '编号', dictCode:''}) |
|
|
|
fieldList.push({type: 'string', value: 'nums', text: '编号', dictCode:''}) |
|
|
|
fieldList.push({type: 'string', value: 'styleId', text: '款式', dictCode:''}) |
|
|
|
fieldList.push({type: 'string', value: 'styleId', text: '款式', dictCode:''}) |
|
|
|
fieldList.push({type: 'string', value: 'stylemodelId', text: '型号', dictCode: ''}) |
|
|
|
fieldList.push({type: 'string', value: 'stylemodelId', text: '型号', dictCode: 'modenumber'}) |
|
|
|
fieldList.push({type: 'string', value: 'modelSample', text: '模块样板', dictCode: ''}) |
|
|
|
fieldList.push({type: 'string', value: 'modelSample', text: '模块样板', dictCode: ''}) |
|
|
|
fieldList.push({type: 'string', value: 'userId', text: '用户名', dictCode: ''}) |
|
|
|
fieldList.push({type: 'string', value: 'userId', text: '用户名', dictCode: ''}) |
|
|
|
fieldList.push({type: 'string', value: 'createTime', text: '创建时间', dictCode: ''}) |
|
|
|
fieldList.push({type: 'string', value: 'createTime', text: '创建时间', dictCode: ''}) |
|
|
|
this.superFieldList = fieldList |
|
|
|
this.superFieldList = fieldList |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
, |
|
|
|
openDetail(id) { |
|
|
|
openDetail(id) { |
|
|
|
this.$refs.ZyClothSampleDetail.showModal(id) |
|
|
|
this.$refs.ZyClothSampleDetail.showModal(id) |
|
|
|
// this.$children[0].showModal(id) |
|
|
|
// this.$children[0].showModal(id) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
, |
|
|
|
|
|
|
|
// handleDetail(id){ |
|
|
|
|
|
|
|
// this.$refs.ZyClothSampleDetail.showModal(id) |
|
|
|
|
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|