Giter VIP home page Giter VIP logo

Comments (4)

summerblue avatar summerblue commented on August 25, 2024

请提供 Laravel 和 administrator 的版本

from administrator.

Noah-RD avatar Noah-RD commented on August 25, 2024

laravel 5.5
administrator ^1.1

from administrator.

Noah-RD avatar Noah-RD commented on August 25, 2024

还有一个小问题就是,比如:

表A和表B,他们没有关系,我想在表A的配置中,生成一列,展示B中某一列(这一列由A表某值提供)的行数总和。
问题所在:
在A配置中可以获取某个值,但是在下一个配置数组中,无法保持这个值。
由于想展示的列,并不在A表字段中,所以无法共享当前value
例子:
获取表A 的openId

'info'   => array(
            'title'  => 'info',
            'output' => function ($value, $model) {
                $openId = $model->openId;
                ......
            },
        ),

在表B中使用

'test'   => array(
            'title'  => 'count',
            'output' => B::select('id',$openId)->count()
        ),

这个test列不再表A字段中,如果output使用闭包,则要求字段必须存在。。。
如果我想这么做,能实现吗?

from administrator.

summerblue avatar summerblue commented on August 25, 2024

请更新到最新

from administrator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.