Antecedents feed :

What I learned today is stark Component's

action  And multi-layer effects

One : action ( Self customized function, multi selection function effect )

1: Study Have a clear point of view :

 

  2: The operation of the front end and the back end of the multi selection effect

 

2>1 From the front is & Splicing form

2 >2 Back end django Will automatically put the same key To make a list

Two : action Content assignment That is to ckeck binding id

   1: Front end content assignment

 

 2:django->statie Content writing front-end code

3、 ... and : Set the multiple choice function box action box

1: Front end code writing

 

 2 : design sketch

Here you need a dynamic rendering function

3:stites Set up action Content

3>1:

Custom delete function ( Set the default function )

3>2: Set the default display function

3>3: Set display to front end content ( Dictionaries )

Display in the form of a dictionary to the front end

 

 

 

  Four :action Interact with front-end content

1:

Received from the front end post After the request , Get the current function name , If the function name is not empty , Get the function name and get the current function through class reflection ,

Receive front end checked Content id  , Save as the ancestor of the Yuan Dynasty ,queryset Filter to get the corresponding content , Then put the content into the function for further operation

2: Code mapping

3 : Executed function

 

 4: effect

5: Increase the effect of select all

5>1:jq part

 5>2 :

stark Register to use

 

  5、 ... and :  Multistage filtration

1: The order of multistage filtering

2: Set labels that need multiple filters

2>1  First set up the interface

2>2: Registration content

3: Ideas , It is divided into One-to-many query , Many-to-many queries , and chioce Inquire about

get data

Create a label

 

  Filter section

The final filtering result

Front end style :

design sketch :

day 69crm(6) stark Components action and More articles on the effect of multi-layer filtering

  1. django-admin Parody stark Components action,filter Screening filtration ,search Inquire about

    Written in StandLi All the methods in it are through ModelSubject In this class stand_li Method , Use... In it StandLi This class instantiates an object , The instantiated object passes the data to the front end HTML Template to render , ...

  2. 【django And stark Components 】

    One . demand Modelled on the django Of admin, Develop your own stark Components . Realize the function similar to database client , Add, delete, modify and check the data . Two . Realization 1. stay settings Register these three in the configuration app # Applicatio ...

  3. Django-CRM Project learning ( 5、 ... and )-stark Of action And multi-level screening function

    1.stark One of the components of action( Self customized function, multi selection function effect ) 1.1  admin effect 1.2 The operation of the front end and the back end of the multi selection effect 1.2.1 The parameters sent by the front end are ? After the number, each parameter uses & To splice 1.2.2 ...

  4. django And stark Components

    ---------------------------------------------------------------- The troubles are endless , The heart is in turmoil , Alack! . One . There's a special need , Need to use sta ...

  5. stark Of components delete Button 、filter Filter

    1. Build batch delete button 2.filter Filter 3. summary +coding Code 1. Build batch delete button 1.admin By default, every page in 2.stark The construction of batch delete 3.coding {% extends ' ...

  6. stark Component paging , Fuzzy query , Batch deletion

    1. Paging component high level 2. Integrate presentation data showlist class 3.stark Component pagination 3.stark Of components search Fuzzy query 4.action Batch processing data 4. summary 1. Paging component high level 1. Paginated class ...

  7. stark Component configuration , On the second floor URL

    1.django Of admin To configure 2 stark Component development 3.2 layer url distribution 4. Summary 1.django Of admin To configure model.py from django.db import models # ...

  8. Django And stark Components

    Now let me say yes stark Components , I don't know . Anyway, from what we've seen today , What I have done today is to write a module myself , This module contains admin Some of the more useful features of background management tools , Let's refine it , That's the same thing as writing your own ad ...

  9. 10.18 Formal development stark Components *( 3、 ... and )

    2018-10-18 19:15:54 Wait for this. stark Upload the component to github above , And then organize the blog ! It's the weekend ! because models It appears when importing bug, So only the source code, no test data ! Source code has notes ...

Random recommendation

  1. WaterfallFlowLayout Waterfall flow rewrites with UICollectionViewFlowLayout Class implementation

    Recent research on waterfall flow , stay gitHub Up and down Demo Find that all of its views are using Main.storyboard Tardy , I haven't studied it for a long time ; Then I found another one Demo, The view of it is all by hand , But the implementation is not very ...

  2. springboot Serving Web Content with Spring MVC

    Serving Web Content with Spring MVC This guide walks you through the process of creating a "hel ...

  3. pyqt4: A method of connection with parameters

    Generally in pyqt4 Signal connections in are rarely connected to methods with parameters , Most of the time, connecting with parameters saves a lot of code . self.s5_thread=scene.Worker5() self.log_get=QtCore.QTi ...

  4. Python Development 【 Chapter 7 】: object-oriented

    Python The way [ Chapter five ]: Object oriented and related   Object oriented fundamentals Please refer to the following two blog articles for the introduction of basic content : Object oriented Advanced object oriented Other related One .isinstance(obj, cls) Check whether the obj whether ...

  5. I'm so lucky to meet you ,Sail.js New model controller

    sails generate api user   Created user Of controller and models sails generate api user index  Created user Of controller and ...

  6. mysql And sql Statement import and export

    export SQL:mysqldump -u root -p Database name [ Table name 1 Table name 2] > Output address where table name is optional Native test examples :

  7. WinForm Simple multi language implementation

    Reference resources :http://minmin86121.blog.163.com/blog/static/4968115720119259151898/ http://www.cnblogs.com/hakuci ...

  8. workerman install

    1.workerman install workerman yes php One of the socket frame , To simplify the socket Programming , It has been used by many enterprises , In today's centos Of ngix+php Under the installation of workerman, The process is recorded as follows . ...

  9. Android Learning letters ( Two ) Activities (Activity) Components

    1. Build and configure Activity establish Android The project has automatically generated a default Activity, At the same time, it has also generated a lot of relationships with Activity Related documents , for example ,res In the directory XML And image files .AndroidMa ...

  10. php Foundation two function

    One . sentence : Branch statement , Loop statement 1. Branch statement : 1.1 if $a = 7;if($a == 5){ echo " equal ";}else{ echo " It's not equal ";} ...