Php_dwz-jui in the Problem solving method (THINKPHP+DWZ)

Source: Internet
Author: User

Toss for two days, DWZ deleted after the data can not automatically refresh, solution, directly look at the picture.

1, delete, modify the status after the record can not be refreshed;

Add the following code to the Dwz.min.js:

function Navtabajax (JSON) {

Navtabajaxdone (JSON);

Navtab.reload ();

}

function Dialogajax (JSON) {

Dialogajaxdone (JSON);

Navtab.reload ();

}

Bulk Delete:

Selectedtodo:function () {} Success:navtabajaxdone, Navtabajaxdone changed to "Navtabajax";

The deletion code on the page is as follows:

<a class= "Delete" href= "__url__/delete" target= "Ajaxtodo" callback= "Navtabajax" title= "Are you sure you want to delete it? "Warn=" Please select info ><span> Delete </span></a>

callback= "Navtabajax" callback function must use "Navtabajax";

Status Change code:

<td>{$vo [' status ']|showstatus= $vo [' id '], ' Navtabajax '}</td>

2, find back the problem;

In the Bringbacksuggest:function (args) method:

var $box =_lookup[' $target '].parents (". Unitbox:first") to

var $box =_lookup[' $target '].parents (": First");

Get Value on page:

<div class= "unit" >

<label> role:</label>

<input type= "hidden" name= "orglookup.id" value= "${orglookup.id}"/>

<input type= "text" name= "Orglookup.orgname" value= "" suggestfields= "OrgName"/>

<a class= "Btnlook" href= "__url__/searchrole" lookupgroup= "Orglookup" > Find Bring back </a>

</div>>

Value page:

<a class= "Btnselect" href= "Javascript:$.bringback ({id: ' {$vo [' id ']} ', OrgName: ' {$vo [' role_name ']} ', Orgnum: ' {$vo [' ID ']} ' }) "Title=" Find Back "> select </a>

Php_dwz-jui in the Problem solving method (THINKPHP+DWZ)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.