sasp-admin 0.2.62 → 0.2.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/index.js +38 -31
  2. package/package.json +1 -1
  3. package/router.js +5 -1
  4. package/src/assets/font/iconfont.css +1902 -1846
  5. package/src/assets/font/iconfont.eot +0 -0
  6. package/src/assets/font/iconfont.js +1 -1
  7. package/src/assets/font/iconfont.svg +959 -825
  8. package/src/assets/font/iconfont.ttf +0 -0
  9. package/src/assets/font/iconfont.woff +0 -0
  10. package/src/assets/js/api/apiAdmin.js +10 -0
  11. package/src/assets/js/global/dataGlobal.js +7 -3
  12. package/src/assets/js/global/userGlobal.js +9 -3
  13. package/src/components/complexViewRendering.vue +214 -198
  14. package/src/components/ifmLink.vue +20 -3
  15. package/src/components/public/data/plDataSelect.vue +8 -6
  16. package/src/components/public/org/sysOrgPosUserSelect.vue +61 -22
  17. package/src/components/public/upload/images/ofd.png +0 -0
  18. package/src/components/public/upload/plImage.vue +3 -1
  19. package/src/components/public/upload/plUpload.vue +167 -40
  20. package/src/components/public/upload/preview/OfdPreview.vue +223 -0
  21. package/src/components/public/upload/preview/officeViewer.vue +116 -0
  22. package/src/components/public/upload/preview/pdfPreview.vue +91 -0
  23. package/src/{views → components/public/upload}/preview/pdfViewer.vue +1 -1
  24. package/src/views/VueMenuView.vue +11 -13
  25. package/src/views/data/dataManage.vue +51 -5
  26. package/src/views/event/eventManager/vueEventDiy.vue +4 -6
  27. package/src/views/log/loginlog/logManageDevOrSup.vue +8 -5
  28. package/src/views/log/loginlog/logManageEnt.vue +96 -55
  29. package/src/views/log/loginlog/logManageGov.vue +8 -5
  30. package/src/views/menu/component/menuManageComponent.vue +3 -5
  31. package/src/views/menuRouter/menuView.vue +226 -117
  32. package/src/views/menuRouter/urlMenuRouter.vue +13 -16
  33. package/src/views/org/entOrgTree.vue +1 -3
  34. package/src/views/org/js/sysOrgUserDetailMixins.js +646 -0
  35. package/src/views/org/sysEntOrgUserDetail.vue +10 -632
  36. package/src/views/org/sysOrgDimension.vue +4 -8
  37. package/src/views/org/sysOrgPosUserDetail.vue +4 -619
  38. package/src/views/org/sysOrgTree.vue +7 -9
  39. package/src/views/param/sysParam.vue +2 -0
  40. package/src/views/resources/resRouter/resView.vue +9 -11
  41. package/src/views/resources/tabs/comp/pageResRegister.vue +3 -5
  42. package/src/views/resources/tabs/dataResources.vue +3 -1
  43. package/src/views/resources/tabs/pageResources.vue +3 -1
  44. package/src/views/role/authRole/component/allocateSetting.vue +2 -589
  45. package/src/views/role/authRole/component/authSetting.vue +2 -597
  46. package/src/views/role/authRole/component/js/authMixins.js +622 -0
  47. package/src/views/role/commonRole/commonRole.vue +122 -3
  48. package/src/views/role/commonRole/compoment/commonSetting.vue +4 -6
  49. package/src/views/role/commonRole/compoment/commonSettingAdjust.vue +2 -89
  50. package/src/views/role/commonRole/compoment/commonSettingNew.vue +13 -97
  51. package/src/views/role/commonRole/compoment/js/commonSettingMixins.js +90 -0
  52. package/src/views/role/commonRole/compoment/roleMenuPower.vue +17 -2
  53. package/src/views/role/commonRole/compoment/roleMenuSetting.vue +12 -5
  54. package/src/views/sms/sendSms.vue +1 -1
  55. package/src/views/threeinone/init/safeInitRegion.vue +2 -4
  56. package/src/views/threeinone/safeManager.vue +1 -0
  57. package/src/views/threeinone/safeOrgSpv.vue +360 -337
  58. package/src/views/threeinone/safeSpvEconView.vue +37 -17
  59. package/src/views/uploadManage/uploadManage.vue +133 -0
  60. package/src/views/user/empowerUser/empowerUserListViewMenuTree.vue +6 -2
  61. package/src/views/user/stationUserManage.vue +3 -5
  62. package/src/views/user/userManage.vue +99 -3
  63. package/src/views/user/userMangement.vue +4 -6
