2022-11-05修改

zhc4dev
YTD 2 years ago
parent da92e5bd73
commit 096a8f739c
  1. 6
      ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue
  2. 4
      ant-design-vue-jeecg/src/views/erp/fabric/ZyFabricList.vue
  3. 3
      ant-design-vue-jeecg/src/views/sample/ZyModuleSampleList.vue
  4. 6
      ant-design-vue-jeecg/src/views/zyclothsample/ZyClothSampleList.vue
  5. 2
      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-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <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 label="材质" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="material"> <a-form-model-item label="材质" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="material">
<a-input v-model="model.material" placeholder="请输入材质" ></a-input> <j-search-select-tag v-model="model.material" dict="material" />
</a-form-model-item> </a-form-model-item>
<!-- </a-col>-->
<!-- </a-form-model-item>-->
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="规格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="specs"> <a-form-model-item label="规格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="specs">

@ -118,6 +118,7 @@
</template> </template>
<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" />
@ -280,8 +281,7 @@ import ZyFabricFormDetailModel from './modules/ZyFabricFormDetailModel'
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align:"center", align:"center",
fixed:"right", // fixed:"right",
width:147,
scopedSlots: { customRender: 'action' } scopedSlots: { customRender: 'action' }
} }
], ],

@ -196,7 +196,8 @@
} }
}, },
created() { created() {
this.queryParam.clothId=this.$route.query.id;
this.loadData()
this.getSuperFieldList(); this.getSuperFieldList();
}, },
computed: { computed: {

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

@ -66,7 +66,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) { 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); Page<ZyModuleSample> page = new Page<ZyModuleSample>(pageNo, pageSize);
IPage<ZyModuleSample> pageList = zyModuleSampleService.page(page, queryWrapper); IPage<ZyModuleSample> pageList = zyModuleSampleService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);

Loading…
Cancel
Save