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.
Files changed (141) hide show
  1. package/index.js +227 -0
  2. package/package.json +19 -0
  3. package/router.js +83 -0
  4. package/src/assets/font/iconfont.css +1346 -0
  5. package/src/assets/font/iconfont.eot +0 -0
  6. package/src/assets/font/iconfont.js +1 -0
  7. package/src/assets/font/iconfont.svg +827 -0
  8. package/src/assets/font/iconfont.ttf +0 -0
  9. package/src/assets/font/iconfont.woff +0 -0
  10. package/src/assets/images/loading-bar.gif +0 -0
  11. package/src/assets/js/adminInstall.js +36 -0
  12. package/src/assets/js/api/apiAdmin.js +613 -0
  13. package/src/assets/js/global/dataGlobal.js +260 -0
  14. package/src/assets/js/global/logGlobal.js +22 -0
  15. package/src/assets/js/global/paramGlobal.js +67 -0
  16. package/src/assets/js/global/resGlobal.js +91 -0
  17. package/src/assets/js/global/userGlobal.js +283 -0
  18. package/src/components/complexViewRendering.vue +601 -0
  19. package/src/components/ifmLink.vue +71 -0
  20. package/src/components/public/data/plDataCascader.vue +85 -0
  21. package/src/components/public/data/plDataRadio.vue +73 -0
  22. package/src/components/public/data/plDataRadioGroup.vue +70 -0
  23. package/src/components/public/data/plDataSelect.vue +856 -0
  24. package/src/components/public/data/plDatePicker.vue +159 -0
  25. package/src/components/public/org/bg.png +0 -0
  26. package/src/components/public/org/sysOrgPosUserSelect.vue +1237 -0
  27. package/src/components/public/org/sysOrgPosUserSelectDark.vue +1402 -0
  28. package/src/components/public/org/sysOrgPosUserSelectNew.vue +1527 -0
  29. package/src/components/public/upload/images/compress.png +0 -0
  30. package/src/components/public/upload/images/emipty.png +0 -0
  31. package/src/components/public/upload/images/excel.png +0 -0
  32. package/src/components/public/upload/images/file.png +0 -0
  33. package/src/components/public/upload/images/pdf.png +0 -0
  34. package/src/components/public/upload/images/powerpoint.png +0 -0
  35. package/src/components/public/upload/images/project.png +0 -0
  36. package/src/components/public/upload/images/sound.png +0 -0
  37. package/src/components/public/upload/images/txt.png +0 -0
  38. package/src/components/public/upload/images/video.png +0 -0
  39. package/src/components/public/upload/images/visio.png +0 -0
  40. package/src/components/public/upload/images/word.png +0 -0
  41. package/src/components/public/upload/plImage.vue +287 -0
  42. package/src/components/public/upload/plImgUpload.vue +137 -0
  43. package/src/components/public/upload/plUpload.vue +1124 -0
  44. package/src/components/public/upload/uploadImg.js +8 -0
  45. package/src/main.js +0 -0
  46. package/src/views/VueMenuView.vue +143 -0
  47. package/src/views/cloudMenuView.vue +125 -0
  48. package/src/views/complex/config/complex.vue +501 -0
  49. package/src/views/complex/config/complexSetting.vue +1250 -0
  50. package/src/views/complex/rendering/complexShow.vue +16 -0
  51. package/src/views/data/dataManage.vue +560 -0
  52. package/src/views/data/sysData.vue +292 -0
  53. package/src/views/event/eventManager/vueEventDiy.vue +1184 -0
  54. package/src/views/event/eventManager/vueEventMain.vue +108 -0
  55. package/src/views/event/eventManager/vueEventSys.vue +296 -0
  56. package/src/views/event/js/apiEvent.js +22 -0
  57. package/src/views/fileLog/fileDownloadLog.vue +437 -0
  58. package/src/views/initData/initData.vue +4316 -0
  59. package/src/views/log/dblog/logdbDevelop.vue +306 -0
  60. package/src/views/log/dblog/logdbEnt.vue +331 -0
  61. package/src/views/log/dblog/logdbGov.vue +395 -0
  62. package/src/views/log/error/logError.vue +553 -0
  63. package/src/views/log/loginlog/logManageDevOrSup.vue +357 -0
  64. package/src/views/log/loginlog/logManageEnt.vue +343 -0
  65. package/src/views/log/loginlog/logManageGov.vue +328 -0
  66. package/src/views/log/sms/logSms.vue +308 -0
  67. package/src/views/menu/component/menuManageComponent.vue +2402 -0
  68. package/src/views/menu/component/menuModule.vue +449 -0
  69. package/src/views/menu/menuLocal.vue +223 -0
  70. package/src/views/menu/menuManage.vue +1135 -0
  71. package/src/views/menu/tenantMenuManage.vue +1132 -0
  72. package/src/views/menuRouter/cview/cviewShow.vue +18 -0
  73. package/src/views/menuRouter/cviewMenuRouter.vue +183 -0
  74. package/src/views/menuRouter/menuView.vue +132 -0
  75. package/src/views/menuRouter/urlMenuRouter.vue +160 -0
  76. package/src/views/org/entOrgTree.vue +1050 -0
  77. package/src/views/org/ownerMenu/ownerMenuTree.vue +269 -0
  78. package/src/views/org/safeValidate/safeValidate.vue +469 -0
  79. package/src/views/org/sysEntOrgUserDetail.vue +3390 -0
  80. package/src/views/org/sysOrgDimension.vue +832 -0
  81. package/src/views/org/sysOrgPosUserDetail.vue +1648 -0
  82. package/src/views/org/sysOrgPosUserTree.vue +1101 -0
  83. package/src/views/org/sysOrgTree.vue +864 -0
  84. package/src/views/param/sysParam.vue +987 -0
  85. package/src/views/preview/pdfViewer.vue +82 -0
  86. package/src/views/resources/js/resourcesCommon.js +137 -0
  87. package/src/views/resources/resRouter/resView.vue +161 -0
  88. package/src/views/resources/resourcesTabs.vue +82 -0
  89. package/src/views/resources/tabs/comp/pageResPreview.vue +309 -0
  90. package/src/views/resources/tabs/comp/pageResRegister.vue +1120 -0
  91. package/src/views/resources/tabs/dataResources.vue +843 -0
  92. package/src/views/resources/tabs/pageResources.vue +970 -0
  93. package/src/views/role/allowMenu.vue +148 -0
  94. package/src/views/role/authRole/authRole.vue +427 -0
  95. package/src/views/role/authRole/component/allocateSetting.vue +1056 -0
  96. package/src/views/role/authRole/component/authSetting.vue +1196 -0
  97. package/src/views/role/commonRole/commonRole.vue +677 -0
  98. package/src/views/role/commonRole/compoment/allocateRoleMenuSetting.vue +335 -0
  99. package/src/views/role/commonRole/compoment/authLinkMenuTree.vue +55 -0
  100. package/src/views/role/commonRole/compoment/authSettingNew.vue +190 -0
  101. package/src/views/role/commonRole/compoment/commonSetting.vue +1576 -0
  102. package/src/views/role/commonRole/compoment/commonSettingAdjust.vue +584 -0
  103. package/src/views/role/commonRole/compoment/commonSettingNew.vue +572 -0
  104. package/src/views/role/commonRole/compoment/roleMenuPower.vue +226 -0
  105. package/src/views/role/commonRole/compoment/roleMenuPowerSetting.vue +69 -0
  106. package/src/views/role/commonRole/compoment/roleMenuSetting.vue +365 -0
  107. package/src/views/role/commonRole/compoment/roleSourceSetting.vue +229 -0
  108. package/src/views/role/commonRole/tenantCommonRole.vue +768 -0
  109. package/src/views/role/role.vue +135 -0
  110. package/src/views/role/roleMenuOption.vue +898 -0
  111. package/src/views/role/roleSynchroRemind.vue +399 -0
  112. package/src/views/role/sysRole.vue +1525 -0
  113. package/src/views/role/viewMenuOptDetail.vue +182 -0
  114. package/src/views/sms/sendSms.vue +164 -0
  115. package/src/views/station/orgStation.vue +561 -0
  116. package/src/views/tenant/appContentManager.vue +938 -0
  117. package/src/views/tenant/appManager.vue +642 -0
  118. package/src/views/tenant/tenantRoleManager.vue +670 -0
  119. package/src/views/tenant/tenantUserManager.vue +615 -0
  120. package/src/views/threeinone/compoment/safeCascadeSelect.vue +327 -0
  121. package/src/views/threeinone/init/safeInitRegion.vue +203 -0
  122. package/src/views/threeinone/safeManager.vue +927 -0
  123. package/src/views/threeinone/safeMenuManage.vue +565 -0
  124. package/src/views/threeinone/safeOrgSpv.vue +364 -0
  125. package/src/views/threeinone/safeSpv/safeSpvLeftTree.vue +109 -0
  126. package/src/views/threeinone/safeSpv/safeSpvMain.vue +335 -0
  127. package/src/views/threeinone/safeSpvEconView.vue +569 -0
  128. package/src/views/threeinone/safeValidateRegion.vue +328 -0
  129. package/src/views/urlResource/urlResource.vue +856 -0
  130. package/src/views/user/empowerUser/empowerEntUserManage.vue +415 -0
  131. package/src/views/user/empowerUser/empowerOrgTree.vue +167 -0
  132. package/src/views/user/empowerUser/empowerUserList.vue +633 -0
  133. package/src/views/user/empowerUser/empowerUserListMenuDeatil.vue +656 -0
  134. package/src/views/user/empowerUser/empowerUserListViewMenuTree.vue +257 -0
  135. package/src/views/user/empowerUser/empowerUserManage.vue +99 -0
  136. package/src/views/user/stationUserManage.vue +934 -0
  137. package/src/views/user/userManage.vue +737 -0
  138. package/src/views/user/userMangement.vue +938 -0
  139. package/src/views/user/viewMenu/viewMenu.vue +113 -0
  140. package/src/views/versionupdatetool/versionUpdateTool.vue +225 -0
  141. package/src/views/versionupdatetool/versioninfomation/verisonInfomationManagement.vue +68 -0
