Переглянути джерело

fix: 组织生活管理增加上传文件

zhangying 2 днів тому
батько
коміт
6cb9413df5

+ 1 - 0
src/main/resources/static/app/main/shyk/edit.html

@@ -272,6 +272,7 @@
                     </div>
                 </div>
             </div>
+            <bsfiles ng-model="reqFileModel"/>
             <div class="form_foot" style="margin-bottom: 100px;">
                 <button type="button" class="btn btn-default" ng-click="pagechange();">取消</button>
                 <button type="submit"

+ 12 - 2
src/main/resources/static/app/main/shyk/edit.js

@@ -10,6 +10,15 @@
         $scope.democracyReviewType = 7;//民主评议党员
         $scope.selectUserUrl = '../../api/partyUser/getPartyUserList';//获取成员接口地址
 
+        $scope.reqFileModel = {
+            selectdata: {FileRefID: '', pageindex: 1, pagesize: 10, ptotal: 0},//查询参数:FileRefID为文件关联ID
+            filetype: 71,//文件类型
+            items: [],//列表数据地址
+            readonly: false,//是否只能查看
+            title: '附件',
+            addFileButton: '上传'
+        };
+
         //定义数据集合
         $scope.dataModel = {
             meetingid: $stateParams.id == undefined ? "" : $stateParams.id,
@@ -140,7 +149,7 @@
                 $scope.dataModel.partyname = $scope.partyTreeConfig.selectedText;
                 $scope.selectUserlist.selectParams.dzzdm = $scope.dataModel.partycode;
 
-                $scope.defaultUser();
+                // $scope.defaultUser();
             }
         }, true);
 
@@ -270,6 +279,7 @@
                 }
 
                 $scope.dataModel = result.data.item;
+                $scope.reqFileModel.selectdata.FileRefID = $scope.dataModel.meetingid;
                 $scope.selectUserlist.selectParams.dzzdm = $scope.dataModel.partycode;
                 $scope.imgConfig1.filerefid = $scope.dataModel.meetingid;
                 $scope.imgConfig2.filerefid = $scope.dataModel.meetingid;
@@ -295,7 +305,7 @@
                     $scope.userList = result.data.item.list;
 
                     if ($scope.userList.length === 0) {
-                        $scope.defaultUser();
+                        // $scope.defaultUser();
                     }
                 });
             }

+ 2 - 2
src/main/resources/static/app/main/shyk/list.js

@@ -363,8 +363,8 @@
             }
         };
         $scope.setisunfold = function () {
-            $scope.selectparams.isunfold = !$scope.selectparams.isunfold;
-            $scope.$emit('menudatas.toggle', !$scope.selectparams.isunfold);
+            $scope.treeparams.isunfold = !$scope.treeparams.isunfold;
+            $scope.$emit('menudatas.toggle', !$scope.treeparams.isunfold);
         };
         $scope.reset = function () {
             $scope.selectparams = {};

+ 2 - 2
src/main/resources/static/app/main/shyk/show.js

@@ -56,8 +56,8 @@
         $scope.img = {rotate: 0};
 
         $scope.reqFileModel = {
-            selectdata: {FileRefID: '', pageindex: 1, pagesize: 10, ptotal: 0, fileType: 13},//查询参数:FileRefID为文件关联ID
-            filetype: 13,//文件类型
+            selectdata: {FileRefID: '', pageindex: 1, pagesize: 10, ptotal: 0, fileType: 71},//查询参数:FileRefID为文件关联ID
+            filetype: 71,//文件类型
             items: [],//列表数据地址
             readonly: true,//是否只能查看
             title: '会议记录附件',