sasp-admin 0.2.57
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.
- package/index.js +227 -0
- package/package.json +19 -0
- package/router.js +83 -0
- package/src/assets/font/iconfont.css +1346 -0
- package/src/assets/font/iconfont.eot +0 -0
- package/src/assets/font/iconfont.js +1 -0
- package/src/assets/font/iconfont.svg +827 -0
- package/src/assets/font/iconfont.ttf +0 -0
- package/src/assets/font/iconfont.woff +0 -0
- package/src/assets/images/loading-bar.gif +0 -0
- package/src/assets/js/adminInstall.js +36 -0
- package/src/assets/js/api/apiAdmin.js +613 -0
- package/src/assets/js/global/dataGlobal.js +260 -0
- package/src/assets/js/global/logGlobal.js +22 -0
- package/src/assets/js/global/paramGlobal.js +67 -0
- package/src/assets/js/global/resGlobal.js +91 -0
- package/src/assets/js/global/userGlobal.js +283 -0
- package/src/components/complexViewRendering.vue +601 -0
- package/src/components/ifmLink.vue +71 -0
- package/src/components/public/data/plDataCascader.vue +85 -0
- package/src/components/public/data/plDataRadio.vue +73 -0
- package/src/components/public/data/plDataRadioGroup.vue +70 -0
- package/src/components/public/data/plDataSelect.vue +856 -0
- package/src/components/public/data/plDatePicker.vue +159 -0
- package/src/components/public/org/bg.png +0 -0
- package/src/components/public/org/sysOrgPosUserSelect.vue +1237 -0
- package/src/components/public/org/sysOrgPosUserSelectDark.vue +1402 -0
- package/src/components/public/org/sysOrgPosUserSelectNew.vue +1527 -0
- package/src/components/public/upload/images/compress.png +0 -0
- package/src/components/public/upload/images/emipty.png +0 -0
- package/src/components/public/upload/images/excel.png +0 -0
- package/src/components/public/upload/images/file.png +0 -0
- package/src/components/public/upload/images/pdf.png +0 -0
- package/src/components/public/upload/images/powerpoint.png +0 -0
- package/src/components/public/upload/images/project.png +0 -0
- package/src/components/public/upload/images/sound.png +0 -0
- package/src/components/public/upload/images/txt.png +0 -0
- package/src/components/public/upload/images/video.png +0 -0
- package/src/components/public/upload/images/visio.png +0 -0
- package/src/components/public/upload/images/word.png +0 -0
- package/src/components/public/upload/plImage.vue +287 -0
- package/src/components/public/upload/plImgUpload.vue +137 -0
- package/src/components/public/upload/plUpload.vue +1124 -0
- package/src/components/public/upload/uploadImg.js +8 -0
- package/src/main.js +0 -0
- package/src/views/VueMenuView.vue +143 -0
- package/src/views/cloudMenuView.vue +125 -0
- package/src/views/complex/config/complex.vue +501 -0
- package/src/views/complex/config/complexSetting.vue +1250 -0
- package/src/views/complex/rendering/complexShow.vue +16 -0
- package/src/views/data/dataManage.vue +560 -0
- package/src/views/data/sysData.vue +292 -0
- package/src/views/event/eventManager/vueEventDiy.vue +1184 -0
- package/src/views/event/eventManager/vueEventMain.vue +108 -0
- package/src/views/event/eventManager/vueEventSys.vue +296 -0
- package/src/views/event/js/apiEvent.js +22 -0
- package/src/views/fileLog/fileDownloadLog.vue +437 -0
- package/src/views/initData/initData.vue +4316 -0
- package/src/views/log/dblog/logdbDevelop.vue +306 -0
- package/src/views/log/dblog/logdbEnt.vue +331 -0
- package/src/views/log/dblog/logdbGov.vue +395 -0
- package/src/views/log/error/logError.vue +553 -0
- package/src/views/log/loginlog/logManageDevOrSup.vue +357 -0
- package/src/views/log/loginlog/logManageEnt.vue +343 -0
- package/src/views/log/loginlog/logManageGov.vue +328 -0
- package/src/views/log/sms/logSms.vue +308 -0
- package/src/views/menu/component/menuManageComponent.vue +2402 -0
- package/src/views/menu/component/menuModule.vue +449 -0
- package/src/views/menu/menuLocal.vue +223 -0
- package/src/views/menu/menuManage.vue +1135 -0
- package/src/views/menu/tenantMenuManage.vue +1132 -0
- package/src/views/menuRouter/cview/cviewShow.vue +18 -0
- package/src/views/menuRouter/cviewMenuRouter.vue +183 -0
- package/src/views/menuRouter/menuView.vue +132 -0
- package/src/views/menuRouter/urlMenuRouter.vue +160 -0
- package/src/views/org/entOrgTree.vue +1050 -0
- package/src/views/org/ownerMenu/ownerMenuTree.vue +269 -0
- package/src/views/org/safeValidate/safeValidate.vue +469 -0
- package/src/views/org/sysEntOrgUserDetail.vue +3390 -0
- package/src/views/org/sysOrgDimension.vue +832 -0
- package/src/views/org/sysOrgPosUserDetail.vue +1648 -0
- package/src/views/org/sysOrgPosUserTree.vue +1101 -0
- package/src/views/org/sysOrgTree.vue +864 -0
- package/src/views/param/sysParam.vue +987 -0
- package/src/views/preview/pdfViewer.vue +82 -0
- package/src/views/resources/js/resourcesCommon.js +137 -0
- package/src/views/resources/resRouter/resView.vue +161 -0
- package/src/views/resources/resourcesTabs.vue +82 -0
- package/src/views/resources/tabs/comp/pageResPreview.vue +309 -0
- package/src/views/resources/tabs/comp/pageResRegister.vue +1120 -0
- package/src/views/resources/tabs/dataResources.vue +843 -0
- package/src/views/resources/tabs/pageResources.vue +970 -0
- package/src/views/role/allowMenu.vue +148 -0
- package/src/views/role/authRole/authRole.vue +427 -0
- package/src/views/role/authRole/component/allocateSetting.vue +1056 -0
- package/src/views/role/authRole/component/authSetting.vue +1196 -0
- package/src/views/role/commonRole/commonRole.vue +677 -0
- package/src/views/role/commonRole/compoment/allocateRoleMenuSetting.vue +335 -0
- package/src/views/role/commonRole/compoment/authLinkMenuTree.vue +55 -0
- package/src/views/role/commonRole/compoment/authSettingNew.vue +190 -0
- package/src/views/role/commonRole/compoment/commonSetting.vue +1576 -0
- package/src/views/role/commonRole/compoment/commonSettingAdjust.vue +584 -0
- package/src/views/role/commonRole/compoment/commonSettingNew.vue +572 -0
- package/src/views/role/commonRole/compoment/roleMenuPower.vue +226 -0
- package/src/views/role/commonRole/compoment/roleMenuPowerSetting.vue +69 -0
- package/src/views/role/commonRole/compoment/roleMenuSetting.vue +365 -0
- package/src/views/role/commonRole/compoment/roleSourceSetting.vue +229 -0
- package/src/views/role/commonRole/tenantCommonRole.vue +768 -0
- package/src/views/role/role.vue +135 -0
- package/src/views/role/roleMenuOption.vue +898 -0
- package/src/views/role/roleSynchroRemind.vue +399 -0
- package/src/views/role/sysRole.vue +1525 -0
- package/src/views/role/viewMenuOptDetail.vue +182 -0
- package/src/views/sms/sendSms.vue +164 -0
- package/src/views/station/orgStation.vue +561 -0
- package/src/views/tenant/appContentManager.vue +938 -0
- package/src/views/tenant/appManager.vue +642 -0
- package/src/views/tenant/tenantRoleManager.vue +670 -0
- package/src/views/tenant/tenantUserManager.vue +615 -0
- package/src/views/threeinone/compoment/safeCascadeSelect.vue +327 -0
- package/src/views/threeinone/init/safeInitRegion.vue +203 -0
- package/src/views/threeinone/safeManager.vue +927 -0
- package/src/views/threeinone/safeMenuManage.vue +565 -0
- package/src/views/threeinone/safeOrgSpv.vue +364 -0
- package/src/views/threeinone/safeSpv/safeSpvLeftTree.vue +109 -0
- package/src/views/threeinone/safeSpv/safeSpvMain.vue +335 -0
- package/src/views/threeinone/safeSpvEconView.vue +569 -0
- package/src/views/threeinone/safeValidateRegion.vue +328 -0
- package/src/views/urlResource/urlResource.vue +856 -0
- package/src/views/user/empowerUser/empowerEntUserManage.vue +415 -0
- package/src/views/user/empowerUser/empowerOrgTree.vue +167 -0
- package/src/views/user/empowerUser/empowerUserList.vue +633 -0
- package/src/views/user/empowerUser/empowerUserListMenuDeatil.vue +656 -0
- package/src/views/user/empowerUser/empowerUserListViewMenuTree.vue +257 -0
- package/src/views/user/empowerUser/empowerUserManage.vue +99 -0
- package/src/views/user/stationUserManage.vue +934 -0
- package/src/views/user/userManage.vue +737 -0
- package/src/views/user/userMangement.vue +938 -0
- package/src/views/user/viewMenu/viewMenu.vue +113 -0
- package/src/views/versionupdatetool/versionUpdateTool.vue +225 -0
- package/src/views/versionupdatetool/versioninfomation/verisonInfomationManagement.vue +68 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
<!--附件下载日志-->
|
|
2
|
+
<template>
|
|
3
|
+
<el-container class="top_contain" >
|
|
4
|
+
<!--查询条件 -->
|
|
5
|
+
<el-header style="height: auto">
|
|
6
|
+
<div class="search-form-parent el-card">
|
|
7
|
+
<el-form inline :model="crud.searchForm" size="small"
|
|
8
|
+
class="demo-form-inline" @keyup.enter.native="doSearch()" onSubmit="return false;">
|
|
9
|
+
<el-form-item label="下载人">
|
|
10
|
+
<el-input v-model="crud.searchForm.operator" style="width: 120px" ></el-input>
|
|
11
|
+
</el-form-item>
|
|
12
|
+
<el-form-item label="附件来源" v-if="sourceFieldId">
|
|
13
|
+
<el-input v-model="crud.searchForm.sourceName" style="width: 120px" ></el-input>
|
|
14
|
+
</el-form-item>
|
|
15
|
+
<el-form-item label="附件名称">
|
|
16
|
+
<el-input v-model="crud.searchForm.fileName" style="width: 120px" ></el-input>
|
|
17
|
+
</el-form-item>
|
|
18
|
+
<el-form-item label="用途说明">
|
|
19
|
+
<el-input v-model="crud.searchForm.xzsm" style="width: 200px" ></el-input>
|
|
20
|
+
</el-form-item>
|
|
21
|
+
<el-form-item label="下载时间" >
|
|
22
|
+
<el-date-picker type="date" v-model="crud.searchForm.downLoadTimeS"
|
|
23
|
+
range-separator="至"
|
|
24
|
+
start-placeholder="开始日期"
|
|
25
|
+
end-placeholder="结束日期"
|
|
26
|
+
value-format="yyyy-MM-dd"
|
|
27
|
+
style="width: 140px" >
|
|
28
|
+
</el-date-picker> -
|
|
29
|
+
<el-date-picker type="date" v-model="crud.searchForm.downLoadTimeZT" value-format="yyyy-MM-dd" style="width: 140px" ></el-date-picker>
|
|
30
|
+
</el-form-item>
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
<!--换行显示-->
|
|
34
|
+
<el-form-item>
|
|
35
|
+
<el-button type="primary" icon="el-icon-search" @click="doSearch()">查询</el-button>
|
|
36
|
+
<el-button icon="el-icon-close" @click="crud.resetSearch(callBack)">清空</el-button>
|
|
37
|
+
</el-form-item>
|
|
38
|
+
|
|
39
|
+
</el-form>
|
|
40
|
+
</div>
|
|
41
|
+
</el-header>
|
|
42
|
+
|
|
43
|
+
<!--查询体 列表展示-->
|
|
44
|
+
<el-main id="tableMain" style="height: 100%">
|
|
45
|
+
<el-container style="height:100%" class="table-list-container">
|
|
46
|
+
<!--列表-->
|
|
47
|
+
<el-main style="height: 100%;" ref="tableMain" >
|
|
48
|
+
<el-table :data="crud.dataStore.records" :ref="crud.tableRef" stripe border height="100%" style="width: 100%;">
|
|
49
|
+
<el-table-column type="index" label=" " align="center" width="60"></el-table-column>
|
|
50
|
+
<el-table-column label="附件来源" prop="sourceName" width="240" align="center" v-if="sourceFieldId" show-overflow-tooltip>
|
|
51
|
+
</el-table-column>
|
|
52
|
+
<el-table-column label="附件名称" prop="fileName" width="250" align="center" show-overflow-tooltip>
|
|
53
|
+
</el-table-column>
|
|
54
|
+
<el-table-column label="用途说明" prop="xzsm" align="center" show-overflow-tooltip>
|
|
55
|
+
</el-table-column>
|
|
56
|
+
<el-table-column label="下载人" prop="operator" align="center" width="120" >
|
|
57
|
+
</el-table-column>
|
|
58
|
+
<el-table-column label="下载人所属部门" prop="operatorOrgName" align="center" width="240" show-overflow-tooltip>
|
|
59
|
+
</el-table-column>
|
|
60
|
+
<el-table-column label="下载时间" prop="operatorTime" align="center" width="180" >
|
|
61
|
+
</el-table-column>
|
|
62
|
+
</el-table>
|
|
63
|
+
</el-main>
|
|
64
|
+
</el-container>
|
|
65
|
+
</el-main>
|
|
66
|
+
|
|
67
|
+
<!--底部分页-->
|
|
68
|
+
<el-footer>
|
|
69
|
+
<el-pagination
|
|
70
|
+
:ref="crud.pageRef"
|
|
71
|
+
:page-sizes="crud.pageSizes"
|
|
72
|
+
:page-size="crud.pageSize"
|
|
73
|
+
:current-page="crud.page"
|
|
74
|
+
:total="crud.dataStore.total"
|
|
75
|
+
@size-change="sizeChange"
|
|
76
|
+
@current-change="crud.currentPage(callBack)"
|
|
77
|
+
layout="total, sizes, prev, pager, next, jumper">
|
|
78
|
+
</el-pagination>
|
|
79
|
+
</el-footer>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
</el-container>
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
<script>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
export default {
|
|
89
|
+
//接收传过来的数据
|
|
90
|
+
name:"logdb-ent",
|
|
91
|
+
show:true,
|
|
92
|
+
props:{
|
|
93
|
+
fkId:{type:String,default:''},
|
|
94
|
+
fkIdSuffix:{type:String,default:''},
|
|
95
|
+
fileClassifyId:{type:String,default:''},//来源的 listViewId||formId
|
|
96
|
+
sourceFieldId:{type:String,default:''}, //来源名称关联字段 6a8e7e6e7fba11ebad4f1d5eb98f648f
|
|
97
|
+
},
|
|
98
|
+
data() {
|
|
99
|
+
return {
|
|
100
|
+
releaseStatus:'1', //发布状态
|
|
101
|
+
releaseStatusDefault:'0',
|
|
102
|
+
conditionMap:{},
|
|
103
|
+
crud : new this.CrudUtil({
|
|
104
|
+
vue: this,
|
|
105
|
+
entityName:"fileUploadLog",
|
|
106
|
+
url:this.api.fileUploadLog.url,
|
|
107
|
+
searchForm: {
|
|
108
|
+
order:"CREATE_TIME DESC"
|
|
109
|
+
},
|
|
110
|
+
noClearSearchColumns:["order"],
|
|
111
|
+
initNoSearch:true
|
|
112
|
+
}),
|
|
113
|
+
formInline: {
|
|
114
|
+
user: '',
|
|
115
|
+
region: ''
|
|
116
|
+
},
|
|
117
|
+
formTypeCityOptions:[],
|
|
118
|
+
formTypeAreaOptions:[],
|
|
119
|
+
formTypeStreetOptions:[],
|
|
120
|
+
formData:{
|
|
121
|
+
id:"","orgName":"",'userAccount':"",'userName':"",'operationTime':"",'operationName':"", 'operationTable':"",
|
|
122
|
+
"sqlParameter":"","clientIp":"","areaNames":""
|
|
123
|
+
}, //弹出框初始值
|
|
124
|
+
|
|
125
|
+
operteSqlDetail:false,
|
|
126
|
+
sqlRowsData:{},
|
|
127
|
+
operateOrgObj:{},
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
created(){
|
|
132
|
+
let vm = this;
|
|
133
|
+
this.initData();
|
|
134
|
+
|
|
135
|
+
},
|
|
136
|
+
watch: {
|
|
137
|
+
|
|
138
|
+
},
|
|
139
|
+
methods: {
|
|
140
|
+
|
|
141
|
+
//初始化数据加载
|
|
142
|
+
initData(){
|
|
143
|
+
let vm = this;
|
|
144
|
+
if(this.fkId){
|
|
145
|
+
vm.crud.searchForm['fileFkId'] = this.fkId + this.fkIdSuffix;
|
|
146
|
+
vm.crud['noClearSearchColumns'].push("fileFkId");
|
|
147
|
+
}
|
|
148
|
+
if(this.fileClassifyId){
|
|
149
|
+
vm.crud.searchForm['fileClassifyId'] = this.fileClassifyId;
|
|
150
|
+
vm.crud['noClearSearchColumns'].push("fileClassifyId");
|
|
151
|
+
}
|
|
152
|
+
vm.crud.search(vm.callBack); //出发查询条件
|
|
153
|
+
},
|
|
154
|
+
|
|
155
|
+
sizeChange(){
|
|
156
|
+
if(this.crud.searchForm.downLoadTimeZT){
|
|
157
|
+
this.crud.searchForm.downLoadTimeZ = this.crud.searchForm.downLoadTimeZT +' 23:59:59';
|
|
158
|
+
}
|
|
159
|
+
this.crud.searchForm.page = 1;
|
|
160
|
+
this.$refs[this.crud.pageRef]["internalCurrentPage"] = 1;
|
|
161
|
+
delete this.crud.searchForm['fileFkIdLk'];
|
|
162
|
+
if(this.sourceFieldId && this.fileClassifyId && this.crud.searchForm.sourceName){
|
|
163
|
+
//根据 当前
|
|
164
|
+
let queryParams = [{"controlType":"input","key":this.sourceFieldId,"operate":"like","value":this.crud.searchForm.sourceName}];
|
|
165
|
+
this.axios.post(this.api.plCommonmethod.findDataAndDetailsNew,{'listViewId':this.fileClassifyId,
|
|
166
|
+
'queryParams':JSON.stringify(queryParams),'currentPage':0,'rows':0}).then(res =>{
|
|
167
|
+
let dataIdArr = [];
|
|
168
|
+
((res.data && res.data.datas) || []).forEach(item =>{
|
|
169
|
+
Object.keys(item).forEach(key =>{
|
|
170
|
+
if(key.indexOf('ID_') > -1){
|
|
171
|
+
dataIdArr.push(item[key]+this.fkIdSuffix);
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
if(dataIdArr.length == 0){
|
|
176
|
+
dataIdArr.push("&&&&&&&&&&&&&&");
|
|
177
|
+
}
|
|
178
|
+
this.crud.searchForm['fileFkIdLk'] = dataIdArr.join(",");
|
|
179
|
+
this.crud.sizeChange(this.callBack);
|
|
180
|
+
});
|
|
181
|
+
}else {
|
|
182
|
+
this.crud.sizeChange(this.callBack);
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
currentPage(){
|
|
188
|
+
if(this.crud.searchForm.downLoadTimeZT){
|
|
189
|
+
this.crud.searchForm.downLoadTimeZ = this.crud.searchForm.downLoadTimeZT +' 23:59:59';
|
|
190
|
+
}
|
|
191
|
+
delete this.crud.searchForm['fileFkIdLk'];
|
|
192
|
+
if(this.sourceFieldId && this.fileClassifyId && this.crud.searchForm.sourceName){
|
|
193
|
+
//根据 当前
|
|
194
|
+
let queryParams = [{"controlType":"input","key":this.sourceFieldId,"operate":"like","value":this.crud.searchForm.sourceName}];
|
|
195
|
+
this.axios.post(this.api.plCommonmethod.findDataAndDetailsNew,{'listViewId':this.fileClassifyId,
|
|
196
|
+
'queryParams':JSON.stringify(queryParams),'currentPage':0,'rows':0}).then(res =>{
|
|
197
|
+
let dataIdArr = [];
|
|
198
|
+
((res.data && res.data.datas) || []).forEach(item =>{
|
|
199
|
+
Object.keys(item).forEach(key =>{
|
|
200
|
+
if(key.indexOf('ID_') > -1){
|
|
201
|
+
dataIdArr.push(item[key]+this.fkIdSuffix);
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
if(dataIdArr.length == 0){
|
|
206
|
+
dataIdArr.push("&&&&&&&&&&&&&&");
|
|
207
|
+
}
|
|
208
|
+
this.crud.searchForm['fileFkIdLk'] = dataIdArr.join(",");
|
|
209
|
+
this.crud.currentPage(this.callBack);
|
|
210
|
+
});
|
|
211
|
+
}else {
|
|
212
|
+
this.crud.currentPage(this.callBack);
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* 查询
|
|
218
|
+
*/
|
|
219
|
+
doSearch(){
|
|
220
|
+
if(this.crud.searchForm.downLoadTimeZT){
|
|
221
|
+
this.crud.searchForm.downLoadTimeZ = this.crud.searchForm.downLoadTimeZT +' 23:59:59';
|
|
222
|
+
}
|
|
223
|
+
delete this.crud.searchForm['fileFkIdLk'];
|
|
224
|
+
if(this.sourceFieldId && this.fileClassifyId && this.crud.searchForm.sourceName){
|
|
225
|
+
//根据 当前
|
|
226
|
+
let queryParams = [{"controlType":"input","key":this.sourceFieldId,"operate":"like","value":this.crud.searchForm.sourceName}];
|
|
227
|
+
this.axios.post(this.api.plCommonmethod.findDataAndDetailsNew,{'listViewId':this.fileClassifyId,
|
|
228
|
+
'queryParams':JSON.stringify(queryParams),'currentPage':0,'rows':0}).then(res =>{
|
|
229
|
+
let dataIdArr = [];
|
|
230
|
+
((res.data && res.data.datas) || []).forEach(item =>{
|
|
231
|
+
Object.keys(item).forEach(key =>{
|
|
232
|
+
if(key.indexOf('ID_') > -1){
|
|
233
|
+
dataIdArr.push(item[key]+this.fkIdSuffix);
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
if(dataIdArr.length == 0){
|
|
238
|
+
dataIdArr.push("&&&&&&&&&&&&&&");
|
|
239
|
+
}
|
|
240
|
+
this.crud.searchForm['fileFkIdLk'] = dataIdArr.join(",");
|
|
241
|
+
this.crud.doSearch(this.callBack);
|
|
242
|
+
});
|
|
243
|
+
}else {
|
|
244
|
+
this.crud.doSearch(this.callBack);
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* 查询
|
|
250
|
+
* @param vmObj
|
|
251
|
+
* @param data
|
|
252
|
+
*/
|
|
253
|
+
callBack(vmObj,data){
|
|
254
|
+
let dataArr = data.records || [];
|
|
255
|
+
//分类 classifyId进行分类
|
|
256
|
+
let classifyIdObj = {};
|
|
257
|
+
let operatorIdSet = new Set(); // 已选择菜单数据
|
|
258
|
+
dataArr.forEach(data =>{
|
|
259
|
+
let fileFkId = (data.fileFkId || '').split("_")[0];
|
|
260
|
+
if(fileFkId && data.fileClassifyId){
|
|
261
|
+
if(!classifyIdObj[data.fileClassifyId]){
|
|
262
|
+
classifyIdObj[data.fileClassifyId] = [];
|
|
263
|
+
}
|
|
264
|
+
classifyIdObj[data.fileClassifyId].push(fileFkId); //保存当前的 dataId
|
|
265
|
+
}
|
|
266
|
+
//解析操作人
|
|
267
|
+
if(data.operatorId){
|
|
268
|
+
operatorIdSet.add(data.operatorId);
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
let resultArr = [];
|
|
272
|
+
Object.keys(classifyIdObj).forEach(listViewId =>{
|
|
273
|
+
let dataIds = (classifyIdObj[listViewId] || []).join(",");
|
|
274
|
+
resultArr.push(
|
|
275
|
+
new Promise(resolve => { //项目
|
|
276
|
+
this.axios.post(this.api.plCommonmethod.getByIdsAndListViewId, {
|
|
277
|
+
"listViewId": listViewId,
|
|
278
|
+
"dataIds": dataIds,
|
|
279
|
+
}).then(res => {
|
|
280
|
+
resolve((res.data && res.data.operateObj) || []);
|
|
281
|
+
}).catch(error=>{
|
|
282
|
+
resolve([]); //如果异常抛出空的对象
|
|
283
|
+
});
|
|
284
|
+
})
|
|
285
|
+
)
|
|
286
|
+
});
|
|
287
|
+
// resultArr.push()
|
|
288
|
+
//查询所有用户所在组织
|
|
289
|
+
let operatorIdArr = Array.from(operatorIdSet);
|
|
290
|
+
resultArr.push( new Promise(resolve => { //项目
|
|
291
|
+
this.axios.post(this.api.sysUser.findNoPage, {
|
|
292
|
+
"ids": operatorIdArr.join(","),
|
|
293
|
+
"unsup":"sup",
|
|
294
|
+
"parentOrg":"true",
|
|
295
|
+
"getOrgName":"true",
|
|
296
|
+
"empowerUser":'Y',
|
|
297
|
+
"orderSql":"TB.CREATE_TIME DESC,TB.USER_STATUS DESC"
|
|
298
|
+
}).then(res => {
|
|
299
|
+
resolve((res.data && res.data) || []);
|
|
300
|
+
}).catch(error=>{
|
|
301
|
+
resolve([]); //如果异常抛出空的对象
|
|
302
|
+
});
|
|
303
|
+
}));
|
|
304
|
+
Promise.all(resultArr).then(resArr =>{
|
|
305
|
+
let dataIdToName = {};
|
|
306
|
+
let operateOrgObj = {};
|
|
307
|
+
resArr.forEach((arr,index) =>{
|
|
308
|
+
if(index <= resultArr.length -2){
|
|
309
|
+
(arr || []).forEach(item =>{
|
|
310
|
+
if(this.sourceFieldId && item[this.sourceFieldId]){
|
|
311
|
+
dataIdToName[item.ID] = item[this.sourceFieldId] || '';
|
|
312
|
+
}
|
|
313
|
+
})
|
|
314
|
+
}else { //所在部门信息
|
|
315
|
+
(arr || []).forEach(row =>{
|
|
316
|
+
let orgName = row["parentOrgName"]? row["parentOrgName"]+" -> "+row["orgName"]:row["orgName"];
|
|
317
|
+
if(!operateOrgObj[row.id]){
|
|
318
|
+
operateOrgObj[row.id] = orgName;
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
dataArr.forEach(data =>{
|
|
324
|
+
let fileFkId = (data.fileFkId || '').split("_")[0];
|
|
325
|
+
if(fileFkId && dataIdToName[fileFkId]){
|
|
326
|
+
this.$set(data,'sourceName',dataIdToName[fileFkId]);
|
|
327
|
+
}
|
|
328
|
+
if(data.operatorId && operateOrgObj[data.operatorId]){
|
|
329
|
+
this.$set(data,'operatorOrgName',operateOrgObj[data.operatorId]);//所在部门
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
this.crud.dataStore.records = dataArr;
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
</script>
|
|
341
|
+
|
|
342
|
+
<style scoped>
|
|
343
|
+
legend{
|
|
344
|
+
font-size: 14px;
|
|
345
|
+
}
|
|
346
|
+
.button_header{
|
|
347
|
+
position: absolute;
|
|
348
|
+
height: 60px!important;
|
|
349
|
+
text-align: center;
|
|
350
|
+
line-height: 60px;
|
|
351
|
+
bottom: 0;
|
|
352
|
+
border-top: 1px solid #f2f2f2;
|
|
353
|
+
background-color: white;
|
|
354
|
+
margin: auto;
|
|
355
|
+
width: 100%;
|
|
356
|
+
right: 0;
|
|
357
|
+
z-index: 99;
|
|
358
|
+
}
|
|
359
|
+
.control_box{
|
|
360
|
+
padding-right: 100px;
|
|
361
|
+
position: relative;
|
|
362
|
+
}
|
|
363
|
+
.control_box_zero{
|
|
364
|
+
padding-right: 0;
|
|
365
|
+
position: relative;
|
|
366
|
+
}
|
|
367
|
+
.operate_div{
|
|
368
|
+
position: absolute;
|
|
369
|
+
right: 0;
|
|
370
|
+
top: 0;
|
|
371
|
+
bottom: 0;
|
|
372
|
+
margin: auto;
|
|
373
|
+
width: 100px;
|
|
374
|
+
}
|
|
375
|
+
.operate_div i{
|
|
376
|
+
/*margin-right: 20px;*/
|
|
377
|
+
cursor: pointer;
|
|
378
|
+
width: 30px;
|
|
379
|
+
height: 30px;
|
|
380
|
+
padding-top: 15px;
|
|
381
|
+
padding-left: 15px;
|
|
382
|
+
float: left;
|
|
383
|
+
}
|
|
384
|
+
.top_contain{
|
|
385
|
+
height: 100%;
|
|
386
|
+
/*border-radius:8px;*/
|
|
387
|
+
overflow-y: hidden;
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
}
|
|
391
|
+
.top_contain::-webkit-scrollbar{
|
|
392
|
+
width: 0;
|
|
393
|
+
}
|
|
394
|
+
</style>
|
|
395
|
+
<style>
|
|
396
|
+
.black .el-form-item__label{
|
|
397
|
+
color: black;
|
|
398
|
+
}
|
|
399
|
+
.green .el-form-item__label{
|
|
400
|
+
color: #27B5C3;
|
|
401
|
+
}
|
|
402
|
+
.settingClass{
|
|
403
|
+
width: 100%;
|
|
404
|
+
height: 40px;
|
|
405
|
+
position: relative;
|
|
406
|
+
}
|
|
407
|
+
.settingClass span{
|
|
408
|
+
position: absolute;
|
|
409
|
+
top:0;left:0;
|
|
410
|
+
right: 0;bottom: 0;
|
|
411
|
+
margin: auto;line-height: 40px;
|
|
412
|
+
}
|
|
413
|
+
.receiveObjNameLeft{
|
|
414
|
+
float: left;
|
|
415
|
+
width: 90%;
|
|
416
|
+
}
|
|
417
|
+
.receiveObjNameRight{
|
|
418
|
+
position: absolute;
|
|
419
|
+
float: right;
|
|
420
|
+
width: 10%;
|
|
421
|
+
top: 5px;
|
|
422
|
+
margin-left: 4px;
|
|
423
|
+
button:5px;
|
|
424
|
+
|
|
425
|
+
}
|
|
426
|
+
.sqlStyle{
|
|
427
|
+
display: block;
|
|
428
|
+
color: #000000;
|
|
429
|
+
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.dialogStyle{
|
|
433
|
+
font-size: 11px;
|
|
434
|
+
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
</style>
|