@@ -82,12 +82,12 @@
82
82
  export default {
83
83
  name: "complex-view-rendering",
84
84
  props: {
85
- resourceId:{ //资源id
86
- type:String,
87
- default:''
85
+ resourceId: { //资源id
86
+ type: String,
87
+ default: ''
88
88
  },
89
- operatePermis:{type :String, default:""}, //操作权限
90
- dataPermis:{type :String,default:""}, //数据权限
89
+ operatePermis: {type: String, default: ""}, //操作权限
90
+ dataPermis: {type: String, default: ""}, //数据权限
91
91
  id: {
92
92
  type: String,
93
93
  default: ""
@@ -100,15 +100,43 @@
100
100
  type: Boolean,
101
101
  default: false
102
102
  },
103
- listOutParam:{type:Object,default:() => {return {};}}, //外部传入参数
104
- tabSettingArr:{type:Array,required:false,default:() => {return [];}},//选择页签
105
- isCompositeView:{type: Boolean, default: false,required:false},//是否是复合视图组件
106
- equilibriumObj:{type:Object,default:() => {return {};}},
107
- parentFormData:{type:Object,default:() => {return {};}}, //父级表单对象
108
- equiliInfoObj:{type:Object,default:() => {return {};}},//用于监听值改变
109
- refreshUUId:{type:Object,default:()=>{return {};}},
110
- compositeObj:{type:Object,default:()=>{return {};}}, //用户监听刷新
111
- compositeFormOperate:{type:String,default:''}, //表单操作状态
103
+ listOutParam: {
104
+ type: Object, default: () => {
105
+ return {};
106
+ }
107
+ }, //外部传入参数
108
+ tabSettingArr: {
109
+ type: Array, required: false, default: () => {
110
+ return [];
111
+ }
112
+ },//选择页签
113
+ isCompositeView: {type: Boolean, default: false, required: false},//是否是复合视图组件
114
+ equilibriumObj: {
115
+ type: Object, default: () => {
116
+ return {};
117
+ }
118
+ },
119
+ parentFormData: {
120
+ type: Object, default: () => {
121
+ return {};
122
+ }
123
+ }, //父级表单对象
124
+ equiliInfoObj: {
125
+ type: Object, default: () => {
126
+ return {};
127
+ }
128
+ },//用于监听值改变
129
+ refreshUUId: {
130
+ type: Object, default: () => {
131
+ return {};
132
+ }
133
+ },
134
+ compositeObj: {
135
+ type: Object, default: () => {
136
+ return {};
137
+ }
138
+ }, //用户监听刷新
139
+ compositeFormOperate: {type: String, default: ''}, //表单操作状态
112
140
  },
113
141
  components: {
114
142
  IfmLink
@@ -117,128 +145,118 @@
117
145
  return {
118
146
  tagArrs: [],
119
147
  activeName: '0',
120
- activeTabId:'', //当前选择的tabId
148
+ activeTabId: '', //当前选择的tabId
121
149
  operationJson: "",
122
- activeIndex:{},
123
- isRefresh:this.COMMON_FUNC.getUUID(),
150
+ activeIndex: {},
151
+ isRefresh: this.COMMON_FUNC.getUUID(),
124
152
  setClickTab: new Set(["0"]), // 当前已被点击的选项卡
125
- resourceObj:{}, //资源池对象
126
- viewId:"", //复合视图模块id
127
- operatePermisObj:{},//操作权限 Obj
128
- dataPermisObj:{}, //数据权限 Obj
129
- allRouterArr:this.$router.options.routes || [], //所有router配置
153
+ resourceObj: {}, //资源池对象
154
+ viewId: "", //复合视图模块id
155
+ operatePermisObj: {},//操作权限 Obj
156
+ dataPermisObj: {}, //数据权限 Obj
157
+ allRouterArr: this.$router.options.routes || [], //所有router配置
130
158
  activeUrl: '',//实际路径
131
- userType:'', //登录用户类型
132
- tabSize:0,//
133
- autoRefresh:false,
159
+ userType: '', //登录用户类型
160
+ tabSize: 0,//
161
+ autoRefresh: false,
134
162
  refreshTab: {},
135
- tabSettingArrSize:0,//复合视图组件 tab个数
136
- refreshPreview:'', //刷新表格数据
137
- refreshPage:'', //刷新页面
138
- tagPrintArr:[],
139
- isPrint:false, //是否为打印 打印状态时候tag标签向下遍历
140
- printActiveName:'0',//打印时候每个标签页只有一个
163
+ tabSettingArrSize: 0,//复合视图组件 tab个数
164
+ refreshPreview: '', //刷新表格数据
165
+ refreshPage: '', //刷新页面
166
+ tagPrintArr: [],
167
+ isPrint: false, //是否为打印 打印状态时候tag标签向下遍历
168
+ printActiveName: '0',//打印时候每个标签页只有一个
141
169
 
142
170
  }
143
171
  },
144
172
  created() {
145
173
  let loginUser = this.USER_GLOBAL.getLoginUser() || {};
146
- this.RES_GLOBAL.getById(this.resourceId,loginUser.userType).then(res =>{
174
+ this.RES_GLOBAL.getById(this.resourceId, loginUser.userType).then(res => {
147
175
  this.resourceObj[res.id] = res;
148
176
  this.executShow();
149
177
  });
150
- if(this.isCompositeView){
151
- Object.keys(this.equiliInfoObj).forEach(key=>{
178
+ if (this.isCompositeView) {
179
+ Object.keys(this.equiliInfoObj).forEach(key => {
152
180
  this.$watch(function () {
153
181
  return this.equiliInfoObj[key];
154
- },function () {
155
- this.executShow().then(()=>{
182
+ }, function () {
183
+ this.executShow().then(() => {
156
184
  let nowTab = this.tagArrs[this.activeName] || {};
157
- if(nowTab.id != this.activeTabId){
185
+ if (nowTab.id != this.activeTabId) {
158
186
  //当前tab 还没有查询
159
- this.tabClick({name:this.activeName});
187
+ this.tabClick({name: this.activeName});
160
188
  }
161
189
  });
162
- } );
190
+ });
163
191
  });
164
192
  }
165
193
  },
166
194
  watch: {
167
- tabSettingArr(){
195
+ tabSettingArr() {
168
196
  let tabLength = this.tabSettingArr.length;
169
- if(tabLength <= Number(this.activeName) && tabLength > 0){
197
+ if (tabLength <= Number(this.activeName) && tabLength > 0) {
170
198
  this.activeName = (tabLength - 1) + '';
171
199
  this.activeTabId = (this.tabSettingArr[this.activeName] || {}).id || '';
172
- this.tabClick({name:this.activeName});
200
+ this.tabClick({name: this.activeName});
173
201
  }
174
202
  this.executShow();//展示
175
203
  },
176
204
 
177
- resourceId(){
205
+ resourceId() {
178
206
  this.executShow();//展示
179
207
  },
180
- activeName(){ //点击tab 标签跳转
208
+ activeName() { //点击tab 标签跳转
181
209
  //执行跳转
182
210
  let obj = this.tagArrs[this.activeName] || {};
183
211
  let urlType = JSON.parse(obj.urlType || '[]');
184
- if(urlType.length > 0 && urlType[0] == 'url'){
185
- if((obj.rangetUrl || '').indexOf('http://') == -1 && (obj.rangetUrl || '').indexOf('https://') == -1 ){
212
+ if (urlType.length > 0 && urlType[0] == 'url' && (obj.rangetUrl || '').indexOf('http://') == -1 && (obj.rangetUrl || '').indexOf('https://') == -1) {
213
+ let url = obj.rangetUrl || '';
214
+ this.isRefresh = this.COMMON_FUNC.getUUID();
215
+ this.activeUrl = '';
216
+ //递归遍历 router 路由 判断当前路由是否存在
217
+ let urlArr = url.split("/");
218
+ this.eachRouterSet(this.allRouterArr, urlArr, 0);
219
+ }
220
+ },
221
+ tagArrs() {
222
+ if (this.tagArrs.length > 0 && this.tagArrs && this.tagArrs.length > 0) {
223
+ //vue动态import组件
224
+ let obj = this.tagArrs[this.activeName] || {};
225
+ let urlType = JSON.parse(obj.urlType || '[]');
226
+ if (urlType.length > 0 && urlType[0] == 'url' && ((obj.rangetUrl || '').indexOf('http://') == -1 && (obj.rangetUrl || '').indexOf('https://') == -1)) {
186
227
  let url = obj.rangetUrl || '';
187
228
  this.isRefresh = this.COMMON_FUNC.getUUID();
188
229
  this.activeUrl = '';
189
230
  //递归遍历 router 路由 判断当前路由是否存在
190
- let urlArr = url.split("/");
191
- this.eachRouterSet(this.allRouterArr,urlArr,0);
192
- }
193
- }
194
- },
195
- tagArrs(){
196
- if(this.tagArrs.length > 0){
197
- if(this.tagArrs && this.tagArrs.length > 0){
198
- //vue动态import组件
199
- let obj = this.tagArrs[this.activeName] || {};
200
- let urlType = JSON.parse(obj.urlType || '[]');
201
- if(urlType.length > 0 && urlType[0] == 'url'){
202
- if((obj.rangetUrl || '').indexOf('http://') == -1 && (obj.rangetUrl || '').indexOf('https://') == -1){
203
- let url = obj.rangetUrl || '';
204
- this.isRefresh = this.COMMON_FUNC.getUUID();
205
- this.activeUrl = '';
206
- //递归遍历 router 路由 判断当前路由是否存在
207
- if(url){
208
- let urlArr = url.split("/");
209
- this.eachRouterSet(this.allRouterArr,urlArr,0);
210
- }
211
- }
231
+ if (url) {
232
+ let urlArr = url.split("/");
233
+ this.eachRouterSet(this.allRouterArr, urlArr, 0);
212
234
  }
213
-
214
- }
215
-
216
235
  }
217
236
  }
218
237
  },
219
- isPrintParam:function (old,newd) {
238
+ isPrintParam: function (old, newd) {
220
239
  this.isPrint = !this.isPrint;
221
240
  //更新 tagPrintArr;
222
- if(this.isPrint){
241
+ if (this.isPrint) {
223
242
  //遍历 this.tagArrs 赋值
224
243
  this.tagPrintArr = [];
225
- this.tagArrs.forEach(item =>{
244
+ this.tagArrs.forEach(item => {
226
245
  this.tagPrintArr.push([item]);
227
246
  });
228
- }else {
247
+ } else {
229
248
  this.executShow();//展示
230
249
  this.tagPrintArr = [];
231
250
  }
232
251
  },
233
252
 
234
-
235
- computed:{
236
- isPrintParam(){
253
+ },
254
+ computed: {
255
+ isPrintParam() {
237
256
  return this.$store.state.user.isPrintParam;
238
257
  }
239
258
  },
240
259
 
241
-
242
260
  methods: {
243
261
  /**
244
262
  * 遍历匹配路由
@@ -246,23 +264,21 @@
246
264
  * urlArr 链接arr
247
265
  * index遍历层数
248
266
  */
249
- eachRouterSet(allRouterArr,urlArr,index){
250
- allRouterArr.forEach(item =>{
251
- if(urlArr[index + 1]){
252
- if(urlArr[index +1] == (item.name ? item.name : item.path)){
253
- //当前匹配
254
- //判断 urlArr是否存在下级
255
- if(index+2 >= urlArr.length){ //则当前地址为我需要的实际地址
256
- let componentString = item.component.toString();
257
- let arr = componentString.split("\"");
258
- this.activeUrl = arr[arr.length - 2] || '';
259
- this.activeIndex = item.component;
260
- }else if(item.children && item.children.length > 0) {
261
- //如果存在下级
262
- allRouterArr = item.children || [];
263
- index = index + 1;
264
- this.eachRouterSet(allRouterArr,urlArr,index);
265
- }
267
+ eachRouterSet(allRouterArr, urlArr, index) {
268
+ allRouterArr.forEach(item => {
269
+ if (urlArr[index + 1] && (urlArr[index + 1] == (item.name ? item.name : item.path))) {
270
+ //当前匹配
271
+ //判断 urlArr是否存在下级
272
+ if (index + 2 >= urlArr.length) { //则当前地址为我需要的实际地址
273
+ let componentString = item.component.toString();
274
+ let arr = componentString.split("\"");
275
+ this.activeUrl = arr[arr.length - 2] || '';
276
+ this.activeIndex = item.component;
277
+ } else if (item.children && item.children.length > 0) {
278
+ //如果存在下级
279
+ allRouterArr = item.children || [];
280
+ index = index + 1;
281
+ this.eachRouterSet(allRouterArr, urlArr, index);
266
282
  }
267
283
  }
268
284
 
@@ -272,9 +288,9 @@
272
288
  /**
273
289
  * 复合视图展示
274
290
  */
275
- executShow(){
291
+ executShow() {
276
292
  return new Promise(resolve => {
277
- if(this.resourceId && this.resourceObj[this.resourceId]){
293
+ if (this.resourceId && this.resourceObj[this.resourceId]) {
278
294
  //作为跳板,跳转到 compelxRednding 复合视图预览页面
279
295
  let resourceObj = this.resourceObj[this.resourceId];
280
296
  let url = resourceObj.ragentUrl || '';
@@ -287,107 +303,108 @@
287
303
  let dataArr = []; //操作权限
288
304
  let alloperatePermisObj = {};
289
305
  let allDataPermisObj = {};
290
- (resourceObj.operatePermisList || []).forEach(item =>{
306
+ (resourceObj.operatePermisList || []).forEach(item => {
291
307
  alloperatePermisObj[item.id] = item;
292
- if(operateKeysArr.indexOf(item.id) > -1){
308
+ if (operateKeysArr.indexOf(item.id) > -1) {
293
309
  operateArr.push(item);
294
310
  }
295
311
  });
296
- (resourceObj.dataPermisList || []).forEach(item =>{
312
+ (resourceObj.dataPermisList || []).forEach(item => {
297
313
  allDataPermisObj[item.id] = item;
298
- if(dataKeysArr.indexOf(item.id) > -1){
314
+ if (dataKeysArr.indexOf(item.id) > -1) {
299
315
  dataArr.push(item);
300
316
  }
301
317
  });
302
- this.axios.post(this.api.complex.getById,{id:resourceObj.rkey}).then(complexRes => {
318
+ this.axios.post(this.api.complex.getById, {id: resourceObj.rkey}).then(complexRes => {
303
319
  this.autoRefresh = (complexRes.data || {}).autoRefresh == "1";
304
- this.axios.post(this.api.complextab.getTabsById,{ "viewId": resourceObj.rkey || '',
305
- "order": "SORT ASC"}).then(async res =>{
306
- if(res && res.data){
320
+ this.axios.post(this.api.complextab.getTabsById, {
321
+ "viewId": resourceObj.rkey || '',
322
+ "order": "SORT ASC"
323
+ }).then(async res => {
324
+ if (res && res.data) {
307
325
  this.tagPrintArr = [];
308
326
  this.tagArrs = [];
309
327
  this.tabSize = 0;
310
- (res.data || []).forEach(tab =>{
311
- this.$set(tab,'equilibriumData',{});
328
+ (res.data || []).forEach(tab => {
329
+ this.$set(tab, 'equilibriumData', {});
312
330
  //获取选项卡类型, 根据选项卡类型进行跳转(选项卡的操作权限和数据权限也要加上)
313
- if(tab.urlType){
331
+ if (tab.urlType) {
314
332
  let urlTypeArr = JSON.parse(tab.urlType || '[]');
315
333
  //根据子页面的信息获取相关资源池中的信息
316
334
  let tabType = urlTypeArr[0];
317
- let tabResourceId = urlTypeArr[urlTypeArr.length -1];
335
+ let tabResourceId = urlTypeArr[urlTypeArr.length - 1];
318
336
  let tabResourceObj = {};
319
- let tabData = tab['dataPermis'];//数据权限
337
+ // let tabData = tab['dataPermis'];//数据权限
320
338
  //获取页面的注册地址
321
- this.RES_GLOBAL.getById(tabResourceId,this.userType).then(res =>{
339
+ this.RES_GLOBAL.getById(tabResourceId, this.userType).then(res => {
322
340
  tabResourceObj = res;
323
341
  let rangetUrl = tabResourceObj.ragentUrl || ''; //资源地址
324
- this.$set(tab,'rangetUrl',rangetUrl); //赋值资源地址
325
- this.$set(tab,'tabType',tabType); //赋值标签项类型
342
+ this.$set(tab, 'rangetUrl', rangetUrl); //赋值资源地址
343
+ this.$set(tab, 'tabType', tabType); //赋值标签项类型
326
344
  //判断操作权限和数据权限
327
345
  let operateKeyArr = [];
328
346
  let dataKeyArr = [];
329
- this.$set(tab,'operatePermis',operateKeyArr); //操作权限
330
- this.$set(tab,'dataPermis',dataKeyArr); //操作权限
347
+ this.$set(tab, 'operatePermis', operateKeyArr); //操作权限
348
+ this.$set(tab, 'dataPermis', dataKeyArr); //操作权限
331
349
  let hasOperate = false; //存在操作权限
332
350
  let hasData = false; //存在数据权限
333
- (operateArr || []).forEach(item =>{ //操作权限
334
- if(alloperatePermisObj[item['parentId']]){
335
- if(alloperatePermisObj[item['parentId']].powerKey == tab.id){ //当前标签下的权限
336
- hasOperate = true;
337
- operateKeyArr.push(item.powerCode);
338
- }
351
+ (operateArr || []).forEach(item => { //操作权限
352
+ if (alloperatePermisObj[item['parentId']] && alloperatePermisObj[item['parentId']].powerKey == tab.id) {
353
+ hasOperate = true;
354
+ operateKeyArr.push(item.powerCode);
339
355
  }
340
356
  });
341
- if(hasOperate){ //如果存在操作权限
342
- this.$set(tab,'operatePermis',operateKeyArr); //操作权限
357
+ if (hasOperate) { //如果存在操作权限
358
+ this.$set(tab, 'operatePermis', operateKeyArr); //操作权限
343
359
  }
344
- (dataArr || []).forEach(item =>{ //数据权限
345
- if(allDataPermisObj[item['parentId']]){
346
- if(allDataPermisObj[item['parentId']].powerKey == tab.id){ //当前标签下的权限
347
- hasData = true;
348
- dataKeyArr.push(item.powerCode);
349
- }
360
+ (dataArr || []).forEach(item => { //数据权限
361
+ if (allDataPermisObj[item['parentId']] && allDataPermisObj[item['parentId']].powerKey == tab.id) {
362
+ hasData = true;
363
+ dataKeyArr.push(item.powerCode);
350
364
  }
351
365
  });
352
- if(hasData){ //如果
353
- this.$set(tab,'dataPermis',dataKeyArr); //操作权限
366
+ if (hasData) { //如果
367
+ this.$set(tab, 'dataPermis', dataKeyArr); //操作权限
354
368
  }
355
- if(tab['tabType'] == 'form'){ //智能建表
369
+ if (tab['tabType'] == 'form') { //智能建表
356
370
  //赋值条件定义
357
371
  let formDefineKey = tabResourceObj.rclassId;
358
372
  let listViewDefineKey = tabResourceObj.rkey;
359
- this.FORM_GLOBAL.findListNewVersion({formDefineKey:formDefineKey,defineKey:listViewDefineKey}).then(res =>{
360
- let resData = res.data ||{};
373
+ this.FORM_GLOBAL.findListNewVersion({
374
+ formDefineKey: formDefineKey,
375
+ defineKey: listViewDefineKey
376
+ }).then(res => {
377
+ let resData = res.data || {};
361
378
  let listViewId = resData.id || ''; //表单视图的 definkeKey
362
379
  let formId = resData.formId || ''; //表单id definkeKey
363
380
  let conditionId = []; //数据权限
364
- if(tab['operatePermis']){ //存在操作权限
381
+ if (tab['operatePermis']) { //存在操作权限
365
382
  let operateObj = {};
366
383
  let operatePermisArr = [];
367
- if(typeof tab['operatePermis'] == "string"){
384
+ if (typeof tab['operatePermis'] == "string") {
368
385
  operatePermisArr = (tab['operatePermis'] || "").split(",");
369
- }else{
370
- operatePermisArr = tab['operatePermis']|| []
386
+ } else {
387
+ operatePermisArr = tab['operatePermis'] || []
371
388
  }
372
- operatePermisArr .forEach(key =>{
389
+ operatePermisArr.forEach(key => {
373
390
  operateObj[key] = true;
374
391
  });
375
- this.$set(tab,'operateAuthority',operateObj);
392
+ this.$set(tab, 'operateAuthority', operateObj);
376
393
  }
377
394
 
378
- if(tabData){ //存在数据权限
395
+ if (tab['dataPermis']) { //存在数据权限
379
396
  let tabDataArr = [];
380
- if(typeof tabData == 'string'){
381
- tabDataArr = (tabData || "").split(",");
382
- }else{
383
- tabDataArr = tabData || [];
397
+ if (typeof tab['dataPermis'] == 'string') {
398
+ tabDataArr = (tab['dataPermis'] || "").split(",");
399
+ } else {
400
+ tabDataArr = tab['dataPermis'] || [];
384
401
  }
385
402
 
386
403
  let tabRermis = tabResourceObj["dataPermisList"];//取出数据权限集合
387
404
  let tabRermisArr = [];
388
- tabDataArr.forEach(data =>{
389
- tabRermis.forEach(item =>{//遍历数据权限集合
390
- if(data == item["id"]){ //数据权限跟
405
+ tabDataArr.forEach(data => {
406
+ tabRermis.forEach(item => {//遍历数据权限集合
407
+ if (data == item["powerKey"]) { //数据权限跟
391
408
  tabRermisArr.unshift(item.powerKey);//数据权限powerKey
392
409
  }
393
410
  })
@@ -395,93 +412,93 @@
395
412
  })
396
413
  conditionId = tabRermisArr || [];
397
414
  }
398
- this.$set(tab,'formId',formId);
399
- this.$set(tab,'listViewId',listViewId);
415
+ this.$set(tab, 'formId', formId);
416
+ this.$set(tab, 'listViewId', listViewId);
400
417
  //条件定义id
401
- this.$set(tab,'conditionId',conditionId.join(","));
418
+ this.$set(tab, 'conditionId', conditionId.join(","));
402
419
  this.tabSize++;
403
420
 
404
421
  resolve();
405
422
  });
406
- }else if(tab['tabType'] == 'flow'){ //工作流
423
+ } else if (tab['tabType'] == 'flow') { //工作流
407
424
  let flowId = tabResourceObj.rkey;
408
425
  let resOptList = tabResourceObj.operatePermisList;
409
426
  let optMap = {};
410
- if(resOptList&&resOptList.length>0){
411
- resOptList.forEach(item=>{
412
- optMap[item.powerKey]=item.powerCode;
427
+ if (resOptList && resOptList.length > 0) {
428
+ resOptList.forEach(item => {
429
+ optMap[item.powerKey] = item.powerCode;
413
430
  })
414
431
  }
415
- this.FLOW_GLOBAL.getFlowDefineById(flowId).then(flowObj =>{
416
- this.$set(tab,'flowObj',flowObj);
417
- if(tab['operatePermis']){ //存在操作权限
432
+ this.FLOW_GLOBAL.getFlowDefineById(flowId).then(flowObj => {
433
+ this.$set(tab, 'flowObj', flowObj);
434
+ if (tab['operatePermis']) { //存在操作权限
418
435
  let operatePermisArr = [];
419
436
  let operateRootArr = [];
420
- if(typeof tab['operatePermis'] == "string"){
437
+ if (typeof tab['operatePermis'] == "string") {
421
438
  operatePermisArr = (tab['operatePermis'] || "").split(",");
422
- }else{
423
- operatePermisArr = tab['operatePermis']|| []
439
+ } else {
440
+ operatePermisArr = tab['operatePermis'] || []
424
441
  }
425
- operatePermisArr.forEach(operateKey =>{
426
- if(optMap.hasOwnProperty(operateKey)){
427
- operateRootArr.push({"powerCode":optMap[operateKey]});
442
+ operatePermisArr.forEach(operateKey => {
443
+ if (optMap.hasOwnProperty(operateKey)) {
444
+ operateRootArr.push({"powerCode": optMap[operateKey]});
428
445
  }
429
446
  });
430
- this.$set(tab,'operateRootArr',operateRootArr);
447
+ this.$set(tab, 'operateRootArr', operateRootArr);
431
448
  }
432
- this.$set(tab,'flowId',flowId);
449
+ this.$set(tab, 'flowId', flowId);
433
450
  this.tabSize++;
434
451
  resolve();
435
452
  });
436
- }else {
453
+ } else {
437
454
  this.tabSize++;
438
455
  }
439
456
 
440
457
  });
441
458
  //解析相关外部参数
442
- if(!tab.listOutParam){
443
- tab.listOutParam = Object.assign(this.listOutParam,{}); //外部
459
+ if (!tab.listOutParam) {
460
+ tab.listOutParam = Object.assign(this.listOutParam, {}); //外部
444
461
  }
445
- if(!tab.equilibriumData){
446
- this.$set(tab,'equilibriumData',{});
462
+ if (!tab.equilibriumData) {
463
+ this.$set(tab, 'equilibriumData', {});
447
464
  }
448
- let equiliObj ={};
449
- Object.keys(this.equilibriumObj).forEach(tabKey =>{
450
- if(tabKey == tab.id){
451
- (this.equilibriumObj[tabKey]||[]).forEach(item =>{
452
- if(item.paramKey.indexOf("listoutCondition_") == -1){
453
- this.$set(tab.listOutParam,item.paramKey,item.paramValue); //传入外部参数
454
- }else {
465
+ let equiliObj = {};
466
+ Object.keys(this.equilibriumObj).forEach(tabKey => {
467
+ if (tabKey == tab.id) {
468
+ (this.equilibriumObj[tabKey] || []).forEach(item => {
469
+ if (item.paramKey.indexOf("listoutCondition_") == -1) {
470
+ this.$set(tab.listOutParam, item.paramKey, item.paramValue); //传入外部参数
471
+ } else {
455
472
  let params = item.paramKey.split("listoutCondition_")[1];
456
- this.$set(equiliObj,params,item.paramValue);
473
+ this.$set(equiliObj, params, item.paramValue);
457
474
  }
458
475
  });
459
476
  }
460
477
  });
461
- if(equiliObj.hasOwnProperty('conditionId')){ //传入
462
- Object.assign(tab.equilibriumData,equiliObj);
478
+ if (equiliObj.hasOwnProperty('conditionId')) { //传入
479
+ Object.assign(tab.equilibriumData, equiliObj);
463
480
  this.refreshPreview = this.COMMON_FUNC.getUuidByParams(32);
464
481
  }
465
482
 
466
483
  this.tagArrs.push(tab);
467
484
  }
468
485
  });
469
- if(this.isCompositeView){//是否是复合视图组件
486
+ if (this.isCompositeView) {//是否是复合视图组件
470
487
  let arr = [];
471
488
  this.tabSettingArrSize = 0;
472
- (this.tabSettingArr || []).forEach(item=>{//遍历复合视图组件传的tab
473
- (this.tagArrs || []).forEach(data=>{//遍历查询tab
474
- if(item == data.id){
489
+ (this.tabSettingArr || []).forEach(item => {//遍历复合视图组件传的tab
490
+ (this.tagArrs || []).forEach(data => {//遍历查询tab
491
+ if (item == data.id) {
475
492
  arr.push(data);
476
- this.tabSettingArrSize ++;//tab计数
493
+ this.tabSettingArrSize++;//tab计数
477
494
  }
478
495
  });
479
496
  });
480
497
  this.tagArrs = arr;
481
498
  }
482
499
  }
483
- this.tagArrs.forEach((item,index) => {
484
- this.$set(this.refreshTab,index + '',true);
500
+ this.tagArrs.forEach((item, index) => {
501
+ this.$set(this.refreshTab, index + '', true);
485
502
  })
486
503
  });
487
504
  });
@@ -490,13 +507,12 @@
490
507
  },
491
508
 
492
509
 
493
-
494
510
  /**
495
511
  * 获取资源池对象
496
512
  */
497
- getResources(){
513
+ getResources() {
498
514
  return new Promise(resolve => {
499
- this.RES_GLOBAL.getById(this.resourceId,this.userType).then(res =>{
515
+ this.RES_GLOBAL.getById(this.resourceId, this.userType).then(res => {
500
516
  resolve(res);
501
517
  });
502
518
  });
@@ -511,11 +527,11 @@
511
527
  tabClick(tab) {
512
528
  this.setClickTab.add(tab.name);
513
529
  this.activeTabId = (this.tagArrs[tab.name] || {}).id || '';
514
- if(this.autoRefresh){
530
+ if (this.autoRefresh) {
515
531
  this.refreshTab[tab.name] = false;
516
532
  this.$nextTick(() => {
517
533
  this.refreshTab[tab.name] = true;
518
- if(!this.refreshTab[tab.name]){
534
+ if (!this.refreshTab[tab.name]) {
519
535
  this.$nextTick(() => {
520
536
  this.refreshTab[tab.name] = true;
521
537
  })
@@ -531,7 +547,7 @@
531
547
  * @returns {boolean}
532
548
  */
533
549
  isEmptyObject(obj) {
534
- for (let key in obj){
550
+ for (let key in obj) {
535
551
  if (obj.hasOwnProperty(key)) {
536
552
  return false;//返回false,不为空对象
537
553
  }
@@ -546,19 +562,19 @@
546
562
  * @param params
547
563
  * @returns {Promise<any> | Promise}
548
564
  */
549
- ayncMethodUrl(url,params){
565
+ ayncMethodUrl(url, params) {
550
566
  let data = '';
551
567
  Object.keys(params || {}).forEach(key => {
552
568
  data += "&" + key + "=" + params[key];
553
569
  });
554
- if(data){
570
+ if (data) {
555
571
  data = data.substring(1);
556
572
  }
557
573
  const xmlhttp = new XMLHttpRequest();
558
574
 
559
575
  let result = null;
560
576
  xmlhttp.open("POST", url, false);
561
- xmlhttp.setRequestHeader("Authorization",localStorage["Authorization" + (window.projectSuffix || "")]||"");
577
+ xmlhttp.setRequestHeader("Authorization", localStorage["Authorization" + (window.projectSuffix || "")] || "");
562
578
  xmlhttp.setRequestHeader('Content-Type',
563
579
  'application/x-www-form-urlencoded');
564
580
  xmlhttp.onreadystatechange = function () {