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
@@ -0,0 +1,223 @@
1
+ <template>
2
+ <a-modal :title="title" :visible="visible" @cancel="handleCancel" width="100%" :footer="null">
3
+ <a-spin :spinning="loading" tip="加载中">
4
+ <!-- <div class="page-box">-->
5
+ <!-- <div class="option-list" v-if="ofdObj">-->
6
+ <!-- <div class="scale-icon" style="margin-left: 10px" @click="plus">-->
7
+ <!-- &lt;!&ndash; 放大 &ndash;&gt;-->
8
+ <!-- <a-icon type="plus-circle"/>-->
9
+ <!-- </div>-->
10
+ <!-- <div class="scale-icon" @click="minus">-->
11
+ <!-- &lt;!&ndash; 缩小 &ndash;&gt;-->
12
+ <!-- <a-icon type="minus-circle"/>-->
13
+ <!-- </div>-->
14
+ <!-- <div class="scale-icon">-->
15
+ <!-- &lt;!&ndash; 第一页 &ndash;&gt;-->
16
+ <!-- <a-icon type="step-backward" @click="firstPage"/>-->
17
+ <!-- </div>-->
18
+ <!-- <div class="scale-icon" @click="prePage">-->
19
+ <!-- &lt;!&ndash; 上一页 &ndash;&gt;-->
20
+ <!-- <a-icon type="caret-left"/>-->
21
+ <!-- </div>-->
22
+ <!--&lt;!&ndash; <div class="scale-icon">&ndash;&gt;-->
23
+ <!--&lt;!&ndash; &lt;!&ndash; 当前页码和总页数 &ndash;&gt;&ndash;&gt;-->
24
+ <!--&lt;!&ndash; {{ pageIndex }}/{{ pageCount }}&ndash;&gt;-->
25
+ <!--&lt;!&ndash; </div>&ndash;&gt;-->
26
+ <!-- <div class="scale-icon" @click="nextPage">-->
27
+ <!-- &lt;!&ndash; 下一页 &ndash;&gt;-->
28
+ <!-- <a-icon type="caret-right"/>-->
29
+ <!-- </div>-->
30
+ <!-- <div class="scale-icon" @click="lastPage">-->
31
+ <!-- &lt;!&ndash; 最后一页 &ndash;&gt;-->
32
+ <!-- <a-icon type="step-forward"/>-->
33
+ <!-- </div>-->
34
+ <!-- </div>-->
35
+ <!-- </div>-->
36
+ <div class="modal-box" id="ofd-preview-box">
37
+ <!-- 文件区域 -->
38
+ <div class="main-section" :class="{ 'background-shadow': loadOverFlag }" id="content" ref="contentDiv"></div>
39
+ </div>
40
+ </a-spin>
41
+ </a-modal>
42
+ </template>
43
+ <script>
44
+ import {parseOfdDocument, renderOfd, renderOfdByScale, getPageScale, setPageScale} from 'ofd.js'
45
+
46
+ export default {
47
+ name: 'OfdPreview',
48
+ components: {},
49
+ props: {
50
+ title: {
51
+ type: String,
52
+ default: 'OFD文件预览',
53
+ },
54
+ fileUrl: {
55
+ type: String,
56
+ default: '',
57
+ },
58
+ },
59
+ data() {
60
+ return {
61
+ ofdObj: null,
62
+ pageIndex: 1,
63
+ pageCount: 0,
64
+ scale: 0,
65
+ loading: false,
66
+ visible: false,
67
+ loadOverFlag: false,
68
+ screenWidth: 1000,
69
+ }
70
+ },
71
+ watch: {},
72
+ computed: {},
73
+ methods: {
74
+ showModal() {
75
+ this.visible = true
76
+ this.$nextTick(() => {
77
+ this.screenWidth = document.getElementById('ofd-preview-box').getBoundingClientRect().width - 30
78
+ this.getOfdDocumentObj(this.fileUrl, this.screenWidth)
79
+ })
80
+ },
81
+ handleCancel(e) {
82
+ this.visible = false
83
+ },
84
+ getOfdDocumentObj(file, screenWidth) {
85
+ let that = this
86
+ this.loading = true
87
+ parseOfdDocument({
88
+ ofd: file,
89
+ success(res) {
90
+ that.ofdObj = res[0]
91
+ that.pageCount = res[0].pages.length
92
+ const divs = renderOfd(screenWidth, res[0])
93
+ that.displayOfdDiv(divs)
94
+ that.loadOverFlag = true
95
+ that.loading = false
96
+ },
97
+ fail(error) {
98
+ that.loading = false
99
+ console.log('OFD打开失败')
100
+ },
101
+ })
102
+ },
103
+ displayOfdDiv(divs) {
104
+ this.scale = getPageScale()
105
+ let contentDiv = document.getElementById('content')
106
+ contentDiv.innerHTML = ''
107
+ for (const div of divs) {
108
+ contentDiv.appendChild(div)
109
+ }
110
+ },
111
+ plus() {
112
+ setPageScale(++this.scale)
113
+ const divs = renderOfdByScale(this.ofdObj)
114
+ this.displayOfdDiv(divs)
115
+ },
116
+ minus() {
117
+ setPageScale(--this.scale)
118
+ const divs = renderOfdByScale(this.ofdObj)
119
+ this.displayOfdDiv(divs)
120
+ },
121
+ prePage() {
122
+ let contentDiv = document.getElementById('content')
123
+ let ele = contentDiv.children.item(this.pageIndex - 2)
124
+ if (ele) {
125
+ ele.scrollIntoView(true)
126
+ this.pageIndex = this.pageIndex - 1
127
+ }
128
+ },
129
+ firstPage() {
130
+ let contentDiv = document.getElementById('content')
131
+ let ele = contentDiv.firstElementChild
132
+ if (ele) {
133
+ ele.scrollIntoView(true)
134
+ this.pageIndex = 1
135
+ }
136
+ },
137
+ nextPage() {
138
+ let contentDiv = document.getElementById('content')
139
+ let ele = contentDiv.children.item(this.pageIndex)
140
+ if (ele) {
141
+ ele.scrollIntoView(true)
142
+ ++this.pageIndex
143
+ }
144
+ },
145
+ lastPage() {
146
+ let contentDiv = document.getElementById('content')
147
+ let ele = contentDiv.lastElementChild
148
+ if (ele) {
149
+ ele.scrollIntoView(true)
150
+ this.pageIndex = contentDiv.childElementCount
151
+ }
152
+ },
153
+ },
154
+ created() {
155
+ this.showModal();
156
+ },
157
+ mounted() {
158
+ },
159
+ }
160
+ </script>
161
+ <style lang="scss" scoped>
162
+ .wrapper {
163
+ }
164
+
165
+ .modal-box {
166
+ width: 100%;
167
+ height: 100%;
168
+ overflow: auto;
169
+ }
170
+
171
+ .main-section {
172
+ width: 100%;
173
+ //padding-top: 20px;
174
+ display: flex;
175
+ flex-direction: column;
176
+ align-items: center;
177
+ justify-content: center;
178
+ overflow: hidden;
179
+ position: relative;
180
+ }
181
+
182
+ .background-shadow {
183
+ background: #808080;
184
+ }
185
+
186
+ .page-box {
187
+ display: flex;
188
+ align-items: center;
189
+ justify-content: center;
190
+ height: 50px;
191
+ margin-bottom: 15px;
192
+
193
+ .option-list {
194
+ display: flex;
195
+ align-items: center;
196
+ justify-content: center;
197
+ width: 100%;
198
+ }
199
+ }
200
+
201
+ .scale-icon {
202
+ display: flex;
203
+ cursor: pointer;
204
+ justify-content: center;
205
+ align-items: center;
206
+ width: 33px;
207
+ height: 28px;
208
+ border-radius: 1px;
209
+ font-weight: 500;
210
+ font-size: 18px;
211
+ color: #333333;
212
+ text-align: center;
213
+ padding: 2px;
214
+ }
215
+
216
+ .scale-icon :hover {
217
+ color: #1890ff;
218
+ }
219
+
220
+ .ant-spin-nested-loading > div > .ant-spin {
221
+ max-height: auto !important;
222
+ }
223
+ </style>
@@ -0,0 +1,116 @@
1
+ <template>
2
+ <div ref="officeViewerRef" v-if="officeDialog" class="officeMain">
3
+ <vue-office-excel
4
+ v-if="xlsxDialog"
5
+ :src="url"
6
+ style="height: 100vh;"
7
+ @rendered="renderedHandler"
8
+ @error="errorHandler"
9
+ />
10
+ <vue-office-docx
11
+ v-if="docxDialog"
12
+ :src="url"
13
+ style="height: 100vh;"
14
+ @rendered="renderedHandler"
15
+ @error="errorHandler"
16
+ />
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ import VueOfficeExcel from '@vue-office/excel'
22
+ import '@vue-office/excel/lib/index.css'
23
+ import VueOfficeDocx from '@vue-office/docx'
24
+ import '@vue-office/docx/lib/index.css'
25
+
26
+ export default {
27
+ name: "office-viewer",
28
+ components: {
29
+ VueOfficeExcel,VueOfficeDocx,
30
+ },
31
+ data(){
32
+ return {
33
+ previewUrl: '/uploadController/previewFile',
34
+ officeLoading: '',
35
+ xlsxDialog:false,
36
+ docxDialog:false,
37
+ url:'',
38
+ fjType:'',
39
+ isEnd:false,
40
+ officeDialog:true,
41
+ }
42
+ },
43
+ watch: {
44
+ isEnd() {
45
+ this.officeDialog = false;
46
+ this.$nextTick(()=>{
47
+ this.officeDialog = true;
48
+ })
49
+ },
50
+ },
51
+ mounted(){
52
+ this.getOfficeUrl();
53
+ },
54
+ methods: {
55
+ getOfficeUrl(){
56
+ let fjid = this.$route.query.fjid;
57
+ this.fjType = this.$route.query.fjType;
58
+ this.url = window.JAVA_URL + "/" + window.ADMIN_NAME + this.previewUrl +`?id=${fjid}`;
59
+ this.officeLoading = this.$loading({
60
+ lock: true,
61
+ target:this.$refs.officeViewerRef.$el,
62
+ text: '正在加载,请稍后....',
63
+ spinner: 'el-icon-loading',
64
+ background: 'rgba(0, 0, 0, 0.7)'
65
+ });
66
+ if(this.fjType == 'excel'){
67
+ this.xlsxDialog = true;
68
+ }else if(this.fjType == 'word'){
69
+ this.docxDialog = true;
70
+ }
71
+
72
+ },
73
+ renderedHandler() {
74
+ // this.$message.success("渲染完成!");
75
+ this.officeLoading && this.officeLoading.close();
76
+ if(this.fjType == 'excel'){
77
+ this.isEnd = true;
78
+ }
79
+ },
80
+ errorHandler() {
81
+ this.$message.error("渲染失败!");
82
+ this.officeLoading && this.officeLoading.close();
83
+ },
84
+ }
85
+ }
86
+ </script>
87
+
88
+ <style lang="scss">
89
+ .officeMain{
90
+ background-color: #808080;
91
+ height: 100%;
92
+ padding: 30px 0;
93
+ .vue-office-docx,.vue-office-excel{
94
+ height: calc(100% - 60px)!important;
95
+ }
96
+ .vue-office-excel{
97
+ width: calc(100% - 60px);
98
+ margin-left: 30px;
99
+ }
100
+ .docx-wrapper{
101
+ padding-top: 0!important;
102
+ padding-bottom: 0!important;
103
+ }
104
+ .docx{
105
+ border-radius: 3px;
106
+ }
107
+ .docx:last-child{
108
+ margin-bottom: 0!important;
109
+ }
110
+ .x-spreadsheet{
111
+ padding-top: 5px;
112
+ box-sizing: border-box;
113
+ border-radius: 5px;
114
+ }
115
+ }
116
+ </style>
@@ -0,0 +1,91 @@
1
+ <template>
2
+ <div class="preview-pdf">
3
+ <div class="loading-block">
4
+ <img src="../../../../assets/images/loading-bar.gif" class="loading">
5
+ <p class="loading-word">加载中...</p>
6
+ </div>
7
+ <div ref="pdfViewerRef" style="z-index: 10;"></div>
8
+ </div>
9
+ </template>
10
+
11
+ <script>
12
+ import PDFObject from 'pdfobject';
13
+
14
+ export default {
15
+ name: "pdf-preview",
16
+ data() {
17
+ return {
18
+ url: '',
19
+ previewUrl:""
20
+ }
21
+ },
22
+ mounted() {
23
+ this.getPDFUrl();
24
+ },
25
+ methods: {
26
+ getPDFUrl() {
27
+ const fjid = this.$route.query.fjid;
28
+ const url = window.JAVA_URL + "/" + window.ADMIN_NAME + `/uploadController/previewFile?id=${fjid}`;
29
+ fetch(url).then(response => response.arrayBuffer())
30
+ .then(buffer => new Uint8Array(buffer))
31
+ .then(uint8array => {
32
+ // 创建Blob对象
33
+ const blob = new Blob([uint8array], { type: 'application/pdf' });
34
+
35
+ // 创建一个指向Blob的URL
36
+ const pdfUrl = URL.createObjectURL(blob);
37
+
38
+ // 现在你可以使用这个URL与PDFObject结合
39
+ PDFObject.embed(pdfUrl,this.$refs.pdfViewerRef, {style: 'position: absolute'}); // 'pdf-container'是页面上用于展示PDF的HTML元素ID
40
+ });
41
+ }
42
+ }
43
+ }
44
+ </script>
45
+
46
+ <style scoped lang="scss">
47
+ .preview-pdf {
48
+ position: absolute;
49
+ top: 0;
50
+ bottom: 0;
51
+ left: 0;
52
+ right: 0;
53
+ overflow-x: hidden;
54
+ overflow-y: hidden;
55
+
56
+ .loading-block {
57
+ position: absolute;
58
+ top: 50%;
59
+ left: 50%;
60
+ width: 150px;
61
+ height: 150px;
62
+ margin-left: -75px;
63
+ margin-top: -75px;
64
+
65
+ .loading {
66
+ width: 150px;
67
+ height: 100px;
68
+ z-index: 1;
69
+ }
70
+
71
+ .loading-word {
72
+ width: 150px;
73
+ text-align: center;
74
+ font-size: 14px;
75
+ font-family: "saspiconfont", sans-serif;
76
+ color: #333333;
77
+ letter-spacing: 4px;
78
+ }
79
+ }
80
+
81
+ /deep/ {
82
+ .pdfobject-container {
83
+ position: absolute;
84
+ top: 0;
85
+ bottom: 0;
86
+ left: 0;
87
+ right: 0;
88
+ }
89
+ }
90
+ }
91
+ </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="preview-pdf">
3
3
  <div class="loading-block">
