2022-11-05修改

zhc4dev
YTD 2 years ago
parent da92e5bd73
commit 096a8f739c
  1. 12
      ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue
  2. 4
      ant-design-vue-jeecg/src/views/erp/fabric/ZyFabricList.vue
  3. 5
      ant-design-vue-jeecg/src/views/sample/ZyModuleSampleList.vue
  4. 6
      ant-design-vue-jeecg/src/views/zyclothsample/ZyClothSampleList.vue
  5. 14
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/sample/controller/ZyModuleSampleController.java

@ -24,9 +24,13 @@
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="材质" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="material">
<a-input v-model="model.material" placeholder="请输入材质" ></a-input>
</a-form-model-item>
<!-- <a-form-model-item label="材质" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="material">-->
<!-- <a-input v-model="model.material" placeholder="请输入材质" ></a-input>-->
<a-form-model-item label="材质" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="material">
<j-search-select-tag v-model="model.material" dict="material" />
</a-form-model-item>
<!-- </a-col>-->
<!-- </a-form-model-item>-->
</a-col>
<a-col :span="24">
<a-form-model-item label="规格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="specs">
@ -131,7 +135,7 @@
that.confirmLoading = false;
})
}
})
},
}

@ -118,6 +118,7 @@
</template>
<span slot="action" slot-scope="text,record">
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
@ -280,8 +281,7 @@ import ZyFabricFormDetailModel from './modules/ZyFabricFormDetailModel'
title: '操作',
dataIndex: 'action',
align:"center",
fixed:"right",
width:147,
// fixed:"right",
scopedSlots: { customRender: 'action' }
}
],

@ -189,14 +189,15 @@
deleteBatch: "/sample/zyModuleSample/deleteBatch",
exportXlsUrl: "/sample/zyModuleSample/exportXls",
importExcelUrl: "sample/zyModuleSample/importExcel",
},
dictOptions:{},
superFieldList:[],
}
},
created() {
this.queryParam.clothId=this.$route.query.id;
this.loadData()
this.getSuperFieldList();
},
computed: {

@ -278,9 +278,9 @@ export default {
jumpPage(record) {
this.$router.push({
path: '/src/views/sample/ZyModuleSampleList',
// query: { //
// 'id': record.id,
// }
query: { //
'id': record.id,
}
});
},

@ -49,7 +49,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZyModuleSampleService> {
@Autowired
private IZyModuleSampleService zyModuleSampleService;
/**
* 分页列表查询
*
@ -66,12 +66,12 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<ZyModuleSample> queryWrapper = QueryGenerator.initQueryWrapper(zyModuleSample, req.getParameterMap());
QueryWrapper<ZyModuleSample> queryWrapper = QueryGenerator.initQueryWrapper(zyModuleSample, req.getParameterMap()).eq("cloth_id",zyModuleSample.getClothId());
Page<ZyModuleSample> page = new Page<ZyModuleSample>(pageNo, pageSize);
IPage<ZyModuleSample> pageList = zyModuleSampleService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
@ -85,7 +85,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ
zyModuleSampleService.save(zyModuleSample);
return Result.OK("添加成功!");
}
/**
* 编辑
*
@ -107,7 +107,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ
zyModuleSampleService.updateById(zyModuleSample);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
@ -121,7 +121,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ
zyModuleSampleService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
@ -135,7 +135,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ
this.zyModuleSampleService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*

Loading…
Cancel
Save