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,561 @@
|
|
|
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="crud.doSearch()" onSubmit="return false;">
|
|
9
|
+
<el-form-item label="岗位名称">
|
|
10
|
+
<el-input v-model="crud.searchForm.stationName" style="width: 120px" ></el-input>
|
|
11
|
+
</el-form-item>
|
|
12
|
+
<!--换行显示-->
|
|
13
|
+
<el-form-item>
|
|
14
|
+
<el-button type="primary" icon="el-icon-search" @click="crud.doSearch()">查询</el-button>
|
|
15
|
+
<el-button icon="el-icon-close" @click="crud.resetSearch()">清空</el-button>
|
|
16
|
+
</el-form-item>
|
|
17
|
+
|
|
18
|
+
</el-form>
|
|
19
|
+
</div>
|
|
20
|
+
</el-header>
|
|
21
|
+
|
|
22
|
+
<!--查询体 列表展示-->
|
|
23
|
+
<el-main id="tableMain" style="height: 100%">
|
|
24
|
+
<el-container style="height:100%" class="table-list-container">
|
|
25
|
+
<el-header style="height: auto;" size="small">
|
|
26
|
+
<!--新增-->
|
|
27
|
+
<el-button type="primary" size="small" round icon="el-icon-circle-plus" @click="stationAdd()" >新增</el-button>
|
|
28
|
+
<!--删除-->
|
|
29
|
+
<el-button type="danger" size="small" round icon="el-icon-delete" @click="crud.remove()" >删除</el-button>
|
|
30
|
+
<span style="color: red;margin-left: 30px">*优先级越小岗位排名越前</span>
|
|
31
|
+
</el-header>
|
|
32
|
+
<!--列表-->
|
|
33
|
+
<el-main style="height: 100%;" ref="tableMain" >
|
|
34
|
+
<el-table :data="crud.dataStore.records" :ref="crud.tableRef" stripe border height="100%" style="width: 100%;">
|
|
35
|
+
<el-table-column type="selection" width="40"
|
|
36
|
+
align="center"></el-table-column>
|
|
37
|
+
<el-table-column type="index" label="序号" align="center" width="60"></el-table-column>
|
|
38
|
+
<el-table-column label="岗位名称" prop="stationName" align="center" show-overflow-tooltip>
|
|
39
|
+
</el-table-column>
|
|
40
|
+
<el-table-column label="优先级" prop="priority" width="250" align="center" show-overflow-tooltip>
|
|
41
|
+
</el-table-column>
|
|
42
|
+
<el-table-column label="操作" align="center" width="240">
|
|
43
|
+
<template slot-scope="scope" >
|
|
44
|
+
<el-button size="small" type="primary" @click="stationEdit(scope.row)">
|
|
45
|
+
<i class="el-icon-edit"></i>修改
|
|
46
|
+
</el-button>
|
|
47
|
+
</template>
|
|
48
|
+
</el-table-column>
|
|
49
|
+
|
|
50
|
+
</el-table>
|
|
51
|
+
</el-main>
|
|
52
|
+
</el-container>
|
|
53
|
+
</el-main>
|
|
54
|
+
|
|
55
|
+
<!--新增或修改岗位-->
|
|
56
|
+
<!--添加脚本-->
|
|
57
|
+
<el-dialog :title="(crud.formData.id? '修改':'添加')+'岗位信息'" :visible.sync="crud.dialogVisible" height="300px"
|
|
58
|
+
top="13vh" width="30%" append-to-body>
|
|
59
|
+
<el-form :model="crud.formData" label-width="126px" :ref="crud.addFormRef" class="script_list_form">
|
|
60
|
+
<el-row>
|
|
61
|
+
<el-col :span="24">
|
|
62
|
+
<el-form-item label="岗位名称:" prop="stationName" :rules="rules.stationName">
|
|
63
|
+
<el-input v-model="crud.formData.stationName" ></el-input>
|
|
64
|
+
</el-form-item>
|
|
65
|
+
</el-col>
|
|
66
|
+
<el-col :span="24">
|
|
67
|
+
<el-form-item label="优先级:" prop="priority" :rules="plValidate('required','numberInt')">
|
|
68
|
+
<el-input v-model="crud.formData.priority"></el-input>
|
|
69
|
+
</el-form-item>
|
|
70
|
+
</el-col>
|
|
71
|
+
</el-row>
|
|
72
|
+
</el-form>
|
|
73
|
+
<div slot="footer" class="dialog-footer">
|
|
74
|
+
<el-button type="primary" size="small" icon="el-icon-success" @click="crud.formSubmit()" >保存</el-button>
|
|
75
|
+
<el-button @click="crud.dialogVisible = false" size="small" icon="el-icon-error">取 消</el-button>
|
|
76
|
+
</div>
|
|
77
|
+
</el-dialog>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
<!--底部分页-->
|
|
81
|
+
<el-footer>
|
|
82
|
+
<el-pagination
|
|
83
|
+
:ref="crud.pageRef"
|
|
84
|
+
:page-sizes="crud.pageSizes"
|
|
85
|
+
:page-size="crud.pageSize"
|
|
86
|
+
:current-page="crud.page"
|
|
87
|
+
:total="crud.dataStore.total"
|
|
88
|
+
@size-change="crud.sizeChange()"
|
|
89
|
+
@current-change="crud.currentPage()"
|
|
90
|
+
layout="total, sizes, prev, pager, next, jumper">
|
|
91
|
+
</el-pagination>
|
|
92
|
+
</el-footer>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
</el-container>
|
|
96
|
+
</template>
|
|
97
|
+
|
|
98
|
+
<script>
|
|
99
|
+
import Sortable from 'sortablejs';
|
|
100
|
+
export default {
|
|
101
|
+
//接收传过来的数据
|
|
102
|
+
name:"logdb-ent",
|
|
103
|
+
show:true,
|
|
104
|
+
props:{
|
|
105
|
+
fkId:{type:String,default:''},
|
|
106
|
+
fkIdSuffix:{type:String,default:''},
|
|
107
|
+
fileClassifyId:{type:String,default:''},//来源的 listViewId||formId
|
|
108
|
+
sourceFieldId:{type:String,default:''}, //来源名称关联字段 6a8e7e6e7fba11ebad4f1d5eb98f648f
|
|
109
|
+
},
|
|
110
|
+
data() {
|
|
111
|
+
//岗位名称唯一校验
|
|
112
|
+
let stationNameValidate =(rule,value,callback) => {
|
|
113
|
+
if(!value){
|
|
114
|
+
callback();
|
|
115
|
+
}
|
|
116
|
+
this.axios.post(this.api.sysStation.find,{stationNameEq:value}).then(res =>{
|
|
117
|
+
if((res.data ||[]).length == 0 || (this.operate == 'update' && this.oldStationName == value)){
|
|
118
|
+
callback();
|
|
119
|
+
}else{
|
|
120
|
+
return callback(new Error('该名称的岗位已经存在!'));
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
conditionMap:{},
|
|
127
|
+
crud : new this.CrudUtil({
|
|
128
|
+
vue: this,
|
|
129
|
+
entityName:"sysStation",
|
|
130
|
+
url:this.api.sysStation.url,
|
|
131
|
+
searchForm: {
|
|
132
|
+
order:"PRIORITY"
|
|
133
|
+
},
|
|
134
|
+
initNoSearch:true,
|
|
135
|
+
noClearSearchColumns:["order","stationAttach"],
|
|
136
|
+
addDefaultData:{'priority':'1'},
|
|
137
|
+
beforeSubmit:this.beforeSubmit
|
|
138
|
+
}),
|
|
139
|
+
formInline: {
|
|
140
|
+
user: '',
|
|
141
|
+
region: ''
|
|
142
|
+
},
|
|
143
|
+
formTypeCityOptions:[],
|
|
144
|
+
formTypeAreaOptions:[],
|
|
145
|
+
formTypeStreetOptions:[],
|
|
146
|
+
formData:{
|
|
147
|
+
id:"","orgName":"",'userAccount':"",'userName':"",'operationTime':"",'operationName':"", 'operationTable':"",
|
|
148
|
+
"sqlParameter":"","clientIp":"","areaNames":""
|
|
149
|
+
}, //弹出框初始值
|
|
150
|
+
|
|
151
|
+
operteSqlDetail:false,
|
|
152
|
+
sqlRowsData:{},
|
|
153
|
+
operateOrgObj:{},
|
|
154
|
+
operateTitle:'',
|
|
155
|
+
isShowSaveBtn:{}, //是否显示保存按钮
|
|
156
|
+
oldStationName:'',//上一次的岗位名称
|
|
157
|
+
operate:'',//操作方式
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
//唯一标识验证
|
|
161
|
+
rules:{
|
|
162
|
+
//岗位名称唯一校验
|
|
163
|
+
stationName:[
|
|
164
|
+
{required: true, message: '该输入项为必输项'},
|
|
165
|
+
{validator:stationNameValidate,trigger:'blur'}
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
loginUser:{},
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
created(){
|
|
173
|
+
//获取当前登录用户
|
|
174
|
+
this.loginUser = this.USER_GLOBAL.getLoginUser() || {};
|
|
175
|
+
if(this.loginUser.userType == 'sup' || this.loginUser.userType == 'dev'){
|
|
176
|
+
//管理员
|
|
177
|
+
// this.crud.searchForm['created'] = this.loginUser.id;
|
|
178
|
+
}else { //普通用户
|
|
179
|
+
this.crud.searchForm['stationAttach'] = this.loginUser.mainOrgId || '';
|
|
180
|
+
}
|
|
181
|
+
this.crud.search();
|
|
182
|
+
},
|
|
183
|
+
watch: {
|
|
184
|
+
|
|
185
|
+
},
|
|
186
|
+
mounted(){
|
|
187
|
+
//拖动排序
|
|
188
|
+
//已配置字段可以拖动
|
|
189
|
+
//树定义表格可以上下拖动
|
|
190
|
+
const vm = this;
|
|
191
|
+
if(this.$refs[this.crud.tableRef]){
|
|
192
|
+
const el = this.$refs[this.crud.tableRef].$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0];
|
|
193
|
+
Sortable.create(el, {
|
|
194
|
+
animation: 150,
|
|
195
|
+
onEnd({ newIndex, oldIndex }) {
|
|
196
|
+
const listTemp = [...vm.crud.dataStore.records];
|
|
197
|
+
const oldValue = listTemp.splice(oldIndex, 1)[0];
|
|
198
|
+
//重新更新当前页的所有userLayer
|
|
199
|
+
listTemp.splice(newIndex, 0, oldValue);
|
|
200
|
+
//对于切换的两个用户排序
|
|
201
|
+
const userLayerArr = []; //用户id对应的排序
|
|
202
|
+
listTemp.forEach((item,index)=>{
|
|
203
|
+
//计算当前页
|
|
204
|
+
vm.$set(item,'priority',(vm.crud.dataStore.pages -1)*vm.crud.pageSize + (index+1));
|
|
205
|
+
userLayerArr.push({
|
|
206
|
+
id:item.id,
|
|
207
|
+
priority:item.priority
|
|
208
|
+
})
|
|
209
|
+
});
|
|
210
|
+
//执行批量更新
|
|
211
|
+
if(userLayerArr.length >0){
|
|
212
|
+
vm.axios.post(vm.api.sysStation.batchUpdate,{updateObj:JSON.stringify(userLayerArr)}); //拖动排序
|
|
213
|
+
}
|
|
214
|
+
vm.crud.dataStore.records = []; //先清空表格数据
|
|
215
|
+
vm.$nextTick(() => {
|
|
216
|
+
vm.crud.dataStore.records = listTemp;
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
methods: {
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* 显示保存按钮
|
|
227
|
+
*/
|
|
228
|
+
showSaveBtn(row,index){
|
|
229
|
+
this.isShowSaveBtn[index] = true; //显示保存按钮
|
|
230
|
+
},
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* 岗位添加
|
|
234
|
+
*/
|
|
235
|
+
stationAdd(){
|
|
236
|
+
this.operate = "add";
|
|
237
|
+
//修改最大的 crud.formData
|
|
238
|
+
//addDefaultData
|
|
239
|
+
//查询当前最大 优先级
|
|
240
|
+
//获取当前登录用户归属
|
|
241
|
+
let searchObj = {"order":"priority ASC"};
|
|
242
|
+
if(this.loginUser.userType != 'sup' && this.loginUser.userType != 'dev'){
|
|
243
|
+
searchObj["stationAttach"] = this.loginUser.mainOrgId || '';
|
|
244
|
+
}
|
|
245
|
+
this.axios.post(this.api.sysStation.find,searchObj).then(res =>{
|
|
246
|
+
let maxPriority = 1;
|
|
247
|
+
if(res && res.data && res.data.length > 0){
|
|
248
|
+
let priority = res.data[res.data.length - 1].priority;
|
|
249
|
+
maxPriority += Number(priority);
|
|
250
|
+
}
|
|
251
|
+
this.crud.addDefaultData['priority'] = maxPriority+'';
|
|
252
|
+
this.crud.add();
|
|
253
|
+
});
|
|
254
|
+
},
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* 岗位修改
|
|
258
|
+
*/
|
|
259
|
+
stationEdit(row){
|
|
260
|
+
this.operate = "update";
|
|
261
|
+
this.oldStationName = row.stationName; //记录当前的岗位名称
|
|
262
|
+
this.crud.update(row);
|
|
263
|
+
},
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
// sizeChange(){
|
|
267
|
+
// if(this.crud.searchForm.downLoadTimeZT){
|
|
268
|
+
// this.crud.searchForm.downLoadTimeZ = this.crud.searchForm.downLoadTimeZT +' 23:59:59';
|
|
269
|
+
// }
|
|
270
|
+
// delete this.crud.searchForm['fileFkIdLk'];
|
|
271
|
+
// if(this.sourceFieldId && this.fileClassifyId && this.crud.searchForm.sourceName){
|
|
272
|
+
// //根据 当前
|
|
273
|
+
// let queryParams = [{"controlType":"input","key":this.sourceFieldId,"operate":"like","value":this.crud.searchForm.sourceName}];
|
|
274
|
+
// this.axios.post(this.api.plCommonmethod.findDataAndDetailsNew,{'listViewId':this.fileClassifyId,
|
|
275
|
+
// 'queryParams':JSON.stringify(queryParams),'currentPage':0,'rows':0}).then(res =>{
|
|
276
|
+
// let dataIdArr = [];
|
|
277
|
+
// ((res.data && res.data.datas) || []).forEach(item =>{
|
|
278
|
+
// Object.keys(item).forEach(key =>{
|
|
279
|
+
// if(key.indexOf('ID_') > -1){
|
|
280
|
+
// dataIdArr.push(item[key]+this.fkIdSuffix);
|
|
281
|
+
// }
|
|
282
|
+
// });
|
|
283
|
+
// });
|
|
284
|
+
// if(dataIdArr.length == 0){
|
|
285
|
+
// dataIdArr.push("&&&&&&&&&&&&&&");
|
|
286
|
+
// }
|
|
287
|
+
// this.crud.searchForm['fileFkIdLk'] = dataIdArr.join(",");
|
|
288
|
+
// this.crud.sizeChange(this.callBack);
|
|
289
|
+
// });
|
|
290
|
+
// }else {
|
|
291
|
+
// this.crud.sizeChange(this.callBack);
|
|
292
|
+
// }
|
|
293
|
+
// },
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
// currentPage(){
|
|
297
|
+
// if(this.crud.searchForm.downLoadTimeZT){
|
|
298
|
+
// this.crud.searchForm.downLoadTimeZ = this.crud.searchForm.downLoadTimeZT +' 23:59:59';
|
|
299
|
+
// }
|
|
300
|
+
// delete this.crud.searchForm['fileFkIdLk'];
|
|
301
|
+
// if(this.sourceFieldId && this.fileClassifyId && this.crud.searchForm.sourceName){
|
|
302
|
+
// //根据 当前
|
|
303
|
+
// let queryParams = [{"controlType":"input","key":this.sourceFieldId,"operate":"like","value":this.crud.searchForm.sourceName}];
|
|
304
|
+
// this.axios.post(this.api.plCommonmethod.findDataAndDetailsNew,{'listViewId':this.fileClassifyId,
|
|
305
|
+
// 'queryParams':JSON.stringify(queryParams),'currentPage':0,'rows':0}).then(res =>{
|
|
306
|
+
// let dataIdArr = [];
|
|
307
|
+
// ((res.data && res.data.datas) || []).forEach(item =>{
|
|
308
|
+
// Object.keys(item).forEach(key =>{
|
|
309
|
+
// if(key.indexOf('ID_') > -1){
|
|
310
|
+
// dataIdArr.push(item[key]+this.fkIdSuffix);
|
|
311
|
+
// }
|
|
312
|
+
// });
|
|
313
|
+
// });
|
|
314
|
+
// if(dataIdArr.length == 0){
|
|
315
|
+
// dataIdArr.push("&&&&&&&&&&&&&&");
|
|
316
|
+
// }
|
|
317
|
+
// this.crud.searchForm['fileFkIdLk'] = dataIdArr.join(",");
|
|
318
|
+
// this.crud.currentPage(this.callBack);
|
|
319
|
+
// });
|
|
320
|
+
// }else {
|
|
321
|
+
// this.crud.currentPage(this.callBack);
|
|
322
|
+
// }
|
|
323
|
+
// },
|
|
324
|
+
|
|
325
|
+
// /**
|
|
326
|
+
// * 查询
|
|
327
|
+
// */
|
|
328
|
+
// doSearch(){
|
|
329
|
+
// if(this.crud.searchForm.downLoadTimeZT){
|
|
330
|
+
// this.crud.searchForm.downLoadTimeZ = this.crud.searchForm.downLoadTimeZT +' 23:59:59';
|
|
331
|
+
// }
|
|
332
|
+
// delete this.crud.searchForm['fileFkIdLk'];
|
|
333
|
+
// if(this.sourceFieldId && this.fileClassifyId && this.crud.searchForm.sourceName){
|
|
334
|
+
// //根据 当前
|
|
335
|
+
// let queryParams = [{"controlType":"input","key":this.sourceFieldId,"operate":"like","value":this.crud.searchForm.sourceName}];
|
|
336
|
+
// this.axios.post(this.api.plCommonmethod.findDataAndDetailsNew,{'listViewId':this.fileClassifyId,
|
|
337
|
+
// 'queryParams':JSON.stringify(queryParams),'currentPage':0,'rows':0}).then(res =>{
|
|
338
|
+
// let dataIdArr = [];
|
|
339
|
+
// ((res.data && res.data.datas) || []).forEach(item =>{
|
|
340
|
+
// Object.keys(item).forEach(key =>{
|
|
341
|
+
// if(key.indexOf('ID_') > -1){
|
|
342
|
+
// dataIdArr.push(item[key]+this.fkIdSuffix);
|
|
343
|
+
// }
|
|
344
|
+
// });
|
|
345
|
+
// });
|
|
346
|
+
// if(dataIdArr.length == 0){
|
|
347
|
+
// dataIdArr.push("&&&&&&&&&&&&&&");
|
|
348
|
+
// }
|
|
349
|
+
// this.crud.searchForm['fileFkIdLk'] = dataIdArr.join(",");
|
|
350
|
+
// this.crud.doSearch(this.callBack);
|
|
351
|
+
// });
|
|
352
|
+
// }else {
|
|
353
|
+
// this.crud.doSearch(this.callBack);
|
|
354
|
+
// }
|
|
355
|
+
// },
|
|
356
|
+
|
|
357
|
+
// /**
|
|
358
|
+
// * 查询
|
|
359
|
+
// * @param vmObj
|
|
360
|
+
// * @param data
|
|
361
|
+
// */
|
|
362
|
+
// callBack(vmObj,data){
|
|
363
|
+
// let dataArr = data.records || [];
|
|
364
|
+
// //分类 classifyId进行分类
|
|
365
|
+
// let classifyIdObj = {};
|
|
366
|
+
// let operatorIdSet = new Set(); // 已选择菜单数据
|
|
367
|
+
// dataArr.forEach(data =>{
|
|
368
|
+
// let fileFkId = (data.fileFkId || '').split("_")[0];
|
|
369
|
+
// if(fileFkId && data.fileClassifyId){
|
|
370
|
+
// if(!classifyIdObj[data.fileClassifyId]){
|
|
371
|
+
// classifyIdObj[data.fileClassifyId] = [];
|
|
372
|
+
// }
|
|
373
|
+
// classifyIdObj[data.fileClassifyId].push(fileFkId); //保存当前的 dataId
|
|
374
|
+
// }
|
|
375
|
+
// //解析操作人
|
|
376
|
+
// if(data.operatorId){
|
|
377
|
+
// operatorIdSet.add(data.operatorId);
|
|
378
|
+
// }
|
|
379
|
+
// });
|
|
380
|
+
// let resultArr = [];
|
|
381
|
+
// Object.keys(classifyIdObj).forEach(listViewId =>{
|
|
382
|
+
// let dataIds = (classifyIdObj[listViewId] || []).join(",");
|
|
383
|
+
// resultArr.push(
|
|
384
|
+
// new Promise(resolve => { //项目
|
|
385
|
+
// this.axios.post(this.api.plCommonmethod.getByIdsAndListViewId, {
|
|
386
|
+
// "listViewId": listViewId,
|
|
387
|
+
// "dataIds": dataIds,
|
|
388
|
+
// }).then(res => {
|
|
389
|
+
// resolve((res.data && res.data.operateObj) || []);
|
|
390
|
+
// }).catch(error=>{
|
|
391
|
+
// resolve([]); //如果异常抛出空的对象
|
|
392
|
+
// });
|
|
393
|
+
// })
|
|
394
|
+
// )
|
|
395
|
+
// });
|
|
396
|
+
// // resultArr.push()
|
|
397
|
+
// //查询所有用户所在组织
|
|
398
|
+
// let operatorIdArr = Array.from(operatorIdSet);
|
|
399
|
+
// resultArr.push( new Promise(resolve => { //项目
|
|
400
|
+
// this.axios.post(this.api.sysUser.findNoPage, {
|
|
401
|
+
// "ids": operatorIdArr.join(","),
|
|
402
|
+
// "unsup":"sup",
|
|
403
|
+
// "parentOrg":"true",
|
|
404
|
+
// "getOrgName":"true",
|
|
405
|
+
// "empowerUser":'Y',
|
|
406
|
+
// "orderSql":"TB.CREATE_TIME DESC,TB.USER_STATUS DESC"
|
|
407
|
+
// }).then(res => {
|
|
408
|
+
// resolve((res.data && res.data) || []);
|
|
409
|
+
// }).catch(error=>{
|
|
410
|
+
// resolve([]); //如果异常抛出空的对象
|
|
411
|
+
// });
|
|
412
|
+
// }));
|
|
413
|
+
// Promise.all(resultArr).then(resArr =>{
|
|
414
|
+
// let dataIdToName = {};
|
|
415
|
+
// let operateOrgObj = {};
|
|
416
|
+
// resArr.forEach((arr,index) =>{
|
|
417
|
+
// if(index <= resultArr.length -2){
|
|
418
|
+
// (arr || []).forEach(item =>{
|
|
419
|
+
// if(this.sourceFieldId && item[this.sourceFieldId]){
|
|
420
|
+
// dataIdToName[item.ID] = item[this.sourceFieldId] || '';
|
|
421
|
+
// }
|
|
422
|
+
// })
|
|
423
|
+
// }else { //所在部门信息
|
|
424
|
+
// (arr || []).forEach(row =>{
|
|
425
|
+
// let orgName = row["parentOrgName"]? row["parentOrgName"]+" -> "+row["orgName"]:row["orgName"];
|
|
426
|
+
// if(!operateOrgObj[row.id]){
|
|
427
|
+
// operateOrgObj[row.id] = orgName;
|
|
428
|
+
// }
|
|
429
|
+
// });
|
|
430
|
+
// }
|
|
431
|
+
// });
|
|
432
|
+
// dataArr.forEach(data =>{
|
|
433
|
+
// let fileFkId = (data.fileFkId || '').split("_")[0];
|
|
434
|
+
// if(fileFkId && dataIdToName[fileFkId]){
|
|
435
|
+
// this.$set(data,'sourceName',dataIdToName[fileFkId]);
|
|
436
|
+
// }
|
|
437
|
+
// if(data.operatorId && operateOrgObj[data.operatorId]){
|
|
438
|
+
// this.$set(data,'operatorOrgName',operateOrgObj[data.operatorId]);//所在部门
|
|
439
|
+
// }
|
|
440
|
+
// });
|
|
441
|
+
// this.crud.dataStore.records = dataArr;
|
|
442
|
+
// });
|
|
443
|
+
//
|
|
444
|
+
// },
|
|
445
|
+
//
|
|
446
|
+
// callBack(data){
|
|
447
|
+
// },
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* 提交前执行
|
|
451
|
+
* @param formData
|
|
452
|
+
* @param vm
|
|
453
|
+
*/
|
|
454
|
+
beforeSubmit(formData,vm){
|
|
455
|
+
if(this.loginUser.userType != 'sup' && this.loginUser.userType != 'dev'){ //普通用户
|
|
456
|
+
formData['stationAttach'] = this.loginUser.mainOrgId || '';
|
|
457
|
+
}
|
|
458
|
+
return true;
|
|
459
|
+
},
|
|
460
|
+
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
</script>
|
|
465
|
+
|
|
466
|
+
<style scoped>
|
|
467
|
+
legend{
|
|
468
|
+
font-size: 14px;
|
|
469
|
+
}
|
|
470
|
+
.button_header{
|
|
471
|
+
position: absolute;
|
|
472
|
+
height: 60px!important;
|
|
473
|
+
text-align: center;
|
|
474
|
+
line-height: 60px;
|
|
475
|
+
bottom: 0;
|
|
476
|
+
border-top: 1px solid #f2f2f2;
|
|
477
|
+
background-color: white;
|
|
478
|
+
margin: auto;
|
|
479
|
+
width: 100%;
|
|
480
|
+
right: 0;
|
|
481
|
+
z-index: 99;
|
|
482
|
+
}
|
|
483
|
+
.control_box{
|
|
484
|
+
padding-right: 100px;
|
|
485
|
+
position: relative;
|
|
486
|
+
}
|
|
487
|
+
.control_box_zero{
|
|
488
|
+
padding-right: 0;
|
|
489
|
+
position: relative;
|
|
490
|
+
}
|
|
491
|
+
.operate_div{
|
|
492
|
+
position: absolute;
|
|
493
|
+
right: 0;
|
|
494
|
+
top: 0;
|
|
495
|
+
bottom: 0;
|
|
496
|
+
margin: auto;
|
|
497
|
+
width: 100px;
|
|
498
|
+
}
|
|
499
|
+
.operate_div i{
|
|
500
|
+
/*margin-right: 20px;*/
|
|
501
|
+
cursor: pointer;
|
|
502
|
+
width: 30px;
|
|
503
|
+
height: 30px;
|
|
504
|
+
padding-top: 15px;
|
|
505
|
+
padding-left: 15px;
|
|
506
|
+
float: left;
|
|
507
|
+
}
|
|
508
|
+
.top_contain{
|
|
509
|
+
height: 100%;
|
|
510
|
+
/*border-radius:8px;*/
|
|
511
|
+
overflow-y: hidden;
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
}
|
|
515
|
+
.top_contain::-webkit-scrollbar{
|
|
516
|
+
width: 0;
|
|
517
|
+
}
|
|
518
|
+
</style>
|
|
519
|
+
<style>
|
|
520
|
+
.black .el-form-item__label{
|
|
521
|
+
color: black;
|
|
522
|
+
}
|
|
523
|
+
.green .el-form-item__label{
|
|
524
|
+
color: #27B5C3;
|
|
525
|
+
}
|
|
526
|
+
.settingClass{
|
|
527
|
+
width: 100%;
|
|
528
|
+
height: 40px;
|
|
529
|
+
position: relative;
|
|
530
|
+
}
|
|
531
|
+
.settingClass span{
|
|
532
|
+
position: absolute;
|
|
533
|
+
top:0;left:0;
|
|
534
|
+
right: 0;bottom: 0;
|
|
535
|
+
margin: auto;line-height: 40px;
|
|
536
|
+
}
|
|
537
|
+
.receiveObjNameLeft{
|
|
538
|
+
float: left;
|
|
539
|
+
width: 90%;
|
|
540
|
+
}
|
|
541
|
+
.receiveObjNameRight{
|
|
542
|
+
position: absolute;
|
|
543
|
+
float: right;
|
|
544
|
+
width: 10%;
|
|
545
|
+
top: 5px;
|
|
546
|
+
margin-left: 4px;
|
|
547
|
+
button:5px;
|
|
548
|
+
|
|
549
|
+
}
|
|
550
|
+
.sqlStyle{
|
|
551
|
+
display: block;
|
|
552
|
+
color: #000000;
|
|
553
|
+
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.dialogStyle{
|
|
557
|
+
font-size: 11px;
|
|
558
|
+
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
</style>
|