提交 82c8b945 authored 作者: 吴德鹏's avatar 吴德鹏

属性管理

上级 ec53ab1a
...@@ -114,6 +114,10 @@ public class AttributesController { ...@@ -114,6 +114,10 @@ public class AttributesController {
return R.ok().put("list", list); return R.ok().put("list", list);
} }
/**
* 查询所有
* @return
*/
@RequestMapping("/queryAttrNames") @RequestMapping("/queryAttrNames")
@ResponseBody @ResponseBody
@IgnoreAuth @IgnoreAuth
...@@ -156,7 +160,7 @@ public class AttributesController { ...@@ -156,7 +160,7 @@ public class AttributesController {
} }
/** /**
* 新版商品属性(整合旧版) * 新版商品属性(整合旧版数据
* *
* @param itemId * @param itemId
* @return * @return
......
...@@ -36,7 +36,7 @@ public class AttributesEntity implements Serializable { ...@@ -36,7 +36,7 @@ public class AttributesEntity implements Serializable {
/** /**
* 是否必须 0:否 1:是 * 是否必须 0:否 1:是
*/ */
private String isNeed; private boolean isNeed;
/** /**
* 创建时间 * 创建时间
*/ */
...@@ -111,19 +111,15 @@ public class AttributesEntity implements Serializable { ...@@ -111,19 +111,15 @@ public class AttributesEntity implements Serializable {
public Integer getSort() { public Integer getSort() {
return sort; return sort;
} }
/**
* 设置:是否必须 0:否 1:是
*/
public void setIsNeed(String isNeed) {
this.isNeed = isNeed;
}
/** public boolean isNeed() {
* 获取:是否必须 0:否 1:是
*/
public String getIsNeed() {
return isNeed; return isNeed;
} }
public void setNeed(boolean need) {
isNeed = need;
}
/** /**
* 设置:创建时间 * 设置:创建时间
*/ */
......
...@@ -52,10 +52,10 @@ ...@@ -52,10 +52,10 @@
</Form-item> </Form-item>
<Form-item label="是否必填" prop="updateTime"> <Form-item label="是否必填" prop="updateTime">
<Radio-group v-model="attributes.isNeed"> <Radio-group v-model="attributes.isNeed">
<Radio label="1"> <Radio label="true">
<span>开启</span> <span>开启</span>
</Radio> </Radio>
<Radio label="0"> <Radio label="false">
<span>关闭</span> <span>关闭</span>
</Radio> </Radio>
</Radio-group> </Radio-group>
...@@ -75,4 +75,4 @@ ...@@ -75,4 +75,4 @@
<script src="${rc.contextPath}/js/sys/attributes.js?_${date.systemTime}"></script> <script src="${rc.contextPath}/js/sys/attributes.js?_${date.systemTime}"></script>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论