12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- 'use strict';
- var app = angular.module('app', [
- 'angularUtils.directives.dirPagination'
- ]);
- app.controller("indexCtrl", ["$http", "$scope", "$timeout", function ($http, $scope, $timeout) {
- var self = this;
- self.webApiUrl2 = "";
- self.get_userid = $.cookie("GlWorkPlatform-userid");
- self.get_AccessToken = localStorage.getItem("GlWorkPlatform-AccessToken");
- self.get_lastReturnPageno = sp.getUrlName("lastReturnPageno") || 1; ///接收传过来的第几页
- var postCfgJson = {
- headers: {
- 'Content-Type': 'application/json',
- 'Authorization': "Bearer " + self.get_AccessToken
- }
- };
- self.search = {
- USERREALNAME: "",
- IDNO: ""
- };
-
- //筛选确认
- self.btnSearchTrue = function () {
- if (spngvld.submit("#divSearchPart")) {
- if (self.search.IDNO.length < 6) {
- sp.dialog("身份证号查询长度至少为6位");
- } else {
- window.location.href = "index-real.html?name=" + self.search.USERREALNAME + "&idno=" + self.search.IDNO;
- }
- }
- };
- //筛选重置
- self.btnSearchCancel = function () {
- self.search = {
- USERREALNAME: "",
- IDNO: ""
- };
- spngvld.clear("#divSearchPart");
- };
- }]);
|