|
@@ -79,6 +79,74 @@ var pfMeetingTxth_editCtrl = function ($scope, $http, $alert, $loading,$partySel
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ //选择会议成员
|
|
|
|
+ $scope.selectUserlist = {
|
|
|
|
+ url: "../../api/partyUser/getPartyUserList",
|
|
|
|
+ title: '人员选择',
|
|
|
|
+ isMulti: true,
|
|
|
|
+ selectData: {xm: '姓名', szdzb: '所在组织架构'},
|
|
|
|
+ columns: {XM: '姓名', XBMC: '性别', JG: '籍贯', DZZMC: '所在组织架构'},
|
|
|
|
+ selectLabelKey: 'XM',
|
|
|
|
+ selectValuekey: 'RYJBXXBS',
|
|
|
|
+ selectedValueData: '',
|
|
|
|
+ selectedLabeData: '',
|
|
|
|
+ selectedJData: [],
|
|
|
|
+ selectParams: {
|
|
|
|
+ dzzdm: $scope.dataModel.partycode,
|
|
|
|
+ removeUsers: '',
|
|
|
|
+ //szdzbdm: $scope.dataModel.shyktype == 2 ? $scope.dataModel.partycode : '',
|
|
|
|
+ ryzt: '2,3' //预备党员,正式党员
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+ $scope.$watch('selectUserlist.selectedValueData', function (newVal) {
|
|
|
|
+ if (newVal != '' && newVal != undefined) {
|
|
|
|
+ $http({
|
|
|
|
+ method: 'get',
|
|
|
|
+ url: '../../api/partyUser/getPartyUserList',
|
|
|
|
+ params: {
|
|
|
|
+ userIds: newVal,
|
|
|
|
+ pageindex: 1,
|
|
|
|
+ pagesize: 10000
|
|
|
|
+ }
|
|
|
|
+ }).then(function (result) {
|
|
|
|
+ $loading.hide();
|
|
|
|
+ result.data.item.list.forEach(item => {
|
|
|
|
+ item.SIGNINSTATUS = 2;
|
|
|
|
+ });
|
|
|
|
+ let data = [];
|
|
|
|
+ result.data.item.list.forEach(x=>{
|
|
|
|
+ data.push({rybm: x.RYBM, ryjbxxbs: x.RYJBXXBS, xm: x.XM, isabsenteeism: 0, absenteeismcause: ''});
|
|
|
|
+ })
|
|
|
|
+ $scope.dataModel.personnellist = $scope.dataModel.personnellist.concat(data);
|
|
|
|
+
|
|
|
|
+ $scope.dataModel.usercount = $scope.dataModel.personnellist.length
|
|
|
|
+
|
|
|
|
+ $scope.selectUserlist.selectedValueData = "";
|
|
|
|
+ $scope.selectUserlist.selectedLabeData = "";
|
|
|
|
+ }, function (resp) {
|
|
|
|
+ $loading.hide();
|
|
|
|
+ $scope.showMsg('错误', '服务器错误');
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ $scope.$watch('dataModel.personnellist', function (newVal) {
|
|
|
|
+ if($scope.dataModel.personnellist){
|
|
|
|
+ $scope.setRemoveUser();
|
|
|
|
+ }
|
|
|
|
+ }, true);
|
|
|
|
+ $scope.setRemoveUser = function () {
|
|
|
|
+ $scope.selectUserlist.selectParams.removeUsers = "";
|
|
|
|
+ angular.forEach($scope.dataModel.personnellist, function (val, index) {
|
|
|
|
+ $scope.selectUserlist.selectParams.removeUsers += val.ryjbxxbs + ','
|
|
|
|
+ });
|
|
|
|
+ };
|
|
|
|
+ //人员操作
|
|
|
|
+ $scope.deleteUser = function (index) {
|
|
|
|
+ if (confirm("请确认是否需要移除参会人员!")) {
|
|
|
|
+ $scope.dataModel.personnellist.splice(index, 1);
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+
|
|
$scope.getData();
|
|
$scope.getData();
|
|
|
|
|
|
};
|
|
};
|