4
- <img src="../../assets/images/loading-bar.gif" class="loading">
4
+ <img src="../../../../assets/images/loading-bar.gif" class="loading">
5
5
  <p class="loading-word">加载中...</p>
6
6
  </div>
7
7
  <div ref="pdfViewerRef" style="z-index: 10;"></div>
@@ -117,19 +117,17 @@
117
117
  */
118
118
  eachRouterSet(allRouterArr,urlArr,index){
119
119
  allRouterArr.forEach(item =>{
120
- if(urlArr[index + 1]){
121
- if((urlArr[index +1] == (item.name ? item.name : item.path))||((item.name ? item.name : item.path)).indexOf(urlArr[index +1]+"/:")>-1){
122
- //当前匹配
123
- //判断 urlArr是否存在下级
124
- if(item.children && item.children.length > 0) {
125
- //如果存在下级
126
- allRouterArr = item.children || [];
127
- index = index + 1;
128
- this.eachRouterSet(allRouterArr,urlArr,index);
129
- }else{
130
- console.log("item....",item);
131
- this.componentIndex = item.component;
132
- }
120
+ if(urlArr[index + 1] && ((urlArr[index +1] == (item.name ? item.name : item.path))||((item.name ? item.name : item.path)).indexOf(urlArr[index +1]+"/:")>-1)){
121
+ //当前匹配
122
+ //判断 urlArr是否存在下级
123
+ if(item.children && item.children.length > 0) {
124
+ //如果存在下级
125
+ allRouterArr = item.children || [];
126
+ index = index + 1;
127
+ this.eachRouterSet(allRouterArr,urlArr,index);
128
+ }else{
129
+ console.log("item....",item);
130
+ this.componentIndex = item.component;
133
131
  }
134
132
  }
135
133
  })
@@ -26,13 +26,14 @@
26
26
  <el-header style="height: 40px;padding: 0">
27
27
  <el-input
28
28
  placeholder="输入关键字进行过滤"
29
- v-model="filterText" style="width: 209px;margin-top: 5px;" size="small">
29
+ v-model="filterText" style="width: 150px;margin-top: 5px;" size="small">
30
30
  </el-input>
31
- <el-button @click="addNode()" style="margin-left: 15px" type="primary" icon="el-icon-circle-plus" size="small">添加</el-button>
32
- <el-button @click="removeNode" style="margin-left: 15px" type="danger" icon="el-icon-delete" size="small">删除</el-button>
31
+ <el-button @click="addNode()" style="margin-left: 6px" type="primary" icon="el-icon-circle-plus" size="small">添加</el-button>
32
+ <el-button @click="removeNode" style="margin-left: 6px" type="danger" icon="el-icon-delete" size="small">删除</el-button>
33
+ <el-button @click="expiredNode" style="margin-left: 6px" type="info" icon="el-icon-timer" size="small">过期</el-button>
33
34
  </el-header>
34
35
  <el-aside class="asideTree">
35
- <common-tree :rootDatas="rootDatas" :refreshProper="typeId" :nodekey="nodekey" ref="commonTreeRef" :defaultProps="defaultProps"
36
+ <common-tree v-if="showTree" :rootDatas="rootDatas" :refreshProper="typeId" :nodekey="nodekey" ref="commonTreeRef" :defaultProps="defaultProps"
36
37
  :treeAllowDrag="treeAllowDrag" :treeNodeDrop="treeNodeDrop" :tree-allow-drop="treeAllowDrop" :draggable=true
37
38
  :filterText="filterText" :expandOnclickNode=false :defaulExpand="defaulExpand" :rightClick="rightClick"
38
39
  :nodeClick="nodeClick" :requestUrl="api.data.getDataByType" :requestParam="{'typeId':typeId,'getOutDate':'1'}"
@@ -99,6 +100,7 @@
99
100
  // isLeaf: 'leaf',
100
101
  },
101
102
  menuVisible:false, // 右击菜单显示的控制
103
+ showTree:true,//显示树
102
104
  defaulExpand:['-1'], // 默认展开节点
103
105
  orginParentId:['-1'], // 根节点id
104
106
  objectID:null, // 右击时节点id,如果与上次相同则菜单保持显示
@@ -289,6 +291,50 @@
289
291
  });
