2022-11-14 赵玉瑞 修改相关问题

zhc4dev
赵玉瑞 2 years ago
parent 2a65a722fb
commit dd65c0bc2a
  1. 91
      ant-design-vue-jeecg/src/views/process/ZyClothsModularCompentList.vue
  2. 15
      ant-design-vue-jeecg/src/views/process/ZyClothsModularList.vue
  3. 25
      ant-design-vue-jeecg/src/views/process/modules/ZyClothsModularCompentForm.vue
  4. 4
      ant-design-vue-jeecg/src/views/process/modules/ZyClothsModularCompentModal.vue
  5. 5
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/entity/ZyClothsModularCompent.java

@ -1,5 +1,13 @@
<template> <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">--> <!-- <div class="table-page-search-wrapper">-->
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">--> <!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
@ -11,7 +19,7 @@
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<div class="table-operator"> <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-button type="primary" icon="download" @click="handleExportXls('制衣模块部件中间表')">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
@change="handleImportExcel"> @change="handleImportExcel">
@ -76,9 +84,9 @@
</a-button> </a-button>
</template> </template>
<span slot="action2" slot-scope="text, record"> <!-- <span slot="action2" slot-scope="text, record">-->
<a @click="viewVid(record)">查看</a> <!-- <a @click="viewVid(record)">查看</a>-->
</span> <!-- </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>
@ -107,8 +115,8 @@
</div> </div>
<zy-cloths-modular-compent-modal ref="modalForm" @ok="modalFormOk"></zy-cloths-modular-compent-modal> <zy-cloths-modular-compent-modal ref="modalForm" @ok="modalFormOk"></zy-cloths-modular-compent-modal>
<ZyClothsMccList ref="ZyClothsMccList"></ZyClothsMccList> <!-- <ZyClothsMccList ref="ZyClothsMccList"></ZyClothsMccList>-->
</a-card> </a-modal>
</template> </template>
<script> <script>
@ -123,12 +131,14 @@ export default {
name: 'ZyClothsModularCompentList', name: 'ZyClothsModularCompentList',
mixins: [JeecgListMixin, mixinDevice], mixins: [JeecgListMixin, mixinDevice],
components: { components: {
ZyClothsMccList,
ZyClothsModularCompentModal ZyClothsModularCompentModal
}, },
data() { data() {
return { return {
description: '制衣模块部件中间表管理页面', description: '制衣模块部件中间表管理页面',
visible: false,
confirmLoading: false,
yid:'',
// //
columns: [ columns: [
{ {
@ -146,11 +156,11 @@ export default {
align: "center", align: "center",
dataIndex: 'nums' dataIndex: 'nums'
}, },
{ // {
title: '模块部件名称', // title: '',
align: "center", // align: "center",
dataIndex: 'modularType_dictText' // dataIndex: 'modularType_dictText'
}, // },
// { // {
// title:'', // title:'',
// align:"center", // align:"center",
@ -168,17 +178,27 @@ export default {
// }, // },
{ {
title: '创建时间', title: '模块名称',
align: "center", align: "center",
dataIndex: 'createTime' dataIndex: 'modularId_dictText'
}, },
{ {
title: '制衣部件', title: '部件名称',
dataIndex: 'action2',
align: "center", align: "center",
width: "100", dataIndex: 'partsName_dictText'
scopedSlots: {customRender: 'action2'}
}, },
{
title: '创建时间',
align: "center",
dataIndex: 'createTime'
},
// {
// title: '',
// dataIndex: 'action2',
// align: "center",
// width: "100",
// scopedSlots: {customRender: 'action2'}
// },
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
@ -209,11 +229,36 @@ export default {
}, },
}, },
methods: { methods: {
viewVid(record){ edit1(record) {
this.$refs.ZyClothsMccList.showModal(); this.model = Object.assign({}, record);
this.$refs.ZyClothsMccList.edit(record); //this.ax= this.model.id;
this.$refs.ZyClothsMccList.disableSubmit = false; //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() { initDictConfig() {
}, },
getSuperFieldList() { getSuperFieldList() {

@ -109,7 +109,8 @@
</div> </div>
<zy-cloths-modular-modal ref="modalForm" @ok="modalFormOk"></zy-cloths-modular-modal> <zy-cloths-modular-modal ref="modalForm" @ok="modalFormOk"></zy-cloths-modular-modal>
<ZyClothsMcList ref="ZyClothsMcList"></ZyClothsMcList> <!-- <ZyClothsMcList ref="ZyClothsMcList"></ZyClothsMcList>-->
<ZyClothsModularCompentList ref="ZyClothsModularCompentList"></ZyClothsModularCompentList>
</a-card> </a-card>
</template> </template>
@ -120,13 +121,13 @@ import {mixinDevice} from '@/utils/mixin'
import {JeecgListMixin} from '@/mixins/JeecgListMixin' import {JeecgListMixin} from '@/mixins/JeecgListMixin'
import ZyClothsModularModal from './modules/ZyClothsModularModal' import ZyClothsModularModal from './modules/ZyClothsModularModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
import ZyClothsMcList from "@views/process/ZyClothsMcList"; import ZyClothsModularCompentList from "@views/process/ZyClothsModularCompentList";
export default { export default {
name: 'ZyClothsModularList', name: 'ZyClothsModularList',
mixins: [JeecgListMixin, mixinDevice], mixins: [JeecgListMixin, mixinDevice],
components: { components: {
ZyClothsMcList, ZyClothsModularCompentList,
ZyClothsModularModal ZyClothsModularModal
}, },
data() { data() {
@ -224,10 +225,10 @@ export default {
}, },
methods: { methods: {
viewVid(record){ viewVid(record){
this.$refs.ZyClothsMcList.showModal(); this.$refs.ZyClothsModularCompentList.showModal1();
this.$refs.ZyClothsMcList.edit(record); this.$refs.ZyClothsModularCompentList.edit1(record);
console.log("zyclothsMclist"+record.ids); console.log("zyclothsMclist"+record.id);
this.$refs.ZyClothsMcList.disableSubmit = false; this.$refs.ZyClothsModularCompentList.disableSubmit = false;
}, },
initDictConfig() { initDictConfig() {
}, },

@ -8,16 +8,25 @@
<a-input v-model="model.nums" placeholder="请输入编码" ></a-input> <a-input v-model="model.nums" placeholder="请输入编码" ></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-model-item label="制衣模块类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularType">-->
<!-- <j-dict-select-tag type="list" v-model="model.modularType" dictCode="zyModularType" placeholder="请选择制衣模块类型" />-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="制衣模块类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularType"> <a-form-model-item label="模块名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularId">
<j-dict-select-tag type="list" v-model="model.modularType" dictCode="zyModularType" placeholder="请选择制衣模块类型" /> <j-dict-select-tag type="list" v-model="model.modularId"
dictCode="zy_cloths_modular,modular_name,id" placeholder="请选择模块名称" disabled/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-model-item label="部件名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partsName">--> <a-col :span="24">
<a-form-model-item label="部件名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partsName">
<!-- <a-input v-model="model.partsName" placeholder="请输入部件名称" ></a-input>--> <!-- <a-input v-model="model.partsName" placeholder="请输入部件名称" ></a-input>-->
<!-- </a-form-model-item>--> <j-dict-select-tag type="list" v-model="model.partsName"
<!-- </a-col>--> dictCode="zy_cloths_component,parts_name,id" placeholder="请选择制衣模块类型" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="24"> <!-- <a-col :span="24">
<a-form-model-item label="制衣模块类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularType"> <a-form-model-item label="制衣模块类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="modularType">
<a-input v-model="model.modularType" placeholder="请输入制衣模块类型" ></a-input> <a-input v-model="model.modularType" placeholder="请输入制衣模块类型" ></a-input>
@ -55,6 +64,7 @@
data () { data () {
return { return {
model:{ model:{
modularId:'',
}, },
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
@ -84,8 +94,9 @@
this.modelDefault = JSON.parse(JSON.stringify(this.model)); this.modelDefault = JSON.parse(JSON.stringify(this.model));
}, },
methods: { methods: {
add () { add1 (id) {
this.edit(this.modelDefault); this.edit(this.modelDefault);
this.model.modularId = id;
}, },
edit (record) { edit (record) {
this.model = Object.assign({}, record); this.model = Object.assign({}, record);

@ -29,10 +29,10 @@
} }
}, },
methods: { methods: {
add () { add1 (id) {
this.visible=true this.visible=true
this.$nextTick(()=>{ this.$nextTick(()=>{
this.$refs.realForm.add(); this.$refs.realForm.add1(id);
}) })
}, },
edit (record) { edit (record) {

@ -57,9 +57,14 @@ public class ZyClothsModularCompent implements Serializable {
@Excel(name = "编码", width = 15) @Excel(name = "编码", width = 15)
@ApiModelProperty(value = "编码") @ApiModelProperty(value = "编码")
private String nums; private String nums;
@Excel(name = "模块名称", width = 15)
@ApiModelProperty(value = "模块名称")
@Dict(dictTable = "zy_cloths_modular",dicText = "modular_name",dicCode = "id")
private String modularId;
/**部件名称*/ /**部件名称*/
@Excel(name = "部件名称", width = 15) @Excel(name = "部件名称", width = 15)
@ApiModelProperty(value = "部件名称") @ApiModelProperty(value = "部件名称")
@Dict(dictTable = "zy_cloths_component",dicText = "parts_name",dicCode = "id")
private String partsName; private String partsName;
/**制衣模块类型*/ /**制衣模块类型*/
@Excel(name = "制衣模块类型", width = 15) @Excel(name = "制衣模块类型", width = 15)

Loading…
Cancel
Save