system-clients 3.2.1-10 → 3.2.1-13

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/.eslintrc.js CHANGED
@@ -1,16 +1,16 @@
1
- // module.exports = {
2
- // root: true,
3
- // // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
4
- // extends: 'standard',
5
- // // required to lint *.vue files
6
- // plugins: [
7
- // 'eslint-plugin-html'
8
- // ],
9
- // // add your custom rules here
10
- // 'rules': {
11
- // // allow paren-less arrow functions
12
- // 'arrow-parens': 0,
13
- // // allow debugger during development
14
- // 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
15
- // }
16
- // }
1
+ // module.exports = {
2
+ // root: true,
3
+ // // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
4
+ // extends: 'standard',
5
+ // // required to lint *.vue files
6
+ // plugins: [
7
+ // 'eslint-plugin-html'
8
+ // ],
9
+ // // add your custom rules here
10
+ // 'rules': {
11
+ // // allow paren-less arrow functions
12
+ // 'arrow-parens': 0,
13
+ // // allow debugger during development
14
+ // 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
15
+ // }
16
+ // }
package/SystemClient.iml CHANGED
@@ -1,11 +1,8 @@
1
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">
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
3
  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
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>
5
+ <content url="file://$MODULE_DIR$" />
9
6
  <orderEntry type="inheritedJdk" />
10
7
  <orderEntry type="sourceFolder" forTests="false" />
11
8
  </component>