290
292
  });
291
293
  },
294
+ expiredNode() { // 过期勾选节点
295
+ let vm = this;
296
+ let data = [];
297
+ let expiredArr = vm.$refs.commonTreeRef.getTreeCheckedNodes("key");
298
+ if (expiredArr.length == 0) {
299
+ vm.$message("请勾选需要过期的节点!");
300
+ return;
301
+ }
302
+ vm.$confirm('确定过期已勾选节点?', '警告', {
303
+ confirmButtonText: '确定',
304
+ cancelButtonText: '取消',
305
+ }).then(function () {
306
+ for (let i = 0;i < expiredArr.length;i++){
307
+ let result = vm.axios.post(vm.api.data.update, {typeId:vm.typeId,id:expiredArr[i],outDate:'1'})
308
+ data.push(result)
309
+ }
310
+ Promise.all(data).then(itemList =>{
311
+ (itemList || []).forEach(item=>{
312
+ if (item.data.operateSuccess) {
313
+ let obj=item.data.operateObj||{};
314
+ let node = vm.$refs.commonTreeRef.getNode(obj.id);
315
+ vm.$set(node.data,'outDate','1');
316
+ }
317
+ })
318
+ vm.showTree = false;
319
+ vm.$nextTick(()=>{
320
+ vm.$message({
321
+ duration: 1000,
322
+ type: 'success',
323
+ message: '设置过期成功'
324
+ }
325
+ );
326
+ vm.initFormData();
327
+ vm.showTree = true;
328
+ })
329
+ })
330
+ }).catch(function () {
331
+ vm.$message({
332
+ duration: 1000,
333
+ type: 'info',
334
+ message: '已取消'
335
+ });
336
+ });
337
+ },
292
338
  save() { // 提交
293
339
  let vm = this;
294
340
  let submitData = {};
@@ -550,7 +596,7 @@
550
596
  text-decoration: none;
551
597
  border: 1px silver solid;
552
598
  color: #fff;
553
- text-align: center;
599
+ text-align: left;
554
600
  height: 35px;
555
601
  }
