system-clients 3.2.0 → 3.2.1-12

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/SystemClient.iml CHANGED
@@ -1,12 +1,9 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module external.linked.project.id="SystemClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="1.6.18" type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$">
6
- <excludeFolder url="file://$MODULE_DIR$/.gradle" />
7
- <excludeFolder url="file://$MODULE_DIR$/build" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module external.linked.project.id="SystemClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
12
9
  </module>
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.2.0",
3
+ "version": "3.2.1-12",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
7
+ "doc": "doc",
7
8
  "example": "examples",
8
9
  "test": "test"
9
10
  },
@@ -19,7 +20,6 @@
19
20
  "dependencies": {
20
21
  "base64-js": "^1.3.0",
21
22
  "js-base64": "^2.4.9",
22
- "jsencrypt": "^3.0.0-rc.1",
23
23
  "less": "^2.7.1",
24
24
  "less-loader": "^2.2.3",
25
25
  "src": "^1.1.2",
@@ -55,6 +55,7 @@
55
55
  "isparta-loader": "^2.0.0",
56
56
  "jasmine-core": "^2.4.1",
57
57
  "jquery": "^3.3.1",
58
+ "jsencrypt": "^3.0.0-rc.1",
58
59
  "json-loader": "^0.5.4",
59
60
  "karma": "^1.4.1",
60
61
  "karma-chrome-launcher": "^2.2.0",
@@ -122,6 +122,7 @@
122
122
  <script>
123
123
  import vue from 'vue'
124
124
  import co from 'co'
125
+ import {HttpResetClass} from "vue-client";
125
126
 
126
127
  let getwartermakr = async function (self) {
127
128
  let param = {
@@ -246,10 +247,36 @@ export default {
246
247
  // return false
247
248
  // }
248
249
  this.changeShow()
250
+ this.gotoWorkOrderSite()
249
251
  },
250
252
  methods: {
253
+ gotoWorkOrderSite(){
254
+ const isRemind =this.$appdata.getSingleValue("站点工单提醒")
255
+ console.log('站点工单是否提醒',isRemind)
256
+ if(isRemind && isRemind !== '是'){
257
+ return
258
+ }
259
+ if(this.functions.f_role_name.indexOf('派单员') !== -1){
260
+ const data = {
261
+ "condition":
262
+ {
263
+ "condition":" 1=1 ",
264
+ "sign":"1=1"
265
+ },
266
+ "userid":this.functions.name
267
+ }
268
+ new HttpResetClass().load('POST','rs/path/operatorService/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
269
+ if(res.data && res.data.n !== 0){
270
+ this.$showMessage('你有'+res.data.n+'个工单待处理,是否跳转到站点工单页面',['confirm','cancel']).then((res) => {
271
+ if(res === 'confirm'){
272
+ this.$goto('stand-work', {})
273
+ }
274
+ })
275
+ }
276
+ })
277
+ }
278
+ },
251
279
  hindsetting() {
252
-
253
280
  this.setting = !this.setting
254
281
  if (this.setting) {
255
282
  this.srcsetting = '../../static/newStyle/setting.png'
@@ -1,55 +1,55 @@
1
- <template>
2
- <div class="loadingdata" :class="{'loaderror': show, 'loadsuccess': !show}">
3
- <!-- <h2 style="margin: 0" v-if="show">{{msg}}</h2> -->
4
- <h2 style="margin: 0" v-if="show">参数加载失败,请检查网络状态和服务状态...</h2>
5
- </div>
6
- </template>
7
-
8
- <script>
9
- export default {
10
- title: '加载参数',
11
- data () {
12
- return {
13
- msg: '',
14
- show: false
15
- }
16
- },
17
- props: {
18
- componentName: {}
19
- },
20
- async ready () {
21
- this.$nextTick(() => {
22
- window.addEventListener('message', messageEvent => {
23
- try {
24
- const data = messageEvent.data
25
- console.log('接收到数据', data)
26
- this.$login = Object.assign(this.$login, data.login)
27
- this.$appdata = Object.assign(this.$appdata, data.appdata)
28
- if (!data.page) {
29
- this.$showMessage('没有功能连接, 请配置!')
30
- return
31
- }
32
- this.$goto(data.page)
33
- } catch (e) {
34
- console.log('登陆异常', e)
35
- }
36
- })
37
- })
38
- }
39
- }
40
- </script>
41
- <style media="screen">
42
- .loadingdata {
43
- position: fixed;
44
- background: #fff;
45
- opacity: 0.6;
46
- top: 0;
47
- width: 100%;
48
- }
49
- .loaderror {
50
- opacity: 1;
51
- }
52
- .loadsuccess {
53
- display: none;
54
- }
55
- </style>
1
+ <template>
2
+ <div class="loadingdata" :class="{'loaderror': show, 'loadsuccess': !show}">
3
+ <!-- <h2 style="margin: 0" v-if="show">{{msg}}</h2> -->
4
+ <h2 style="margin: 0" v-if="show">参数加载失败,请检查网络状态和服务状态...</h2>
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ export default {
10
+ title: '加载参数',
11
+ data () {
12
+ return {
13
+ msg: '',
14
+ show: false
15
+ }
16
+ },
17
+ props: {
18
+ componentName: {}
19
+ },
20
+ async ready () {
21
+ this.$nextTick(() => {
22
+ window.addEventListener('message', messageEvent => {
23
+ try {
24
+ const data = messageEvent.data
25
+ console.log('接收到数据', data)
26
+ this.$login = Object.assign(this.$login, data.login)
27
+ this.$appdata = Object.assign(this.$appdata, data.appdata)
28
+ if (!data.page) {
29
+ this.$showMessage('没有功能连接, 请配置!')
30
+ return
31
+ }
32
+ this.$goto(data.page)
33
+ } catch (e) {
34
+ console.log('登陆异常', e)
35
+ }
36
+ })
37
+ })
38
+ }
39
+ }
40
+ </script>
41
+ <style media="screen">
42
+ .loadingdata {
43
+ position: fixed;
44
+ background: #fff;
45
+ opacity: 0.6;
46
+ top: 0;
47
+ width: 100%;
48
+ }
49
+ .loaderror {
50
+ opacity: 1;
51
+ }
52
+ .loadsuccess {
53
+ display: none;
54
+ }
55
+ </style>