@@ -1,85 +1,85 @@
1
- var path = require('path')
2
- var cssLoaders = require('./css-loaders')
3
- var projectRoot = path.resolve(__dirname, '../')
4
-
5
- module.exports = {
6
- entry: {
7
- app: './src/main.js'
8
- },
9
- output: {
10
- path: path.resolve(__dirname, '../dist/mergeUser'),
11
- publicPath: 'mergeUser/',
12
- filename: '[name].js'
13
- },
14
- resolve: {
15
- extensions: ['', '.js', '.vue'],
16
- fallback: [path.join(__dirname, '../node_modules')],
17
- alias: {
18
- 'src': path.resolve(__dirname, '../src'),
19
- 'test': path.resolve(__dirname, '../test')
20
- }
21
- },
22
- resolveLoader: {
23
- fallback: [path.join(__dirname, '../node_modules')]
24
- },
25
- module: {
26
- loaders: [
27
- {
28
- test: /\.vue$/,
29
- loader: 'vue'
30
- },
31
- {
32
- test: /\.js$/,
33
- loader: 'babel',
34
- include: [
35
- /src/,
36
- /build/,
37
- /examples/,
38
- /test/,
39
- /node_modules\/vue-client\/src/,
40
- /node_modules\/vue-strap\/src/,
41
- /node_modules\/system-clients\/src/,
42
- /node_modules\/ldap-clients\/src/,
43
- /node_modules\/address-client\/src/
44
- ],
45
- options: {
46
- presets: ['es2015']
47
- }
48
- },
49
- {
50
- test: /\.json$/,
51
- loader: 'json'
52
- },
53
- {
54
- test: /\.html$/,
55
- loader: 'vue-html'
56
- },
57
- {
58
- test: /\.less$/,
59
- loader: 'style!css!less'
60
- },
61
- {
62
- test: /\.css$/,
63
- loader: 'style!css'
64
- },
65
- {
66
- test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
67
- loader: 'url',
68
- query: {
69
- limit: 10000,
70
- name: '[name].[ext]?[hash:7]'
71
- }
72
- }
73
- ]
74
- },
75
- vue: {
76
- loaders: cssLoaders({
77
- sourceMap: false,
78
- extract: false
79
- })
80
- },
81
- plugins: [],
82
- eslint: {
83
- formatter: require('eslint-friendly-formatter')
84
- }
85
- }
1
+ var path = require('path')
2
+ var cssLoaders = require('./css-loaders')
3
+ var projectRoot = path.resolve(__dirname, '../')
4
+
5
+ module.exports = {
6
+ entry: {
7
+ app: './src/main.js'
8
+ },
9
+ output: {
10
+ path: path.resolve(__dirname, '../dist/mergeUser'),
11
+ publicPath: 'mergeUser/',
12
+ filename: '[name].js'
13
+ },
14
+ resolve: {
15
+ extensions: ['', '.js', '.vue'],
16
+ fallback: [path.join(__dirname, '../node_modules')],
17
+ alias: {
18
+ 'src': path.resolve(__dirname, '../src'),
19
+ 'test': path.resolve(__dirname, '../test')
20
+ }
21
+ },
22
+ resolveLoader: {
23
+ fallback: [path.join(__dirname, '../node_modules')]
24
+ },
25
+ module: {
26
+ loaders: [
27
+ {
28
+ test: /\.vue$/,
29
+ loader: 'vue'
30
+ },
31
+ {
32
+ test: /\.js$/,
33
+ loader: 'babel',
34
+ include: [
35
+ /src/,
36
+ /build/,
37
+ /examples/,
38
+ /test/,
39
+ /node_modules\/vue-client\/src/,
40
+ /node_modules\/vue-strap\/src/,
41
+ /node_modules\/system-clients\/src/,
42
+ /node_modules\/ldap-clients\/src/,
43
+ /node_modules\/address-client\/src/
44
+ ],
45
+ options: {
46
+ presets: ['es2015']
47
+ }
48
+ },
49
+ {
50
+ test: /\.json$/,
51
+ loader: 'json'
52
+ },
53
+ {
54
+ test: /\.html$/,
55
+ loader: 'vue-html'
56
+ },
57
+ {
58
+ test: /\.less$/,
59
+ loader: 'style!css!less'
60
+ },
61
+ {
62
+ test: /\.css$/,
63
+ loader: 'style!css'
64
+ },
65
+ {
66
+ test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
67
+ loader: 'url',
68
+ query: {
69
+ limit: 10000,
70
+ name: '[name].[ext]?[hash:7]'
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ vue: {
76
+ loaders: cssLoaders({
77
+ sourceMap: false,
78
+ extract: false
79
+ })
80
+ },
81
+ plugins: [],
82
+ eslint: {
83
+ formatter: require('eslint-friendly-formatter')
84
+ }
85
+ }
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.2.1-10",
3
+ "version": "3.2.1-13",
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",
package/src/App.vue CHANGED
@@ -1,24 +1,24 @@
1
- <template>
2
- <app-base class="bg">
3
- <div class='flex'>
4
- <article>
5
- <!--<route :comp="{name: 'check-model'}"></route>-->
6
- <!--<route :comp="{name: 'vender-management'}"></route>-->
7
- <route :comp="{name: 'login'}"></route>
8
- <!-- <route :comp="{name: 'load-data'}"></route> -->
9
- <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
10
- <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
11
- </article>
12
- </div>
13
- </app-base>
14
- </template>
15
-
16
- <script>
17
- // import cardListen from './plugins/CardListen'
18
-
19
- export default {
20
- // ready () {
21
- // cardListen.startListen()
22
- // }
23
- }
24
- </script>
1
+ <template>
2
+ <app-base class="bg">
3
+ <div class='flex'>
4
+ <article>
5
+ <!--<route :comp="{name: 'check-model'}"></route>-->
6
+ <!--<route :comp="{name: 'vender-management'}"></route>-->
7
+ <route :comp="{name: 'login'}"></route>
8
+ <!-- <route :comp="{name: 'load-data'}"></route> -->
9
+ <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
10
+ <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
11
+ </article>
12
+ </div>
13
+ </app-base>
14
+ </template>
15
+
16
+ <script>
17
+ // import cardListen from './plugins/CardListen'
18
+
19
+ export default {
20
+ // ready () {
21
+ // cardListen.startListen()
22
+ // }
23
+ }
24
+ </script>
@@ -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'