@@ -0,0 +1,569 @@
1
+ <template>
2
+ <el-container style="width: 100%;height: 100%;" v-if="roleFlag">
3
+ <!--左侧树 start-->
4
+ <el-aside width="240px">
5
+ <safe-spv-left-tree
6
+ ref="safeSpvTreeRef"
7
+ :source="source"
8
+ :spvTitle="spvTitle"
9
+ :showTree="showTree"
10
+ :spvTreeDataArr="spvTreeDataArr"
11
+ :currentNodeKey="currentNodeKey"
12
+ :defaultProps="defaultProps"
13
+ :isEdit="isEdit"
14
+ @nodeClick="nodeClick"
15
+ :open-safe-spv-dialog="openSafeSpvDialog"
16
+ :remove-safe-spv="removeSafeSpv">
17
+ </safe-spv-left-tree>
18
+ </el-aside>
19
+ <!--左侧树 start-->
20
+ <!--中间 所属行业 start-->
21
+ <el-container class="econ-container">
22
+ <safe-spv-main
23
+ ref="safeSpvEconMain"
24
+ :safe-spv-info="safeSpvInfo"
25
+ :currentClickSpv="currentClickSpv"
26
+ :econDataArr="econDataArr"
27
+ :checkedEconObj="checkedEconObj"
28
+ :showBtn="showBtn"
29
+ :spvTreeDataArr="spvTreeDataArr"
30
+ :source="source"
31
+ :isEdit="isEdit"
32
+ :isDisabled="isDisabled"
33
+ :checkboxIsView="checkboxIsView"
34
+ @changeEdit="changeEdit"
35
+ @nodeClick="nodeClick"
36
+ @getSafeSpvData="getSafeSpvData"
37
+ :refreshEconSet="refreshEconSet"
38
+ :check-econ="checkEcon"
39
+ :changeFromOpenPerson="changeFromOpenPerson">
40
+ </safe-spv-main>
41
+ </el-container>
42
+ <!--中间 所属行业 start-->
43
+
44
+ <!--右侧 快速导航 start-->
45
+ <el-aside width="240px">
46
+ <!--<el-button @click="test()">erer</el-button>-->
47
+ <!--标题 start-->
48
+ <el-header class="title-header" height="30px">
49
+ <span> 所属行业导航</span>
50
+ </el-header>
51
+ <!--标题 end-->
52
+ <div v-for="econData in econDataArr" :key="econData.id" class="navigation-div" @click="location(econData.id)">
53
+ {{econData.text}}
54
+ </div>
55
+ </el-aside>
56
+ <!--右侧 快速导航 start-->
57
+
58
+
59
+ <!--监管行业维护信息 start-->
60
+ <el-dialog :close-on-click-modal=false :title="safeSpvTitle" width="40%" height="50%" top="10vh"
61
+ :visible.sync="safeSpvDialog" append-to-body>
62
+ <el-form :model="safeSpvForm" size="small" ref="safeSpvFormRef" label-width="100px">
63
+ <el-form-item label="监管行业名称" prop="name">
64
+ <el-input type="textarea" :rows="3" v-model="safeSpvForm.name"></el-input>
65
+ </el-form-item>
66
+ <el-form-item label="监管行业排行" prop="spvOrder">
67
+ <el-input-number v-model="safeSpvForm.spvOrder"></el-input-number>
68
+ </el-form-item>
69
+ </el-form>
70
+ <div slot="footer" class="dialog-footer">
71
+ <el-button type="primary" @click="submitSpvForm()" size="small">保存</el-button>
72
+ <el-button @click="safeSpvDialog = false" size="small">取消</el-button>
73
+ </div>
74
+ </el-dialog>
75
+ <!--监管行业维护信息 end-->
76
+ </el-container>
77
+ </template>
78
+
79
+ <script>
80
+ import SafeSpvLeftTree from "./safeSpv/safeSpvLeftTree";
81
+ import SafeSpvMain from "./safeSpv/safeSpvMain";
82
+ export default {
83
+ name: "safeSpvEconView",
84
+ components: {SafeSpvMain, SafeSpvLeftTree},
85
+ props:{
86
+ safeSpvInfo:{type:Object,default:() => {return {};}},//地区监管信息(外层列表行数据)
87
+ source:{type:String,default:"1"},//来源,1-修改系统默认监管配置
88
+ defaultRegionId:{type:String,default:""},//默认
89
+ econDataArr:{type:Array,default:() => {return [];}},//所属行业元数据
90
+ econDataObj:{type:Object,default:() => {return {};}},//所属行业元数据第一层对应的第四层数据
91
+ refreshEconSet:{type:Function,default:null},
92
+ econOneToMany:{type:String,default:"N"},//一对多开关
93
+ fromOpenPerson:{type:Boolean,default:false},//来自于开启个性化
94
+ changeFromOpenPerson:{type:Function,default:null},
95
+ },
96
+ data(){
97
+ return {
98
+ roleFlag:true,//访问权限
99
+ message:"",//无访问权限时的描述文字
100
+ spvTitle:"",//左侧树标题
101
+ showBtn:{
102
+ save:false,
103
+ personalize:false,//开启个性化监管
104
+ reduction:false,//还原为默认配置
105
+ edit:false,//修改
106
+ },
107
+ showTree:false,
108
+ currentClickSpv:{},//当前点击的监管行业
109
+ currentNodeKey:"",//默认点击的监管行业
110
+ econFourLevelObj:{},//最后一层数据
111
+ checkedEconObj:{},//选中的所属行业
112
+ spvTreeDataArr:[],//监管行业配置左侧树数据
113
+ defaultProps:{"children":"children","label":"name"},//树数据显示配置
114
+ econSwitch:false,//所属行业监管行业一对多的开关
115
+ currentNodeOwnEconId:[],//当前点击的节点已经保存于数据库内所属行业
116
+ econSelected:[],
117
+ isEdit:false,
118
+ savedSpvEconObj:{},//监管行业已保存的所属行业
119
+ checkboxIsView:false,
120
+ safeSpvTitle:"",//监管行业维护弹出框标题
121
+ safeSpvDialog:false,
122
+ safeSpvForm:{},//监管行业表单信息
123
+ }
124
+ },
125
+ created(){
126
+ /* this.safeSpvInfo.id = "520df5cb84164198b6f6e9ed6d5e5553";
127
+ this.safeSpvInfo.regionTier = "1";
128
+ this.safeSpvInfo.regionOrder = "0";
129
+ this.safeSpvInfo.isOpen = "0";
130
+ this.safeSpvInfo.openStatus = "0";
131
+ this.safeSpvInfo.econOneToMany = "N";*/
132
+
133
+ this.getSafeSpvData();
134
+ this.initSpv();
135
+ this.isView();
136
+ },
137
+
138
+ watch:{
139
+ source(){
140
+ this.isView();
141
+ },
142
+
143
+ isEdit(){
144
+ this.isView();
145
+ },
146
+
147
+ fromOpenPerson(){
148
+ if(this.fromOpenPerson){
149
+ this.changeEdit(true);
150
+ }
151
+ }
152
+ },
153
+
154
+ methods:{
155
+ test(){
156
+ console.log(this.checkedEconObj);
157
+ },
158
+
159
+ initSpv(){
160
+ //无权限
161
+ if(this.safeSpvInfo.regionTier == "4"){
162
+ this.roleFlag = false;
163
+ this.message = "街道用户无地区监管配置的权限,已沿用区县监管配置!";
164
+ return;
165
+ }
166
+ if(this.source != "1" && (!this.safeSpvInfo || !this.safeSpvInfo.id)){
167
+ this.roleFlag = false;
168
+ this.message = "未找到当前账号所属的监管地区!!";
169
+ return;
170
+ }
171
+
172
+ if(this.fromOpenPerson){
173
+ this.isEdit = true;
174
+ }
175
+
176
+ //左侧树标题
177
+ if(this.source == "1"){
178
+ this.spvTitle = "“默认”";
179
+ this.$set(this.showBtn,"save",true);
180
+ }else if(this.safeSpvInfo.isOpen == "1" && this.safeSpvInfo.openStatus == '1'){//开启个性化按钮
181
+ this.spvTitle = "“使用默认配置”";
182
+ this.$set(this.showBtn,"personalize",true);
183
+ }else if(this.safeSpvInfo.isOpen == "1" && this.safeSpvInfo.openStatus == '9'){//开启默认配置、修改按钮
184
+ this.spvTitle = "“使用个性化配置”";
185
+ if(this.isEdit){
186
+ this.$set(this.showBtn,"return",true);
187
+ this.$set(this.showBtn,"save",true);
188
+ }else{
189
+ this.$set(this.showBtn,"reduction",true);
190
+ this.$set(this.showBtn,"edit",true);
191
+ }
192
+ }else if(this.safeSpvInfo.isOpen == "0"){//默认配置
193
+ this.spvTitle = "“使用默认配置”";
194
+ }
195
+
196
+ //获取一对多开关
197
+ this.econSwitch = (this.econOneToMany != 'N');
198
+ },
199
+
200
+ /**
201
+ * 获取默认配置及左侧树数据
202
+ * */
203
+ async getSafeSpvData(){
204
+ this.showTree = false;
205
+ let regionId = this.defaultRegionId;
206
+ if(this.safeSpvInfo.openStatus == "9"){
207
+ regionId = this.safeSpvInfo.id;
208
+ }
209
+ let treeRes = await this.axios.post(this.api.safeSpv.findAndCount,{order:"TB.SPV_ORDER ASC",regionId:regionId,countSql:"1"});
210
+ if(treeRes && treeRes.data && (treeRes.data || []).length > 0){
211
+ let treeData = treeRes.data;
212
+ //整理树数据
213
+ let paramSetting = {};
214
+ paramSetting["id"] = "id";
215
+ paramSetting["pId"] = "parentId";
216
+ paramSetting["children"] = this.defaultProps["children"]; // 设置children可配置
217
+ this.spvTreeDataArr = this.COMMON_FUNC.buildElTree(treeData, paramSetting);
218
+ if(this.spvTreeDataArr && this.spvTreeDataArr.length > 0){
219
+ //默认选中第一大类下的第一条数据
220
+ let oneChildren = this.spvTreeDataArr[0].children || [];
221
+ if(oneChildren.length > 0){
222
+ let defaultNode = oneChildren[0] || {};
223
+ this.currentNodeKey = defaultNode.id;
224
+ //当前点击的节点
225
+ this.currentClickSpv = defaultNode;
226
+ this.nodeClick(defaultNode);
227
+ }
228
+ this.showTree = true;
229
+ }
230
+ }
231
+ },
232
+
233
+ /**
234
+ * 点击节点的回调
235
+ */
236
+ nodeClick(data, node){
237
+ this.checkedEconObj = {};
238
+ this.currentNodeOwnEconId = [];
239
+
240
+ this.currentClickSpv = data;
241
+
242
+ //勾选保存的
243
+ this.axios.post(this.api.safeSpvEcon.find,{spvId:data.id,joinData:"1"}).then(ownRes => {
244
+ if(ownRes && ownRes.data){
245
+ (ownRes.data || []).forEach(safeSpvEcon => {
246
+ this.$set(this.checkedEconObj,safeSpvEcon.econId,true);
247
+ this.currentNodeOwnEconId.push(safeSpvEcon.econId);
248
+ });
249
+ }
250
+ });
251
+
252
+ //置灰被其他监管行业选择的所属行业
253
+ if((this.source == "1" || this.isEdit) && !this.econSwitch){
254
+ this.axios.post(this.api.safeSpvEcon.getEconSelected,{regionId:this.defaultRegionId}).then(otherSelectedRes => {
255
+ if(otherSelectedRes && otherSelectedRes.data){
256
+ this.econSelected = otherSelectedRes.data || [];
257
+ }
258
+ });
259
+ }
260
+ },
261
+
262
+ /**
263
+ *全选
264
+ * @param econId
265
+ */
266
+ checkEcon(econId){
267
+ let result = false;
268
+ if (this.checkedEconObj[econId]){
269
+ result = true;
270
+ }
271
+ (this.econDataObj[econId] || []).forEach(econData => {
272
+ if(this.currentNodeOwnEconId.indexOf(econData.id) == -1){
273
+ this.$set(this.checkedEconObj,econData.id,result);
274
+ }
275
+ });
276
+ },
277
+
278
+ /**
279
+ * checkbox是否可选
280
+ * @param econId
281
+ * @returns {boolean}
282
+ */
283
+ isDisabled(econId){
284
+ return (this.currentNodeOwnEconId.indexOf(econId) == -1) && (this.econSelected.indexOf(econId) != -1);
285
+ },
286
+
287
+ isView(){
288
+ this.checkboxIsView = ((this.source != "1") && (!this.isEdit));
289
+ },
290
+
291
+ changeEdit(value){
292
+ this.isEdit = value;
293
+ },
294
+
295
+ /**
296
+ * 快速定位
297
+ */
298
+ location(id){
299
+ let $dom = this.$refs.safeSpvEconMain.$refs["econTitle_" + id][0];
300
+ $dom.scrollIntoView();
301
+ $($dom).css("background-color","red");
302
+ setTimeout(()=>{
303
+ $($dom).css("background-color","rgb(52, 152, 219)");
304
+ },1500);
305
+ },
306
+
307
+ /**
308
+ * 配置监管行业
309
+ * @param command
310
+ */
311
+ openSafeSpvDialog(command){
312
+ this.$set(this.safeSpvForm,"spvOrder",1);
313
+ this.$set(this.safeSpvForm,"regionId",this.safeSpvInfo.id || this.defaultRegionId);
314
+ if(command == "1"){
315
+ this.$set(this.safeSpvForm,"name","");
316
+ this.$set(this.safeSpvForm,"parentId",this.currentClickSpv.parentId);
317
+ if(!this.safeSpvForm.parentId){
318
+ this.$set(this.safeSpvForm,"parentId","-1");
319
+ }
320
+ this.safeSpvTitle = "添加同级监管行业";
321
+ }else if(command == "2"){
322
+ this.$set(this.safeSpvForm,"name","");
323
+ if(this.currentClickSpv.parentId != -1){
324
+ this.$message({message:"监管行业最多允许配置两级!",type:"error"});
325
+ return;
326
+ }
327
+ this.$set(this.safeSpvForm,"parentId",this.currentClickSpv.id);
328
+ this.safeSpvTitle = "添加下级监管行业";
329
+ }else if(command == "edit"){
330
+ this.safeSpvForm = this.currentClickSpv;
331
+ this.safeSpvTitle = "修改监管行业";
332
+ }
333
+ this.safeSpvDialog = true;
334
+ },
335
+
336
+ /**
337
+ * 保存监管行业信息
338
+ */
339
+ submitSpvForm(){
340
+ this.$refs.safeSpvFormRef.validate((valid) => {
341
+ if(!valid){
342
+ return;
343
+ }
344
+ let loading = this.$loading({
345
+ lock: true,
346
+ text: '正在保存,请稍后....',
347
+ spinner: 'el-icon-loading',
348
+ background: 'rgba(0, 0, 0, 0.7)'
349
+ });
350
+ let url = this.api.safeSpv.add;
351
+ if(this.safeSpvForm.id){
352
+ url = this.api.safeSpv.update;
353
+ }
354
+ this.axios.post(url,this.safeSpvForm).then(res => {
355
+ if(res && res.data && res.data.operateSuccess){
356
+ this.$message({message:"保存成功!",type:"success"});
357
+ this.safeSpvDialog = false;
358
+ this.getSafeSpvData();
359
+ }else{
360
+ this.$message({message:"保存失败!",type:"error"});
361
+ }
362
+ loading && loading.close();
363
+ });
364
+ });
365
+ },
366
+
367
+ /**
368
+ * 删除监管行业信息
369
+ */
370
+ removeSafeSpv(){
371
+ let spvTreeRef = this.$refs.safeSpvTreeRef.$refs.spvTreeRef;
372
+ let checkNode = (spvTreeRef && spvTreeRef.getCheckedKeys()) || [];
373
+ if(checkNode.length == 0){
374
+ this.$message({message:"请勾选需要删除的监管行业!",type:"warning"});
375
+ return;
376
+ }
377
+ let msg = "是否确定删除选中的" + checkNode.length + "个监管行业(此监管行业设置与安委会成员单位和所属行业之间配置信息会级联删除)!";
378
+ this.$confirm(msg, '提示', {
379
+ confirmButtonText: '确定',
380
+ cancelButtonText: '取消',
381
+ type: 'warning'
382
+ }).then(() => {
383
+ this.axios.post(this.api.safeSpv.delete,{ids:checkNode.join(",")}).then(res => {
384
+ if(res && res.data && res.data.operateSuccess){
385
+ this.$message({message:"删除成功!",type:"success"});
386
+ this.getSafeSpvData();
387
+ } else{
388
+ this.$message({message:"删除失败!",type:"error"});
389
+ }
390
+ });
391
+ });
392
+ }
393
+ }
394
+ }
395
+ </script>
396
+
397
+ <style scoped lang="scss">
398
+ .el-aside {
399
+ border:1px solid #cccccc;
400
+ }
401
+ .econ-container {
402
+ border: 1px solid #cccccc;
403
+ margin-left: 10px;
404
+ margin-right: 10px;
405
+ }
406
+ .title-header{
407
+ font-size: 14px;
408
+ line-height: 30px;
409
+ font-weight: bold;
410
+ border-bottom: 1px solid #cccccc;
411
+ }
412
+
413
+ /deep/ .el-card__header {
414
+ padding: 0;
415
+ }
416
+
417
+ /deep/ .el-card__body {
418
+ padding: 5px 20px 20px 20px;
419
+ }
420
+
421
+ .econ-card-title {
422
+ background-color: rgb(52, 152, 219);
423
+ color: white;
424
+ font-weight: bold;
425
+ text-align: center;
426
+ font-size: 18px;
427
+ height: 36px;
428
+ line-height: 36px;
429
+ }
430
+
431
+ .tow-level-data {
432
+ width: 200px;
433
+ float: left;
434
+ font-size: 15px;
435
+ font-weight: bold;
436
+ padding-right: 20px;
437
+ box-sizing: border-box;
438
+ line-height: 40px;
439
+ }
440
+
441
+ .three-level-div {
442
+ float: left;
443
+ width: calc(100% - 200px);
444
+ }
445
+
446
+ .three-level-data {
447
+ float: left;
448
+ padding-right: 8px;
449
+ font-size: 14px;
450
+ font-weight: bold;
451
+ line-height: 40px;
452
+ box-sizing: border-box;
453
+ }
454
+
455
+ .four-level-data {
456
+ padding-right: 20px;
457
+ box-sizing: border-box;
458
+ float: left;
459
+ line-height: 40px;
460
+ }
461
+
462
+ .icon-div {
463
+ float: left;
464
+ padding-right: 10px;
465
+ box-sizing: border-box;
466
+ }
467
+
468
+ .icon-class {
469
+ font-size: 20px;
470
+ color: #3498DB;
471
+ line-height: 40px;
472
+ }
473
+
474
+
475
+ /*修改原生checkbox样式 start*/
476
+
477
+ .checkbox-label:hover{
478
+ color: #3D9DDD;
479
+ }
480
+
481
+ .checkbox-label {
482
+ display:inline-block;
483
+ cursor: pointer;
484
+ }
485
+
486
+ .checkbox-label-default {
487
+ display:inline-block;
488
+ cursor: default;
489
+ }
490
+
491
+ .inputStyleDemo {
492
+ background-color:#fff;
493
+ border:1px solid #DFDFDF;
494
+ border-radius:2px;
495
+ overflow: hidden;
496
+ display:block;
497
+ height:15px;
498
+ width:15px;
499
+ position: relative;
500
+ box-sizing: border-box;
501
+ float: left;
502
+ margin-top: 13px;
503
+ margin-right: 10px;
504
+ }
505
+
506
+ .inputStyleDemo-disabled {
507
+ background-color:#cccccc;
508
+ border:none;
509
+ border-radius:2px;
510
+ overflow: hidden;
511
+ display:block;
512
+ height:15px;
513
+ width:15px;
514
+ position: relative;
515
+ box-sizing: border-box;
516
+ float: left;
517
+ margin-top: 13px;
518
+ margin-right: 10px;
519
+ }
520
+
521
+ .checkbox-input:checked + .inputStyleDemo{
522
+ background-color: #409eff;
523
+ border-color: #409eff;
524
+ }
525
+
526
+ .checkbox-input:checked + .inputStyleDemo:after{
527
+ content: '';
528
+ position: absolute;
529
+ border-color: #fff;
530
+ border-style: solid;
531
+ border-width: 0 2px 2px 0;
532
+ width: 3px;
533
+ height: 7px;
534
+ top: 1px;
535
+ left: 4px;
536
+ transform: rotate(45deg) scaleY(1);
537
+ }
538
+ /*修改原生checkbox样式 end*/
539
+
540
+ hr {
541
+ background-color: #ffffff;
542
+ position:relative;
543
+ top:10px;
544
+ margin-left:20px;
545
+ margin-right:20px;
546
+ margin-bottom: 20px;
547
+ border-color: #D0DCE4;
548
+ border-style: dashed;
549
+ border-width: 0 1px 1px 0;
550
+ }
551
+
552
+ .navigation-div {
553
+ background-color: rgb(61, 118, 177);
554
+ line-height: 30px;
555
+ width: 96%;
556
+ color: white;
557
+ text-align: center;
558
+ cursor: pointer;
559
+ margin: 3px auto;
560
+ transition: all 0.3s ease 0s;
561
+ padding-left: 5px;
562
+ padding-right: 5px;
563
+ }
564
+
565
+ .navigation-div:hover {
566
+ background-color: rgb(30, 86, 144);
567
+ }
568
+
569
+ </style>