feat: 列表自定义列
1.列表自定义表头的列 2.修复一些bug 3.将后端接口路径提取为配置文件
This commit is contained in:
@@ -12,7 +12,11 @@ const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
|
|||||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
||||||
|
|
||||||
const env = require('../config/prod.env')
|
const env = require('../config/prod.env')
|
||||||
|
const GenerateAssetPlugin = require('generate-asset-webpack-plugin');
|
||||||
|
const createServerConfig = function(compilation){
|
||||||
|
let cfgJson={ApiUrl:"http://192.168.40.247:8080/nz-admin"};
|
||||||
|
return JSON.stringify(cfgJson);
|
||||||
|
}
|
||||||
const webpackConfig = merge(baseWebpackConfig, {
|
const webpackConfig = merge(baseWebpackConfig, {
|
||||||
module: {
|
module: {
|
||||||
rules: utils.styleLoaders({
|
rules: utils.styleLoaders({
|
||||||
@@ -28,6 +32,13 @@ const webpackConfig = merge(baseWebpackConfig, {
|
|||||||
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
|
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new GenerateAssetPlugin({
|
||||||
|
filename: 'serverconfig.json',
|
||||||
|
fn: (compilation, cb) => {
|
||||||
|
cb(null, createServerConfig(compilation));
|
||||||
|
},
|
||||||
|
extraFiles: []
|
||||||
|
}),
|
||||||
// http://vuejs.github.io/vue-loader/en/workflow/production.html
|
// http://vuejs.github.io/vue-loader/en/workflow/production.html
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env': env
|
'process.env': env
|
||||||
|
|||||||
343
nezha-fronted/package-lock.json
generated
343
nezha-fronted/package-lock.json
generated
@@ -4,6 +4,12 @@
|
|||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@sindresorhus/is": {
|
||||||
|
"version": "0.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz",
|
||||||
|
"integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"@types/q": {
|
"@types/q": {
|
||||||
"version": "1.5.2",
|
"version": "1.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz",
|
||||||
@@ -212,6 +218,13 @@
|
|||||||
"integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
|
"integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"asap": {
|
||||||
|
"version": "2.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
|
||||||
|
"integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
"asn1": {
|
"asn1": {
|
||||||
"version": "0.2.4",
|
"version": "0.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
|
||||||
@@ -1580,6 +1593,66 @@
|
|||||||
"unset-value": "^1.0.0"
|
"unset-value": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"cacheable-request": {
|
||||||
|
"version": "2.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz",
|
||||||
|
"integrity": "sha1-DYCIAbY0KtM8kd+dC0TcCbkeXD0=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"clone-response": "1.0.2",
|
||||||
|
"get-stream": "3.0.0",
|
||||||
|
"http-cache-semantics": "3.8.1",
|
||||||
|
"keyv": "3.0.0",
|
||||||
|
"lowercase-keys": "1.0.0",
|
||||||
|
"normalize-url": "2.0.1",
|
||||||
|
"responselike": "1.0.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"lowercase-keys": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"normalize-url": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"prepend-http": "^2.0.0",
|
||||||
|
"query-string": "^5.0.1",
|
||||||
|
"sort-keys": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"prepend-http": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"query-string": {
|
||||||
|
"version": "5.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz",
|
||||||
|
"integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"decode-uri-component": "^0.2.0",
|
||||||
|
"object-assign": "^4.1.0",
|
||||||
|
"strict-uri-encode": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sort-keys": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"is-plain-obj": "^1.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"caller-callsite": {
|
"caller-callsite": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz",
|
||||||
@@ -1859,6 +1932,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"clone-response": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz",
|
||||||
|
"integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"mimic-response": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"co": {
|
"co": {
|
||||||
"version": "4.6.0",
|
"version": "4.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
|
||||||
@@ -3146,6 +3228,15 @@
|
|||||||
"integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
|
"integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"decompress-response": {
|
||||||
|
"version": "3.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz",
|
||||||
|
"integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"mimic-response": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"deep-equal": {
|
"deep-equal": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz",
|
||||||
@@ -3429,6 +3520,12 @@
|
|||||||
"integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=",
|
"integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"duplexer3": {
|
||||||
|
"version": "0.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",
|
||||||
|
"integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"duplexify": {
|
"duplexify": {
|
||||||
"version": "3.7.1",
|
"version": "3.7.1",
|
||||||
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz",
|
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz",
|
||||||
@@ -4890,6 +4987,12 @@
|
|||||||
"globule": "^1.0.0"
|
"globule": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"generate-asset-webpack-plugin": {
|
||||||
|
"version": "0.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/generate-asset-webpack-plugin/-/generate-asset-webpack-plugin-0.3.0.tgz",
|
||||||
|
"integrity": "sha1-ZmLvgDP21DMMeImBZGHOJWgxMxg=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"get-caller-file": {
|
"get-caller-file": {
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz",
|
||||||
@@ -4984,6 +5087,31 @@
|
|||||||
"minimatch": "~3.0.2"
|
"minimatch": "~3.0.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"got": {
|
||||||
|
"version": "8.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/got/-/got-8.3.2.tgz",
|
||||||
|
"integrity": "sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@sindresorhus/is": "^0.7.0",
|
||||||
|
"cacheable-request": "^2.1.1",
|
||||||
|
"decompress-response": "^3.3.0",
|
||||||
|
"duplexer3": "^0.1.4",
|
||||||
|
"get-stream": "^3.0.0",
|
||||||
|
"into-stream": "^3.1.0",
|
||||||
|
"is-retry-allowed": "^1.1.0",
|
||||||
|
"isurl": "^1.0.0-alpha5",
|
||||||
|
"lowercase-keys": "^1.0.0",
|
||||||
|
"mimic-response": "^1.0.0",
|
||||||
|
"p-cancelable": "^0.4.0",
|
||||||
|
"p-timeout": "^2.0.1",
|
||||||
|
"pify": "^3.0.0",
|
||||||
|
"safe-buffer": "^5.1.1",
|
||||||
|
"timed-out": "^4.0.1",
|
||||||
|
"url-parse-lax": "^3.0.0",
|
||||||
|
"url-to-options": "^1.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"graceful-fs": {
|
"graceful-fs": {
|
||||||
"version": "4.2.3",
|
"version": "4.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
|
||||||
@@ -5071,12 +5199,27 @@
|
|||||||
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
|
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"has-symbol-support-x": {
|
||||||
|
"version": "1.4.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz",
|
||||||
|
"integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"has-symbols": {
|
"has-symbols": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
|
||||||
"integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==",
|
"integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"has-to-string-tag-x": {
|
||||||
|
"version": "1.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz",
|
||||||
|
"integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"has-symbol-support-x": "^1.4.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"has-unicode": {
|
"has-unicode": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
|
||||||
@@ -5296,6 +5439,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"http-cache-semantics": {
|
||||||
|
"version": "3.8.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz",
|
||||||
|
"integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"http-deceiver": {
|
"http-deceiver": {
|
||||||
"version": "1.2.7",
|
"version": "1.2.7",
|
||||||
"resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz",
|
"resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz",
|
||||||
@@ -5410,6 +5559,13 @@
|
|||||||
"integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==",
|
"integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"image-size": {
|
||||||
|
"version": "0.5.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz",
|
||||||
|
"integrity": "sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
"import-cwd": {
|
"import-cwd": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz",
|
||||||
@@ -5502,6 +5658,16 @@
|
|||||||
"integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==",
|
"integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"into-stream": {
|
||||||
|
"version": "3.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz",
|
||||||
|
"integrity": "sha1-lvsKk2wSur1v8XUqF9BWFqvQlMY=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"from2": "^2.1.1",
|
||||||
|
"p-is-promise": "^1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"invariant": {
|
"invariant": {
|
||||||
"version": "2.2.4",
|
"version": "2.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
|
||||||
@@ -5678,6 +5844,12 @@
|
|||||||
"integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=",
|
"integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"is-object": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz",
|
||||||
|
"integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"is-path-cwd": {
|
"is-path-cwd": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz",
|
||||||
@@ -5732,6 +5904,12 @@
|
|||||||
"integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==",
|
"integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"is-retry-allowed": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz",
|
||||||
|
"integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"is-stream": {
|
"is-stream": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
|
||||||
@@ -5799,6 +5977,16 @@
|
|||||||
"resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
|
||||||
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
|
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
|
||||||
},
|
},
|
||||||
|
"isurl": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"has-to-string-tag-x": "^1.2.0",
|
||||||
|
"is-object": "^1.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"js-base64": {
|
"js-base64": {
|
||||||
"version": "2.5.1",
|
"version": "2.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.1.tgz",
|
||||||
@@ -5831,6 +6019,12 @@
|
|||||||
"integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=",
|
"integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"json-buffer": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz",
|
||||||
|
"integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"json-loader": {
|
"json-loader": {
|
||||||
"version": "0.5.7",
|
"version": "0.5.7",
|
||||||
"resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz",
|
"resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz",
|
||||||
@@ -5882,6 +6076,15 @@
|
|||||||
"verror": "1.10.0"
|
"verror": "1.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"keyv": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"json-buffer": "3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"killable": {
|
"killable": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz",
|
||||||
@@ -5921,6 +6124,56 @@
|
|||||||
"invert-kv": "^1.0.0"
|
"invert-kv": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"less": {
|
||||||
|
"version": "3.10.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/less/-/less-3.10.3.tgz",
|
||||||
|
"integrity": "sha512-vz32vqfgmoxF1h3K4J+yKCtajH0PWmjkIFgbs5d78E/c/e+UQTnI+lWK+1eQRE95PXM2mC3rJlLSSP9VQHnaow==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"clone": "^2.1.2",
|
||||||
|
"errno": "^0.1.1",
|
||||||
|
"graceful-fs": "^4.1.2",
|
||||||
|
"image-size": "~0.5.0",
|
||||||
|
"mime": "^1.4.1",
|
||||||
|
"mkdirp": "^0.5.0",
|
||||||
|
"promise": "^7.1.1",
|
||||||
|
"request": "^2.83.0",
|
||||||
|
"source-map": "~0.6.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"clone": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz",
|
||||||
|
"integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"less-loader": {
|
||||||
|
"version": "5.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/less-loader/-/less-loader-5.0.0.tgz",
|
||||||
|
"integrity": "sha512-bquCU89mO/yWLaUq0Clk7qCsKhsF/TZpJUzETRvJa9KSVEL9SO3ovCvdEHISBhrC81OwC8QSVX7E0bzElZj9cg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"clone": "^2.1.1",
|
||||||
|
"loader-utils": "^1.1.0",
|
||||||
|
"pify": "^4.0.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"clone": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz",
|
||||||
|
"integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"pify": {
|
||||||
|
"version": "4.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
|
||||||
|
"integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"load-json-file": {
|
"load-json-file": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz",
|
||||||
@@ -6062,6 +6315,12 @@
|
|||||||
"integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=",
|
"integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"lowercase-keys": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"lru-cache": {
|
"lru-cache": {
|
||||||
"version": "4.1.5",
|
"version": "4.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
|
||||||
@@ -6327,6 +6586,12 @@
|
|||||||
"integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
|
"integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"mimic-response": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"minimalistic-assert": {
|
"minimalistic-assert": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",
|
||||||
@@ -6983,12 +7248,24 @@
|
|||||||
"os-tmpdir": "^1.0.0"
|
"os-tmpdir": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"p-cancelable": {
|
||||||
|
"version": "0.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz",
|
||||||
|
"integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"p-finally": {
|
"p-finally": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
|
||||||
"integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=",
|
"integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"p-is-promise": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz",
|
||||||
|
"integrity": "sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"p-limit": {
|
"p-limit": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
|
||||||
@@ -7013,6 +7290,15 @@
|
|||||||
"integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==",
|
"integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"p-timeout": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-finally": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"p-try": {
|
"p-try": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
|
||||||
@@ -9558,6 +9844,16 @@
|
|||||||
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
||||||
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
|
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
|
||||||
},
|
},
|
||||||
|
"promise": {
|
||||||
|
"version": "7.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz",
|
||||||
|
"integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"asap": "~2.0.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
"promise-inflight": {
|
"promise-inflight": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
|
||||||
@@ -10043,6 +10339,15 @@
|
|||||||
"integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=",
|
"integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"responselike": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz",
|
||||||
|
"integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"lowercase-keys": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"restore-cursor": {
|
"restore-cursor": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
|
||||||
@@ -11266,6 +11571,12 @@
|
|||||||
"integrity": "sha512-zxke8goJQpBeEgD82CXABeMh0LSJcj7CXEd0OHOg45HgcofF7pxNwZm9+RknpxpDhwN4gFpySkApKfFYfRQnUA==",
|
"integrity": "sha512-zxke8goJQpBeEgD82CXABeMh0LSJcj7CXEd0OHOg45HgcofF7pxNwZm9+RknpxpDhwN4gFpySkApKfFYfRQnUA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"timed-out": {
|
||||||
|
"version": "4.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz",
|
||||||
|
"integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"timers-browserify": {
|
"timers-browserify": {
|
||||||
"version": "2.0.11",
|
"version": "2.0.11",
|
||||||
"resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.11.tgz",
|
"resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.11.tgz",
|
||||||
@@ -11677,6 +11988,29 @@
|
|||||||
"requires-port": "^1.0.0"
|
"requires-port": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"url-parse-lax": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz",
|
||||||
|
"integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"prepend-http": "^2.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"prepend-http": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"url-to-options": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz",
|
||||||
|
"integrity": "sha1-FQWgOiiaSMvXpDTvuu7FBV9WM6k=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"use": {
|
"use": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
|
||||||
@@ -11850,6 +12184,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"vue-resource": {
|
||||||
|
"version": "1.5.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/vue-resource/-/vue-resource-1.5.1.tgz",
|
||||||
|
"integrity": "sha512-o6V4wNgeqP+9v9b2bPXrr20CGNQPEXjpbUWdZWq9GJhqVeAGcYoeTtn/D4q059ZiyN0DIrDv/ADrQUmlUQcsmg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"got": "^8.0.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
"vue-router": {
|
"vue-router": {
|
||||||
"version": "3.1.3",
|
"version": "3.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.3.tgz",
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
"extract-text-webpack-plugin": "^3.0.0",
|
"extract-text-webpack-plugin": "^3.0.0",
|
||||||
"file-loader": "^1.1.4",
|
"file-loader": "^1.1.4",
|
||||||
"friendly-errors-webpack-plugin": "^1.6.1",
|
"friendly-errors-webpack-plugin": "^1.6.1",
|
||||||
|
"generate-asset-webpack-plugin": "^0.3.0",
|
||||||
"html-webpack-plugin": "^2.30.1",
|
"html-webpack-plugin": "^2.30.1",
|
||||||
"node-notifier": "^5.1.2",
|
"node-notifier": "^5.1.2",
|
||||||
"optimize-css-assets-webpack-plugin": "^3.2.0",
|
"optimize-css-assets-webpack-plugin": "^3.2.0",
|
||||||
@@ -52,6 +53,7 @@
|
|||||||
"uglifyjs-webpack-plugin": "^1.1.1",
|
"uglifyjs-webpack-plugin": "^1.1.1",
|
||||||
"url-loader": "^0.5.8",
|
"url-loader": "^0.5.8",
|
||||||
"vue-loader": "^13.3.0",
|
"vue-loader": "^13.3.0",
|
||||||
|
"vue-resource": "^1.5.1",
|
||||||
"vue-style-loader": "^3.0.1",
|
"vue-style-loader": "^3.0.1",
|
||||||
"vue-template-compiler": "^2.5.2",
|
"vue-template-compiler": "^2.5.2",
|
||||||
"webpack": "^3.6.0",
|
"webpack": "^3.6.0",
|
||||||
|
|||||||
@@ -6,7 +6,13 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'App'
|
name: 'App',
|
||||||
|
mounted() {
|
||||||
|
/*this.$http.get("serverconfig.json").then((result)=>{
|
||||||
|
this.$axios.defaults.baseURL = result.body.ApiUrl;
|
||||||
|
});*/
|
||||||
|
this.$axios.defaults.baseURL = 'http://192.168.40.247:8080/nz-admin';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,11 @@ html {
|
|||||||
color: #444;
|
color: #444;
|
||||||
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
||||||
}
|
}
|
||||||
|
.nz-btn.nz-btn-style-pure-white { /*纯白色按钮*/
|
||||||
|
background-color: white;
|
||||||
|
color: #444;
|
||||||
|
border: 1px solid #dcdfe6;
|
||||||
|
}
|
||||||
.nz-btn.nz-btn-size-small.nz-btn-style-square { /* 单图标时是个正方形*/
|
.nz-btn.nz-btn-size-small.nz-btn-style-square { /* 单图标时是个正方形*/
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
}
|
}
|
||||||
@@ -118,6 +123,9 @@ html {
|
|||||||
.nz-btn.nz-btn-style-normal:hover:not(.nz-btn-disabled) {
|
.nz-btn.nz-btn-style-normal:hover:not(.nz-btn-disabled) {
|
||||||
background-image: linear-gradient(#16b, #0d4d8c);
|
background-image: linear-gradient(#16b, #0d4d8c);
|
||||||
}
|
}
|
||||||
|
.nz-btn.nz-btn-style-pure-white:hover:not(.nz-btn-disabled) {
|
||||||
|
background-color: #dedede;
|
||||||
|
}
|
||||||
.nz-btn:focus {
|
.nz-btn:focus {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
179
nezha-fronted/src/components/common/elementSet.vue
Normal file
179
nezha-fronted/src/components/common/elementSet.vue
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
class="pop-elementset"
|
||||||
|
v-clickoutside="elementsetHide"
|
||||||
|
:style="{opacity:(eventfixedVal.shezhi==1),left:(eventfixedVal.shezhi==1 ? event_positionx : -2000)+'px',top:(event_positiony)+'px'}"
|
||||||
|
>
|
||||||
|
<div class="pop-top-btns">
|
||||||
|
<button type="button" @click="shezhiControl('ok')" class="nz-btn nz-btn-size-small nz-btn-style-normal">
|
||||||
|
<span class="top-tool-btn-txt">{{$t('overall.save')}}</span>
|
||||||
|
</button>
|
||||||
|
<button type="button" @click="shezhiControl('cancel')" class="nz-btn nz-btn-size-small nz-btn-style-light nz-btn-style-square">
|
||||||
|
<span class="top-tool-btn-txt"><i class="el-icon-close"></i></span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="pop-title">
|
||||||
|
<p>{{$t('overall.select')}}</p>
|
||||||
|
</div>
|
||||||
|
<div class="pop-box elementset-labels">
|
||||||
|
<el-scrollbar style="height: 100%;">
|
||||||
|
<div
|
||||||
|
v-for="(item,index) in dropColRes"
|
||||||
|
:key="index"
|
||||||
|
class="elementset-label"
|
||||||
|
:class="index==0 || index == 1 ? 'elementset-label-disabled' : ''"
|
||||||
|
:title="item.visibility == 'disabled' ? other.inDevelopment : ''"
|
||||||
|
@click="addcol(item,index)"
|
||||||
|
>
|
||||||
|
<i class="el-icon-check" v-if="index==0||index==1||item.visibility=='disabled'"></i>
|
||||||
|
<i v-else class="el-icon-check" v-show="item.show"></i>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</div>
|
||||||
|
</el-scrollbar>
|
||||||
|
</div>
|
||||||
|
<div class="elementset-bottom-btns">
|
||||||
|
<button type="button" @click="dropAll(true)" class="nz-btn nz-btn-size-small nz-btn-style-pure-white ">
|
||||||
|
<span class="top-tool-btn-txt">{{$t('overall.all')}}</span>
|
||||||
|
</button>
|
||||||
|
<button type="button" @click="dropAll(false)" class="nz-btn nz-btn-size-small nz-btn-style-pure-white">
|
||||||
|
<span class="top-tool-btn-txt">{{$t('overall.cancel')}}</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: ["dropCol"],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
other: this.$t("i18n.overall.other"),
|
||||||
|
event_positiony: 0,
|
||||||
|
event_positionx: 0,
|
||||||
|
eventfixedVal: {},
|
||||||
|
dropColRes: JSON.parse(JSON.stringify(this.dropCol))
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {},
|
||||||
|
watch: {
|
||||||
|
dropCol: {
|
||||||
|
immediate: true,
|
||||||
|
deep: true,
|
||||||
|
handler(data) {
|
||||||
|
this.dropColRes = JSON.parse(JSON.stringify(data));
|
||||||
|
},
|
||||||
|
},
|
||||||
|
position: {
|
||||||
|
//监听设置icon的显示位置
|
||||||
|
handler(data) {
|
||||||
|
this.event_positiony = data.positiony;
|
||||||
|
this.event_positionx = data.positionx;
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
|
},
|
||||||
|
eventfixed: {
|
||||||
|
handler(data) {
|
||||||
|
if (data)
|
||||||
|
this.eventfixedVal = data;
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
//悬浮点击空白隐藏
|
||||||
|
elementsetHide() {
|
||||||
|
console.info(this.tablelable)
|
||||||
|
this.eventfixedVal.shezhi = 0;
|
||||||
|
},
|
||||||
|
//点击全选all或者cancel按钮
|
||||||
|
dropAll(state) {
|
||||||
|
for (let index = 0; index < this.dropColRes.length; index++) {
|
||||||
|
if (index == 0 || index == 1) {
|
||||||
|
this.dropColRes[index].show = true;
|
||||||
|
} else {
|
||||||
|
this.dropColRes[index].show = state;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//下拉选项选择
|
||||||
|
addcol(val, index) {
|
||||||
|
if (index == 0 || index == 1) {
|
||||||
|
this.dropColRes[index].show = true;
|
||||||
|
} else {
|
||||||
|
this.dropColRes[index].show = !this.dropColRes[index].show;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//点击第二个cancel
|
||||||
|
shezhiControl(t) {
|
||||||
|
if (t == "ok") {
|
||||||
|
this.$emit("tablelable", JSON.parse(JSON.stringify(this.dropColRes)));
|
||||||
|
localStorage.setItem(
|
||||||
|
"nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path,
|
||||||
|
JSON.stringify(this.tablelable)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
this.dropColRes = JSON.parse(JSON.stringify(this.tablelable));
|
||||||
|
}
|
||||||
|
|
||||||
|
this.elementsetHide();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
eventfixed() {
|
||||||
|
return this.$store.state.eventfixed;
|
||||||
|
},
|
||||||
|
position() {
|
||||||
|
return this.$store.state.position;
|
||||||
|
},
|
||||||
|
tablelable() {
|
||||||
|
return this.$store.state.tablelable;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.pop-elementset {
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid #EBEEF5;
|
||||||
|
box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 10px;
|
||||||
|
width: 200px;
|
||||||
|
color: #606266;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 4px;
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.elementset-labels {
|
||||||
|
margin-top: 30px;
|
||||||
|
width: 100%;
|
||||||
|
height: 300px;
|
||||||
|
}
|
||||||
|
.elementset-labels i {
|
||||||
|
color: #04b330;
|
||||||
|
font-size: 14px;
|
||||||
|
position: absolute;
|
||||||
|
left: 5px;
|
||||||
|
top: 6px;
|
||||||
|
}
|
||||||
|
.elementset-label {
|
||||||
|
padding: 2px 0 2px 25px;
|
||||||
|
position: relative;
|
||||||
|
cursor: default;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.elementset-label-disabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
background: #f1f3f4;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
.elementset-bottom-btns {
|
||||||
|
margin-top: 7px;
|
||||||
|
}
|
||||||
|
.unshow {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -19,7 +19,10 @@ const en = {
|
|||||||
clear: "Clear",
|
clear: "Clear",
|
||||||
name: 'Name',
|
name: 'Name',
|
||||||
cover: 'Cover',
|
cover: 'Cover',
|
||||||
signOut: 'Sign Out'
|
signOut: 'Sign Out',
|
||||||
|
select: 'Select',
|
||||||
|
ok: 'Ok',
|
||||||
|
all: 'All'
|
||||||
},
|
},
|
||||||
dashboard:{
|
dashboard:{
|
||||||
title:'Dashboard',
|
title:'Dashboard',
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export default {
|
|||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
sessionStorage.setItem("nz-token", res.data.token);
|
sessionStorage.setItem("nz-token", res.data.token);
|
||||||
sessionStorage.setItem("nz-username", this.loginData.username);
|
sessionStorage.setItem("nz-username", this.loginData.username);
|
||||||
|
localStorage.setItem("nz-username", this.loginData.username);
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: "/dashboard",
|
path: "/dashboard",
|
||||||
query: {
|
query: {
|
||||||
|
|||||||
@@ -39,10 +39,11 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<div v-if="!rightBox.isEdit" class="right-box-form-content-txt">{{endpoint.module.name}}</div>
|
<div v-if="!rightBox.isEdit" class="right-box-form-content-txt">{{endpoint.module.name}}</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--host-->
|
<!--asset-->
|
||||||
<el-form-item :label="$t('project.endpoint.host')" prop="host">
|
<el-form-item :label="$t('asset.asset')" prop="assetId">
|
||||||
<div class="right-box-form-content">
|
<div class="right-box-form-content">
|
||||||
<el-input class="right-box-row-with-btn" v-if="rightBox.isEdit" placeholder="" v-model="endpoint.host" size="small"></el-input>
|
<el-input class="right-box-row-with-btn" readonly v-if="rightBox.isEdit && endpoint.asset" placeholder="" :value="endpoint.asset.host" size="small"></el-input>
|
||||||
|
<el-input class="right-box-row-with-btn" readonly v-if="rightBox.isEdit && !endpoint.asset" placeholder="" value="" size="small"></el-input>
|
||||||
<el-popover placement="left"width="400" v-model="subBox.show">
|
<el-popover placement="left"width="400" v-model="subBox.show">
|
||||||
<div class="pop-window-assetType-content">
|
<div class="pop-window-assetType-content">
|
||||||
<!-- begin--顶部按钮-->
|
<!-- begin--顶部按钮-->
|
||||||
@@ -65,11 +66,9 @@
|
|||||||
<i v-if="assetSearch.dropdownShow" class="el-icon-caret-top"></i>
|
<i v-if="assetSearch.dropdownShow" class="el-icon-caret-top"></i>
|
||||||
<i v-if="!assetSearch.dropdownShow" class="el-icon-caret-bottom"></i>
|
<i v-if="!assetSearch.dropdownShow" class="el-icon-caret-bottom"></i>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button><div class="endpoint-asset-search-input">
|
||||||
<div class="endpoint-asset-search-input">
|
|
||||||
<el-input class="input-x-mini nz-input-group-middle" placeholder="" v-model="assetSearch.text"></el-input>
|
<el-input class="input-x-mini nz-input-group-middle" placeholder="" v-model="assetSearch.text"></el-input>
|
||||||
</div>
|
</div><button type="button" class="nz-btn nz-btn-size-small nz-btn-style-light nz-btn-style-square nz-input-group-append">
|
||||||
<button type="button" class="nz-btn nz-btn-size-small nz-btn-style-light nz-btn-style-square nz-input-group-append">
|
|
||||||
<i @click="searchAsset" class="el-icon-search"></i>
|
<i @click="searchAsset" class="el-icon-search"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@@ -112,6 +111,11 @@
|
|||||||
<div v-if="!rightBox.isEdit" class="right-box-form-content-txt">{{endpoint.host}}</div>
|
<div v-if="!rightBox.isEdit" class="right-box-form-content-txt">{{endpoint.host}}</div>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!--host-->
|
||||||
|
<el-form-item :label="$t('project.endpoint.host')" prop="host">
|
||||||
|
<el-input v-if="rightBox.isEdit" placeholder="" v-model="endpoint.host" size="small"></el-input>
|
||||||
|
<div v-if="!rightBox.isEdit" class="right-box-form-content-txt">{{endpoint.host}}</div>
|
||||||
|
</el-form-item>
|
||||||
<!--port-->
|
<!--port-->
|
||||||
<el-form-item :label="$t('project.endpoint.port')" prop="port">
|
<el-form-item :label="$t('project.endpoint.port')" prop="port">
|
||||||
<el-input v-if="rightBox.isEdit" placeholder="" v-model="endpoint.port" size="small"></el-input>
|
<el-input v-if="rightBox.isEdit" placeholder="" v-model="endpoint.port" size="small"></el-input>
|
||||||
@@ -145,7 +149,7 @@
|
|||||||
<el-form-item class="param-box-row-value" :rules="{required: true, message: $t('validate.required'), trigger: 'blur'}" :prop="'paramObj.' + index + '.value'">
|
<el-form-item class="param-box-row-value" :rules="{required: true, message: $t('validate.required'), trigger: 'blur'}" :prop="'paramObj.' + index + '.value'">
|
||||||
<el-input placeholder="value" size="mini" v-model="item.value"></el-input>
|
<el-input placeholder="value" size="mini" v-model="item.value"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<span class="endpoint-box-row-symbol" @click="removeParam(index)"><i class="nz-icon nz-icon-minus-square"></i></span>
|
<span class="param-box-row-symbol" @click="removeParam(index)"><i class="nz-icon nz-icon-minus-square"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="param-box-row" v-for="(item, index) in endpoint.paramObj" v-if="!rightBox.isEdit">
|
<div class="param-box-row" v-for="(item, index) in endpoint.paramObj" v-if="!rightBox.isEdit">
|
||||||
<div class="right-box-form-content-txt">{{item.key}}={{item.value}}</div>
|
<div class="right-box-form-content-txt">{{item.key}}={{item.value}}</div>
|
||||||
@@ -246,6 +250,9 @@
|
|||||||
'module.id':[
|
'module.id':[
|
||||||
{required:true,message:this.$t('validate.required'),trigger:'change'}
|
{required:true,message:this.$t('validate.required'),trigger:'change'}
|
||||||
],
|
],
|
||||||
|
assetId: [
|
||||||
|
{required:true,message:this.$t('validate.required'),trigger:'blur'}
|
||||||
|
],
|
||||||
port:[
|
port:[
|
||||||
{required:true,message:this.$t('validate.required'),trigger:'blur'}
|
{required:true,message:this.$t('validate.required'),trigger:'blur'}
|
||||||
],
|
],
|
||||||
@@ -473,202 +480,4 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
/* start--param*/
|
|
||||||
.param-btn {
|
|
||||||
float: right;
|
|
||||||
height: 27px;
|
|
||||||
margin-top: -3px;
|
|
||||||
}
|
|
||||||
.param-btn-active {
|
|
||||||
background-color: #656565;
|
|
||||||
color: white;
|
|
||||||
border: 1px solid #656565;
|
|
||||||
}
|
|
||||||
.param-btn-active:hover, .param-btn-active:focus {
|
|
||||||
background-color: #656565;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
.param-btn-clear {
|
|
||||||
background-color: #D4D4D4;
|
|
||||||
border: 1px solid #D4D4D4;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
.param-btn-clear:hover, .param-btn-clear:focus {
|
|
||||||
background-color: #D4D4D4;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.param-box {
|
|
||||||
border: 1px solid #DCDFE6;
|
|
||||||
border-radius: 4px;
|
|
||||||
padding: 0 10px;
|
|
||||||
}
|
|
||||||
.param-box-endpoint {
|
|
||||||
height: 325px;
|
|
||||||
}
|
|
||||||
.param-box-module {
|
|
||||||
height: 227px;
|
|
||||||
}
|
|
||||||
.param-box-row {
|
|
||||||
padding: 7px 0 0 0;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.param-box-row:last-of-type {
|
|
||||||
padding-bottom: 7px;
|
|
||||||
}
|
|
||||||
.param-box-row-key, .param-box-row-value {
|
|
||||||
display: inline-block;
|
|
||||||
width: 41.5%;
|
|
||||||
}
|
|
||||||
.param-box-row-eq {
|
|
||||||
display: inline-block;
|
|
||||||
width: 22px;
|
|
||||||
text-align: center;
|
|
||||||
height: 32px;
|
|
||||||
line-height: 32px;
|
|
||||||
color: #c4c7cF;
|
|
||||||
}
|
|
||||||
.param-box-row-symbol {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #c4c7cF;
|
|
||||||
border: 1px solid #c4c7cF;
|
|
||||||
text-align: center;
|
|
||||||
height: 12px;
|
|
||||||
width: 14px;
|
|
||||||
display: inline-block;
|
|
||||||
position: absolute;
|
|
||||||
top: 17px;
|
|
||||||
right: 25px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.param-box-row-symbol>i {
|
|
||||||
position: absolute;
|
|
||||||
top: 1px;
|
|
||||||
right: 1px;
|
|
||||||
}
|
|
||||||
/* end--param*/
|
|
||||||
/* begin--子弹框*/
|
|
||||||
.right-sub-box {
|
|
||||||
width: 380px;
|
|
||||||
height: 520px;
|
|
||||||
position: absolute;
|
|
||||||
right: 80px;
|
|
||||||
z-index: 2;
|
|
||||||
padding: 0 10px;
|
|
||||||
}
|
|
||||||
.right-sub-box .el-input-group {
|
|
||||||
width: 227px;
|
|
||||||
float: right;
|
|
||||||
margin: 7px 0 0 0;
|
|
||||||
}
|
|
||||||
.pop-item-wider{
|
|
||||||
padding-top:5px;
|
|
||||||
height: 400px;
|
|
||||||
}
|
|
||||||
/* begin--搜索框*/
|
|
||||||
.endpoint-asset-search {
|
|
||||||
display: inline-block;
|
|
||||||
float: left;
|
|
||||||
padding: 7px 8px 0 0;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.endpoint-asset-search-dropdown {
|
|
||||||
position: absolute;
|
|
||||||
top: 34px;
|
|
||||||
background-color: #444;
|
|
||||||
border-radius: 4px;
|
|
||||||
width: 44px;
|
|
||||||
left: 0;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
.endpoint-asset-search-dropdown-item {
|
|
||||||
text-align: center;
|
|
||||||
line-height: 22px;
|
|
||||||
height: 22px;
|
|
||||||
cursor: default;
|
|
||||||
color: white;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
.endpoint-asset-label-txt {
|
|
||||||
display: inline-block;
|
|
||||||
width: 19px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.endpoint-asset-search-dropdown-item:first-of-type {
|
|
||||||
border-radius: 4px 4px 0 0;
|
|
||||||
}
|
|
||||||
.endpoint-asset-search-dropdown-item:last-of-type {
|
|
||||||
border-radius: 0 0 4px 4px;
|
|
||||||
}
|
|
||||||
.endpoint-asset-search-dropdown-item:hover {
|
|
||||||
background-color: #222;
|
|
||||||
color: #ff9900;
|
|
||||||
}
|
|
||||||
.endpoint-asset-search-input {
|
|
||||||
display: inline-block;
|
|
||||||
width: 100px;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
/* end--搜索框*/
|
|
||||||
/* begin--table*/
|
|
||||||
.endpoint-sub-table {
|
|
||||||
margin-top:20px;
|
|
||||||
padding-top: 15px;
|
|
||||||
height: calc(100% - 45px);
|
|
||||||
}
|
|
||||||
.line-100 {
|
|
||||||
margin-bottom: 3px;
|
|
||||||
}
|
|
||||||
.endpoint-sub-table-head {
|
|
||||||
line-height: 28px;
|
|
||||||
height: 30px;
|
|
||||||
}
|
|
||||||
.endpoint-sub-table-row, .endpoint-sub-table-row-disabled {
|
|
||||||
line-height: 28px;
|
|
||||||
height: 30px;
|
|
||||||
color: #656565;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
.endpoint-sub-table-row:hover {
|
|
||||||
background-color: #dadada;
|
|
||||||
cursor: default;
|
|
||||||
|
|
||||||
}
|
|
||||||
.endpoint-sub-table-row-active {
|
|
||||||
background-color: #dadada;
|
|
||||||
}
|
|
||||||
.endpoint-sub-table-row-selected {
|
|
||||||
background-color: #656565;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
.endpoint-sub-table-col {
|
|
||||||
display: inline-block;
|
|
||||||
width: calc(50% - 15px);
|
|
||||||
padding-left: 10px;
|
|
||||||
}
|
|
||||||
.endpoint-sub-table-paginate-all {
|
|
||||||
position: absolute;
|
|
||||||
left: 10px;
|
|
||||||
bottom: 17px;
|
|
||||||
color: #5a5a5a;
|
|
||||||
}
|
|
||||||
.endpoint-sub-table-body {
|
|
||||||
font-size: 15px;
|
|
||||||
position: relative;
|
|
||||||
overflow: auto;
|
|
||||||
height: calc(100% - 54px);
|
|
||||||
}
|
|
||||||
.endpoint-sub-table-body-dialog {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background-color: #e9ebec;
|
|
||||||
position: absolute;
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
.endpoints-clear-btn {
|
|
||||||
margin: 6px 0 0 7px;
|
|
||||||
}
|
|
||||||
/* end--table*/
|
|
||||||
|
|
||||||
/* end--子弹框*/
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -300,6 +300,13 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getModelData() {
|
||||||
|
this.$get('asset', {pageNo: 1, pageSize: 999}).then(response => {
|
||||||
|
if (response.code === 200) {
|
||||||
|
this.assetSelect = response.data.list;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
//点击确认选择下拉内容
|
//点击确认选择下拉内容
|
||||||
tr_selectInfo(selectLabel,value,label,e){
|
tr_selectInfo(selectLabel,value,label,e){
|
||||||
this.stop_click(e);
|
this.stop_click(e);
|
||||||
@@ -497,16 +504,16 @@
|
|||||||
this.getHeight()
|
this.getHeight()
|
||||||
//搜索完成后存储在本地历史记录中
|
//搜索完成后存储在本地历史记录中
|
||||||
if(this.select_list.length!=0){
|
if(this.select_list.length!=0){
|
||||||
if (JSON.parse(localStorage.getItem('NZ_history_'+this.$route.path)) == undefined || JSON.parse(localStorage.getItem('NZ_history_'+this.$route.path)) == []) {
|
if (JSON.parse(localStorage.getItem('nz-history-'+this.$route.path)) == undefined || JSON.parse(localStorage.getItem('nz-history-'+this.$route.path)) == []) {
|
||||||
this.historyList.unshift(this.select_list);
|
this.historyList.unshift(this.select_list);
|
||||||
localStorage.setItem('NZ_history_'+this.$route.path, JSON.stringify(this.historyList));
|
localStorage.setItem('nz-history-'+this.$route.path, JSON.stringify(this.historyList));
|
||||||
} else {
|
} else {
|
||||||
this.historyList = JSON.parse(localStorage.getItem('NZ_history_'+this.$route.path));
|
this.historyList = JSON.parse(localStorage.getItem('nz-history-'+this.$route.path));
|
||||||
this.historyList.unshift(this.select_list);
|
this.historyList.unshift(this.select_list);
|
||||||
if (this.historyList.length > 10) {
|
if (this.historyList.length > 10) {
|
||||||
this.historyList.length = 10;
|
this.historyList.length = 10;
|
||||||
}
|
}
|
||||||
localStorage.setItem('NZ_history_'+this.$route.path, JSON.stringify(this.historyList));
|
localStorage.setItem('nz-history-'+this.$route.path, JSON.stringify(this.historyList));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.input_list = true;
|
this.input_list = true;
|
||||||
@@ -517,7 +524,7 @@
|
|||||||
clear_history() {
|
clear_history() {
|
||||||
this.historyList = [];
|
this.historyList = [];
|
||||||
this.history_once = [];
|
this.history_once = [];
|
||||||
localStorage.setItem('NZ_history_'+this.$route.path, JSON.stringify(this.historyList));
|
localStorage.setItem('nz-history-'+this.$route.path, JSON.stringify(this.historyList));
|
||||||
},
|
},
|
||||||
//再次点击之前的历史记录
|
//再次点击之前的历史记录
|
||||||
select_history(ind,e) {
|
select_history(ind,e) {
|
||||||
@@ -526,7 +533,7 @@
|
|||||||
this.change_sreach_show = true;
|
this.change_sreach_show = true;
|
||||||
this.localStorage_display = !this.localStorage_display;
|
this.localStorage_display = !this.localStorage_display;
|
||||||
this.select_list = [];
|
this.select_list = [];
|
||||||
JSON.parse(localStorage.getItem('NZ_history_'+this.$route.path)).splice(ind,1);
|
JSON.parse(localStorage.getItem('nz-history-'+this.$route.path)).splice(ind,1);
|
||||||
this.select_list = JSON.parse(JSON.stringify(this.history_once[ind]));
|
this.select_list = JSON.parse(JSON.stringify(this.history_once[ind]));
|
||||||
this.sreach_num = this.select_list.length;
|
this.sreach_num = this.select_list.length;
|
||||||
this.select_list.forEach(val => {
|
this.select_list.forEach(val => {
|
||||||
@@ -540,8 +547,8 @@
|
|||||||
},
|
},
|
||||||
// 获取历史记录 数据进行处理以便循环展示
|
// 获取历史记录 数据进行处理以便循环展示
|
||||||
restructure_historyDate() {
|
restructure_historyDate() {
|
||||||
if (localStorage.getItem('NZ_history_'+this.$route.path) !== undefined && localStorage.getItem('NZ_history_'+this.$route.path) !== null) {
|
if (localStorage.getItem('nz-history-'+this.$route.path) !== undefined && localStorage.getItem('nz-history-'+this.$route.path) !== null) {
|
||||||
this.history_once = JSON.parse(localStorage.getItem('NZ_history_'+this.$route.path));
|
this.history_once = JSON.parse(localStorage.getItem('nz-history-'+this.$route.path));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clear_search_list(e){
|
clear_search_list(e){
|
||||||
@@ -993,6 +1000,9 @@
|
|||||||
if (this.$route.path == '/project') {
|
if (this.$route.path == '/project') {
|
||||||
this.getAssetData();
|
this.getAssetData();
|
||||||
}
|
}
|
||||||
|
if (this.$route.path == '/asset') {
|
||||||
|
this.getModelData();
|
||||||
|
}
|
||||||
JSON.parse(JSON.stringify(this.searchMsg.searchLabelList)).forEach(val => {
|
JSON.parse(JSON.stringify(this.searchMsg.searchLabelList)).forEach(val => {
|
||||||
if(val.name=='Protocol'){
|
if(val.name=='Protocol'){
|
||||||
this.schemaTypeSelect=val.doc.data
|
this.schemaTypeSelect=val.doc.data
|
||||||
|
|||||||
@@ -26,13 +26,24 @@
|
|||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:resizable="false"
|
:resizable="false"
|
||||||
v-for="(item, index) in tableTitle"
|
v-for="(item, index) in tablelable"
|
||||||
v-if="item.show"
|
v-if="item.show"
|
||||||
:width="item.width"
|
:width="item.width"
|
||||||
:key="`col-${index}`"
|
:key="`col-${index}`"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
>
|
>
|
||||||
|
<template slot="header" slot-scope="scope">
|
||||||
|
<span v-if="index==0">
|
||||||
|
<span @click.stop="elementsetShow('shezhi',$event)">
|
||||||
|
<i class="el-icon-setting"></i>
|
||||||
|
</span>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</span>
|
||||||
|
<div v-else>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
<div v-if="item.prop == 'option'" class="content-right-options">
|
<div v-if="item.prop == 'option'" class="content-right-options">
|
||||||
<span @click="del(scope.row)" class="content-right-option"><i class="el-icon-delete"></i></span>
|
<span @click="del(scope.row)" class="content-right-option"><i class="el-icon-delete"></i></span>
|
||||||
@@ -62,6 +73,12 @@
|
|||||||
<project-box :project="viewProjectData" ref="projectBox" @reload="getTableData"></project-box>
|
<project-box :project="viewProjectData" ref="projectBox" @reload="getTableData"></project-box>
|
||||||
<module-box :module="viewModuleData" @reload="getTableData" ref="moduleBox"></module-box>
|
<module-box :module="viewModuleData" @reload="getTableData" ref="moduleBox"></module-box>
|
||||||
<asset-edit-unit :edit-unit-show='viewAsset' @refreshData="getTableData" @sendStateData="tabControl" ref="assetEditUnit"></asset-edit-unit>
|
<asset-edit-unit :edit-unit-show='viewAsset' @refreshData="getTableData" @sendStateData="tabControl" ref="assetEditUnit"></asset-edit-unit>
|
||||||
|
<element-set
|
||||||
|
v-clickoutside="elementsetHide"
|
||||||
|
:dropCol="dropCol"
|
||||||
|
@tablelable="tablelabelEmit"
|
||||||
|
ref="elementset"
|
||||||
|
></element-set>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@@ -115,6 +132,8 @@ export default {
|
|||||||
description: '',
|
description: '',
|
||||||
receiver: '',
|
receiver: '',
|
||||||
},
|
},
|
||||||
|
tablelable: [],
|
||||||
|
dropCol: [],
|
||||||
pageObj: {
|
pageObj: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
@@ -199,6 +218,36 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
elementsetShow(s, e) {
|
||||||
|
var eventfixed = {
|
||||||
|
shezhi: 0,
|
||||||
|
screen: 0
|
||||||
|
};
|
||||||
|
eventfixed[s] = 1;
|
||||||
|
e.preventDefault();
|
||||||
|
this.$store.commit('setHeaderTable', this.tablelable);
|
||||||
|
this.$store.commit('setEventfixed', eventfixed);
|
||||||
|
const h = document.documentElement.clientHeight;
|
||||||
|
const w = document.documentElement.clientWidth;
|
||||||
|
const dw = this.$refs.elementset.$el.offsetWidth;
|
||||||
|
const dh = this.$refs.elementset.$el.offsetHeight;
|
||||||
|
let positionx =
|
||||||
|
e.clientX + dw <= w - 10 ? e.clientX - 250 : e.clientX - 250 - dw;
|
||||||
|
let positiony =
|
||||||
|
e.clientY + dh <= h - 10
|
||||||
|
? e.clientY - 70
|
||||||
|
: e.clientY - 70 - (e.clientY + dh - h);
|
||||||
|
this.$store.commit('setPosition', { positionx, positiony });
|
||||||
|
},
|
||||||
|
elementsetHide() {
|
||||||
|
//悬浮点击空白隐藏
|
||||||
|
this.$refs.elementset.elementsetHide();
|
||||||
|
},
|
||||||
|
tablelabelEmit(data) {
|
||||||
|
//获取子组件传过来的参数
|
||||||
|
this.$store.commit('setHeaderTable', data);
|
||||||
|
this.tablelable = data;
|
||||||
|
},
|
||||||
toEdit: function(u) {
|
toEdit: function(u) {
|
||||||
this.alertRule = Object.assign({}, u);
|
this.alertRule = Object.assign({}, u);
|
||||||
this.$refs.alertConfigBox.show(true, true);
|
this.$refs.alertConfigBox.show(true, true);
|
||||||
@@ -334,6 +383,12 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
|
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.tableTitle;
|
||||||
|
this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.tableTitle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -23,12 +23,23 @@
|
|||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:resizable="false"
|
:resizable="false"
|
||||||
v-for="(item, index) in tableTitle"
|
v-for="(item, index) in tablelable"
|
||||||
v-if="item.show"
|
v-if="item.show"
|
||||||
:width="item.width"
|
:width="item.width"
|
||||||
:key="`col-${index}`"
|
:key="`col-${index}`"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
>
|
>
|
||||||
|
<template slot="header" slot-scope="scope">
|
||||||
|
<span v-if="index==0">
|
||||||
|
<span @click.stop="elementsetShow('shezhi',$event)">
|
||||||
|
<i class="el-icon-setting"></i>
|
||||||
|
</span>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</span>
|
||||||
|
<div v-else>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
<span v-if="item.prop == 'alertRule'" class="content-right-option" @click="viewRule(scope.row[item.prop].id)">
|
<span v-if="item.prop == 'alertRule'" class="content-right-option" @click="viewRule(scope.row[item.prop].id)">
|
||||||
{{scope.row[item.prop].alertName}}
|
{{scope.row[item.prop].alertName}}
|
||||||
@@ -63,6 +74,12 @@
|
|||||||
<project-box :project="viewProjectData" ref="projectBox" @reload="getAlertList"></project-box>
|
<project-box :project="viewProjectData" ref="projectBox" @reload="getAlertList"></project-box>
|
||||||
<module-box :module="viewModuleData" @reload="getAlertList" ref="moduleBox"></module-box>
|
<module-box :module="viewModuleData" @reload="getAlertList" ref="moduleBox"></module-box>
|
||||||
<asset-edit-unit :edit-unit-show='viewAssetState' @refreshData="getAlertList" @sendStateData="tabControl" ref="assetEditUnit"></asset-edit-unit>
|
<asset-edit-unit :edit-unit-show='viewAssetState' @refreshData="getAlertList" @sendStateData="tabControl" ref="assetEditUnit"></asset-edit-unit>
|
||||||
|
<element-set
|
||||||
|
v-clickoutside="elementsetHide"
|
||||||
|
:dropCol="dropCol"
|
||||||
|
@tablelable="tablelabelEmit"
|
||||||
|
ref="elementset"
|
||||||
|
></element-set>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@@ -77,11 +94,6 @@ export default {
|
|||||||
total:13
|
total:13
|
||||||
},
|
},
|
||||||
tableTitle: [
|
tableTitle: [
|
||||||
{
|
|
||||||
label:'ID',
|
|
||||||
prop:'id',
|
|
||||||
show:false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: this.$t("alert.alertName"),
|
label: this.$t("alert.alertName"),
|
||||||
prop: 'alertRule',
|
prop: 'alertRule',
|
||||||
@@ -145,6 +157,8 @@ export default {
|
|||||||
searchLabel: { //搜索参数
|
searchLabel: { //搜索参数
|
||||||
|
|
||||||
},
|
},
|
||||||
|
tablelable: [],
|
||||||
|
dropCol: [],
|
||||||
severityData: [
|
severityData: [
|
||||||
{
|
{
|
||||||
key: 'medium',
|
key: 'medium',
|
||||||
@@ -179,6 +193,36 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
elementsetShow(s, e) {
|
||||||
|
var eventfixed = {
|
||||||
|
shezhi: 0,
|
||||||
|
screen: 0
|
||||||
|
};
|
||||||
|
eventfixed[s] = 1;
|
||||||
|
e.preventDefault();
|
||||||
|
this.$store.commit('setHeaderTable', this.tablelable);
|
||||||
|
this.$store.commit('setEventfixed', eventfixed);
|
||||||
|
const h = document.documentElement.clientHeight;
|
||||||
|
const w = document.documentElement.clientWidth;
|
||||||
|
const dw = this.$refs.elementset.$el.offsetWidth;
|
||||||
|
const dh = this.$refs.elementset.$el.offsetHeight;
|
||||||
|
let positionx =
|
||||||
|
e.clientX + dw <= w - 10 ? e.clientX - 250 : e.clientX - 250 - dw;
|
||||||
|
let positiony =
|
||||||
|
e.clientY + dh <= h - 10
|
||||||
|
? e.clientY - 70
|
||||||
|
: e.clientY - 70 - (e.clientY + dh - h);
|
||||||
|
this.$store.commit('setPosition', { positionx, positiony });
|
||||||
|
},
|
||||||
|
elementsetHide() {
|
||||||
|
//悬浮点击空白隐藏
|
||||||
|
this.$refs.elementset.elementsetHide();
|
||||||
|
},
|
||||||
|
tablelabelEmit(data) {
|
||||||
|
//获取子组件传过来的参数
|
||||||
|
this.$store.commit('setHeaderTable', data);
|
||||||
|
this.tablelable = data;
|
||||||
|
},
|
||||||
getAlertList: function() {
|
getAlertList: function() {
|
||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
@@ -274,6 +318,12 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getAlertList();
|
this.getAlertList();
|
||||||
|
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.tableTitle;
|
||||||
|
this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.tableTitle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -94,14 +94,24 @@
|
|||||||
border
|
border
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in tableTitle"
|
v-for="(item, index) in tablelable"
|
||||||
v-if="item.show"
|
v-if="item.show"
|
||||||
min-width="110"
|
min-width="110"
|
||||||
:width="item.width"
|
:width="item.width"
|
||||||
:key="`col_${index}`"
|
:key="`col_${index}`"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
>
|
>
|
||||||
{{item}}
|
<template slot="header" slot-scope="scope">
|
||||||
|
<span v-if="index==0">
|
||||||
|
<span @click.stop="elementsetShow('shezhi',$event)">
|
||||||
|
<i class="el-icon-setting"></i>
|
||||||
|
</span>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</span>
|
||||||
|
<div v-else>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
<div v-if="item.prop=='ID'">
|
<div v-if="item.prop=='ID'">
|
||||||
<span>{{scope.row.id}}</span>
|
<span>{{scope.row.id}}</span>
|
||||||
@@ -169,6 +179,12 @@
|
|||||||
@sendStateData="tabControl"></asset-add-unit>
|
@sendStateData="tabControl"></asset-add-unit>
|
||||||
<asset-edit-unit :edit-unit-show='editUnitShow' @refreshData="flushData" @sendStateData="tabControl"
|
<asset-edit-unit :edit-unit-show='editUnitShow' @refreshData="flushData" @sendStateData="tabControl"
|
||||||
ref="assetEditUnit"></asset-edit-unit>
|
ref="assetEditUnit"></asset-edit-unit>
|
||||||
|
<element-set
|
||||||
|
v-clickoutside="elementsetHide"
|
||||||
|
:dropCol="dropCol"
|
||||||
|
@tablelable="tablelabelEmit"
|
||||||
|
ref="elementset"
|
||||||
|
></element-set>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -201,6 +217,8 @@
|
|||||||
},
|
},
|
||||||
searchLabel: {}, //搜索参数
|
searchLabel: {}, //搜索参数
|
||||||
checkList: [],
|
checkList: [],
|
||||||
|
tablelable: [],
|
||||||
|
dropCol: [],
|
||||||
tableTitle: [
|
tableTitle: [
|
||||||
{
|
{
|
||||||
label: this.$t("asset.tableTitle.id"),
|
label: this.$t("asset.tableTitle.id"),
|
||||||
@@ -355,6 +373,36 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
elementsetShow(s, e) {
|
||||||
|
var eventfixed = {
|
||||||
|
shezhi: 0,
|
||||||
|
screen: 0
|
||||||
|
};
|
||||||
|
eventfixed[s] = 1;
|
||||||
|
e.preventDefault();
|
||||||
|
this.$store.commit('setHeaderTable', this.tablelable);
|
||||||
|
this.$store.commit('setEventfixed', eventfixed);
|
||||||
|
const h = document.documentElement.clientHeight;
|
||||||
|
const w = document.documentElement.clientWidth;
|
||||||
|
const dw = this.$refs.elementset.$el.offsetWidth;
|
||||||
|
const dh = this.$refs.elementset.$el.offsetHeight;
|
||||||
|
let positionx =
|
||||||
|
e.clientX + dw <= w - 10 ? e.clientX - 250 : e.clientX - 250 - dw;
|
||||||
|
let positiony =
|
||||||
|
e.clientY + dh <= h - 10
|
||||||
|
? e.clientY - 70
|
||||||
|
: e.clientY - 70 - (e.clientY + dh - h);
|
||||||
|
this.$store.commit('setPosition', { positionx, positiony });
|
||||||
|
},
|
||||||
|
elementsetHide() {
|
||||||
|
//悬浮点击空白隐藏
|
||||||
|
this.$refs.elementset.elementsetHide();
|
||||||
|
},
|
||||||
|
tablelabelEmit(data) {
|
||||||
|
//获取子组件传过来的参数
|
||||||
|
this.$store.commit('setHeaderTable', data);
|
||||||
|
this.tablelable = data;
|
||||||
|
},
|
||||||
ssss(id, sn) {
|
ssss(id, sn) {
|
||||||
let routeData = this.$router.resolve({
|
let routeData = this.$router.resolve({
|
||||||
name: "terminal",
|
name: "terminal",
|
||||||
@@ -559,9 +607,12 @@
|
|||||||
this.getUserData();
|
this.getUserData();
|
||||||
this.getAssetData();
|
this.getAssetData();
|
||||||
this.getIDCOptionData();
|
this.getIDCOptionData();
|
||||||
window.onresize = () => {
|
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
this.tableHeight = document.documentElement.clientHeight - 200;
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
}
|
: this.tableTitle;
|
||||||
|
this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.tableTitle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -26,12 +26,23 @@
|
|||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:resizable="false"
|
:resizable="false"
|
||||||
v-for="(item, index) in tableTitle"
|
v-for="(item, index) in tablelable"
|
||||||
v-if="item.show"
|
v-if="item.show"
|
||||||
:width="item.width"
|
:width="item.width"
|
||||||
:key="`col-${index}`"
|
:key="`col-${index}`"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
>
|
>
|
||||||
|
<template slot="header" slot-scope="scope">
|
||||||
|
<span v-if="index==0">
|
||||||
|
<span @click.stop="elementsetShow('shezhi',$event)">
|
||||||
|
<i class="el-icon-setting"></i>
|
||||||
|
</span>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</span>
|
||||||
|
<div v-else>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
<div v-if="item.prop == 'option'" class="content-right-options">
|
<div v-if="item.prop == 'option'" class="content-right-options">
|
||||||
<span @click="del(scope.row)" class="content-right-option"><i class="el-icon-delete"></i></span>
|
<span @click="del(scope.row)" class="content-right-option"><i class="el-icon-delete"></i></span>
|
||||||
@@ -119,8 +130,13 @@
|
|||||||
<!-- end--表单-->
|
<!-- end--表单-->
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
<element-set
|
||||||
|
v-clickoutside="elementsetHide"
|
||||||
|
:dropCol="dropCol"
|
||||||
|
@tablelable="tablelabelEmit"
|
||||||
|
ref="elementset"
|
||||||
|
></element-set>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
@@ -161,15 +177,10 @@ export default {
|
|||||||
prop: 'email',
|
prop: 'email',
|
||||||
show: true,
|
show: true,
|
||||||
}, /*{
|
}, /*{
|
||||||
label: this.$t("config.account.language"),
|
|
||||||
prop: 'lang',
|
|
||||||
show: true,
|
|
||||||
width: 200
|
|
||||||
},*/ {
|
|
||||||
label: this.$t('config.account.receiver'),
|
label: this.$t('config.account.receiver'),
|
||||||
prop: 'receiver',
|
prop: 'receiver',
|
||||||
show: false,
|
show: false,
|
||||||
}, {
|
}, */{
|
||||||
label: this.$t('config.account.createTime'),
|
label: this.$t('config.account.createTime'),
|
||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
show: true,
|
show: true,
|
||||||
@@ -185,6 +196,8 @@ export default {
|
|||||||
width: 100
|
width: 100
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
tablelable: [],
|
||||||
|
dropCol: [],
|
||||||
rules:{
|
rules:{
|
||||||
username:[
|
username:[
|
||||||
{required:true,message:this.$t('validate.required'),trigger:'blur'}
|
{required:true,message:this.$t('validate.required'),trigger:'blur'}
|
||||||
@@ -237,6 +250,36 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
elementsetShow(s, e) {
|
||||||
|
var eventfixed = {
|
||||||
|
shezhi: 0,
|
||||||
|
screen: 0
|
||||||
|
};
|
||||||
|
eventfixed[s] = 1;
|
||||||
|
e.preventDefault();
|
||||||
|
this.$store.commit('setHeaderTable', this.tablelable);
|
||||||
|
this.$store.commit('setEventfixed', eventfixed);
|
||||||
|
const h = document.documentElement.clientHeight;
|
||||||
|
const w = document.documentElement.clientWidth;
|
||||||
|
const dw = this.$refs.elementset.$el.offsetWidth;
|
||||||
|
const dh = this.$refs.elementset.$el.offsetHeight;
|
||||||
|
let positionx =
|
||||||
|
e.clientX + dw <= w - 10 ? e.clientX - 250 : e.clientX - 250 - dw;
|
||||||
|
let positiony =
|
||||||
|
e.clientY + dh <= h - 10
|
||||||
|
? e.clientY - 70
|
||||||
|
: e.clientY - 70 - (e.clientY + dh - h);
|
||||||
|
this.$store.commit('setPosition', { positionx, positiony });
|
||||||
|
},
|
||||||
|
elementsetHide() {
|
||||||
|
//悬浮点击空白隐藏
|
||||||
|
this.$refs.elementset.elementsetHide();
|
||||||
|
},
|
||||||
|
tablelabelEmit(data) {
|
||||||
|
//获取子组件传过来的参数
|
||||||
|
this.$store.commit('setHeaderTable', data);
|
||||||
|
this.tablelable = data;
|
||||||
|
},
|
||||||
edit: function(u) {
|
edit: function(u) {
|
||||||
this.user = Object.assign({}, u);
|
this.user = Object.assign({}, u);
|
||||||
this.rightBox.isEdit = true;
|
this.rightBox.isEdit = true;
|
||||||
@@ -417,6 +460,12 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
this.initReceiverData();
|
this.initReceiverData();
|
||||||
|
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.tableTitle;
|
||||||
|
this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.tableTitle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -20,23 +20,30 @@
|
|||||||
<div class="top-tool-search float-right"><search-input :searchMsg="searchMsg" @search="search"></search-input></div>
|
<div class="top-tool-search float-right"><search-input :searchMsg="searchMsg" @search="search"></search-input></div>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="tableData" border height="calc(100% - 65px)" style="width: 100%;">
|
<el-table :data="tableData" border height="calc(100% - 65px)" style="width: 100%;">
|
||||||
<el-table-column :resizable="false" v-for="(item, index) in tableTitle" v-if="item.show" :width="item.width" :key="`col-${index}`" :label="item.label">
|
<el-table-column :resizable="false" v-for="(item, index) in tablelable" v-if="item.show" :width="item.width" :key="`col-${index}`" :label="item.label">
|
||||||
|
<template slot="header" slot-scope="scope">
|
||||||
|
<span v-if="index==0">
|
||||||
|
<span @click.stop="elementsetShow('shezhi',$event)">
|
||||||
|
<i class="el-icon-setting"></i>
|
||||||
|
</span>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</span>
|
||||||
|
<div v-else>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
<span v-if="item.prop == 'idc'">{{scope.row[item.prop].name}}</span>
|
<span v-if="item.prop == 'idc'">{{scope.row[item.prop].name}}</span>
|
||||||
<span v-else-if="item.prop == 'type'">
|
<span v-else-if="item.prop == 'type'">
|
||||||
{{scope.row[item.prop] == '1' ? 'Global' : ''}}
|
{{scope.row[item.prop] == '1' ? 'Global' : ''}}
|
||||||
{{scope.row[item.prop] == '2' ? 'Per-Datacenter' : ''}}
|
{{scope.row[item.prop] == '2' ? 'Per-Datacenter' : ''}}
|
||||||
</span>
|
</span>
|
||||||
<span v-else>{{scope.row[item.prop]}}</span>
|
<div v-else-if="item.prop == 'option'" class="content-right-options">
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column :resizable="false" :label="$t('config.account.option')" width="100">
|
|
||||||
<template slot-scope="scope" :column="item">
|
|
||||||
<div class="content-right-options">
|
|
||||||
<span @click="del(scope.row)" class="content-right-option"><i class="el-icon-delete"></i></span>
|
<span @click="del(scope.row)" class="content-right-option"><i class="el-icon-delete"></i></span>
|
||||||
<span @click="detail(scope.row)" class="content-right-option"><i class="el-icon-view"></i></span>
|
<span @click="detail(scope.row)" class="content-right-option"><i class="el-icon-view"></i></span>
|
||||||
<span @click="toEdit(scope.row)" class="content-right-option"><i class="el-icon-edit-outline"></i></span>
|
<span @click="toEdit(scope.row)" class="content-right-option"><i class="el-icon-edit-outline"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
<span v-else>{{scope.row[item.prop]}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -114,6 +121,12 @@
|
|||||||
<!-- end--表单-->
|
<!-- end--表单-->
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
<element-set
|
||||||
|
v-clickoutside="elementsetHide"
|
||||||
|
:dropCol="dropCol"
|
||||||
|
@tablelable="tablelabelEmit"
|
||||||
|
ref="elementset"
|
||||||
|
></element-set>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@@ -189,8 +202,15 @@ export default {
|
|||||||
label: this.$t("config.promServer.type"),
|
label: this.$t("config.promServer.type"),
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
show: true,
|
show: true,
|
||||||
|
}, {
|
||||||
|
label: this.$t('config.account.option'),
|
||||||
|
prop: 'option',
|
||||||
|
show: true,
|
||||||
|
width: 100
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
tablelable: [],
|
||||||
|
dropCol: [],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
idcData: [],
|
idcData: [],
|
||||||
typeData: [
|
typeData: [
|
||||||
@@ -262,6 +282,36 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
elementsetShow(s, e) {
|
||||||
|
var eventfixed = {
|
||||||
|
shezhi: 0,
|
||||||
|
screen: 0
|
||||||
|
};
|
||||||
|
eventfixed[s] = 1;
|
||||||
|
e.preventDefault();
|
||||||
|
this.$store.commit('setHeaderTable', this.tablelable);
|
||||||
|
this.$store.commit('setEventfixed', eventfixed);
|
||||||
|
const h = document.documentElement.clientHeight;
|
||||||
|
const w = document.documentElement.clientWidth;
|
||||||
|
const dw = this.$refs.elementset.$el.offsetWidth;
|
||||||
|
const dh = this.$refs.elementset.$el.offsetHeight;
|
||||||
|
let positionx =
|
||||||
|
e.clientX + dw <= w - 10 ? e.clientX - 250 : e.clientX - 250 - dw;
|
||||||
|
let positiony =
|
||||||
|
e.clientY + dh <= h - 10
|
||||||
|
? e.clientY - 70
|
||||||
|
: e.clientY - 70 - (e.clientY + dh - h);
|
||||||
|
this.$store.commit('setPosition', { positionx, positiony });
|
||||||
|
},
|
||||||
|
elementsetHide() {
|
||||||
|
//悬浮点击空白隐藏
|
||||||
|
this.$refs.elementset.elementsetHide();
|
||||||
|
},
|
||||||
|
tablelabelEmit(data) {
|
||||||
|
//获取子组件传过来的参数
|
||||||
|
this.$store.commit('setHeaderTable', data);
|
||||||
|
this.tablelable = data;
|
||||||
|
},
|
||||||
toEdit: function(u) {
|
toEdit: function(u) {
|
||||||
this.promServer = Object.assign({}, u);
|
this.promServer = Object.assign({}, u);
|
||||||
this.rightBox.isEdit = true;
|
this.rightBox.isEdit = true;
|
||||||
@@ -529,6 +579,12 @@ export default {
|
|||||||
mounted: function() {
|
mounted: function() {
|
||||||
this.getIdcData();
|
this.getIdcData();
|
||||||
this.getUserData();
|
this.getUserData();
|
||||||
|
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.tableTitle;
|
||||||
|
this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.tableTitle;
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'promServer.idc': function(n, o) {
|
'promServer.idc': function(n, o) {
|
||||||
|
|||||||
@@ -72,28 +72,35 @@
|
|||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:resizable="false"
|
:resizable="false"
|
||||||
v-for="(item, index) in endpointTableTitle"
|
v-for="(item, index) in tablelable"
|
||||||
v-if="item.show"
|
v-if="item.show"
|
||||||
:width="item.width"
|
:width="item.width"
|
||||||
:key="`col-${index}`"
|
:key="`col-${index}`"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
>
|
>
|
||||||
|
<template slot="header" slot-scope="scope">
|
||||||
|
<span v-if="index==0">
|
||||||
|
<span @click.stop="elementsetShow('shezhi',$event)">
|
||||||
|
<i class="el-icon-setting"></i>
|
||||||
|
</span>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</span>
|
||||||
|
<div v-else>
|
||||||
|
<span>{{item.label}}</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
<span v-if="item.prop == 'asset' && scope.row[item.prop]" class="content-right-option" @click="viewAsset(scope.row[item.prop].id)">{{scope.row[item.prop].host}}</span>
|
<span v-if="item.prop == 'asset' && scope.row[item.prop]" class="content-right-option" @click="viewAsset(scope.row[item.prop].id)">{{scope.row[item.prop].host}}</span>
|
||||||
<span v-else-if="item.prop == 'param'">
|
<span v-else-if="item.prop == 'param'">
|
||||||
<span v-for="p in scope.row.paramObj">{{p.key}}={{p.value}},</span>
|
<span v-for="p in scope.row.paramObj">{{p.key}}={{p.value}},</span>
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="item.prop == 'lastUpdate'">{{dateFormat(scope.row.lastUpdate)}}</span>
|
<div v-else-if="item.prop == 'option'" class="content-right-options">
|
||||||
<span v-else-if="item.prop == 'state'" :style="{color: scope.row.state == 0 ? 'red' : (scope.row.state == 0 ? 'green' : '')}">{{scope.row.state == 1 ? 'up' : ''}}{{scope.row.state == 0 ? 'down' : ''}}</span>
|
|
||||||
<span v-else>{{scope.row[item.prop]}}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column :resizable="false" :label="$t('overall.option')" width="100">
|
|
||||||
<template slot-scope="scope" :column="item">
|
|
||||||
<div class="content-right-options">
|
|
||||||
<span @click.stop="endpointDetail(scope.row)" class="content-right-option"><i class="el-icon-view"></i></span>
|
<span @click.stop="endpointDetail(scope.row)" class="content-right-option"><i class="el-icon-view"></i></span>
|
||||||
<span @click.stop="toEditEndpoint(scope.row)" class="content-right-option"><i class="el-icon-edit-outline"></i></span>
|
<span @click.stop="toEditEndpoint(scope.row)" class="content-right-option"><i class="el-icon-edit-outline"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
<span v-else-if="item.prop == 'lastUpdate'">{{dateFormat(scope.row.lastUpdate)}}</span>
|
||||||
|
<span v-else-if="item.prop == 'state'" :style="{color: scope.row.state == 0 ? 'red' : (scope.row.state == 0 ? 'green' : '')}">{{scope.row.state == 1 ? 'up' : ''}}{{scope.row.state == 0 ? 'down' : ''}}</span>
|
||||||
|
<span v-else>{{scope.row[item.prop]}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -104,6 +111,12 @@
|
|||||||
<edit-endpoint-box :currentProject="currentProject" :currentModule="currentModule" :endpoint="editEndpoint" @reload="getEndpointTableData" ref="editEndpointBox"></edit-endpoint-box>
|
<edit-endpoint-box :currentProject="currentProject" :currentModule="currentModule" :endpoint="editEndpoint" @reload="getEndpointTableData" ref="editEndpointBox"></edit-endpoint-box>
|
||||||
<add-endpoint-box :currentProject="currentProject" :currentModule="currentModule" @reload="getEndpointTableData" ref="addEndpointBox"></add-endpoint-box>
|
<add-endpoint-box :currentProject="currentProject" :currentModule="currentModule" @reload="getEndpointTableData" ref="addEndpointBox"></add-endpoint-box>
|
||||||
<asset-edit-unit :edit-unit-show='viewAssetState' @refreshData="getEndpointTableData" @sendStateData="tabControl" ref="assetEditUnit"></asset-edit-unit>
|
<asset-edit-unit :edit-unit-show='viewAssetState' @refreshData="getEndpointTableData" @sendStateData="tabControl" ref="assetEditUnit"></asset-edit-unit>
|
||||||
|
<element-set
|
||||||
|
v-clickoutside="elementsetHide"
|
||||||
|
:dropCol="dropCol"
|
||||||
|
@tablelable="tablelabelEmit"
|
||||||
|
ref="elementset"
|
||||||
|
></element-set>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -118,8 +131,11 @@
|
|||||||
{
|
{
|
||||||
label: this.$t("project.endpoint.endpointId"),
|
label: this.$t("project.endpoint.endpointId"),
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
|
show: true
|
||||||
|
},{
|
||||||
|
label: this.$t("project.endpoint.asset"),
|
||||||
|
prop: 'asset',
|
||||||
show: true,
|
show: true,
|
||||||
width: 110
|
|
||||||
},{
|
},{
|
||||||
label: this.$t("project.endpoint.host"),
|
label: this.$t("project.endpoint.host"),
|
||||||
prop: 'host',
|
prop: 'host',
|
||||||
@@ -145,9 +161,9 @@
|
|||||||
prop: 'lastUpdate',
|
prop: 'lastUpdate',
|
||||||
show: true,
|
show: true,
|
||||||
}, {
|
}, {
|
||||||
label: this.$t("project.endpoint.asset"),
|
label: this.$t('config.account.option'),
|
||||||
prop: 'asset',
|
prop: 'option',
|
||||||
show: true,
|
show: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
endpointTableData: [],
|
endpointTableData: [],
|
||||||
@@ -179,6 +195,8 @@
|
|||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
total: 0
|
total: 0
|
||||||
},
|
},
|
||||||
|
tablelable: [],
|
||||||
|
dropCol: [],
|
||||||
moduleList: [],
|
moduleList: [],
|
||||||
projectList: [],
|
projectList: [],
|
||||||
currentProject: {id: '', name: '', remark: ''}, //endpoint弹框、module列表用来回显project
|
currentProject: {id: '', name: '', remark: ''}, //endpoint弹框、module列表用来回显project
|
||||||
@@ -216,6 +234,36 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
elementsetShow(s, e) {
|
||||||
|
var eventfixed = {
|
||||||
|
shezhi: 0,
|
||||||
|
screen: 0
|
||||||
|
};
|
||||||
|
eventfixed[s] = 1;
|
||||||
|
e.preventDefault();
|
||||||
|
this.$store.commit('setHeaderTable', this.tablelable);
|
||||||
|
this.$store.commit('setEventfixed', eventfixed);
|
||||||
|
const h = document.documentElement.clientHeight;
|
||||||
|
const w = document.documentElement.clientWidth;
|
||||||
|
const dw = this.$refs.elementset.$el.offsetWidth;
|
||||||
|
const dh = this.$refs.elementset.$el.offsetHeight;
|
||||||
|
let positionx =
|
||||||
|
e.clientX + dw <= w - 10 ? e.clientX - 250 : e.clientX - 250 - dw;
|
||||||
|
let positiony =
|
||||||
|
e.clientY + dh <= h - 10
|
||||||
|
? e.clientY - 70
|
||||||
|
: e.clientY - 70 - (e.clientY + dh - h);
|
||||||
|
this.$store.commit('setPosition', { positionx, positiony });
|
||||||
|
},
|
||||||
|
elementsetHide() {
|
||||||
|
//悬浮点击空白隐藏
|
||||||
|
this.$refs.elementset.elementsetHide();
|
||||||
|
},
|
||||||
|
tablelabelEmit(data) {
|
||||||
|
//获取子组件传过来的参数
|
||||||
|
this.$store.commit('setHeaderTable', data);
|
||||||
|
this.tablelable = data;
|
||||||
|
},
|
||||||
getEndpointTableData() {
|
getEndpointTableData() {
|
||||||
this.endpointSearchLabel.moduleId = this.currentModule.id;
|
this.endpointSearchLabel.moduleId = this.currentModule.id;
|
||||||
this.$set(this.endpointSearchLabel, 'pageNo', this.endpointPageObj.pageNo);
|
this.$set(this.endpointSearchLabel, 'pageNo', this.endpointPageObj.pageNo);
|
||||||
@@ -319,9 +367,9 @@
|
|||||||
|
|
||||||
//弹出endpoint编辑页
|
//弹出endpoint编辑页
|
||||||
toEditEndpoint(endpoint) {
|
toEditEndpoint(endpoint) {
|
||||||
|
this.editEndpoint = JSON.parse(JSON.stringify(endpoint));
|
||||||
this.rightBoxHandler(3);
|
this.rightBoxHandler(3);
|
||||||
this.$refs.editEndpointBox.toEdit(true);
|
this.$refs.editEndpointBox.toEdit(true);
|
||||||
this.editEndpoint = JSON.parse(JSON.stringify(endpoint));
|
|
||||||
if (!this.editEndpoint.paramObj) {
|
if (!this.editEndpoint.paramObj) {
|
||||||
this.$set(this.editEndpoint, 'paramObj', []);
|
this.$set(this.editEndpoint, 'paramObj', []);
|
||||||
}
|
}
|
||||||
@@ -448,6 +496,12 @@
|
|||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.getEndpointTableData();
|
this.getEndpointTableData();
|
||||||
}, 200);
|
}, 200);
|
||||||
|
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.endpointTableTitle;
|
||||||
|
this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
|
||||||
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
|
||||||
|
: this.endpointTableTitle;
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
currentProjectChange() {
|
currentProjectChange() {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import qs from 'qs'
|
|||||||
import he from "element-ui/src/locale/lang/he"; //引入数据格式化
|
import he from "element-ui/src/locale/lang/he"; //引入数据格式化
|
||||||
//axios.defaults.baseURL = 'http://localhost:8088/nz-admin';
|
//axios.defaults.baseURL = 'http://localhost:8088/nz-admin';
|
||||||
// axios.defaults.baseURL = 'http://192.168.41.101:8088/nz-admin';
|
// axios.defaults.baseURL = 'http://192.168.41.101:8088/nz-admin';
|
||||||
axios.defaults.baseURL = 'http://192.168.40.247:8080/nz-admin';
|
//axios.defaults.baseURL = 'http://192.168.40.247:8080/nz-admin';
|
||||||
|
|
||||||
axios.interceptors.request.use(config => {
|
axios.interceptors.request.use(config => {
|
||||||
// config.headers = {
|
// config.headers = {
|
||||||
|
|||||||
@@ -10,13 +10,15 @@ import Vuex from 'vuex'
|
|||||||
import store from './store/index';
|
import store from './store/index';
|
||||||
import App from './App'
|
import App from './App'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
|
import VueResource from 'vue-resource'
|
||||||
import './assets/stylus/index.scss'
|
import './assets/stylus/index.scss'
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import {post, get, put, del} from './http.js'
|
import {post, get, put, del} from './http.js'
|
||||||
|
|
||||||
import Pagination from "./components/common/pagination"; //引入全局分页组件
|
import Pagination from "./components/common/pagination"; //引入全局分页组件
|
||||||
import searchInput from "./components/common/searchInput"; //搜索框组件
|
import searchInput from "./components/common/searchInput"; //搜索框组件
|
||||||
|
import elementSet from "./components/common/elementSet"; //自定义表头组件
|
||||||
|
|
||||||
import projectBox from './components/common/rightBox/projectBox'; //project弹框组件
|
import projectBox from './components/common/rightBox/projectBox'; //project弹框组件
|
||||||
import moduleBox from './components/common/rightBox/moduleBox'; //module弹框组件
|
import moduleBox from './components/common/rightBox/moduleBox'; //module弹框组件
|
||||||
import editEndpointBox from './components/common/rightBox/editEndpointBox'; //endpoint弹框组件
|
import editEndpointBox from './components/common/rightBox/editEndpointBox'; //endpoint弹框组件
|
||||||
@@ -29,6 +31,7 @@ import panelBox from "./components/common/rightBox/panelBox"; //面板弹框组
|
|||||||
|
|
||||||
Vue.component("Pagination", Pagination);
|
Vue.component("Pagination", Pagination);
|
||||||
Vue.component("searchInput", searchInput);
|
Vue.component("searchInput", searchInput);
|
||||||
|
Vue.component("element-set", elementSet);
|
||||||
Vue.component("project-box", projectBox);
|
Vue.component("project-box", projectBox);
|
||||||
Vue.component("module-box", moduleBox);
|
Vue.component("module-box", moduleBox);
|
||||||
Vue.component("edit-endpoint-box", editEndpointBox);
|
Vue.component("edit-endpoint-box", editEndpointBox);
|
||||||
@@ -48,7 +51,7 @@ Vue.prototype.$delete = del;
|
|||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
Vue.use(ElementUI);
|
Vue.use(ElementUI);
|
||||||
Vue.use(Vuex);
|
Vue.use(Vuex);
|
||||||
|
Vue.use(VueResource);
|
||||||
|
|
||||||
const clickoutside = {
|
const clickoutside = {
|
||||||
// 初始化指令
|
// 初始化指令
|
||||||
|
|||||||
@@ -17,7 +17,16 @@ const store = new Vuex.Store({
|
|||||||
projectListChange: 0,
|
projectListChange: 0,
|
||||||
moduleListChange: 0,
|
moduleListChange: 0,
|
||||||
flushDataSign: false,
|
flushDataSign: false,
|
||||||
panelListReload:false
|
panelListReload:false,
|
||||||
|
eventfixed: {
|
||||||
|
shezhi: 0,
|
||||||
|
screen: 0
|
||||||
|
},
|
||||||
|
tablelable: [], //获取头部信息
|
||||||
|
position: {
|
||||||
|
event_positiony: 0,
|
||||||
|
event_positionx: -200
|
||||||
|
},
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
},
|
},
|
||||||
@@ -39,7 +48,16 @@ const store = new Vuex.Store({
|
|||||||
},
|
},
|
||||||
assetDcListChange(state) {
|
assetDcListChange(state) {
|
||||||
state.assetDcList++;
|
state.assetDcList++;
|
||||||
}
|
},
|
||||||
|
setHeaderTable(state, data) { //设置table头部
|
||||||
|
state.tablelable = data;
|
||||||
|
},
|
||||||
|
setEventfixed(state, data) { //设置坐标
|
||||||
|
state.eventfixed = data;
|
||||||
|
},
|
||||||
|
setPosition(state, data) { //设置坐标
|
||||||
|
state.position = data;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user