123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821 |
- angular.module('push')
- .controller('taskHollCtrl', function ($scope, taskModuleService, $timeout, $q, UserService, ConfigService, $ionicScrollDelegate, CommonService, $ionicPopup, UtilService, $stateParams, $ionicHistory, dataToolsService) {
- //虚拟搜索框
- console.log('taskHoll');
- $scope.node = UserService.node;
- $scope.circleValue = 1;
- $scope.checkNeedShowFlag = false;
- $scope.defaultLan = UserService.defaultLan;
- $scope.isShowSearchButton = true;
- $scope.keyfilter = {
- key: ''
- }
- $scope.pagenum = 1;
- $scope.pagesize = 6;
- $scope.noData = false;
- $scope.tasktype = 0;
- $scope.userIsBroker = false;
- var type = 0;
- var totalpage = 0;
- $scope.allData = [];
- $scope.goWhere = function () {
- if ($stateParams.comfrom == 'tab.account') {
- $scope.go('tab.account');
- } else {
- $scope.go('tab.activityIndex');
- }
- };
- if ($scope.app) {
- if (device.platform != "Android") {
- $scope.isIos = true;
- } else {
- $scope.isIos = false;
- }
- }
- taskModuleService.getAllTaskLable(UserService.node).then(function (res) {
- $scope.labelList = [{
- itemvalue: 0,
- itemkey: '全部',
- isSelected: true
- }];
- if (res.code == 3350) {
- angular.forEach(res.data, function (val) {
- val.isSelected = false;
- })
- $scope.labelList = $scope.labelList.concat(res.data);
- }
- });
- if ($scope.defaultLan == 'Chinese') {
- $scope.taskHollList = [
- { title: '需求列表', selected: true, type: 0 },
- { title: '我报送的', selected: false, type: 1 },
- // { title: '我对接的', selected: false, type: 2 },
- ]
- } else {
- $scope.taskHollList = [
- { title: 'Demand List', selected: true, type: 0 },
- { title: 'My Submission', selected: false, type: 1 },
- { title: 'My Docking', selected: false, type: 2 },
- ]
- }
- if ($stateParams.comfrom == 'tab.account') {
- $scope.taskHollList = [
- { title: '需求列表', selected: false, type: 0 },
- { title: '我发布的', selected: false, type: 1 },
- // {title: '我对接的', selected: true, type: 2},
- ]
- }
- var searchList = function () {
- $scope.showLoadingToast();
- var deferred = $q.defer();
- //查询任务列表
- taskModuleService.getAllTaskList(UserService.node, type, $scope.tasktype, $scope.keyfilter.key, $scope.pagenum, $scope.pagesize).then(function (res) {
- // console.log(res);
- $scope.hideLoadingToast();
- deferred.resolve(res.data);
- totalpage = (res.page == null ? 0 : res.page.totalPage);
- if ($scope.pagenum >= totalpage) {
- // 如果没有数据了 用ng-if彻底结束
- $scope.showLoadMore = false;
- }
- })
- return deferred.promise;
- }
- $scope.getData = function () {
- searchList().then(function (data) {
- console.log(data)
- $scope.allData = data;
- $scope.noData = $scope.allData == null || $scope.allData.length == 0;
- angular.forEach($scope.allData, function (val) {
- if (val)
- // 事件按钮
- val.action0 = false;//对接录入 5322
- val.action1 = false;//对接录入 5322
- val.action2 = false;//评价 5323
- val.action3 = false;//申请奖励 5324
- val.action4 = false;//任务完成 5325
- val.actionNum = 0;
- var tempArr = (val.otherObj && val.otherObj.actions) ? val.otherObj.actions.split(',') : [];
- // console.log(tempArr);
- if (tempArr.length > 0) {
- for (var i = 0; i < tempArr.length; i++) {
- switch (Number(tempArr[i])) {
- case 5321:
- val.action0 = true;
- val.actionNum++;
- break;
- case 5322:
- val.action1 = true;
- val.actionNum++;
- break;
- // case 5323:val.action2=true;val.actionNum++;break;
- case 5324:
- val.action3 = true;
- $scope.buttonNum++;
- break;
- case 5325:
- val.action4 = true;
- val.actionNum++;
- break;
- }
- }
- }
- val.noSuthority = false;
- if (val.otherObj && val.otherObj.creator != UserService.id && val.otherObj.taskstatus == 5300 && val.actionNum == 0) {
- val.noSuthority = true;
- }
- })
- });
- }
- $scope.getData();
- $scope.changeSelected = function (index) {
- if ((index == 1 || index == 2) && !ConfigService.islogin) {
- if (localStorage.wxFlag == "true") {
- if (localStorage.isUserFocusXW == 0) {
- var title = localStorage.appidStr;
- $ionicPopup.alert({
- title: '提示',
- template: '请先关注微信公众号"' + title + '"!'
- });
- return;
- } else {
- if (localStorage.isUserBindWx == 0) {
- var wxFlag = JSON.parse(localStorage.params);
- if (wxFlag.weChatModel) {
- $scope.go('bindPhone', {
- params: localStorage.params,
- comfrom: 'maincontroller',
- url: window.location.href.split('#/')[1]
- });
- } else {
- $scope.go('login');
- return;
- }
- } else {
- $scope.go('login');
- return;
- }
- }
- } else {
- $scope.go('login');
- return;
- }
- } else {
- $scope.index = index;
- $scope.circleValue = 1;
- if (index == 0 || index == 2) {
- $scope.checkNeedShowFlag = false;
- } else {
- $scope.checkNeedShowFlag = true;
- }
- $scope.pagenum = 1;
- $scope.showLoadMore = true;
- angular.forEach($scope.taskHollList, function (val) {
- val.selected = false;
- })
- $scope.taskHollList[index].selected = true;
- type = $scope.taskHollList[index].type;
- $scope.allData = [];
- $scope.getData();
- $ionicScrollDelegate.$getByHandle('privateContent').scrollTop(true);
- }
- }
- $scope.showSearchButtonLeft = function () {
- // console.log('aaa');
- $scope.isShowSearchButton = false;
- $timeout(function () {
- $(".showSearchInput").focus();
- }, 300)
- };
- $scope.clearSearch = function () {
- $scope.isShowSearchButton = true;
- $scope.keyfilter.key = "";
- $scope.getData();
- }
- // 下拉刷新
- $scope.refreshData = function () {
- $scope.pagenum = 1;
- $scope.showLoadMore = true;
- $scope.getData();
- $scope.$broadcast('scroll.refreshComplete');
- };
- $scope.showLoadMore = true;
- $scope.loadMore = function () {
- if ($scope.showLoadMore) {
- $scope.pagenum++;
- searchList().then(function (data) {
- if ($scope.allData.length != 0 && data.length == $scope.allData.length) {
- for (var i = 0; i < data.length; i++) {
- for (var j = 0; j < $scope.allData.length; j++) {
- if (i == j && $scope.allData[j].id != data[i].id) {
- // $scope.allData = $scope.allData.concat(data);
- $scope.allData.push(data[i])
- // $scope.allData.push.apply($scope.allData,data)
- break;
- }
- }
- }
- } else {
- $scope.allData.push.apply($scope.allData, data)
- }
- // $scope.allData.push.apply($scope.allData,data)
- $scope.$broadcast('scroll.infiniteScrollComplete');
- });
- }
- }
- //判断当前用户是不是技术经纪人
- dataToolsService.judgeUserBroker(UserService.id).then(function (res) {
- if (res.code == 3350) {
- $scope.userIsBroker = res.data;
- }
- })
- $scope.releaseTask = function (userIsBroker) {
- // console.log(1);
- if (!ConfigService.islogin) {
- if (localStorage.wxFlag == "true") {
- if (localStorage.isUserFocusXW == 0) {
- var title = localStorage.appidStr;
- $ionicPopup.alert({
- title: '提示',
- template: '请先关注微信公众号"' + title + '"!'
- });
- return;
- } else {
- if (localStorage.isUserBindWx == 0) {
- var wxFlag = JSON.parse(localStorage.params);
- if (wxFlag.weChatModel) {
- $scope.go('bindPhone', {
- params: localStorage.params,
- comfrom: 'maincontroller',
- url: window.location.href.split('#/')[1]
- });
- } else {
- $scope.go('login');
- return;
- }
- } else {
- $scope.go('login');
- return;
- }
- }
- } else {
- $scope.go('login');
- return;
- }
- } else {
- $scope.go('taskRelease', { userIsBroker: userIsBroker });
- }
- }
- $scope.goToTaskDetail = function (list) {
- if (!ConfigService.islogin) {
- if (localStorage.wxFlag == "true") {
- if (localStorage.isUserFocusXW == 0) {
- var title = localStorage.appidStr;
- $ionicPopup.alert({
- title: '提示',
- template: '请先关注微信公众号"' + title + '"!'
- });
- return;
- } else {
- if (localStorage.isUserBindWx == 0) {
- var wxFlag = JSON.parse(localStorage.params);
- if (wxFlag.weChatModel) {
- $scope.go('bindPhone', {
- params: localStorage.params,
- comfrom: 'maincontroller',
- url: window.location.href.split('#/')[1]
- });
- } else {
- $scope.go('login');
- return;
- }
- } else {
- $scope.go('login');
- return;
- }
- }
- } else {
- $scope.go('login');
- return;
- }
- } else {
- if (list.source == '330122000') {
- console.log(list.creator)
- console.log(UserService.id)
- if (list.creator == UserService.id) {
- if (list.otherObj.taskstatus == 5302) {
- taskModuleService.getTaskReceiver(list.otherObj.id).then(function (res) {
- for (var i = 0; i < res.data.length; i++) {
- if (res.data[i] == UserService.id) {
- list.otherObj.actions = list.otherObj.actions + "," + 5324;
- break;
- }
- }
- })
- }
- console.log('来自远方的大锅', list)
- console.log('来自远方的大锅1', {
- resid: list.unique,
- node: list.source,
- title: list.title,
- restype: list.type,
- comefrom: 'taskHoll',
- ifjoin: list.otherObj.ifjoin,
- actions: list.otherObj.actions,
- taskstatus: list.otherObj.taskstatus,
- taskid: list.otherObj.id,
- opentowho: list.otherObj.opentowho,
- ispublic: true,
- })
- $scope.go('taskDetail', {
- resid: list.unique,
- node: list.source,
- title: list.title,
- restype: list.type,
- comefrom: 'taskHoll',
- ifjoin: list.otherObj.ifjoin,
- actions: list.otherObj.actions,
- taskstatus: list.otherObj.taskstatus,
- taskid: list.otherObj.id,
- opentowho: list.otherObj.opentowho,
- ispublic: true,
- });
- } else {
- var permissionvalue = list.by6;
- var splitArr = [];
- if (permissionvalue == 1 || permissionvalue == 2 || permissionvalue == 3 ||
- permissionvalue == 4 || permissionvalue == 5) {
- splitArr.push(permissionvalue);
- } else if (permissionvalue != null) {
- splitArr = permissionvalue.split(',');
- } else {
- splitArr.push(1);
- }
- if (splitArr.length == 2) {
- $scope.showTaskDetail = false;
- //技术经纪人及高校人员可见
- taskModuleService.getUserPermissionCheck(list.unique, list.creator, UserService.id).then(function (res1) {
- if (!res1.data) {//true可见,false不可见
- taskModuleService.checkTaskDetailPermission(2, UserService.id).then(function (res2) {
- //技术经纪人权限
- if (!res2.data) {//true可见,false不可见
- taskModuleService.checkTaskDetailPermission(3, UserService.id).then(function (res3) {
- //高校人员权限
- if (!res3.data) {//true可见,false不可见
- $ionicPopup.confirm({
- title: '确认',
- template: '仅高校院所专家可见,请先认证高校院所专家',
- okText: '去认证',
- cancelText: '取消'
- }).then(function (result) {
- if (result) {
- $scope.go('identifyForm', {
- pageTitle: '高校认证',
- code: 4804,
- action: 'submit'
- });
- } else {
- $scope.go('taskHoll');
- }
- })
- } else {
- goPermissionTaskDetail(list);
- $scope.showTaskDetail = true;
- }
- if (!res2.data && !$scope.showTaskDetail) {
- $ionicPopup.confirm({
- title: '确认',
- template: '仅技术经纪人可见,请先认证技术经纪人',
- okText: '去认证',
- cancelText: '取消'
- }).then(function (result) {
- if (result) {
- if ($scope.node == '330122000') {
- $scope.go('identifyFormForTongLu', {
- pageTitle: '技术经纪人认证',
- code: 4801,
- type: 5100,
- id: UserService.userid
- });
- }
- if ($scope.node == '320412000') {
- $scope.go('identifyForm', {
- pageTitle: '技术经纪人认证',
- code: 4801,
- type: 5100,
- id: UserService.userid
- });
- }
- } else {
- $scope.go('taskHoll');
- }
- })
- } else {
- goPermissionTaskDetail(list);
- }
- });
- }
- });
- } else {
- goPermissionTaskDetail(list);
- }
- });
- } else {
- //单一权限的情况
- for (var i = 0; i < splitArr.length; i++) {
- if (splitArr[i] == 2) {
- taskModuleService.checkTaskDetailPermission(2, UserService.id).then(function (res) {
- if (res.code == 3350) {
- $scope.isVisiableFlag = res.data;
- if (!$scope.isVisiableFlag) {
- taskModuleService.getUserPermissionCheck(list.unique, list.creator, UserService.id).then(function (res) {
- if (res.code == 3350) {
- $scope.isVisiableFlag = res.data;
- if (!$scope.isVisiableFlag) {//true可见,false不可见
- $ionicPopup.confirm({
- title: '确认',
- template: '仅技术经纪人可见,请先认证技术经纪人',
- okText: '去认证',
- cancelText: '取消'
- }).then(function (result) {
- if (result) {
- if ($scope.node == '330122000') {
- $scope.go('identifyFormForTongLu', {
- pageTitle: '技术经纪人认证',
- code: 4801,
- type: 5100,
- id: UserService.userid
- });
- }
- if ($scope.node == '320412000') {
- $scope.go('identifyForm', {
- pageTitle: '技术经纪人认证',
- code: 4801,
- type: 5100,
- id: UserService.userid
- });
- }
- } else {
- $scope.go('taskHoll');
- }
- })
- } else {
- goPermissionTaskDetail(list);
- }
- }
- })
- } else {
- goPermissionTaskDetail(list);
- }
- }
- })
- } else if (splitArr[i] == 3) {
- taskModuleService.checkTaskDetailPermission(3, UserService.id).then(function (res) {
- if (res.code == 3350) {
- $scope.isVisiableFlag = res.data;
- if (!$scope.isVisiableFlag) {
- taskModuleService.getUserPermissionCheck(list.unique, list.creator, UserService.id).then(function (res) {
- if (res.code == 3350) {
- $scope.isVisiableFlag = res.data;
- if (!$scope.isVisiableFlag) {//true可见,false不可见
- $ionicPopup.confirm({
- title: '确认',
- template: '仅高校院所专家可见,请先认证高校院所专家',
- okText: '去认证',
- cancelText: '取消'
- }).then(function (result) {
- if (result) {
- $scope.go('identifyForm', {
- pageTitle: '高校认证',
- code: 4804,
- action: 'submit'
- });
- } else {
- $scope.go('taskHoll');
- }
- })
- } else {
- goPermissionTaskDetail(list);
- }
- }
- });
- } else {
- goPermissionTaskDetail(list);
- }
- }
- });
- } else if (splitArr[i] == 4) {
- taskModuleService.getUserPermissionCheck(list.unique, list.creator, UserService.id).then(function (res) {
- if (res.code == 3350) {
- $scope.isVisiableFlag = res.data;
- if (list.creator != UserService.id && !$scope.isVisiableFlag) {
- $ionicPopup.confirm({
- title: '提示',
- template: '此需求已设置权限,若需了解需求详情,去向发布者申请权限',
- okText: '去申请权限',
- cancelText: '取消'
- }).then(function (result) {
- if (result) {
- $scope.go("tongluPermissionApply", { resource: list });
- } else {
- $scope.go('taskHoll');
- }
- })
- } else {
- goPermissionTaskDetail(list);
- }
- }
- })
- } else {
- if (splitArr[i] == 1) {
- if (list.otherObj.taskstatus == 5302) {
- taskModuleService.getTaskReceiver(list.otherObj.id).then(function (res) {
- for (var i = 0; i < res.data.length; i++) {
- if (res.data[i] == UserService.id) {
- list.otherObj.actions = list.otherObj.actions + "," + 5324;
- break;
- }
- }
- })
- }
- $scope.go('taskDetail', {
- resid: list.unique,
- node: list.source,
- title: list.title,
- restype: list.type,
- comefrom: 'taskHoll',
- ifjoin: list.otherObj.ifjoin,
- actions: list.otherObj.actions,
- taskstatus: list.otherObj.taskstatus,
- taskid: list.otherObj.id,
- opentowho: list.otherObj.opentowho,
- ispublic: true,
- });
- }
- }
- }
- }
- }
- }
- else {
- if (list.noSuthority) {
- var alertPopup = $ionicPopup.alert({
- title: '提示',
- template: '自任务发布起一周内仅被邀请用户方可接单,一周后无人接单才会公开接单权限。'
- });
- return;
- }
- console.log(list);
- if (list.otherObj.taskstatus == 5302) {
- taskModuleService.getTaskReceiver(list.otherObj.id).then(function (res) {
- for (var i = 0; i < res.data.length; i++) {
- if (res.data[i] == UserService.id) {
- list.otherObj.actions = list.otherObj.actions + "," + 5324;
- break;
- }
- }
- })
- }
- $scope.go('taskDetail', {
- resid: list.unique,
- node: list.source,
- title: list.title,
- restype: list.type,
- comefrom: 'taskHoll',
- ifjoin: list.otherObj.ifjoin,
- actions: list.otherObj.actions,
- taskstatus: list.otherObj.taskstatus,
- taskid: list.otherObj.id,
- opentowho: list.otherObj.opentowho,
- ispublic: true,
- });
- }
- }
- }
- var goPermissionTaskDetail = function (list) {
- if (list.otherObj.taskstatus == 5302) {
- taskModuleService.getTaskReceiver(list.otherObj.id).then(function (res) {
- for (var i = 0; i < res.data.length; i++) {
- if (res.data[i] == UserService.id) {
- list.otherObj.actions = list.otherObj.actions + "," + 5324;
- break;
- }
- }
- })
- }
- $scope.go('taskDetail', {
- resid: list.unique,
- node: list.source,
- title: list.title,
- restype: list.type,
- comefrom: 'taskHoll',
- ifjoin: list.otherObj.ifjoin,
- actions: list.otherObj.actions,
- taskstatus: list.otherObj.taskstatus,
- taskid: list.otherObj.id,
- opentowho: list.otherObj.opentowho
- });
- }
- $scope.goToTaskDetailForTongLu = function (list, index) {
- console.log(list)
- if (!ConfigService.islogin) {
- if (localStorage.wxFlag == "true") {
- if (localStorage.isUserFocusXW == 0) {
- var title = localStorage.appidStr;
- $ionicPopup.alert({
- title: '提示',
- template: '请先关注微信公众号"' + title + '"!'
- });
- return;
- } else {
- if (localStorage.isUserBindWx == 0) {
- var wxFlag = JSON.parse(localStorage.params);
- if (wxFlag.weChatModel) {
- $scope.go('bindPhone', {
- params: localStorage.params,
- comfrom: 'maincontroller',
- url: window.location.href.split('#/')[1]
- });
- } else {
- $scope.go('login');
- return;
- }
- } else {
- $scope.go('login');
- return;
- }
- }
- } else {
- $scope.go('login');
- return;
- }
- } else {
- if (list.tonglucheckstatus == -1 || list.tonglucheckstatus == 0 || list.tonglucheckstatus == -2) {
- $scope.go('techDemandCheck', { id: list.id, checkShow: -1, list: list });
- }
- if (list.tonglucheckstatus == 1) {
- console.log(list)
- taskModuleService.getResourceByDemandName(list.projectname, $scope.node).then(function (res) {
- console.log(res)
- if (res.code == 3350) {
- var dataTemp = res.data;
- $scope.go('taskDetail', {
- resid: dataTemp.id,
- node: dataTemp.comefrom,
- title: dataTemp.title,
- restype: dataTemp.restype,
- comefrom: 'taskHoll',
- index: index,
- taskid: dataTemp.otherid
- });
- }
- })
- }
- }
- }
- $scope.goToTaskAction = function (list, action, index) {
- console.log(list);
- if (!ConfigService.islogin) {
- if (localStorage.wxFlag == "true") {
- if (localStorage.isUserFocusXW == 0) {
- var title = localStorage.appidStr;
- $ionicPopup.alert({
- title: '提示',
- template: '请先关注微信公众号"' + title + '"!'
- });
- return;
- } else {
- if (localStorage.isUserBindWx == 0) {
- var wxFlag = JSON.parse(localStorage.params);
- if (wxFlag.weChatModel) {
- $scope.go('bindPhone', {
- params: localStorage.params,
- comfrom: 'maincontroller',
- url: window.location.href.split('#/')[1]
- });
- } else {
- $scope.go('login');
- return;
- }
- } else {
- $scope.go('login');
- return;
- }
- }
- } else {
- $scope.go('login');
- return;
- }
- }
- if (action == 5323) {
- $scope.go('taskEvaluate', {
- taskRes: JSON.stringify(list)
- })
- } else if (action == 5322) {
- // 对接录入
- $scope.go('dockingInput', {
- comfrom: 'dockingInput',
- taskTitle: list.title,
- taskid: list.otherObj.id,
- companyName: list.school,
- companyid: list.otherObj.companyid,
- })
- } else if (action == 5324) {
- $scope.go('visitModularForm', {
- companyid: list.otherObj.companyid,
- pageTitle: '新建录入',
- pagecode: 1000027,
- pageid: 15,
- restype: 0,
- node: list.source,
- title: list.school,
- })
- } else if (action == 5325) {
- var confirmPopup = $ionicPopup.confirm({
- title: '提示信息',
- template: '是否确定结束任务?',
- buttons: [
- { text: '取消' },
- {
- text: '<b>确定</b>',
- type: 'button-positive',
- onTap: function () {
- return 'ok'
- }
- },
- ]
- });
- confirmPopup.then(function (res) {
- if (res == 'ok') {
- var senddata = {
- data: {
- resourceid: list.unique,
- action: 5325,
- creator: UserService.id
- },
- node: UserService.node
- }
- $scope.showLoadingToast();
- console.log(senddata);
- taskModuleService.saveOrupdatetaskAction(senddata).then(function (res) {
- console.log(res);
- $scope.getData();
- $scope.hideLoadingToast();
- })
- } else {
- return;
- }
- });
- } else if (action == 5321) {
- senddata = {
- data: {
- resourceid: list.unique,
- action: 5321,
- creator: UserService.id
- },
- node: UserService.node
- }
- $scope.showLoadingToast();
- console.log(senddata);
- taskModuleService.saveOrupdatetaskAction(senddata).then(function (res) {
- console.log(res);
- if (res.code == 3350) {
- if ($scope.app) {
- UtilService.showMess("任务申请成功!");
- } else {
- CommonService.showMessage("任务申请成功!", $scope);
- }
- $scope.allData[index].action1 = true;
- $scope.allData[index].action0 = false;
- $scope.allData[index].action3 = true;
- $scope.allData[index].otherObj.actions = '5322,5324';
- }
- $scope.hideLoadingToast();
- })
- }
- }
- });
|