556
602
  .font-dialog /deep/ .el-dialog__body{
@@ -310,12 +310,10 @@
310
310
  },
311
311
  searchFunc(){
312
312
  (this.crud.dataStore.records || []).forEach(item =>{
313
- if(item.dataSource == '1'){ //内部
314
- if(this.EVENT_PLUGIN["preActiveEvenObj"]["inner-"+item.eventKey]){ //内部
315
- this.$set(item,'version',this.EVENT_PLUGIN["preActiveEvenObj"]["inner-"+item.eventKey]['config']['version'] || "1.0");
316
- this.$set(item,'eventName',this.EVENT_PLUGIN["preActiveEvenObj"]["inner-"+item.eventKey]['config']['eventName']);
317
- this.$set(item,'eventType',this.EVENT_PLUGIN["preActiveEvenObj"]["inner-"+item.eventKey]['eventType']);
318
- }
313
+ if(item.dataSource == '1' && this.EVENT_PLUGIN["preActiveEvenObj"]["inner-"+item.eventKey]){ //内部
314
+ this.$set(item,'version',this.EVENT_PLUGIN["preActiveEvenObj"]["inner-"+item.eventKey]['config']['version'] || "1.0");
315
+ this.$set(item,'eventName',this.EVENT_PLUGIN["preActiveEvenObj"]["inner-"+item.eventKey]['config']['eventName']);
316
+ this.$set(item,'eventType',this.EVENT_PLUGIN["preActiveEvenObj"]["inner-"+item.eventKey]['eventType']);
319
317
  }
320
318
  });
321
319
  },
@@ -254,11 +254,14 @@
254
254
  "q+": Math.floor((date.getMonth() + 3) / 3), //季度
255
255
  "S": date.getMilliseconds() //毫秒
256
256
  };
257
- if (/(y+)/.test(fmt))
258
- fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
259
- for (let k in o)
260
- if (new RegExp("(" + k + ")").test(fmt))
261
- fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
257
+ if (/(y+)/.test(fmt)) {
258
+ fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
259
+ }
260
+ for (let k in o) {
261
+ if (new RegExp("(" + k + ")").test(fmt)) {
262
+ fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
263
+ }
264
+ }
262
265
  } else {
263
266
  fmt = '无';
264
267
  }