diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
接单
+
处理
到这里去
转单
提交
@@ -122,6 +122,8 @@
import ChoosePeople from "../ChoosePeople";
import Loading from "../../../components/Loading/index";
import {compareCalendar} from '@/utils/string'
+ import { appSpApi } from '@/api/special'
+
export default {
name: "JobDetail",
components:{
@@ -256,7 +258,7 @@
},
//获取工单详情
fetchData(id){
- getJobInfo(id).then(response=>{
+ appSpApi('job/info',{id:id}).then(response =>{
if(response.code==200){
this.jobForm = response.data[0]
this.isLoading = false
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
接单
+
处理
到这里去
转单
提交
@@ -122,6 +122,8 @@
import ChoosePeople from "../ChoosePeople";
import Loading from "../../../components/Loading/index";
import {compareCalendar} from '@/utils/string'
+ import { appSpApi } from '@/api/special'
+
export default {
name: "JobDetail",
components:{
@@ -256,7 +258,7 @@
},
//获取工单详情
fetchData(id){
- getJobInfo(id).then(response=>{
+ appSpApi('job/info',{id:id}).then(response =>{
if(response.code==200){
this.jobForm = response.data[0]
this.isLoading = false
diff --git a/src/page/jobManage/modules/JobDetailSimple.vue b/src/page/jobManage/modules/JobDetailSimple.vue
new file mode 100644
index 0000000..9d53532
--- /dev/null
+++ b/src/page/jobManage/modules/JobDetailSimple.vue
@@ -0,0 +1,347 @@
+
+
+
+
+
+
+
+
+
+ {{jobForm.alarmContentName}}
+ {{jobForm.createTime}}
+
+
+ {{item.title}}
+ {{item.value}}
+ {{item.value}}
+
+
+
+
+
+
+ {{item.name}}
+ {{item.time}}
+
+
+
+ 处理
+ 到这里去
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
接单
+
处理
到这里去
转单
提交
@@ -122,6 +122,8 @@
import ChoosePeople from "../ChoosePeople";
import Loading from "../../../components/Loading/index";
import {compareCalendar} from '@/utils/string'
+ import { appSpApi } from '@/api/special'
+
export default {
name: "JobDetail",
components:{
@@ -256,7 +258,7 @@
},
//获取工单详情
fetchData(id){
- getJobInfo(id).then(response=>{
+ appSpApi('job/info',{id:id}).then(response =>{
if(response.code==200){
this.jobForm = response.data[0]
this.isLoading = false
diff --git a/src/page/jobManage/modules/JobDetailSimple.vue b/src/page/jobManage/modules/JobDetailSimple.vue
new file mode 100644
index 0000000..9d53532
--- /dev/null
+++ b/src/page/jobManage/modules/JobDetailSimple.vue
@@ -0,0 +1,347 @@
+
+
+
+
+
+
+
+
+
+ {{jobForm.alarmContentName}}
+ {{jobForm.createTime}}
+
+
+ {{item.title}}
+ {{item.value}}
+ {{item.value}}
+
+
+
+
+
+
+ {{item.name}}
+ {{item.time}}
+
+
+
+ 处理
+ 到这里去
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/page/jobManage/modules/OverJob.vue b/src/page/jobManage/modules/OverJob.vue
index 85eea67..d72abab 100644
--- a/src/page/jobManage/modules/OverJob.vue
+++ b/src/page/jobManage/modules/OverJob.vue
@@ -69,6 +69,7 @@
import {Loadmore, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "OverJob",
components:{
@@ -121,7 +122,7 @@
this.$refs.loadmore.onTopLoaded()
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -141,7 +142,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
console.log('getJobList')
this.listQuery.offset+=1
for(let item of response.data.rows){
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/config/dev.env.js b/config/dev.env.js
index df0ed63..93eab6d 100644
--- a/config/dev.env.js
+++ b/config/dev.env.js
@@ -4,6 +4,9 @@
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
- BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee"'
+ // BASE_API: '"http://119.254.103.80:14537"',
+ // BASE_API: '"http://192.168.0.212:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
// BASE_API: '"http://192.168.0.225:8083"',
})
diff --git a/config/index.js b/config/index.js
index 88422c3..ca24a9c 100644
--- a/config/index.js
+++ b/config/index.js
@@ -6,14 +6,19 @@
module.exports = {
dev: {
-
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
-
+ proxyTable: {
+ // '/api': {
+ // target: 'http://20.1.2.241', //目标接口域名
+ // pathRewrite: {
+ // '^/api': '' //重写接口
+ // },
+ // changeOrigin: true, //是否跨域
+ // },
+ },
// Various Dev Server settings
- host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
diff --git a/config/prod.env.js b/config/prod.env.js
index af31832..0595245 100644
--- a/config/prod.env.js
+++ b/config/prod.env.js
@@ -1,6 +1,7 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://119.254.103.80:14537"',
+ BASE_API: '"http://20.1.2.241:7090"',
+ // BASE_API: '"http://119.254.103.80:14537"',
// BASE_API: '"http://106.74.146.218:2031"',
}
diff --git a/src/api/app.js b/src/api/app.js
index d556d7c..ecd110a 100644
--- a/src/api/app.js
+++ b/src/api/app.js
@@ -2,6 +2,7 @@
* APP的接口
*/
import request from '@/utils/request'
+
// 新版本查询
export function checkVersion() {
return request({
diff --git a/src/api/special.js b/src/api/special.js
new file mode 100644
index 0000000..6b3b8b3
--- /dev/null
+++ b/src/api/special.js
@@ -0,0 +1,97 @@
+
+/**
+ * APP的接口
+ */
+import request from '@/utils/request'
+import { getToken } from '@/utils/auth'
+import store from '@/store'
+
+
+// 新版本查询
+export function appSpApi(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: getToken(),
+ params: params
+ }},
+ 'XXCZRY_XM':store.getters.name,
+ 'XXCZRY_GMSFHM':store.getters.identityCard,
+ 'XXCZRY_GAJGJGDM':store.getters.jgdm,
+ 'FWQQSB_BH':store.getters.imei,
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':store.getters.yys
+ }
+ return request({
+ url: '/',
+ method: 'post',
+ data:data
+ })
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP(store.getters.ip);
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP(store.getters.ip);
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
diff --git a/src/api/testZongXian.js b/src/api/testZongXian.js
new file mode 100644
index 0000000..c90c26f
--- /dev/null
+++ b/src/api/testZongXian.js
@@ -0,0 +1,88 @@
+
+var ip = '10.9.39.5'
+// 新版本查询
+function generateJson(method,params={},type='GET') {
+ const data = {
+ 'FWQQ_BWBH':getBWBH(), //报文编号
+ 'BWLYIPDZ':getIP(), //12位IP
+ 'BWLYDKH':'8083', //端口?
+ 'FWQQZ_ZCXX':'A00111000026000004818',
+ 'FWBS':'S00101100002600052004',
+ 'FFBS':'FUN001',
+ 'FWQQ_RQSJ':getTime(),
+ 'FWQQ_NR':{
+ method:'appprepositionInvoke',
+ params:{
+ method:method,
+ type:type,
+ token: '',
+ params: params
+ }},
+ 'XXCZRY_XM':'张森',
+ 'XXCZRY_GMSFHM':'110226198909261410',
+ 'XXCZRY_GAJGJGDM':'',
+ 'FWQQSB_BH':'',
+ 'FWQQ_SJSJLX':'service_request',
+ 'YYSBS':'lt'
+ }
+ console.log(JSON.stringify(data))
+}
+
+function getBWBH(){
+ let head = "SR"
+ let ip = changeIP('10.9.39.5');
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+ let mseconds = mdate.getMilliseconds(); //获取当前毫秒数(0~999)
+ let end = Math.floor(Math.random()*(9999-1000))+1000;//生成随机4位流水号
+
+ let result = head+ip
+ +year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ +formatStr(mseconds,3)+end;
+
+ return result;
+
+}
+
+function getIP(){
+ let ip = changeIP('10.9.39.5');
+ return ip;
+}
+
+function getTime(){
+ let mdate = new Date();
+ let year = mdate.getFullYear();
+ let month = mdate.getMonth()+1;
+ let day = mdate.getDate();
+ let hour = mdate.getHours(); //获取当前小时数(0-23)
+ let minutes = mdate.getMinutes(); //获取当前分钟数(0-59)
+ let seconds = mdate.getSeconds(); //获取当前秒数(0-59)
+
+ let result = ""+year +formatStr(month,2)+formatStr(day,2)
+ +formatStr(hour,2)+formatStr(minutes,2)+formatStr(seconds,2)
+ return result
+}
+
+function changeIP(ip){
+ const ip_ds = ip.split(".")
+ let result = ""
+ for(let item of ip_ds){
+ item = "000"+item
+ result+=item.substr(-3)
+ }
+ return result;
+}
+
+function formatStr(str,length){
+ str = "000"+str
+ return str.substr(0-length)
+}
+
+
+generateJson('app/tokenByCard',{card:'110226198909261410'})
diff --git a/src/page/error/404.vue b/src/page/error/404.vue
new file mode 100644
index 0000000..aceb671
--- /dev/null
+++ b/src/page/error/404.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@
+
+
diff --git a/src/page/error/other.vue b/src/page/error/other.vue
new file mode 100644
index 0000000..a10d3ca
--- /dev/null
+++ b/src/page/error/other.vue
@@ -0,0 +1,14 @@
+
+
+ error
+
+
+
+
+
diff --git a/src/page/jobManage/JobManage.vue b/src/page/jobManage/JobManage.vue
index fce5367..5e3d73b 100644
--- a/src/page/jobManage/JobManage.vue
+++ b/src/page/jobManage/JobManage.vue
@@ -8,23 +8,19 @@
待处理
- 待确认
- 处理中
- 已完成
+ 已完成
+ 全部
-
+
-
+
-
-
-
-
+
@@ -35,16 +31,15 @@
+
+
diff --git a/src/page/jobManage/modules/JobDetail.vue b/src/page/jobManage/modules/JobDetail.vue
index 1747fe6..fcc8326 100644
--- a/src/page/jobManage/modules/JobDetail.vue
+++ b/src/page/jobManage/modules/JobDetail.vue
@@ -92,7 +92,7 @@
-
- 接单
-
+
+
+
@@ -43,6 +43,7 @@
import {MessageBox, Indicator, Toast} from 'mint-ui'
import Loading from '@/components/Loading'
import { getJobList, getJob } from '@/api/job'
+ import { appSpApi } from '@/api/special'
export default {
name: "WaitGetJob",
components: {Loading},
@@ -89,8 +90,7 @@
//页码置1
this.listQuery.offset=1
this.loadConf.loadBottomConf.isFinish = false
-
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = []
this.isLoading = false
@@ -109,7 +109,7 @@
this.loadConf.loadBottomConf.isFinish = true
this.$refs.loadmore.onBottomLoaded();
} else {
- getJobList(this.listQuery).then(response => {
+ appSpApi('job/list',this.listQuery).then(response =>{
this.listQuery.offset+=1
this.list = this.list.concat(response.data.rows)
this.total = parseInt(response.data.total)
diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue
index afd93d7..55178c7 100644
--- a/src/page/layout/index.vue
+++ b/src/page/layout/index.vue
@@ -43,7 +43,7 @@
-
+
{{item.count}}
@@ -68,7 +68,8 @@
import { getAccount } from '@/utils/auth'
import { countByBfzt } from '@/api/well'
import { countByJobStatus } from '@/api/job'
- import { registerGetui } from '@/api/login'
+ import { appSpApi } from '@/api/special'
+
export default {
name:'layout',
@@ -102,17 +103,12 @@
},
{
count:'--',
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:'--',
- name:'处理中',
+ name:'已完成',
type:'span-count primary'
},
{
count:'--',
- name:'已完成',
+ name:'全部',
type:'span-count success'
}
]
@@ -126,35 +122,9 @@
this.fetchData()
},
activated(){
- //开启安卓的推送
- const username = getAccount()
- window.Android.loginSuccess(username);
-
- // const cid = this.$store.getters.cid
- // console.log('cid:'+cid)
- // if(cid && cid!=''){
- // registerGetui(cid).then(res=>{
- // if(res.code==200){
- // console.log('registerGetui success!')
- // }
- // })
- // }
this.fetchData()
},
methods: {
- resumeCallback () {
- Toast({
- message: '欢迎回来',
- position: 'bottom',
- duration: 3000
- })
- let login_flag = checkLoginFlag()
- if (login_flag) {
- this.login()
- } else {
- MyLocalStorage.Cache.set(LOGIN_FLAG, true, 999999) // 切换回来登陆保持时长无限
- }
- },
pauseCallback () {
setTimeout(() => {
MyLocalStorage.Cache.set(LOGIN_FLAG, true, 6000) // 切换至后台登陆保持10分钟
@@ -163,7 +133,7 @@
//获取数据
fetchData(){
//统计布防撤防井数
- countByBfzt().then(response => {
+ appSpApi('well/countByBfzt').then(response =>{
this.wellCount = [
{
count:response.data.cfWell,
@@ -182,7 +152,7 @@
}
]
})
- countByJobStatus().then(response => {
+ appSpApi('job/countByJobStatus').then(response =>{
this.jobCount = [
{
count:response.data.beforeGet,
@@ -190,18 +160,13 @@
type:'span-count alarm'
},
{
- count:response.data.beforeConfirm,
- name:'待确认',
- type:'span-count warning'
- },
- {
- count:response.data.inHandle,
- name:'处理中',
+ count:response.data.over,
+ name:'已完成',
type:'span-count primary'
},
{
- count:response.data.over,
- name:'已完成',
+ count:response.data.beforeGet+response.data.over,
+ name:'全部',
type:'span-count success'
}
]
@@ -230,12 +195,10 @@
clickJobManage(name){
if(name=='待处理'){
this.$router.push({name: 'job', query:{tab:'1'}})
- }else if(name=='待确认'){
- this.$router.push({name: 'job', query:{tab:'2'}})
- }else if(name=='处理中'){
- this.$router.push({name: 'job', query:{tab:'3'}})
}else if(name=='已完成'){
- this.$router.push({name: 'job', query:{tab:'4'}})
+ this.$router.push({name: 'job', query:{tab:'2'}})
+ }else if(name=='全部'){
+ this.$router.push({name: 'job', query:{tab:'3'}})
}
}
diff --git a/src/page/mine/index.vue b/src/page/mine/index.vue
index 81b33ab..5b039ca 100644
--- a/src/page/mine/index.vue
+++ b/src/page/mine/index.vue
@@ -8,7 +8,7 @@
-
+
diff --git a/src/page/mine/modules/Information.vue b/src/page/mine/modules/Information.vue
index 8833567..841e6bf 100644
--- a/src/page/mine/modules/Information.vue
+++ b/src/page/mine/modules/Information.vue
@@ -11,10 +11,10 @@
-
+
- 退出登录
+ 清除缓存
@@ -37,16 +37,10 @@
},
methods:{
loginOut () {
- this.$store.dispatch('LogOut').then(() => {
MyLocalStorage.Cache.remove(TOKEN)
MyLocalStorage.Cache.remove(USER_ACCOUNT)
- MyLocalStorage.Cache.remove(USER_PWD)
- MyLocalStorage.Cache.remove(AD_FLAG)
- MyLocalStorage.Cache.remove(LOGIN_FLAG)
- MyLocalStorage.Cache.remove(SLIDER_FLAG)
- Toast('登出成功')
- this.$router.push({name: 'login'})
- })
+ Toast('清除缓存成功')
+ this.$router.push({name: 'index'})
}
}
}
diff --git a/src/page/test/testpage.vue b/src/page/test/testpage.vue
new file mode 100644
index 0000000..b41b2f8
--- /dev/null
+++ b/src/page/test/testpage.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ 身份证号:{{card}}
+
+
+ 姓名:{{name}}
+
+
+ 运营商:{{yys}}
+
+
+ token:{{token}}
+
+
从安卓获取用户
+
+
+ 后台请求token
+
+
+ 获取用户信息
+
+
+ 跳转主页
+
+
+
+
+
+
+
+
diff --git a/src/page/wellManage/WatchData.vue b/src/page/wellManage/WatchData.vue
index cb4154c..4d76f78 100644
--- a/src/page/wellManage/WatchData.vue
+++ b/src/page/wellManage/WatchData.vue
@@ -34,6 +34,7 @@