| | |
| | | @ApiImplicitParam(name = Constant.Q.ORDER_FIELD, value = Constant.QV.ORDER_FIELD, dataType = Constant.QT.STRING), |
| | | @ApiImplicitParam(name = Constant.Q.ORDER, value = Constant.QV.ORDER, dataType = Constant.QT.STRING), |
| | | @ApiImplicitParam(name = "name", value = "名称", dataType = Constant.QT.STRING, format = "NAME^LK"), |
| | | @ApiImplicitParam(name = "nodeType", value = "节点类型", dataType = Constant.QT.STRING, format = "node_type^EQ"), |
| | | @ApiImplicitParam(name = "productType", value = "节点类型", dataType = Constant.QT.STRING, format = "product_type^EQ"), |
| | | @ApiImplicitParam(name = "pid", value = "上级ID", dataType = Constant.QT.STRING) |
| | | }) |
| | | public Result<List<XhProductModel>> page(@ApiIgnore @QueryParam QueryFilter queryFilter){ |
| | |
| | | * @return |
| | | */ |
| | | public List<TyProductModel> page(QueryFilter queryFilter) { |
| | | return baseDao.getList(queryFilter.getQueryParams()); |
| | | List<TyProductModel> list =baseDao.getList(queryFilter.getQueryParams()); |
| | | return list ; |
| | | } |
| | | |
| | | /** |
| | |
| | | data() { |
| | | return { |
| | | url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getProductImg?token=${Cookies.get('token')}&id=`, |
| | | productType: '', |
| | | dataForm: { |
| | | name: '', |
| | | productType: '', |
| | | type:'', |
| | | pid: '', |
| | | srcId:'', |
| | |
| | | }, |
| | | methods: { |
| | | add() { |
| | | if (this.dataForm.type !== '4') { |
| | | this.dataForm.type=this.productType |
| | | if (this.dataForm.type !== '3') { |
| | | console.log(1111) |
| | | console.log(this.dataForm.type,'add() {') |
| | | this.dataForm.type = this.dataForm.type - 1 |
| | | } else if (this.dataForm.type === '4') { |
| | | } else if (this.dataForm.type === '3') { |
| | | console.log(2222) |
| | | console.log(this.dataForm.type,'add() {') |
| | | this.dataForm.type = this.dataForm.type - 2 |
| | |
| | | console.log(data) |
| | | this.dataForm.pid = data.id |
| | | this.dataForm.type = data.productType |
| | | this.productType = data.productType |
| | | this.$refs.tableObj.query() |
| | | } |
| | | } |