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-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-form-model-item label="材质" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="material">-->
<a-input v-model="model.material" placeholder="请输入材质" ></a-input> <!-- <a-input v-model="model.material" placeholder="请输入材质" ></a-input>-->
</a-form-model-item> <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>
<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">
@ -131,7 +135,7 @@
that.confirmLoading = false; that.confirmLoading = false;
}) })
} }
}) })
}, },
} }

@ -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' }
} }
], ],

@ -189,14 +189,15 @@
deleteBatch: "/sample/zyModuleSample/deleteBatch", deleteBatch: "/sample/zyModuleSample/deleteBatch",
exportXlsUrl: "/sample/zyModuleSample/exportXls", exportXlsUrl: "/sample/zyModuleSample/exportXls",
importExcelUrl: "sample/zyModuleSample/importExcel", importExcelUrl: "sample/zyModuleSample/importExcel",
}, },
dictOptions:{}, dictOptions:{},
superFieldList:[], superFieldList:[],
} }
}, },
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,
// } }
}); });
}, },

@ -49,7 +49,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZyModuleSampleService> { public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZyModuleSampleService> {
@Autowired @Autowired
private IZyModuleSampleService zyModuleSampleService; private IZyModuleSampleService zyModuleSampleService;
/** /**
* 分页列表查询 * 分页列表查询
* *
@ -66,12 +66,12 @@ 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);
} }
/** /**
* 添加 * 添加
* *
@ -85,7 +85,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ
zyModuleSampleService.save(zyModuleSample); zyModuleSampleService.save(zyModuleSample);
return Result.OK("添加成功!"); return Result.OK("添加成功!");
} }
/** /**
* 编辑 * 编辑
* *
@ -107,7 +107,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ
zyModuleSampleService.updateById(zyModuleSample); zyModuleSampleService.updateById(zyModuleSample);
return Result.OK("编辑成功!"); return Result.OK("编辑成功!");
} }
/** /**
* 通过id删除 * 通过id删除
* *
@ -121,7 +121,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ
zyModuleSampleService.removeById(id); zyModuleSampleService.removeById(id);
return Result.OK("删除成功!"); return Result.OK("删除成功!");
} }
/** /**
* 批量删除 * 批量删除
* *
@ -135,7 +135,7 @@ public class ZyModuleSampleController extends JeecgController<ZyModuleSample, IZ
this.zyModuleSampleService.removeByIds(Arrays.asList(ids.split(","))); this.zyModuleSampleService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!"); return Result.OK("批量删除成功!");
} }
/** /**
* 通过id查询 * 通过id查询
* *

Loading…
Cancel
Save