Commit 796ca205 by 前端

Merge branch 'xuyl_dev_v3.2.0' into 'master'

合并代码3.2代码到master

See merge request !33
2 parents 0e166c61 e16ce999
...@@ -1874,6 +1874,51 @@ ...@@ -1874,6 +1874,51 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true "dev": true
}, },
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ssri": { "ssri": {
"version": "8.0.1", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
...@@ -1882,6 +1927,28 @@ ...@@ -1882,6 +1927,28 @@
"requires": { "requires": {
"minipass": "^3.1.1" "minipass": "^3.1.1"
} }
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
} }
} }
}, },
...@@ -2168,6 +2235,11 @@ ...@@ -2168,6 +2235,11 @@
"@xtuc/long": "4.2.2" "@xtuc/long": "4.2.2"
} }
}, },
"@xmldom/xmldom": {
"version": "0.8.6",
"resolved": "https://registry.npmmirror.com/@xmldom/xmldom/-/xmldom-0.8.6.tgz",
"integrity": "sha512-uRjjusqpoqfmRkTaNuLJ2VohVr67Q5YwDATW3VU7PfzTj6IRaihGrYI7zckGZjxQPBIp63nfvJbM+Yu5ICh0Bg=="
},
"@xtuc/ieee754": { "@xtuc/ieee754": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
...@@ -2182,7 +2254,7 @@ ...@@ -2182,7 +2254,7 @@
}, },
"abbrev": { "abbrev": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "resolved": "https://registry.npmmirror.com/abbrev/-/abbrev-1.1.1.tgz",
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
"dev": true "dev": true
}, },
...@@ -2252,7 +2324,7 @@ ...@@ -2252,7 +2324,7 @@
}, },
"amdefine": { "amdefine": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", "resolved": "https://registry.npmmirror.com/amdefine/-/amdefine-1.0.1.tgz",
"integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==",
"dev": true "dev": true
}, },
...@@ -2330,7 +2402,7 @@ ...@@ -2330,7 +2402,7 @@
}, },
"are-we-there-yet": { "are-we-there-yet": {
"version": "1.1.7", "version": "1.1.7",
"resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", "resolved": "https://registry.npmmirror.com/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz",
"integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -2367,7 +2439,7 @@ ...@@ -2367,7 +2439,7 @@
}, },
"array-find-index": { "array-find-index": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", "resolved": "https://registry.npmmirror.com/array-find-index/-/array-find-index-1.0.2.tgz",
"integrity": "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==", "integrity": "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==",
"dev": true "dev": true
}, },
...@@ -2502,7 +2574,7 @@ ...@@ -2502,7 +2574,7 @@
}, },
"async-foreach": { "async-foreach": {
"version": "0.1.3", "version": "0.1.3",
"resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", "resolved": "https://registry.npmmirror.com/async-foreach/-/async-foreach-0.1.3.tgz",
"integrity": "sha512-VUeSMD8nEGBWaZK4lizI1sf3yEC7pnAQ/mrI7pC2fBz2s/tq5jWWEngTwaf0Gruu/OoXRGLGg1XFqpYBiGTYJA==", "integrity": "sha512-VUeSMD8nEGBWaZK4lizI1sf3yEC7pnAQ/mrI7pC2fBz2s/tq5jWWEngTwaf0Gruu/OoXRGLGg1XFqpYBiGTYJA==",
"dev": true "dev": true
}, },
...@@ -2578,11 +2650,12 @@ ...@@ -2578,11 +2650,12 @@
"dev": true "dev": true
}, },
"axios": { "axios": {
"version": "0.21.4", "version": "0.18.0",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", "integrity": "sha512-14hgP2oTu6SPu+26Ofye6Se8u5Mmjc07a0ACHTJ5POKFU1Mtxz2IxSvaWy1O+QnbSa8XHy1gYz2E1l+G26XJdA==",
"requires": { "requires": {
"follow-redirects": "^1.14.0" "follow-redirects": "^1.3.0",
"is-buffer": "^1.1.5"
} }
}, },
"babel-eslint": { "babel-eslint": {
...@@ -2811,7 +2884,7 @@ ...@@ -2811,7 +2884,7 @@
}, },
"block-stream": { "block-stream": {
"version": "0.0.9", "version": "0.0.9",
"resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", "resolved": "https://registry.npmmirror.com/block-stream/-/block-stream-0.0.9.tgz",
"integrity": "sha512-OorbnJVPII4DuUKbjARAe8u8EfqOmkEEaSFIyoQ7OjTHn6kafxWl0wLgoZ2rXaYd7MyLcDaU4TmhfxtwgcccMQ==", "integrity": "sha512-OorbnJVPII4DuUKbjARAe8u8EfqOmkEEaSFIyoQ7OjTHn6kafxWl0wLgoZ2rXaYd7MyLcDaU4TmhfxtwgcccMQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -3233,7 +3306,7 @@ ...@@ -3233,7 +3306,7 @@
}, },
"camelcase-keys": { "camelcase-keys": {
"version": "2.1.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", "resolved": "https://registry.npmmirror.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
"integrity": "sha512-bA/Z/DERHKqoEOrp+qeGKw1QlvEQkGZSc0XaY6VnTxZr+Kv1G5zFwttpjv8qxZ/sBPT4nthwZaAcsAZTJlSKXQ==", "integrity": "sha512-bA/Z/DERHKqoEOrp+qeGKw1QlvEQkGZSc0XaY6VnTxZr+Kv1G5zFwttpjv8qxZ/sBPT4nthwZaAcsAZTJlSKXQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -3243,7 +3316,7 @@ ...@@ -3243,7 +3316,7 @@
"dependencies": { "dependencies": {
"camelcase": { "camelcase": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", "resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-2.1.1.tgz",
"integrity": "sha512-DLIsRzJVBQu72meAKPkWQOLcujdXT32hwdfnkI1frSiSRMK1MofjKHf+MEx0SB6fjEFXL8fBDv1dKymBlOp4Qw==", "integrity": "sha512-DLIsRzJVBQu72meAKPkWQOLcujdXT32hwdfnkI1frSiSRMK1MofjKHf+MEx0SB6fjEFXL8fBDv1dKymBlOp4Qw==",
"dev": true "dev": true
} }
...@@ -3609,7 +3682,7 @@ ...@@ -3609,7 +3682,7 @@
}, },
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "resolved": "https://registry.npmmirror.com/code-point-at/-/code-point-at-1.1.0.tgz",
"integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==",
"dev": true "dev": true
}, },
...@@ -3764,7 +3837,7 @@ ...@@ -3764,7 +3837,7 @@
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "resolved": "https://registry.npmmirror.com/console-control-strings/-/console-control-strings-1.1.0.tgz",
"integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",
"dev": true "dev": true
}, },
...@@ -4045,6 +4118,14 @@ ...@@ -4045,6 +4118,14 @@
"integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==",
"dev": true "dev": true
}, },
"cos-js-sdk-v5": {
"version": "1.4.13",
"resolved": "https://registry.npmmirror.com/cos-js-sdk-v5/-/cos-js-sdk-v5-1.4.13.tgz",
"integrity": "sha512-y/quiAfapxVlH55yGMQeEfAvWg3OPPjVzrTXWbko3TeItzXWDorvdBmqRWA0/ezetedwJc4pTh4wNW+UMQCKMg==",
"requires": {
"@xmldom/xmldom": "^0.8.6"
}
},
"cosmiconfig": { "cosmiconfig": {
"version": "5.2.1", "version": "5.2.1",
"resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz",
...@@ -4463,7 +4544,7 @@ ...@@ -4463,7 +4544,7 @@
}, },
"currently-unhandled": { "currently-unhandled": {
"version": "0.4.1", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", "resolved": "https://registry.npmmirror.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
"integrity": "sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng==", "integrity": "sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -4763,7 +4844,7 @@ ...@@ -4763,7 +4844,7 @@
}, },
"delegates": { "delegates": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "resolved": "https://registry.npmmirror.com/delegates/-/delegates-1.0.0.tgz",
"integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",
"dev": true "dev": true
}, },
...@@ -5519,8 +5600,7 @@ ...@@ -5519,8 +5600,7 @@
"eventemitter3": { "eventemitter3": {
"version": "4.0.7", "version": "4.0.7",
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
"integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="
"dev": true
}, },
"events": { "events": {
"version": "3.3.0", "version": "3.3.0",
...@@ -6132,7 +6212,7 @@ ...@@ -6132,7 +6212,7 @@
}, },
"fstream": { "fstream": {
"version": "1.0.12", "version": "1.0.12",
"resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", "resolved": "https://registry.npmmirror.com/fstream/-/fstream-1.0.12.tgz",
"integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==", "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -6173,7 +6253,7 @@ ...@@ -6173,7 +6253,7 @@
}, },
"gauge": { "gauge": {
"version": "2.7.4", "version": "2.7.4",
"resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", "resolved": "https://registry.npmmirror.com/gauge/-/gauge-2.7.4.tgz",
"integrity": "sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==", "integrity": "sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -6189,13 +6269,13 @@ ...@@ -6189,13 +6269,13 @@
"dependencies": { "dependencies": {
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-2.1.1.tgz",
"integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
"dev": true "dev": true
}, },
"is-fullwidth-code-point": { "is-fullwidth-code-point": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
"integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -6204,7 +6284,7 @@ ...@@ -6204,7 +6284,7 @@
}, },
"string-width": { "string-width": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "resolved": "https://registry.npmmirror.com/string-width/-/string-width-1.0.2.tgz",
"integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -6215,7 +6295,7 @@ ...@@ -6215,7 +6295,7 @@
}, },
"strip-ansi": { "strip-ansi": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-3.0.1.tgz",
"integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -6226,7 +6306,7 @@ ...@@ -6226,7 +6306,7 @@
}, },
"gaze": { "gaze": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", "resolved": "https://registry.npmmirror.com/gaze/-/gaze-1.1.3.tgz",
"integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -6349,7 +6429,7 @@ ...@@ -6349,7 +6429,7 @@
}, },
"globule": { "globule": {
"version": "1.3.4", "version": "1.3.4",
"resolved": "https://registry.npmjs.org/globule/-/globule-1.3.4.tgz", "resolved": "https://registry.npmmirror.com/globule/-/globule-1.3.4.tgz",
"integrity": "sha512-OPTIfhMBh7JbBYDpa5b+Q5ptmMWKwcNcFSR/0c6t8V4f3ZAVBEsKNY37QdVqmLRYSMhOUGYrY0QhSoEpzGr/Eg==", "integrity": "sha512-OPTIfhMBh7JbBYDpa5b+Q5ptmMWKwcNcFSR/0c6t8V4f3ZAVBEsKNY37QdVqmLRYSMhOUGYrY0QhSoEpzGr/Eg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -6360,7 +6440,7 @@ ...@@ -6360,7 +6440,7 @@
"dependencies": { "dependencies": {
"glob": { "glob": {
"version": "7.1.7", "version": "7.1.7",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", "resolved": "https://registry.npmmirror.com/glob/-/glob-7.1.7.tgz",
"integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -6374,7 +6454,7 @@ ...@@ -6374,7 +6454,7 @@
}, },
"minimatch": { "minimatch": {
"version": "3.0.8", "version": "3.0.8",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz", "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.0.8.tgz",
"integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==", "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -6384,14 +6464,24 @@ ...@@ -6384,14 +6464,24 @@
} }
}, },
"glsx-common": { "glsx-common": {
"version": "1.4.9", "version": "2.0.4",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz", "resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.0.4.tgz",
"integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==", "integrity": "sha512-EgWFYUmDk6axzEi6uq5FmYd8nPD7DDg2Vi5kepNMX7YS/cg4bLNBdGCp4iZe2SYFIx3U5O7yKf9fI/aWewCVxw==",
"requires": { "requires": {
"axios": "^0.21.3", "axios": "^0.21.3",
"md5": "^2.3.0", "md5": "^2.3.0",
"qs": "^6.10.1", "qs": "^6.10.1",
"sha1": "^1.1.1" "sha1": "^1.1.1"
},
"dependencies": {
"axios": {
"version": "0.21.4",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": {
"follow-redirects": "^1.14.0"
}
}
} }
}, },
"glsx-components": { "glsx-components": {
...@@ -6404,6 +6494,29 @@ ...@@ -6404,6 +6494,29 @@
"glsx-common": "^1.4.9", "glsx-common": "^1.4.9",
"vue": "^2.6.11", "vue": "^2.6.11",
"vuedraggable": "^2.24.3" "vuedraggable": "^2.24.3"
},
"dependencies": {
"glsx-common": {
"version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
"integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==",
"requires": {
"axios": "^0.21.3",
"md5": "^2.3.0",
"qs": "^6.10.1",
"sha1": "^1.1.1"
},
"dependencies": {
"axios": {
"version": "0.21.4",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": {
"follow-redirects": "^1.14.0"
}
}
}
}
} }
}, },
"graceful-fs": { "graceful-fs": {
...@@ -6454,7 +6567,7 @@ ...@@ -6454,7 +6567,7 @@
}, },
"has-ansi": { "has-ansi": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "resolved": "https://registry.npmmirror.com/has-ansi/-/has-ansi-2.0.0.tgz",
"integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -6463,7 +6576,7 @@ ...@@ -6463,7 +6576,7 @@
"dependencies": { "dependencies": {
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-2.1.1.tgz",
"integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
"dev": true "dev": true
} }
...@@ -6506,7 +6619,7 @@ ...@@ -6506,7 +6619,7 @@
}, },
"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.npmmirror.com/has-unicode/-/has-unicode-2.0.1.tgz",
"integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",
"dev": true "dev": true
}, },
...@@ -7049,13 +7162,13 @@ ...@@ -7049,13 +7162,13 @@
}, },
"in-publish": { "in-publish": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.1.tgz", "resolved": "https://registry.npmmirror.com/in-publish/-/in-publish-2.0.1.tgz",
"integrity": "sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ==", "integrity": "sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ==",
"dev": true "dev": true
}, },
"indent-string": { "indent-string": {
"version": "2.1.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", "resolved": "https://registry.npmmirror.com/indent-string/-/indent-string-2.1.0.tgz",
"integrity": "sha512-aqwDFWSgSgfRaEwao5lg5KEcVd/2a+D1rvoG7NdilmYz0NwRk6StWpWdz/Hpk34MKPpx7s8XxUqimfcQK6gGlg==", "integrity": "sha512-aqwDFWSgSgfRaEwao5lg5KEcVd/2a+D1rvoG7NdilmYz0NwRk6StWpWdz/Hpk34MKPpx7s8XxUqimfcQK6gGlg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -7435,7 +7548,7 @@ ...@@ -7435,7 +7548,7 @@
}, },
"is-finite": { "is-finite": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz", "resolved": "https://registry.npmmirror.com/is-finite/-/is-finite-1.1.0.tgz",
"integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==", "integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==",
"dev": true "dev": true
}, },
...@@ -7591,7 +7704,7 @@ ...@@ -7591,7 +7704,7 @@
}, },
"is-utf8": { "is-utf8": {
"version": "0.2.1", "version": "0.2.1",
"resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", "resolved": "https://registry.npmmirror.com/is-utf8/-/is-utf8-0.2.1.tgz",
"integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==", "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==",
"dev": true "dev": true
}, },
...@@ -7648,7 +7761,7 @@ ...@@ -7648,7 +7761,7 @@
}, },
"js-base64": { "js-base64": {
"version": "2.6.4", "version": "2.6.4",
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", "resolved": "https://registry.npmmirror.com/js-base64/-/js-base64-2.6.4.tgz",
"integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==", "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==",
"dev": true "dev": true
}, },
...@@ -7658,6 +7771,11 @@ ...@@ -7658,6 +7771,11 @@
"integrity": "sha512-efJLHhLjIyKRewNS9EGZ4UpI8NguuL6fKkhRxVuMmrGV2xN/0APGdQYwLFky5w9naebSZ0OwAGp0G6/2Cg90rA==", "integrity": "sha512-efJLHhLjIyKRewNS9EGZ4UpI8NguuL6fKkhRxVuMmrGV2xN/0APGdQYwLFky5w9naebSZ0OwAGp0G6/2Cg90rA==",
"dev": true "dev": true
}, },
"js-sha1": {
"version": "0.6.0",
"resolved": "https://registry.npmmirror.com/js-sha1/-/js-sha1-0.6.0.tgz",
"integrity": "sha512-01gwBFreYydzmU9BmZxpVk6svJJHrVxEN3IOiGl6VO93bVKYETJ0sIth6DASI6mIFdt7NmfX9UiByRzsYHGU9w=="
},
"js-tokens": { "js-tokens": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
...@@ -7798,7 +7916,7 @@ ...@@ -7798,7 +7916,7 @@
}, },
"load-json-file": { "load-json-file": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "resolved": "https://registry.npmmirror.com/load-json-file/-/load-json-file-1.1.0.tgz",
"integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==", "integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -7811,7 +7929,7 @@ ...@@ -7811,7 +7929,7 @@
"dependencies": { "dependencies": {
"parse-json": { "parse-json": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", "resolved": "https://registry.npmmirror.com/parse-json/-/parse-json-2.2.0.tgz",
"integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -7820,7 +7938,7 @@ ...@@ -7820,7 +7938,7 @@
}, },
"pify": { "pify": {
"version": "2.3.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "resolved": "https://registry.npmmirror.com/pify/-/pify-2.3.0.tgz",
"integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
"dev": true "dev": true
} }
...@@ -7967,7 +8085,7 @@ ...@@ -7967,7 +8085,7 @@
}, },
"loud-rejection": { "loud-rejection": {
"version": "1.6.0", "version": "1.6.0",
"resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/loud-rejection/-/loud-rejection-1.6.0.tgz",
"integrity": "sha512-RPNliZOFkqFumDhvYqOaNY4Uz9oJM2K9tC6JWsJJsNdhuONW4LQHRBpb0qf4pJApVffI5N39SwzWZJuEhfd7eQ==", "integrity": "sha512-RPNliZOFkqFumDhvYqOaNY4Uz9oJM2K9tC6JWsJJsNdhuONW4LQHRBpb0qf4pJApVffI5N39SwzWZJuEhfd7eQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -8007,7 +8125,7 @@ ...@@ -8007,7 +8125,7 @@
}, },
"map-obj": { "map-obj": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", "resolved": "https://registry.npmmirror.com/map-obj/-/map-obj-1.0.1.tgz",
"integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==",
"dev": true "dev": true
}, },
...@@ -8065,7 +8183,7 @@ ...@@ -8065,7 +8183,7 @@
}, },
"meow": { "meow": {
"version": "3.7.0", "version": "3.7.0",
"resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", "resolved": "https://registry.npmmirror.com/meow/-/meow-3.7.0.tgz",
"integrity": "sha512-TNdwZs0skRlpPpCUK25StC4VH+tP5GgeY1HQOOGP+lQ2xtdkN2VtT/5tiX9k3IWpkBPV9b3LsAWXn4GGi/PrSA==", "integrity": "sha512-TNdwZs0skRlpPpCUK25StC4VH+tP5GgeY1HQOOGP+lQ2xtdkN2VtT/5tiX9k3IWpkBPV9b3LsAWXn4GGi/PrSA==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -8453,7 +8571,7 @@ ...@@ -8453,7 +8571,7 @@
}, },
"node-gyp": { "node-gyp": {
"version": "3.8.0", "version": "3.8.0",
"resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz", "resolved": "https://registry.npmmirror.com/node-gyp/-/node-gyp-3.8.0.tgz",
"integrity": "sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA==", "integrity": "sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -8473,7 +8591,7 @@ ...@@ -8473,7 +8591,7 @@
"dependencies": { "dependencies": {
"semver": { "semver": {
"version": "5.3.0", "version": "5.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", "resolved": "https://registry.npmmirror.com/semver/-/semver-5.3.0.tgz",
"integrity": "sha512-mfmm3/H9+67MCVix1h+IXTpDwL6710LyHuk7+cWC9T1mE0qz4iHhh6r4hU2wrIT9iTsAAC2XQRvfblL028cpLw==", "integrity": "sha512-mfmm3/H9+67MCVix1h+IXTpDwL6710LyHuk7+cWC9T1mE0qz4iHhh6r4hU2wrIT9iTsAAC2XQRvfblL028cpLw==",
"dev": true "dev": true
} }
...@@ -8526,7 +8644,7 @@ ...@@ -8526,7 +8644,7 @@
}, },
"node-sass": { "node-sass": {
"version": "4.14.1", "version": "4.14.1",
"resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz", "resolved": "https://registry.npmmirror.com/node-sass/-/node-sass-4.14.1.tgz",
"integrity": "sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g==", "integrity": "sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -8551,19 +8669,19 @@ ...@@ -8551,19 +8669,19 @@
"dependencies": { "dependencies": {
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-2.1.1.tgz",
"integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
"dev": true "dev": true
}, },
"ansi-styles": { "ansi-styles": {
"version": "2.2.1", "version": "2.2.1",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-2.2.1.tgz",
"integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==",
"dev": true "dev": true
}, },
"chalk": { "chalk": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "resolved": "https://registry.npmmirror.com/chalk/-/chalk-1.1.3.tgz",
"integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -8576,7 +8694,7 @@ ...@@ -8576,7 +8694,7 @@
}, },
"cross-spawn": { "cross-spawn": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-3.0.1.tgz",
"integrity": "sha512-eZ+m1WNhSZutOa/uRblAc9Ut5MQfukFrFMtPSm3bZCA888NmMd5AWXWdgRZ80zd+pTk1P2JrGjg9pUPTvl2PWQ==", "integrity": "sha512-eZ+m1WNhSZutOa/uRblAc9Ut5MQfukFrFMtPSm3bZCA888NmMd5AWXWdgRZ80zd+pTk1P2JrGjg9pUPTvl2PWQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -8586,13 +8704,13 @@ ...@@ -8586,13 +8704,13 @@
}, },
"get-stdin": { "get-stdin": {
"version": "4.0.1", "version": "4.0.1",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", "resolved": "https://registry.npmmirror.com/get-stdin/-/get-stdin-4.0.1.tgz",
"integrity": "sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==", "integrity": "sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==",
"dev": true "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.npmmirror.com/lru-cache/-/lru-cache-4.1.5.tgz",
"integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -8602,7 +8720,7 @@ ...@@ -8602,7 +8720,7 @@
}, },
"strip-ansi": { "strip-ansi": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-3.0.1.tgz",
"integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -8611,13 +8729,13 @@ ...@@ -8611,13 +8729,13 @@
}, },
"supports-color": { "supports-color": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-2.0.0.tgz",
"integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==",
"dev": true "dev": true
}, },
"yallist": { "yallist": {
"version": "2.1.2", "version": "2.1.2",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", "resolved": "https://registry.npmmirror.com/yallist/-/yallist-2.1.2.tgz",
"integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==",
"dev": true "dev": true
} }
...@@ -8625,7 +8743,7 @@ ...@@ -8625,7 +8743,7 @@
}, },
"nopt": { "nopt": {
"version": "3.0.6", "version": "3.0.6",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", "resolved": "https://registry.npmmirror.com/nopt/-/nopt-3.0.6.tgz",
"integrity": "sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==", "integrity": "sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -8686,7 +8804,7 @@ ...@@ -8686,7 +8804,7 @@
}, },
"npmlog": { "npmlog": {
"version": "4.1.2", "version": "4.1.2",
"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", "resolved": "https://registry.npmmirror.com/npmlog/-/npmlog-4.1.2.tgz",
"integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -8713,7 +8831,7 @@ ...@@ -8713,7 +8831,7 @@
}, },
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "resolved": "https://registry.npmmirror.com/number-is-nan/-/number-is-nan-1.0.1.tgz",
"integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==",
"dev": true "dev": true
}, },
...@@ -8950,7 +9068,7 @@ ...@@ -8950,7 +9068,7 @@
}, },
"os-homedir": { "os-homedir": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "resolved": "https://registry.npmmirror.com/os-homedir/-/os-homedir-1.0.2.tgz",
"integrity": "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==", "integrity": "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==",
"dev": true "dev": true
}, },
...@@ -8962,7 +9080,7 @@ ...@@ -8962,7 +9080,7 @@
}, },
"osenv": { "osenv": {
"version": "0.1.5", "version": "0.1.5",
"resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", "resolved": "https://registry.npmmirror.com/osenv/-/osenv-0.1.5.tgz",
"integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -10643,7 +10761,7 @@ ...@@ -10643,7 +10761,7 @@
}, },
"read-pkg-up": { "read-pkg-up": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", "resolved": "https://registry.npmmirror.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
"integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==", "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -10653,7 +10771,7 @@ ...@@ -10653,7 +10771,7 @@
"dependencies": { "dependencies": {
"find-up": { "find-up": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", "resolved": "https://registry.npmmirror.com/find-up/-/find-up-1.1.2.tgz",
"integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==", "integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -10663,7 +10781,7 @@ ...@@ -10663,7 +10781,7 @@
}, },
"path-exists": { "path-exists": {
"version": "2.1.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-2.1.0.tgz",
"integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==", "integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -10672,7 +10790,7 @@ ...@@ -10672,7 +10790,7 @@
}, },
"path-type": { "path-type": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", "resolved": "https://registry.npmmirror.com/path-type/-/path-type-1.1.0.tgz",
"integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -10683,13 +10801,13 @@ ...@@ -10683,13 +10801,13 @@
}, },
"pify": { "pify": {
"version": "2.3.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "resolved": "https://registry.npmmirror.com/pify/-/pify-2.3.0.tgz",
"integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
"dev": true "dev": true
}, },
"read-pkg": { "read-pkg": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", "resolved": "https://registry.npmmirror.com/read-pkg/-/read-pkg-1.1.0.tgz",
"integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==", "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -10727,7 +10845,7 @@ ...@@ -10727,7 +10845,7 @@
}, },
"redent": { "redent": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", "resolved": "https://registry.npmmirror.com/redent/-/redent-1.0.0.tgz",
"integrity": "sha512-qtW5hKzGQZqKoh6JNSD+4lfitfPKGz42e6QwiRmPM5mmKtR0N41AbJRYu0xJi7nhOJ4WDgRkKvAk6tw4WIwR4g==", "integrity": "sha512-qtW5hKzGQZqKoh6JNSD+4lfitfPKGz42e6QwiRmPM5mmKtR0N41AbJRYu0xJi7nhOJ4WDgRkKvAk6tw4WIwR4g==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -10737,13 +10855,13 @@ ...@@ -10737,13 +10855,13 @@
"dependencies": { "dependencies": {
"get-stdin": { "get-stdin": {
"version": "4.0.1", "version": "4.0.1",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", "resolved": "https://registry.npmmirror.com/get-stdin/-/get-stdin-4.0.1.tgz",
"integrity": "sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==", "integrity": "sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==",
"dev": true "dev": true
}, },
"strip-indent": { "strip-indent": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", "resolved": "https://registry.npmmirror.com/strip-indent/-/strip-indent-1.0.1.tgz",
"integrity": "sha512-I5iQq6aFMM62fBEAIB/hXzwJD6EEZ0xEGCX2t7oXqaKPIRgt4WruAQ285BISgdkP+HLGWyeGmNJcpIwFeRYRUA==", "integrity": "sha512-I5iQq6aFMM62fBEAIB/hXzwJD6EEZ0xEGCX2t7oXqaKPIRgt4WruAQ285BISgdkP+HLGWyeGmNJcpIwFeRYRUA==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -10957,7 +11075,7 @@ ...@@ -10957,7 +11075,7 @@
}, },
"repeating": { "repeating": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", "resolved": "https://registry.npmmirror.com/repeating/-/repeating-2.0.1.tgz",
"integrity": "sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A==", "integrity": "sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11155,7 +11273,7 @@ ...@@ -11155,7 +11273,7 @@
}, },
"sass-graph": { "sass-graph": {
"version": "2.2.5", "version": "2.2.5",
"resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz", "resolved": "https://registry.npmmirror.com/sass-graph/-/sass-graph-2.2.5.tgz",
"integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==", "integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11167,13 +11285,13 @@ ...@@ -11167,13 +11285,13 @@
"dependencies": { "dependencies": {
"camelcase": { "camelcase": {
"version": "5.3.1", "version": "5.3.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-5.3.1.tgz",
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
"dev": true "dev": true
}, },
"cliui": { "cliui": {
"version": "5.0.0", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", "resolved": "https://registry.npmmirror.com/cliui/-/cliui-5.0.0.tgz",
"integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11184,13 +11302,13 @@ ...@@ -11184,13 +11302,13 @@
}, },
"emoji-regex": { "emoji-regex": {
"version": "7.0.3", "version": "7.0.3",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-7.0.3.tgz",
"integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==",
"dev": true "dev": true
}, },
"find-up": { "find-up": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", "resolved": "https://registry.npmmirror.com/find-up/-/find-up-3.0.0.tgz",
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11199,13 +11317,13 @@ ...@@ -11199,13 +11317,13 @@
}, },
"is-fullwidth-code-point": { "is-fullwidth-code-point": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
"integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==",
"dev": true "dev": true
}, },
"locate-path": { "locate-path": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-3.0.0.tgz",
"integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11215,7 +11333,7 @@ ...@@ -11215,7 +11333,7 @@
}, },
"p-locate": { "p-locate": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-3.0.0.tgz",
"integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11224,13 +11342,13 @@ ...@@ -11224,13 +11342,13 @@
}, },
"path-exists": { "path-exists": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-3.0.0.tgz",
"integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==",
"dev": true "dev": true
}, },
"string-width": { "string-width": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", "resolved": "https://registry.npmmirror.com/string-width/-/string-width-3.1.0.tgz",
"integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11241,7 +11359,7 @@ ...@@ -11241,7 +11359,7 @@
}, },
"strip-ansi": { "strip-ansi": {
"version": "5.2.0", "version": "5.2.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-5.2.0.tgz",
"integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11250,7 +11368,7 @@ ...@@ -11250,7 +11368,7 @@
}, },
"wrap-ansi": { "wrap-ansi": {
"version": "5.1.0", "version": "5.1.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz",
"integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11261,7 +11379,7 @@ ...@@ -11261,7 +11379,7 @@
}, },
"yargs": { "yargs": {
"version": "13.3.2", "version": "13.3.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", "resolved": "https://registry.npmmirror.com/yargs/-/yargs-13.3.2.tgz",
"integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11279,7 +11397,7 @@ ...@@ -11279,7 +11397,7 @@
}, },
"yargs-parser": { "yargs-parser": {
"version": "13.1.2", "version": "13.1.2",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-13.1.2.tgz",
"integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11343,7 +11461,7 @@ ...@@ -11343,7 +11461,7 @@
}, },
"scss-tokenizer": { "scss-tokenizer": {
"version": "0.2.3", "version": "0.2.3",
"resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", "resolved": "https://registry.npmmirror.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz",
"integrity": "sha512-dYE8LhncfBUar6POCxMTm0Ln+erjeczqEvCJib5/7XNkdw1FkUGgwMPY360FY0FgPWQxHWCx29Jl3oejyGLM9Q==", "integrity": "sha512-dYE8LhncfBUar6POCxMTm0Ln+erjeczqEvCJib5/7XNkdw1FkUGgwMPY360FY0FgPWQxHWCx29Jl3oejyGLM9Q==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -11353,7 +11471,7 @@ ...@@ -11353,7 +11471,7 @@
"dependencies": { "dependencies": {
"source-map": { "source-map": {
"version": "0.4.4", "version": "0.4.4",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.4.4.tgz",
"integrity": "sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A==", "integrity": "sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -12064,7 +12182,7 @@ ...@@ -12064,7 +12182,7 @@
}, },
"stdout-stream": { "stdout-stream": {
"version": "1.4.1", "version": "1.4.1",
"resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz", "resolved": "https://registry.npmmirror.com/stdout-stream/-/stdout-stream-1.4.1.tgz",
"integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==", "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -12177,7 +12295,7 @@ ...@@ -12177,7 +12295,7 @@
}, },
"strip-bom": { "strip-bom": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", "resolved": "https://registry.npmmirror.com/strip-bom/-/strip-bom-2.0.0.tgz",
"integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -12344,7 +12462,7 @@ ...@@ -12344,7 +12462,7 @@
}, },
"tar": { "tar": {
"version": "2.2.2", "version": "2.2.2",
"resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz", "resolved": "https://registry.npmmirror.com/tar/-/tar-2.2.2.tgz",
"integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==", "integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -12650,13 +12768,13 @@ ...@@ -12650,13 +12768,13 @@
}, },
"trim-newlines": { "trim-newlines": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", "resolved": "https://registry.npmmirror.com/trim-newlines/-/trim-newlines-1.0.0.tgz",
"integrity": "sha512-Nm4cF79FhSTzrLKGDMi3I4utBtFv8qKy4sq1enftf2gMdpqI8oVQTAfySkTz5r49giVzDj88SVZXP4CeYQwjaw==", "integrity": "sha512-Nm4cF79FhSTzrLKGDMi3I4utBtFv8qKy4sq1enftf2gMdpqI8oVQTAfySkTz5r49giVzDj88SVZXP4CeYQwjaw==",
"dev": true "dev": true
}, },
"true-case-path": { "true-case-path": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz", "resolved": "https://registry.npmmirror.com/true-case-path/-/true-case-path-1.0.3.tgz",
"integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==", "integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -13045,8 +13163,7 @@ ...@@ -13045,8 +13163,7 @@
"uuid": { "uuid": {
"version": "3.4.0", "version": "3.4.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
"dev": true
}, },
"validate-npm-package-license": { "validate-npm-package-license": {
"version": "3.0.4", "version": "3.0.4",
...@@ -13087,6 +13204,28 @@ ...@@ -13087,6 +13204,28 @@
"integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==",
"dev": true "dev": true
}, },
"vod-js-sdk-v6": {
"version": "1.5.0",
"resolved": "https://registry.npmmirror.com/vod-js-sdk-v6/-/vod-js-sdk-v6-1.5.0.tgz",
"integrity": "sha512-WkMtV9MDxO//6SDQgw+QsbO3dskJwE8nmch2Wn3e4Oub5/eav6DMedFAHRjar+tt9WDLveO0YLxa3yVBQ2DHbQ==",
"requires": {
"axios": "^0.21.1",
"cos-js-sdk-v5": "^1.3.7",
"eventemitter3": "^4.0.7",
"js-sha1": "^0.6.0",
"uuid": "^3.3.2"
},
"dependencies": {
"axios": {
"version": "0.21.4",
"resolved": "https://registry.npmmirror.com/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": {
"follow-redirects": "^1.14.0"
}
}
}
},
"vue": { "vue": {
"version": "2.7.10", "version": "2.7.10",
"resolved": "https://registry.npmjs.org/vue/-/vue-2.7.10.tgz", "resolved": "https://registry.npmjs.org/vue/-/vue-2.7.10.tgz",
...@@ -13176,75 +13315,6 @@ ...@@ -13176,75 +13315,6 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.6.5", "version": "3.6.5",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
...@@ -14015,7 +14085,7 @@ ...@@ -14015,7 +14085,7 @@
}, },
"wide-align": { "wide-align": {
"version": "1.1.5", "version": "1.1.5",
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", "resolved": "https://registry.npmmirror.com/wide-align/-/wide-align-1.1.5.tgz",
"integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
"dev": true, "dev": true,
"requires": { "requires": {
......
...@@ -9,12 +9,14 @@ ...@@ -9,12 +9,14 @@
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {
"axios": "^0.18.0",
"core-js": "^3.4.4", "core-js": "^3.4.4",
"dayjs": "^1.10.7", "dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^2.0.4",
"glsx-components": "^1.2.5", "glsx-components": "^1.2.5",
"vod-js-sdk-v6": "^1.5.0",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
"vuex": "^3.1.2" "vuex": "^3.1.2"
......
/** 上传
* @param {*} baseURL method url 获取签名接口参数
* @param {*} uploadEvent(eventType, callback)
* eventType : media_upload 媒体上传完成, media_progress 媒体上传进度,cover_upload 图片上传完成, cover_progress 图片上传进度
* @returns params.url = 'rop-scrm-shopmall/router' params.data.method = 'scrm.api.shopmall.livebroadcast.uploadsignature'
*/
//npm install vod-js-sdk-v6
import TcVod from 'vod-js-sdk-v6'
import { http } from '@/main'
// 请求配置
const SIGN = {
v: '1.0.0',
source: 'scm-home',
format: 'json',
appKey: '48e5e13229b82c1b4e6e8c96151f0637'
}
const SECRET = 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const REQUEST = {
timeout: 180000,
responseType: 'json',
baseURL: 'http://scrm.dev.glsx.com.cn',
withCredentials: true
}
// const RESPONSE = {
// code_key: ['code', 'returnCode'],
// code_message_map: {},
// code_success_value: '0',
// data_key: 'data',
// errId_logout_value: '21',
// message_key: 'message'
// }
class GlsxUpload {
constructor(params) {
this.initParam = params
}
init() {
return new Promise((resolve, reject) => {
if (this.tcVod) return resolve({ status: 0, msg: 'init successful' })
const { params: { data, url } = {} } = this.initParam || {}
console.log(data)
return http({
data,
url: url,
returnAll: true
})
.then(res => {
if (res.code == '0') {
this.tcVod = new TcVod({
getSignature: () => {
return res.data
}
})
}
if (this.tcVod) return resolve({ status: 0, msg: 'init successful' })
reject({ status: -1, msg: 'init failed' })
})
.catch(err => {
reject({ status: -1, msg: 'init failed' })
})
})
}
uploaded(file, img) {
return new Promise((resolve, reject) => {
if (!file) return reject({ status: -1, msg: 'file is required' })
let params = {
mediaFile: file
}
if (img) params.coverFile = img
this.uploader = this.tcVod.upload(params)
this.uploader
.done()
.then(doneResult => {
resolve(doneResult)
})
.catch(err => {
reject(err)
})
})
}
uploadEvent(eventType, callback) {
if (!eventType) callback({ status: -1, msg: 'eventType is required' })
try {
this.uploader.on(eventType, info => {
callback(info)
})
} catch (err) {
callback(err)
}
}
uploadCancel() {
this.uploader.cancel()
}
}
export default GlsxUpload
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 14:46:30
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-23 17:39:26
* @FilePath: \live\src\api\modules\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http_common } from '@/main'
const pictureUpload = params => {
params.method = 'glsx.accounts.biz.common.pictureUpload'
return http_common({
url: '/router?method=glsx.accounts.biz.common.pictureUpload',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
export default {
pictureUpload
}
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-24 16:20:21
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-29 10:23:34
* @FilePath: \live\src\api\modules\console.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http } from '@/main'
//基本信息
const consoleBasic = params => {
params.method = `scrm.api.shopmall.livebroadcast.console.basic`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//流量数据-详情列表导出
const detailexport = params => {
params.method = `scrm.api.shopmall.livebroadcast.console.detailexport`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//流量数据-详情列表导出
const consoleExport = params => {
params.method = `scrm.api.shopmall.livebroadcast.console.export`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//流量数据-详情列表查询(分页)
const detailpage = params => {
params.method = `scrm.api.shopmall.livebroadcast.console.detailpage`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//直播间信息
const consoleInfo = params => {
params.method = `scrm.api.shopmall.livebroadcast.console.info`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//分页查询流量数据列表
const consolePage = params => {
params.method = `scrm.api.shopmall.livebroadcast.console.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
consoleBasic,
consolePage,
consoleInfo,
detailpage,
detailexport,
consoleExport
}
...@@ -32,4 +32,16 @@ const LiveRoomDetailApi = params => { ...@@ -32,4 +32,16 @@ const LiveRoomDetailApi = params => {
sign: true, sign: true,
}) })
} }
export default { getListApi, addOrUpdataLiveRoomApi, LiveRoomDetailApi } // 删除直播间
const deleteLiveRoomApi = params => {
params.method = `${defaultPath}delete`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getListApi, addOrUpdataLiveRoomApi, LiveRoomDetailApi,deleteLiveRoomApi }
import { http } from '@/main'
//分页查询媒体文件列表
const dropdownList = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.dropdown.list`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//删除媒体文件
const tencentcloudmediaDelete = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.delete`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//新增或编辑媒体文件
const tencentcloudmediaUpdate = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.add.or.update`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//媒体文件详情
const tencentcloudmediaDetail = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//分页查询媒体文件列表
const tencentcloudmediaPage = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
dropdownList,
tencentcloudmediaPage,
tencentcloudmediaDetail,
tencentcloudmediaUpdate,
tencentcloudmediaDelete
}
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 15:53:36
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-24 16:07:41
* @FilePath: \live\src\api\uploadApi.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import GlsxUpload from './glsxUpload'
const upload = new GlsxUpload({
params: {
data: { method: 'scrm.api.shopmall.tencentcloudmedia.uploadsignature' },
url: 'rop-scrm-shopmall/router'
}
})
export default upload
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-28 10:12:36
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-28 10:25:09
* @FilePath: \live\src\components\big-view\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="view-panel">
<img :src="dialogSrc" width="100%" v-if="dialogType == 'img'" />
<video width="100%" autoplay controls :src="dialogSrc" v-else></video>
</div>
</template>
<script>
export default {
name: 'view',
data() {
return {
dialogVisibleImg: true
}
},
props: {
dialogType: String,
dialogSrc: String
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ message: { from: 11, message: '11111' } })
}
}
}
</script>
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: * @version:
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: limin * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2021-09-07 14:38:52 * @LastEditTime: 2022-11-23 17:38:30
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
...@@ -20,8 +20,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -20,8 +20,8 @@ export const fetchConfig = function(isEnv = true) {
// } // }
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }) // request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return new Http().get('https://oss-config.test.glsx.com.cn/mock/6351298f6a118b4ff787ef2b/live/config') // return new Http().get('https://oss-config.test.glsx.com.cn/mock/6351298f6a118b4ff787ef2b/live/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6324135a4edfe442ee0530ae/live/config') return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6324135a4edfe442ee0530ae/live/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: 1.0.0 * @version: 1.0.0
* @Author: limin * @Author: limin
* @Date: 2021-08-13 14:12:11 * @Date: 2021-08-13 14:12:11
* @LastEditors: limin * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2021-09-24 10:41:31 * @LastEditTime: 2022-11-23 17:20:32
* @FilePath: \scrm\scrm-sub-blog\src\main.js * @FilePath: \scrm\scrm-sub-blog\src\main.js
*/ */
import Vue from 'vue' import Vue from 'vue'
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-24 14:42:00
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-24 17:18:31
* @FilePath: \live\src\mixins\upload.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export default {
data() {
return {}
},
methods: {
getImgUrl(url, multiple = 3) {
return new Promise((resolve, reject) => {
var canvas = document.createElement('canvas') // 获取 canvas 对象
const ctx = canvas.getContext('2d') // 绘制2d
let video = document.getElementById('video')
video.src = url
video.crossOrigin = 'anonymous' // 解决跨域问题,也就是提示污染资源无法转换视频
video.currentTime = 1 // 第一帧
video.oncanplay = async () => {
canvas.width = video.clientWidth * multiple // 获取视频宽度
canvas.height = video.clientHeight * multiple // 获取视频高度
// 利用canvas对象方法绘图
ctx.drawImage(video, 0, 0, video.clientWidth * multiple, video.clientHeight * multiple)
console.log(canvas, 'canvas')
// 转换成base64形式
var oGrayImg = canvas.toDataURL('image/png') // 截取后的视频封面
const file = this.dataURLtoFile(oGrayImg)
const imgUrl = await this.uploadImg(file)
resolve(imgUrl)
}
})
},
//将base64转换为文件
dataURLtoFile(dataurl, filename = 'file.png') {
var arr = dataurl.split(','),
mime = arr[0].match(/:(.*?);/)[1],
bstr = atob(arr[1]),
n = bstr.length,
u8arr = new Uint8Array(n)
while (n--) {
u8arr[n] = bstr.charCodeAt(n)
}
return new File([u8arr], filename, { type: mime })
},
// // 图片上传
uploadImg(fileInfo) {
return new Promise((resolve, reject) => {
var reader = new FileReader()
reader.readAsDataURL(fileInfo)
reader.onload = e => {
const imgFile = e.target.result
const base64 = fileInfo.name.split('.')[1] + '@' + imgFile.split(',')[1]
this.$apis.common.pictureUpload({ file: base64 }).then(res => {
resolve(res)
})
}
})
}
}
}
...@@ -15,6 +15,18 @@ const staticRoutes = Object.freeze([ ...@@ -15,6 +15,18 @@ const staticRoutes = Object.freeze([
path: '/liveList/jumpLive', path: '/liveList/jumpLive',
component: resolve => require([`@/views/liveList/jumpLive.vue`], resolve), component: resolve => require([`@/views/liveList/jumpLive.vue`], resolve),
meta: {} meta: {}
},
{
name: 'shortVideo',
path: '/shortVideo/index',
component: resolve => require([`@/views/shortVideo/index.vue`], resolve),
meta: {}
},
{
name: 'uploadVideo',
path: '/shortVideo/uploadVideo',
component: resolve => require([`@/views/shortVideo/uploadVideo.vue`], resolve),
meta: {}
} }
]) ])
export default staticRoutes export default staticRoutes
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 11:06:49
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-12-01 10:13:27
* @FilePath: \live\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import Vue from 'vue' import Vue from 'vue'
import { message, messageBox } from '@/plugins/element.js' import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
...@@ -20,7 +28,7 @@ export async function bootstrap({ history, common, messenger, globalState }) { ...@@ -20,7 +28,7 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
......
export function debounce(func, wait= 200){ /*
let timeout; * @Author: yangming yangming@didihu.com.cn
return function(event){ * @Date: 2022-11-23 11:06:49
clearTimeout(timeout) * @LastEditors: yangming yangming@didihu.com.cn
timeout = setTimeout(()=>{ * @LastEditTime: 2022-12-01 10:06:04
func.call(this, event) * @FilePath: \live\src\utils\index.js
},wait) * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export function debounce(func, wait = 200) {
let timeout
return function(event) {
clearTimeout(timeout)
timeout = setTimeout(() => {
func.call(this, event)
}, wait)
} }
} }
export function dateFormat (dateTime, format = 'YYYY-MM-DD HH:mm') {
const date = new Date(dateTime)
const config = {
YYYY: date.getFullYear(),
MM: date.getMonth() + 1, //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
DD: date.getDate(),
HH: date.getHours(),
mm: date.getMinutes(),
ss: date.getSeconds()
}
for (const key in config) {
format = format.replace(key, config[key])
}
return format
}
\ No newline at end of file \ No newline at end of file
export function dateFormat(dateTime, format = 'YYYY-MM-DD HH:mm') {
const date = new Date(dateTime)
const config = {
YYYY: date.getFullYear(),
MM: date.getMonth() + 1, //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
DD: date.getDate(),
HH: date.getHours(),
mm: date.getMinutes(),
ss: date.getSeconds()
}
for (const key in config) {
format = format.replace(key, config[key])
}
return format
}
export function downloadUrl(url) {
const link = document.createElement('a')
link.href = url.replace(/(http|https):/, '')
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
}
export function GetDateDiff(time1, time2 = new Date()) {
let startTime = new Date(time1) //开始时间
let endTime = new Date(time2) //结束时间
let date = endTime.getTime() - startTime.getTime() //时间差秒
//计算出相差天数
let days = Math.floor(date / (24 * 3600 * 1000))
//计算出小时数
let leave1 = date % (24 * 3600 * 1000) //计算天数后剩余的毫秒数
let hours = Math.floor(leave1 / (3600 * 1000))
//计算相差分钟数
let leave2 = leave1 % (3600 * 1000) //计算小时数后剩余的毫秒数
let minutes = Math.floor(leave2 / (60 * 1000)) //计算相差秒数
let leave3 = leave2 % (60 * 1000) //计算分钟数后剩余的毫秒数
let seconds = Math.round(leave3 / 1000)
return days + '天' + hours + '时' + minutes + '分' + seconds + '秒'
}
<template>
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- 表格区域 开始 -->
<div class="live-table-header">
<h2>
已累计
<label>{{ peopleNum }}</label>
人观看&nbsp;&nbsp;
<label>{{ roomNum }}</label>
次观看
</h2>
<el-button :size="size" type="primary" plain @click="detailexport">导出</el-button>
</div>
<GLTable ref="classifyRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="nickname" slot-scope="scope">
<div class="nickname-border">
<img :src="scope.scope.avatar" />
<span>{{ scope.scope.nickname }}</span>
</div>
</div>
</GLTable>
</div>
</template>
<script>
import url from '@/assets/empty.png'
import { downloadUrl } from '@/utils'
export default {
name: 'LiveIndex',
props: {
roomNum: Number,
peopleNum: {
type: Number,
default: 0
}
},
data() {
return {
size: 'small',
url: url,
searchForm: {
nickname: '',
phone: '',
sourceShopName: ''
},
tableSearchForm: {},
// 搜索
searchFormData: [
{
label: '微信昵称',
name: 'nickname',
type: 'input',
maxlength: 20
},
{
label: '手机号',
name: 'phone',
type: 'input',
maxlength: 20
},
{
label: '来源门店',
name: 'sourceShopName',
type: 'input',
maxlength: 20
}
],
// 表格
getListApi: this.$apis.console.detailpage,
tableParams: {
listName: 'list',
tableColumns: [
{
label: '微信昵称',
prop: 'nickname',
addHtml: 'nickname'
},
{
label: '手机号',
prop: 'phone'
},
{
label: '访问来源',
prop: 'visitSource'
},
{
label: '来源门店',
prop: 'sourceShopName'
},
{
label: '观看时长',
prop: 'visitDuration'
},
{
label: '最后浏览',
prop: 'lastVisitTime',
width: 200
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }
}
},
inject: ['elFormItem'],
methods: {
detailexport() {
const getParams = Object.assign(this.getParams(), {
pageSize: 1000000,
currentPage: 1
})
this.$apis.console.detailexport(getParams).then(res => {
res && downloadUrl(res)
})
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
params.id = this.$route.query.id
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
resolve()
})
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = '') : this.$refs.classifyRef.setTableHeightFun()
},
handleSearch() {
this.$refs.classifyRef.refreshTable()
},
handleReset() {
this.searchForm = {}
this.handleSearch()
}
}
}
</script>
<style lang="scss" scoped>
.container {
::v-deep {
.el-form-item--small {
width: 25%;
}
}
.live-table-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
color: #333333;
font-size: 16px;
label {
color: #5850ff;
}
}
}
.nickname-border {
display: flex;
align-items: center;
img {
width: 36px;
height: 36px;
margin-right: 10px;
}
}
</style>
<template>
<div class="live-main">
<div class="container">
<div class="look-container">
<div class="look-left">
<div class="look-left-b">
<img :src="room.liveVideoCover" v-show="room.liveVideoCover" />
</div>
<div class="look-left-content">
<div class="look-title">{{ room.name }}</div>
<div class="look-desc">开播时间:{{ getBetween }}</div>
<div class="look-desc">房间号:{{ room.id }}</div>
<div class="look-status" v-if="endStatus == 'end'">直播已结束</div>
<div class="look-status" v-if="endStatus == 'start'">正在直播</div>
<div class="look-status" v-if="endStatus == 'wait'">直播倒计时{{ endTime }}</div>
</div>
</div>
<div class="look-right">
<div class="look-item">
<div class="look-item-icon"><img src="@/assets/look.png" alt="" /></div>
<div class="look-item-text">观看</div>
<div class="look-item-num">{{ room.totalVisitCnt }}</div>
</div>
<div class="look-item">
<div class="look-item-icon"><img src="@/assets/online.png" alt="" /></div>
<div class="look-item-text">在线</div>
<div class="look-item-num">{{ room.totalOnlineCnt }}</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="container-header">基本信息</div>
<div class="data-container">
<div class="data-container-left">
<div class="data-title">
<img src="@/assets/eyes.png" alt="" />
<span>观看数据</span>
</div>
<div class="data-desc">
<span>峰值在线人数</span>
<span>{{ baseInfo.visitPeakOnlineValue }}</span>
</div>
<div class="data-desc">
<span>观看人数</span>
<span>{{ baseInfo.visitNumberOfPeople }}</span>
</div>
<div class="data-desc data-desc-jump">
<span>观看次数</span>
<span>
{{ baseInfo.visitNumberOfTimes }}
<a @click="handleLook">查看</a>
</span>
</div>
<div class="data-desc">
<span>平均观看时长</span>
<span>{{ baseInfo.visitAverageTime }}</span>
</div>
</div>
<div class="data-container-right">
<div class="data-title">
<img src="@/assets/message.png" alt="" />
<span>互动数据</span>
</div>
<div class="data-desc">
<span>评论人数</span>
<span>{{ baseInfo.interactNumberOfPeople }}</span>
</div>
<div class="data-desc">
<span>评论次数</span>
<span>{{ baseInfo.interactNumberOfTimes }}</span>
</div>
</div>
</div>
</div>
<div class="container">
<div class="container-header">流量数据</div>
<!-- 表格区域 开始 -->
<div class="container-tabel">
<div class="live-table-header">
<h2>数据列表</h2>
<el-button :size="size" type="primary" plain @click="detailexport">导出</el-button>
</div>
<GLTable ref="classifyRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<!-- <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="1"></GLTableButton>
</div> -->
</GLTable>
</div>
</div>
<GLDialog width="1158px" :bigTitle="room.name" :hasFooter="false" :visible.sync="dialogVisible" mode="big">
<record ref="recordForm" v-if="dialogVisible" :roomNum="roomNum" :peopleNum="peopleNum"></record>
</GLDialog>
</div>
</template>
<script>
import url from '@/assets/empty.png'
import record from './components/record.vue'
import { downloadUrl, GetDateDiff } from '@/utils'
export default {
name: 'LiveIndex',
components: {
record
},
data() {
return {
endStatus: '',
roomNum: 0,
peopleNum: 0,
roomId: '',
endTime: '',
dialogVisible: false,
visitSource: '',
dialogObj: {
show: false
},
size: 'small',
url: url,
baseInfo: {},
room: {},
tableSearchForm: { id: '' },
// 表格
getListApi: this.$apis.console.consolePage,
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '访问来源',
prop: 'visitSource'
},
{
label: '观看总人数',
prop: 'totalVisitPeople'
},
{
label: '平均停留时长',
prop: 'averageStayTime'
}
]
},
tableButtonList: [
{
type: 'el-button',
name: '详情',
attrs: {
type: 'text'
},
listeners: {
click: row => {
this.handleLook(row)
}
}
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }
}
},
created() {
this.roomId = this.$route.query.id
this.consoleBasic(this.roomId)
this.consoleInfo(this.roomId)
},
beforeDestroy() {
clearInterval(this.timer)
},
computed: {
getBetween() {
const startTimeStr = this.room.startTimeStr
const endTimeStr = this.room.endTimeStr
if (!startTimeStr) return
const [y1, d1] = startTimeStr.split(' ')
const [y2, d2] = endTimeStr.split(' ')
if (y1 == y2) {
return y1 + ' ' + d1.substring(0, 5) + '-' + d2.substring(0, 5)
} else {
return y1 + ' ' + d1.substring(0, 5) + '-' + y2 + ' ' + d2.substring(0, 5)
}
}
},
methods: {
//时间差
getTime() {
if (this.room.actualEndTime) {
this.endTime = GetDateDiff(this.room.startTimeStr,this.room.actualEndTime)
this.endStatus = 'end'
clearInterval(this.timer)
}
if (new Date(this.room.startTimeStr).getTime() < new Date().getTime() && !this.room.actualEndTime) {
this.endTime = GetDateDiff(this.room.startTimeStr, new Date())
this.endStatus = 'start'
}
if (new Date(this.room.startTimeStr).getTime() > new Date().getTime()) {
this.endTime = GetDateDiff(new Date(), this.room.startTimeStr)
this.endStatus = 'wait'
}
},
handleLook() {
this.roomNum = this.baseInfo.visitNumberOfTimes
this.peopleNum = this.baseInfo.visitNumberOfPeople
this.dialogVisible = true
},
consoleBasic(id) {
this.$apis.console.consoleBasic({ id }).then(res => {
this.baseInfo = res || {}
})
},
consoleInfo(id) {
this.$apis.console.consoleInfo({ id }).then(res => {
this.room = res || {}
this.timer = setInterval(this.getTime, 1000)
this.getTime()
})
},
detailexport() {
this.$apis.console.consoleExport({ id: this.roomId, currentPage: 1, pageSize: 100000 }).then(res => {
downloadUrl(res)
})
},
pageClick() {
this.$router.push('/shortVideo/uploadVideo')
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm.id = this.roomId
resolve()
})
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = '') : this.$refs.classifyRef.setTableHeightFun()
}
}
}
</script>
<style lang="scss" scoped>
@mixin title() {
font-weight: 600;
font-size: 16px;
color: rgba(0, 0, 0, 0.85);
}
@mixin text() {
font-size: 14px;
color: #666666;
}
.live-main {
.container {
margin-bottom: 16px;
background: #fff;
}
.container-tabel {
padding: 20px;
}
.container-header {
height: 58px;
line-height: 58px;
border-bottom: 1px solid #e5e5e5;
padding-left: 20px;
}
.look-container {
display: flex;
justify-content: space-between;
padding: 20px 120px 20px 20px;
align-items: center;
.look-left {
display: flex;
.look-left-b {
width: 260px;
height: 170px;
img {
width: 260px;
height: 170px;
}
}
.look-left-content {
margin-left: 20px;
.look-title {
@include title();
margin-bottom: 10px;
}
.look-desc {
@include text();
line-height: 24px;
}
.look-status {
margin-top: 20px;
display: inline-block;
background: #eeedff;
border-radius: 4px;
font-size: 14px;
color: #5850ff;
padding: 4px 10px;
}
}
}
.look-right {
display: flex;
.look-item {
text-align: center;
margin-left: 68px;
&-icon {
width: 40px;
height: 40px;
}
&-text {
@include text();
line-height: 24px;
}
&-num {
line-height: 24px;
font-weight: 600;
font-size: 16px;
color: rgba(0, 0, 0, 0.85);
}
}
}
}
.data-container {
padding: 20px 40px;
display: flex;
&-left {
margin-right: 100px;
}
.data-title {
@include title();
font-size: 14px;
line-height: 24px;
transform: translateX(-20px);
display: flex;
align-items: center;
img {
width: 16px;
height: 16px;
margin-right: 5px;
}
}
.data-desc {
display: flex;
justify-content: space-between;
width: 200px;
line-height: 24px;
@include text();
&.data-desc-jump {
width: 238px;
a {
color: #5850ff;
font-size: 14px;
margin-left: 4px;
cursor: pointer;
}
}
span {
&:last-child {
@include title();
}
}
}
}
}
.live-table-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333333;
}
}
</style>
<template>
<div class="createANewLiveRoom" v-loading="loading">
<div class="header">
<div class="step">
<div class="baseinfo">
<div :class="['circular',{'circularAct':activePage =='1'}]">1</div>
<div class="text">基本信息</div>
</div>
<div class="horizontalLine"></div>
<div class="baseinfo">
<div :class="['circular',{'circularAct':activePage =='2'}]">2</div>
<div class="text">直播间配置</div>
</div>
</div>
</div>
<div class="baseInfoContainer" v-if="activePage =='1'">
<div class="baseTitle">基本信息</div>
<div class="baseFrame gl-form-page">
<el-form :model="baseForm" :rules="baseRules" ref="baseForm" label-width="120px">
<el-form-item label="直播间名称:" prop="name">
<el-input v-model="baseForm.name" maxlength="20" show-word-limit></el-input>
</el-form-item>
<el-form-item label="直播间简介:">
<el-input type="textarea" v-model="baseForm.introduction" maxlength="200"
show-word-limit></el-input>
</el-form-item>
<el-form-item label="开播时间:" prop="timeStr">
<el-date-picker
type="datetimerange"
v-model="baseForm.timeStr"
required
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="pickerOptions"
value-format="yyyy-MM-dd HH:mm:ss"
:default-time="['00:00:00', '23:59:59']"
popper-class="pickerWrapZ1"
></el-date-picker>
</el-form-item>
</el-form>
</div>
</div>
<div class="configContainer" v-if="activePage =='2'">
<div class="baseInfo baseSpace">
<div class="baseTitle">
基本信息
</div>
<div class="spaceFrame paddingSpace">
<div class="displayImage">
<i v-show="liveRoom.shareCardCover" class="el-icon-close deleteIcon"
@click="liveRoom.shareCardCover = ''"></i>
<template v-if="liveRoom.shareCardCover || liveRoom.shareCardPaper">
<div class="timeline">{{ time }}</div>
<div class="tainer">
<div class="avator">
<img src="../../assets/live/avtar.png">
</div>
<div class="liveContainer">
<div class="imgYai"><img src="../../assets/live/DJcarlife.png"></div>
<div class="shareText">{{ liveRoom.shareCardPaper }}</div>
<div class="shareImg"><img v-if="liveRoom.shareCardCover" :src="liveRoom.shareCardCover" /></div>
<div class="shareIcon">
<div><img src="../../assets/live/icon.png"></div>
小程序
</div>
</div>
</div>
</template>
</div>
<div class="displayIro">
<div class="title">分享卡片封面</div>
<div class="intro">
<p>用户在微信对话框内分享的直播间将以分享卡片的形式呈现</p>
<p>建议尺寸:800像素*640像素,图片大小不得超过10M。</p>
</div>
<el-button class="upload-panel">
上传图片
<input type="file" style="opacity: 0" ref="avatar" accept="*"
@change="uploadAvatar($event,'shareCardCover')" />
</el-button>
<div class="copywriting">
<p>分享文案:</p>
<div>
<el-input maxlength="20" clearable v-model="liveRoom.shareCardPaper"
placeholder="请输入分享文案"></el-input>
</div>
</div>
</div>
</div>
</div>
<div class="baseInfo baseSpace">
<div class="baseTitle">
直播封面样式
</div>
<div class="spaceFrame paddingSpace">
<div class="forn">
<div class="liveContainerStyle">
<i v-show="liveRoom.liveVideoCover" class="el-icon-close deleteIcon"
@click="liveRoom.liveVideoCover = ''"></i>
<div>
<div style="display: flex">
<div class="leftCon"><img v-show="liveRoom.liveVideoCover" :src="liveRoom.liveVideoCover"></div>
<div class="rightCon" v-show="liveRoom.liveVideoCover">
<div class="img"><img src="../../assets/live/DJcarlife.png"></div>
<p class="title">直播卡片</p>
<div class="white">
<div></div>
<div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="displayIro">
<div class="title">直播卡片封面</div>
<div class="intro">
<p>图片大小建议为800像素*800像素。</p>
<p>图片大小不超过10M。</p>
<p>图片内容遵循平台规范后更容易被推荐。</p>
</div>
<el-button class="upload-panel">
上传图片
<input type="file" style="opacity: 0" ref="avatar" accept="*"
@change="uploadAvatar($event,'liveVideoCover')" />
</el-button>
</div>
</div>
</div>
<div class="baseInfo baseSpace">
<div class="baseTitle">
直播前预告
</div>
<div class="spaceFrameNew paddingSpace">
<div class="select">
<el-radio v-model="liveRoom.preLiveMediaType" :label="'0'">预告图</el-radio>
<el-radio v-model="liveRoom.preLiveMediaType" :label="'1'">预告视频</el-radio>
</div>
<div class="photosContent" v-if="liveRoom.preLiveMediaType=='0'">
<div class="trailerImage">
<div class="imgDisplay">
<i v-show="liveRoom.preLiveMediaFilePic" class="el-icon-close deleteIcon"
@click="liveRoom.preLiveMediaFilePic = ''"></i>
<img v-show="liveRoom.preLiveMediaFilePic" :src="liveRoom.preLiveMediaFilePic" />
</div>
<div class="displayIro">
<div class="title">预告图</div>
<div class="intro">
<p>图片建议大小为750像素*1624像素</p>
<p>图片大小不超过10M</p>
</div>
<el-button class="upload-panel">
上传图片
<input type="file" style="opacity: 0" ref="avatar" accept="*"
@change="uploadAvatar($event,'preLiveMediaFilePic')" />
</el-button>
</div>
</div>
<div class="preview">
<div class="imgDisplay">
<i v-show="liveRoom.preLiveMediaCoverPic" class="el-icon-close deleteIcon"
@click="liveRoom.preLiveMediaCoverPic = ''"></i>
<img v-show="liveRoom.preLiveMediaCoverPic" :src="liveRoom.preLiveMediaCoverPic" />
</div>
<div class="displayIro">
<div class="title">预告预览图</div>
<div class="intro">
<p>图片建议大小为320像素*320像素</p>
<p>图片大小不超过300KB</p>
</div>
<el-button class="upload-panel">
上传图片
<input type="file" style="opacity: 0" ref="avatar" accept="*"
@change="uploadAvatar($event,'preLiveMediaCoverPic')" />
</el-button>
</div>
</div>
</div>
<div class="videoContent" v-if="liveRoom.preLiveMediaType=='1'">
<div class="teaserVideo">
<div class="video-panel" v-if="liveRoom.preLiveMediaFileVid">
<video id="video" width="100%" height="100%" preload loop muted>
<source :src="liveRoom.preLiveMediaFileVid" type="video/mp4" />
</video>
<i class="el-icon-video-play" @click="handleLook('video')"></i>
<i class="el-icon-close" @click="liveRoom.preLiveMediaFileVid = ''"></i>
</div>
<div style="width:100%;height:100%" v-else>
</div>
<div class="displayIro">
<p class="title">预告视频</p>
<p class="intro">视频大小不超过20M</p>
</div>
<el-button class="upload-panel">上传视频
<input type="file" accept="video/*" @change="e => handleVideoChange(e)"
style="opacity: 0" />
</el-button>
</div>
<div class="teaserVideoCover">
<div style="width:100%;height:100%;position: relative">
<i v-show="liveRoom.preLiveMediaCoverVid" class="el-icon-close deleteIcon"
@click="liveRoom.preLiveMediaCoverVid = ''"></i>
<img class="img-w-h" :src="liveRoom.preLiveMediaCoverVid" v-show="liveRoom.preLiveMediaCoverVid" />
<span class="img-btns" v-show="liveRoom.preLiveMediaCoverVid">
</span>
</div>
<div class="displayIro">
<p class="title">预告视频封面</p>
<p class="intro">图片建议大小为375像素*282像素</p>
<p class="intro">图片大小不超过10M</p>
</div>
<el-button class="upload-panel">
上传图片
<input type="file" style="opacity: 0" ref="avatar" accept="*"
@change="uploadAvatar($event,'preLiveMediaCoverVid')" />
</el-button>
</div>
</div>
</div>
</div>
<div class="baseInfo baseSpace">
<div class="baseTitle">
直播间背景
</div>
<div class="spaceFrame paddingSpace">
<div class="liveRoomBackground">
<div class="bgmDisplay">
<div class="back" :style="{'background':backgroundData.bgc}">
<i v-if="hasMediaCover" class="el-icon-close deleteIcon"
@click="liveRoom.liveBackgroundWall = ''"></i>
<img v-if="hasMediaCover" :src="liveRoom.liveBackgroundWall">
</div>
<div class="sort">
<div v-for="(item,index) in backgroundData.sortColor" :key="index">
<div class="sortSize" :style="{'background':item}" @click="changeBGC(item)"></div>
</div>
</div>
</div>
<div>
<div class="displayIro">
<div class="title">直播间背景墙</div>
<div class="intro">
<p>直播间背景墙是每个直播间的默认背景。</p>
<p>建议尺寸:600像素*1300像素,图片大小不得超过10M。</p>
</div>
<el-button class="upload-panel">
上传图片
<input type="file" style="opacity: 0" ref="avatar" accept="*"
@change="uploadAvatar($event,'liveBackgroundWall')" />
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="foot">
<div class="baseBtn" v-if="activePage =='1'">
<el-button v-show="showDraft" @click="handleCreateorEdit('1')">草稿</el-button>
<el-button @click="previousNextStep('next')" type="primary">下一步</el-button>
</div>
<div class="configBtn" v-if="activePage=='2'">
<el-button v-show="showDraft" @click="handleCreateorEdit('1')">草稿</el-button>
<el-button @click="previousNextStep('previous')">上一步</el-button>
<el-button type="primary" @click="handleCreateorEdit">创建</el-button>
</div>
</div>
<el-dialog class="image-dialog" :visible.sync="dialogVisibleImg" width="50%">
<img :src="dialogSrc" width="100%" v-if="dialogType == 'img'" />
<video width="100%" autoplay controls :src="dialogSrc" v-else></video>
</el-dialog>
</div>
</template>
<script>
import upload from "@/api/uploadApi";
import uploadMixin from "@/mixins/upload";
export default {
name: "createANewLiveRoom",
mixins: [uploadMixin],
data() {
return {
loading: false,
activePage: 1,
incomingId: "",
incomingStatus: "",
pickerOptions: {
disabledDate(time) {
return time.getTime() < Date.now() - 24 * 60 * 60 * 1000;
}
},
showDraft: true,
dialogType: "",
dialogVisibleImg: false,
baseForm: {
name: "",
introduction: "",
timeStr: []
},
saveBaseForm: {},
basevalid: "",
baseRules: {
name: [
{ required: true, message: "请输入直播间名称", trigger: "blur" }
// { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
timeStr: [
{ required: true, message: "请选择开播时间", trigger: "change" }
]
},
hasMediaCover: false,
// 分享卡片
backgroundData: {
bgc: "#EDF1F9",
sortColor: ["#EDF1F9", "#000000", "#BDE1FF", "#FFDABB"]
},
time: "",
liveRoom: {
shareCardPaper: "",
shareCardCover: "",
liveVideoCover: "",
preLiveMediaType: "0",
preLiveMediaFile: "",
preLiveMediaCover: "",
liveBackgroundWall: "",
preLiveMediaFilePic: "",
preLiveMediaCoverPic: "",
preLiveMediaFileVid: "",
preLiveMediaCoverVid: ""
}
};
},
watch: {
"liveRoom.liveBackgroundWall": {
handler(newV, oldV) {
if (/\.(jpg|jpeg|png|JPG|PNG)$/.test(newV)) {
this.liveRoom.liveBackgroundWall = newV;
this.hasMediaCover = true;
} else {
this.hasMediaCover = false;
this.liveRoom.liveBackgroundWall = this.backgroundData.bgc = newV || this.backgroundData.bgc;
}
},
immediate: true,
deep: true
},
"liveRoom": {
handler(newValue, oldValue) {
if (newValue.copywriting !== undefined || newValue.shareCardCover !== undefined) {
this.getNowTime();
}
},
deep: true
}
},
async created() {
const { id } = this.$route.query.row;
this.incomingId = id;
if (id) {
await this.$apis.live
.LiveRoomDetailApi({ id })
.then(res => {
const status = res.status;
if (status == "0" || status == "1") {
this.showDraft = false;
}
this.incomingStatus = status;
this.baseForm.name = res.name;
this.baseForm.introduction = res.introduction;
this.$set(this.baseForm, "timeStr", [res.startTimeStr.replace(/\//g, "-"), res.endTimeStr.replace(/\//g, "-")]);
Object.keys(res).forEach(i => {
this.liveRoom[i] = res[i] || this.liveRoom[i];
});
if (res.preLiveMediaType == "0") {
this.liveRoom.preLiveMediaType = "0";
this.liveRoom.preLiveMediaFilePic = res.preLiveMediaFile;
this.liveRoom.preLiveMediaCoverPic = res.preLiveMediaCover;
} else {
this.liveRoom.preLiveMediaType = "1";
this.liveRoom.preLiveMediaFileVid = res.preLiveMediaFile;
this.liveRoom.preLiveMediaCoverVid = res.preLiveMediaCover;
}
});
}
},
mounted() {
},
methods: {
handleLook(type) {
this.dialogType = type;
this.dialogVisibleImg = true;
this.dialogSrc = type == "img" ? this.liveRoom.preLiveMediaCover : this.liveRoom.preLiveMediaFileVid;
},
handleVideoChange(e) {
const self = this;
let file = e.target.files[0];
const size = file.size / 1024 / 1024;
if (size > 20) {
this.$message.error("上传视频大小不能超过20M");
return;
}
self.loading = true;
upload.init().then(res => {
if (res.status == 0) {
upload
.uploaded(file)
.then(res => {
self.loading = false;
const videoUrl = res.video.url;
self.$set(self.liveRoom, "preLiveMediaFileVid", videoUrl);
self.$nextTick(() => {
self.getImgUrl(videoUrl).then(res => {
self.$set(self.liveRoom, "preLiveMediaCoverVid", res);
});
});
})
.finally(end => {
console.log(end);
});
upload.uploadEvent("", res => {
console.log(res, "视频上传完成");
});
upload.uploadEvent("media_progress", res => {
console.log(res);
});
}
});
},
async handleCreateorEdit(draftFlag) {
let sucText = "创建直播间成功!";
let errText = "创建直播间失败!";
const params = Object.assign(this.liveRoom, this.baseForm);
if (params.preLiveMediaType == "0") {
params.preLiveMediaFile = params.preLiveMediaFilePic || "";
params.preLiveMediaCover = params.preLiveMediaCoverPic || "";
} else {
params.preLiveMediaFile = params.preLiveMediaFileVid || "";
params.preLiveMediaCover = params.preLiveMediaCoverVid || "";
}
if (params.timeStr) {
params.startTimeStr = params.timeStr[0] || "";
params.endTimeStr = params.timeStr[1] || "";
}
delete params.preLiveMediaFilePic;
delete params.preLiveMediaCoverPic;
delete params.preLiveMediaFileVid;
delete params.preLiveMediaCoverVid;
delete params.timeStr;
if (draftFlag == "1") {
this.activePage == "1" && this.getFormValidation();
if (this.basevalid) {
params.draftFlag = "1";
sucText = "草稿保存成功!";
errText = "草稿保存失败!";
} else {
return false;
}
}
// 24 属于新建
if (!!this.incomingStatus && (this.incomingStatus == "2" || this.incomingStatus == "4")) {
delete params.id;
}
// 01 就是属于编辑
if (this.incomingId && this.incomingStatus == "0") {
params.id = this.incomingId;
sucText = "编辑成功!";
errText = "编辑失败!";
}
await this.$apis.live.addOrUpdataLiveRoomApi(params).then(res => {
if (res.code == "0") {
this.$message.success(sucText);
this.$router.push(
{ path: "./index" }
);
} else {
this.$message.error(errText);
}
});
},
changeBGC(item) {
this.backgroundData.bgc = item;
this.liveRoom.liveBackgroundWall = item;
},
previousNextStep(step) {
if (step == "next") {
this.getFormValidation();
if (this.basevalid) {
this.activePage = "2";
}
} else if (step == "previous") {
this.activePage = "1";
}
},
getFormValidation() {
this.$refs.baseForm.validate((valid) =>
this.basevalid = valid
);
},
getNowTime() {
let date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1;
let monthStr = month >= 10 ? month : "0" + month;
let day = date.getDate();
let dayStr = day >= 10 ? day : "0" + day;
let hour = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
let minute = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
this.time = year + "年" + monthStr + "月" + dayStr + "日" + " " + hour + ":" + minute;
},
uploadAvatar(e, refName) {
this.uploadFile(e, refName);
},
uploadFile(e, refName, AllImgExt = ".jpg|.jpeg|.png") {
const file = e.srcElement.files[0];
let extName = file.name.substring(file.name.lastIndexOf(".")).toLowerCase();
if (AllImgExt.indexOf(extName) === -1) {
this.$message.error("上传格式不正确");
return false;
}
const size = file.size / 1024 / 1024;
if (size > 10) {
this.$message.error("图片体积需小于10M");
return;
}
let reader = new FileReader();
let fileInfo = e.srcElement.files[0];
reader.readAsDataURL(fileInfo);
reader.onload = e => {
const imgFile = e.target.result;
const base64 = fileInfo.name.split(".")[1] + "@" + imgFile.split(",")[1];
this.$apis.common.pictureUpload({ file: base64 }).then(res => {
this.$set(this.liveRoom, refName, res);
});
};
}
}
};
</script>
<style lang="scss" scoped>
.upload-panel {
cursor: pointer;
background-size: 100% 100%;
border: 1px solid #5850FF;
border-radius: 4px;
text-align: center;
position: relative;
color: #5850FF;
.upload-view {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s;
&:hover {
opacity: 1;
}
i {
color: rgba(255, 255, 255, 0.8);
font-size: 16px;
&:first-child {
margin-right: 5px;
}
}
}
input {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
cursor: pointer;
}
.upload-icon {
font-size: 20px;
margin-top: 25px;
color: rgba(0, 0, 0, 0.45);
}
.upload-text {
font-size: 14px;
height: 20px;
line-height: 20px;
color: #666666;
}
}
.displayIro {
margin: 8px 0 0 0;
.intro {
font-size: 14px;
color: #666666;
margin: 16px 0;
line-height: 24px;
}
.copywriting {
margin-top: 35px;
display: flex;
align-items: center;
p {
font-size: 14px;
color: #333;
}
}
}
.baseTitle {
font-weight: 600;
font-size: 16px;
color: #333333;
padding: 15px 0 15px 20px;
border-bottom: 1px solid #E5E5E5;
}
.baseSpace {
margin-top: 20px;
background-color: #FFFFFF;
}
.paddingSpace {
padding: 20px;
}
.displayIro {
.title {
color: #000000;
font-weight: 600;
font-size: 16px;
}
.intro {
font-size: 14px;
}
}
.createANewLiveRoom {
.header {
display: flex;
justify-content: center;
.step {
width: 30%;
display: flex;
align-items: center;
.horizontalLine {
height: 1px;
width: 30%;
background: #C6C6C6;
margin: 0 15px;
}
.baseinfo {
display: flex;
line-height: 32px;
.text {
margin-left: 8px;
font-size: 16px;
color: rgba(0, 0, 0, 0.85);
}
.circular {
width: 32px;
height: 32px;
border-radius: 50%;
border: 1px solid #C6C6C6;
color: #C6C6C6;
text-align: center;
line-height: 32px;
}
.circularAct {
background: #5850FF;
border: none;
color: #ffffff;
}
}
}
}
.baseInfoContainer {
height: calc(100vh - 240px);
margin-top: 16px;
background: #FFFFFF;
.baseFrame {
width: 40%;
margin: 20px 0 0 20px;
}
}
.configContainer {
.baseInfo {
.spaceFrame {
display: flex;
.displayImage {
width: 280px;
height: 280px;
background: #F7F7F7;
margin-right: 35px;
position: relative;
.timeline {
text-align: center;
font-size: 10px;
color: #999999;
margin: 16px 0;
}
.tainer {
display: flex;
.avator {
width: 26px;
height: 26px;
margin-left: 16px;
}
.liveContainer {
background: #FFFFFF;
padding: 8px;
width: 62%;
height: 100%;
.imgYai {
width: 85px;
}
.shareText {
font-size: 12px;
color: #333333;
margin: 8px 0
}
.shareImg {
width: 100%;
height: 128px;
background: #F7F7F7;
img {
width: 100%;
height: 100%;
}
}
.shareIcon {
display: flex;
align-items: center;
font-size: 8px;
color: #666666;
margin-top: 6px;
div {
width: 10px;
height: 10px;
img {
width: 100%;
height: 100%;
}
}
}
}
}
}
.forn {
display: flex;
.liveContainerStyle {
background: #F7F7F7;
padding: 15px;
margin-right: 35px;
display: flex;
position: relative;
.leftCon {
width: 160px;
height: 160px;
img {
width: 100%;
height: 100%;
}
}
.rightCon {
box-sizing: border-box;
width: 160px;
height: 160px;
background: #FFFFFF;
padding: 10px;
font-size: 14px;
color: #000000;
.img {
width: 85px;
}
.title {
margin: 8px 0;
}
.white {
display: flex;
div {
width: 60px;
height: 60px;
background: #F7F7F7;
margin-right: 10px;
}
}
}
}
}
}
}
}
.foot {
margin-top: 20px;
display: flex;
justify-content: center;
}
}
.spaceFrameNew {
.photosContent {
display: flex;
margin: 16px 0;
.trailerImage {
.imgDisplay {
background: #F7F7F7;
width: 200px;
height: 433px;
margin-right: 35px;
position: relative;
img {
height: 100%;
width: 100%;
}
}
}
.preview {
.imgDisplay {
background: #F7F7F7;
width: 160px;
height: 160px;
position: relative;
img {
width: 100%;
}
}
}
}
}
.liveRoomBackground {
display: flex;
.bgmDisplay {
margin-right: 35px;
position: relative;
.back {
width: 200px;
height: 433px;
img {
width: 100%;
height: 100%;
}
}
.sort {
width: 200px;
display: flex;
margin-top: 10px;
justify-content: space-evenly;
.sortSize {
width: 40px;
height: 40px;
cursor: pointer;
border-radius: 2px;
}
}
}
}
img {
width: 100%;
height: 100%;
}
.videoContent {
display: flex;
margin-top: 10px;
height: 440px;
.teaserVideo {
width: 200px;
height: 150px;
background: #F7F7F7;
}
.teaserVideoCover {
margin-left: 150px;
width: 200px;
height: 150px;
background: #F7F7F7;
}
}
.video-panel {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
video {
position: absolute;
object-fit: fill;
}
.el-icon-video-play {
z-index: 10;
font-size: 20px;
color: #fff;
cursor: pointer;
}
.el-icon-close {
position: absolute;
top: 0px;
right: 0px;
background: #000000;
color: #fff;
}
}
.deleteIcon {
position: absolute;
right: 0;
top: 0;
cursor: pointer;
}
</style>
<template> <template>
<div class="live-room"> <div class="live-room">
<div class="m-b-20"> <!-- <div class="m-b-20">-->
<el-button <!-- <el-button :size="size" type="primary" class="el-icon-plus" @click="goLiveRoom">新建</el-button>-->
:size="size" <!-- </div>-->
type="primary"
class="el-icon-plus"
@click="pageClick(1)"
>新建</el-button>
</div>
<div class="container"> <div class="container">
<div> <div>
<GLCombiForm <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData"
ref="showSearch" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
:rowNumber="1" </div>
:formObj="searchForm" <div class="live-table-header">
:formData="searchFormData" <h2>直播列表</h2>
@handleOk="handleSearch" <el-button :size="size" type="primary" @ @click="goLiveRoom">新建直播</el-button>
@handleRest="handleReset"
></GLCombiForm>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable <GLTable ref="classifyRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm"
ref="classifyRef" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
:getListApi="getListApi" @setTableFinishFun="setTableFinishFun">
:noDataImg="url" <div slot="status" slot-scope="scope">
:searchForm="tableSearchForm" <span
:tableParams="tableParams" :class="['table-circle', 'm-r-8', scope.scope.status == 1 ? 'back-blue' : scope.scope.status == 3 ? 'back-orange' : 'back-grey']"></span>
:pageConf="pageConf" <span>{{ scope.scope.statusStr || "--" }}</span>
:beforeSearchFn="beforeSearchFn" </div>
@setTableFinishFun="setTableFinishFun" <div slot="name" slot-scope="scope">
> <div class="bgmName">
<div <el-popover placement="bottom" width="400" trigger="hover">
slot="status" <div class="qrCode-popover">
slot-scope="scope" <img v-if="scope.scope.liveVideoCover"
> :src="scope.scope.liveVideoCover" style="width: 360px; height: 360px" />
<span :class="['table-circle', 'm-r-8', scope.scope.status == 1 ?'back-blue': 'back-grey']"></span> </div>
<span>{{scope.scope.statusStr || '--'}}</span> <img v-if="scope.scope.liveVideoCover" :src="scope.scope.liveVideoCover"
style="width: 36px; height: 36px;margin-right: 8px" slot="reference" />
</el-popover>
<span class="name">{{ scope.scope.name }}</span>
</div>
</div> </div>
<div <div class="table-btns" slot="auth-button" slot-scope="scope">
class="table-btns" <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
slot="auth-button"
slot-scope="scope"
>
<GLTableButton
:buttonList="tableButtonList"
:buttonItem="scope.scope"
:buttonNum="1"
></GLTableButton>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
<GLDialog <GLDialog ref="dialogRef" v-if="dialogObj.show" :title="dialogObj.type ? '新建直播间' : '详情'"
ref="dialogRef" :visible.sync="dialogObj.show" :close-on-click-modal="false" @onOk="handleCreateLiveRoom"
v-if="dialogObj.show" @onCancel="dialogObj.show = false" :hasFooter="dialogObj.type == 1">
:title="dialogObj.type? '新建直播间' : '详情'"
:visible.sync="dialogObj.show"
:close-on-click-modal="false"
@onOk="handleCreateLiveRoom"
@onCancel="dialogObj.show = false"
:hasFooter="dialogObj.type == 1"
>
<div class="dialog-content"> <div class="dialog-content">
<template v-if="dialogObj.type == 1"> <template v-if="dialogObj.type == 1">
<glsx-combi-form <glsx-combi-form class="edit-form-container" ref="configEditFormRef" :isEdit="true" :isBlock="true"
class="edit-form-container" :formRef="editChildRef" :formObj="editForm" :formData="configEditFormData"
ref="configEditFormRef" :formRules="editRule">
:isEdit="true" <template slot="liveTimeHtml" slot-scope="scope">
:isBlock="true" <el-date-picker v-model="editForm.liveTime" type="datetimerange" range-separator="至"
:formRef="editChildRef" start-placeholder="开始日期" end-placeholder="结束日期"
:formObj="editForm" value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']"
:formData="configEditFormData" @change="e => handleTimeChange(e, scope)"
:formRules="editRule" :picker-options="pickerOptions"></el-date-picker>
>
<template
slot="liveTimeHtml"
slot-scope="scope"
>
<el-date-picker
v-model="editForm.liveTime"
type="datetimerange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
value-format="yyyy-MM-dd HH:mm:ss"
:default-time="['00:00:00', '23:59:59']"
@change="e => handleTimeChange(e,scope)"
:picker-options="pickerOptions"
></el-date-picker>
</template> </template>
</glsx-combi-form> </glsx-combi-form>
</template> </template>
...@@ -96,32 +61,36 @@ ...@@ -96,32 +61,36 @@
<div class="el-form-item--small isBlock"> <div class="el-form-item--small isBlock">
<label class="el-form-item__label">推流地址:</label> <label class="el-form-item__label">推流地址:</label>
<div class="el-form-item__content"> <div class="el-form-item__content">
<el-input <el-input type="text" readonly v-model="liveDetail.pushPath">
type="text" <i slot="suffix" class="el-input__icon el-icon-document-copy"
readonly @click="handleCopy(liveDetail.pushPath)"></i>
v-model="liveDetail.pushPath"
>
<i
slot="suffix"
class="el-input__icon el-icon-document-copy"
@click="handleCopy(liveDetail.pushPath)"
></i>
</el-input> </el-input>
</div> </div>
</div> </div>
<div class="el-form-item--small isBlock"> <div class="el-form-item--small isBlock">
<label class="el-form-item__label">播放地址:</label> <label class="el-form-item__label">播放地址:</label>
<div class="el-form-item__content"> <div class="el-form-item__content">
<el-input <el-input type="text" readonly v-model="liveDetail.playPath">
type="text" <i slot="suffix" class="el-input__icon el-icon-document-copy"
readonly @click="handleCopy(liveDetail.playPath)"></i>
v-model="liveDetail.playPath" </el-input>
> </div>
<i </div>
slot="suffix" <div class="el-form-item--small isBlock">
class="el-input__icon el-icon-document-copy" <label class="el-form-item__label">OBS推流地址:</label>
@click="handleCopy(liveDetail.playPath)" <div class="el-form-item__content">
></i> <el-input type="text" readonly v-model="liveDetail.obsPushUrl">
<i slot="suffix" class="el-input__icon el-icon-document-copy"
@click="handleCopy(liveDetail.obsPushUrl)"></i>
</el-input>
</div>
</div>
<div class="el-form-item--small isBlock">
<label class="el-form-item__label">OBS推流名称:</label>
<div class="el-form-item__content">
<el-input type="text" readonly v-model="liveDetail.obsPushStreamName">
<i slot="suffix" class="el-input__icon el-icon-document-copy"
@click="handleCopy(liveDetail.obsPushStreamName)"></i>
</el-input> </el-input>
</div> </div>
</div> </div>
...@@ -129,246 +98,349 @@ ...@@ -129,246 +98,349 @@
</template> </template>
</div> </div>
</GLDialog> </GLDialog>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisibleDel = false" type="error"
content="是否确认删除直播间?" :visible.sync="dialogVisibleDel" mode="small"></GLDialog>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import url from '@/assets/empty.png' import url from "@/assets/empty.png";
export default { export default {
name: 'LiveIndex', name: "LiveIndex",
data () { data() {
return { return {
pickerOptions: { pickerOptions: {
disabledDate (date) { disabledDate(date) {
const yesterday = new Date(new Date().setDate(new Date().getDate() - 1)) const yesterday = new Date(new Date().setDate(new Date().getDate() - 1));
return date < yesterday return date < yesterday;
} }
}, },
dialogObj: { dialogObj: {
show: false show: false
}, },
size: 'small', dialogVisibleDel: false,
size: "small",
url: url, url: url,
searchForm: { searchForm: {
term: '', term: "",
status: '' status: ""
}, },
tableSearchForm: {}, tableSearchForm: {},
// 搜索 // 搜索
searchFormData: [ searchFormData: [
{ {
label: '直播间搜索', label: "直播间搜索",
name: 'term', name: "term",
type: 'input', type: "input",
maxlength: 20 maxlength: 20
}, },
{ {
label: '直播状态', label: "直播状态",
name: 'status', name: "status",
type: 'select', type: "select",
width: '215px', width: "215px",
optionList: [ optionList: [
{ confId: '', confName: '全部' }, { confId: "", confName: "全部" },
{ confId: '0', confName: '未开始' }, { confId: "0", confName: "未开始" },
{ confId: '1', confName: '进行中' }, { confId: "1", confName: "直播中" },
{ confId: '2', confName: '已结束' }, { confId: "2", confName: "已结束" },
{ confId: "3", confName: "草稿" },
{ confId: "4", confName: "过期" }
], ],
optionId: 'confId', optionId: "confId",
optionLabel: 'confName' optionLabel: "confName"
} }
], ],
// 表格 // 表格
getListApi: this.$apis.live.getListApi, getListApi: this.$apis.live.getListApi,
tableParams: { tableParams: {
listName: 'list', listName: "list",
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '房间号', label: "房间号",
prop: 'roomNumber', prop: "roomNumber"
}, },
{ {
label: '直播间名称', label: "直播间名称",
prop: 'name', prop: "name",
addHtml: "name"
}, },
{ {
label: '最近开播', label: "最近开播",
prop: 'liveTime' prop: "liveTime"
}, },
{ {
label: '直播状态', label: "直播状态",
prop: 'status', prop: "status",
addHtml: 'status', addHtml: "status",
width: "170"
},
{
label: "观看总人数",
prop: "totalVisitPeople",
width: "150"
} }
] ]
}, },
tableButtonList: [ tableButtonList: [
{ {
type: 'el-button', type: "el-button",
name: '详情', name: "控制台",
attrs: { attrs: {
type: 'text' type: "text"
}, },
listeners: { listeners: {
click: row => { click: row => {
this.$apis.live this.$router.push(`/liveList/console?id=${row.id}`);
.LiveRoomDetailApi({ id: row.id }) }
.then(res => { }
console.log(JSON.parse(JSON.stringify(res))) },
this.liveDetail = res {
this.pageClick() type: "el-button",
}) name: "推流地址",
attrs: {
type: "text"
},
condition: row => {
return row.status !== 4;
},
listeners: {
click: row => {
this.$apis.live.LiveRoomDetailApi({ id: row.id }).then(res => {
this.liveDetail = res;
this.pageClick();
});
}
}
},
// {
// type: "el-button",
// name: "删除",
// attrs: {
// type: "text"
// },
// condition: row => {
// return row.status !== 1;
// },
// listeners: {
// click: row => {
// this.handleDelete(row);
// }
// }
// },
{
type: "el-button",
name: "编辑",
attrs: {
type: "text"
},
condition: row => {
return row.status !== 1;
},
listeners: {
click: row => {
this.goLiveRoom(row);
} }
} }
} }
], ],
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: "pageSize", pageNum: "currentPage", totalCount: "total" },
editChildRef: 'editChildRef', editChildRef: "editChildRef",
editForm: { editForm: {
name: '', name: "",
liveTime: [] liveTime: []
}, },
configEditFormData: [ configEditFormData: [
{ {
label: '直播间名称', label: "直播间名称",
name: 'name', name: "name",
type: 'input', type: "input",
maxlength: 20, maxlength: 20
}, },
{ {
label: '开播时间', label: "开播时间",
name: 'liveTime', name: "liveTime",
type: 'datePicker', type: "datePicker",
addHtml: 'liveTimeHtml' addHtml: "liveTimeHtml"
} }
], ],
editRule: { editRule: {
name: [{ required: true, message: '请输入直播间名称', trigger: 'change' }], name: [{ required: true, message: "请输入直播间名称", trigger: "change" }],
liveTime: [{ required: true, message: '请选择开播时间', trigger: 'change' }], liveTime: [{ required: true, message: "请选择开播时间", trigger: "change" }]
}, },
liveDetail: {} liveDetail: {}
} };
}, },
mounted () { mounted() {
}, },
methods: { methods: {
pageClick (type) { handleSure() {
const { id } = this.selectItem;
this.$apis.live
.deleteLiveRoomApi({
id
})
.then(res => {
if (res) {
this.$message({
type: "success",
message: "删除成功!"
});
}
this.handleSearch();
});
this.dialogVisibleDel = false;
},
handleDelete(row) {
this.selectItem = row;
this.dialogVisibleDel = true;
},
goLiveRoom(row) {
this.$router.push({
path: "./createANewLiveRoom",
query: {
row
}
});
},
pageClick(type) {
this.editForm = { this.editForm = {
name: '', name: "",
liveTime: [] liveTime: []
} };
this.dialogObj = { this.dialogObj = {
type, type,
show: true show: true
} };
}, },
getParams () { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm));
return params return params;
}, },
beforeSearchFn () { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = this.getParams() this.tableSearchForm = this.getParams();
resolve() resolve();
}) });
}, },
setTableFinishFun () { setTableFinishFun() {
//接收到的数据为空 //接收到的数据为空
this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = '') : this.$refs.classifyRef.setTableHeightFun() this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = "") : this.$refs.classifyRef.setTableHeightFun();
}, },
handleSearch () { handleSearch() {
this.$refs.classifyRef.refreshTable() this.$refs.classifyRef.refreshTable();
}, },
handleReset () { handleReset() {
this.searchForm = { this.searchForm = {
classifyName: '', classifyName: "",
createDate: [] createDate: []
} };
this.handleSearch() this.handleSearch();
}, },
handleTimeChange (e) { handleTimeChange(e) {
this.editForm.liveTime = e this.editForm.liveTime = e;
}, },
handleCopy (txt) { handleCopy(txt) {
this.$message({ this.$message({
message: '复制成功', message: "复制成功",
type: 'success', type: "success",
customClass: 'message-Z-zinde' customClass: "message-Z-zinde"
}) });
const input = document.createElement('input') const input = document.createElement("input");
document.body.appendChild(input) document.body.appendChild(input);
input.setAttribute('value', txt) input.setAttribute("value", txt);
input.select() input.select();
document.execCommand('Copy') document.execCommand("Copy");
document.body.removeChild(input) document.body.removeChild(input);
}, },
handleCreateLiveRoom () { handleCreateLiveRoom() {
this.$refs.configEditFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.configEditFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
let { name, liveTime } = this.editForm, let { name, liveTime } = this.editForm,
params = { params = {
name name
} };
if (liveTime.length) { if (liveTime.length) {
let [startTimeStr, endTimeStr] = liveTime let [startTimeStr, endTimeStr] = liveTime;
params.startTimeStr = startTimeStr params.startTimeStr = startTimeStr;
params.endTimeStr = endTimeStr params.endTimeStr = endTimeStr;
} }
this.loading = true this.loading = true;
this.$apis.live this.$apis.live
.addOrUpdataLiveRoomApi(params) .addOrUpdataLiveRoomApi(params)
.then(res => { .then(res => {
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : res.message ? res.message : '操作失败', message: res.code == "0" ? "操作成功" : res.message ? res.message : "操作失败",
type: res.code == '0' ? 'success' : 'error' type: res.code == "0" ? "success" : "error"
}) });
if (res.code == '0') { if (res.code == "0") {
this.handleSearch() this.handleSearch();
this.dialogObj.show = false this.dialogObj.show = false;
} }
}) })
.finally(() => { .finally(() => {
this.loading = false this.loading = false;
}) });
} }
}) });
} }
} }
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.live-table-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333333;
}
}
.bgmName {
display: flex;
align-items: center;
}
.dialog-content { .dialog-content {
.box { .box {
padding-left: 20px; padding-left: 20px;
.isBlock { .isBlock {
margin-bottom: 20px; margin-bottom: 20px;
} }
.el-form-item__content { .el-form-item__content {
cursor: pointer; cursor: pointer;
} }
.el-form-item__label { .el-form-item__label {
width: 154px; width: 154px;
} }
.el-input { .el-input {
width: 284px; width: 432px;
height: 32px; height: 32px;
background: #ffffff; background: #ffffff;
border-radius: 4px; border-radius: 4px;
/deep/.el-input__inner {
/deep/ .el-input__inner {
height: 100%; height: 100%;
} }
/deep/.el-input__icon {
/deep/ .el-input__icon {
line-height: 32px; line-height: 32px;
} }
} }
......
<template>
<div class="live-room">
<div class="container">
<div>
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
</div>
<!-- 表格区域 开始 -->
<div class="live-table-header">
<h2>短视频列表</h2>
<el-button :size="size" type="primary" @click="pageClick">新建短视频</el-button>
</div>
<GLTable ref="classifyRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="status" slot-scope="scope">
<span :class="['table-circle', scope.scope.status == 1 ? 'back-green' : 'back-grey']"></span>
<span>{{ scope.scope.statusStr || '--' }}</span>
</div>
<div slot="coverUrl" slot-scope="scope">
<div class="image-popover" @click="handleLook(scope.scope)">
<img :src="scope.scope.coverUrl" />
</div>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div>
</GLTable>
<el-dialog class="image-dialog" :visible.sync="dialogVisibleImg" width="30%">
<big-view ref="viewForm" v-if="dialogVisibleImg" :dialogSrc="dialogSrc" :dialogType="dialogType"></big-view>
</el-dialog>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisibleDel = false" type="error" content="是否确认删除短视频?" :visible.sync="dialogVisibleDel" mode="small"></GLDialog>
</div>
</div>
</template>
<script>
import url from '@/assets/empty.png'
import bigView from '@/components/big-view'
export default {
name: 'LiveIndex',
components: {
bigView
},
data() {
return {
dialogVisibleDel: false,
dialogVisibleImg: false,
dialogType: '',
selectItem: '',
size: 'small',
url: url,
searchForm: {
term: '',
status: ''
},
tableSearchForm: {},
// 搜索
searchFormData: [
{
label: '短视频搜索',
name: 'term',
type: 'input',
placeholder: '请输入关键字',
maxlength: 20
},
{
label: '状态',
name: 'status',
type: 'select',
width: '215px',
optionList: [
{ confId: '', confName: '全部' },
{ confId: '0', confName: '未上传' },
{ confId: '1', confName: '已上传' },
{ confId: '2', confName: '已删除' }
],
optionId: 'confId',
optionLabel: 'confName'
}
],
// 表格
getListApi: this.$apis.shortVideo.tencentcloudmediaPage,
tableParams: {
listName: 'list',
tableOption: true,
tableColumns: [
{
label: '编号',
prop: 'fileId'
},
{
label: '视频名称',
prop: 'fileName'
},
{
label: '宣传文案',
prop: 'introduction'
},
{
label: '封面图',
prop: 'coverUrl',
addHtml: 'coverUrl'
},
{
label: '创建日期',
prop: 'createdDate'
},
{
label: '状态',
prop: 'status',
addHtml: 'status'
}
]
},
tableButtonList: [
{
type: 'el-button',
name: '预览',
attrs: {
type: 'text'
},
condition: row => {
return row.status == 1
},
listeners: {
click: row => {
this.handleView(row)
}
}
},
{
type: 'el-button',
name: '编辑',
attrs: {
type: 'text'
},
condition: row => {
return row.status == 2 || row.status == 0
},
listeners: {
click: row => {
this.$router.push(`/shortVideo/uploadVideo?id=${row.id}`)
}
}
},
{
type: 'el-button',
name: '删除',
attrs: {
type: 'text'
},
condition: row => {
return row.status == 0 || row.status == 1
},
listeners: {
click: row => {
this.handleDelete(row)
}
}
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }
}
},
mounted() {},
methods: {
handleDelete(row) {
this.selectItem = row
this.dialogVisibleDel = true
},
pageClick() {
this.$router.push(`/shortVideo/uploadVideo`)
},
handleView(row) {
this.dialogType = 'video'
this.dialogVisibleImg = true
this.dialogSrc = row.mediaUrl
},
handleLook(row) {
this.dialogType = 'img'
this.dialogVisibleImg = true
this.dialogSrc = row.coverUrl
},
handleSure() {
const { id } = this.selectItem
this.$apis.shortVideo
.tencentcloudmediaDelete({
id
})
.then(res => {
if (res) {
this.$message({
type: 'success',
message: '删除成功!'
})
}
this.handleSearch()
})
this.dialogVisibleDel = false
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
resolve()
})
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = '') : this.$refs.classifyRef.setTableHeightFun()
},
handleSearch() {
this.$refs.classifyRef.refreshTable()
},
handleReset() {
this.searchForm = {
term: '',
status: ''
}
this.handleSearch()
}
}
}
</script>
<style lang="scss" scoped>
.live-table-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333333;
}
}
.table-circle {
margin-right: 5px;
}
.image-popover {
cursor: pointer;
img {
width: 36px;
height: 36px;
}
}
</style>
<template>
<div class="broadcast-container" v-loading="loading">
<div class="broadcast-content">
<div class="edit-title">上传视频</div>
<div class="broadcast-panel gl-form-page">
<el-form ref="uploadForm" :model="uploadForm" label-width="120px" :rules="uploadRules">
<el-form-item label="视频名称:" class="dis-in-block" prop="fileName">
<el-input v-model="uploadForm.fileName" placeholder="请输入内容"></el-input>
</el-form-item>
<el-form-item label="宣传文案:" class="dis-in-block">
<el-input type="textarea" rows="2" placeholder="请输入内容" class="desc-input" v-model="uploadForm.introduction"></el-input>
</el-form-item>
<el-form-item label="视频:" class="dis-in-block" prop="mediaUrl">
<div class="activity-img muti-imgs img-w-h">
<div class="add-border" v-show="!uploadForm.mediaUrl">
<div class="add-icon"><i class="el-icon-plus"></i></div>
<div class="add-text">上传</div>
</div>
<div class="video-panel" v-if="uploadForm.mediaUrl">
<video id="video" width="100%" height="100%" preload loop muted>
<source :src="uploadForm.mediaUrl" type="video/mp4" />
</video>
<i class="el-icon-video-play" @click="handleLook('video')"></i>
<i class="el-icon-close" @click="uploadForm.mediaUrl = ''"></i>
</div>
<input v-if="!uploadForm.mediaUrl" type="file" class="activity-Input img-w-h" accept="video/*" @change="e => handleVideoChange(e)" style="opacity: 0" />
</div>
</el-form-item>
<el-form-item label="封面:" class="dis-in-block" prop="coverUrl">
<div class="activity-img muti-imgs img-w-h">
<div class="add-border" v-show="!uploadForm.coverUrl">
<div class="add-icon"><i class="el-icon-plus"></i></div>
<div class="add-text">上传</div>
</div>
<img class="img-w-h" :src="uploadForm.coverUrl" v-show="uploadForm.coverUrl" />
<span class="img-btns" v-show="uploadForm.coverUrl">
<span class="btn-item">
<i @click="handleImgDelete" class="el-icon-delete" />
<i @click="handleLook('img')" class="el-icon-zoom-in" />
</span>
</span>
<input type="file" class="activity-Input img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleImgChange(e)" style="opacity: 0" />
</div>
</el-form-item>
</el-form>
</div>
</div>
<div class="broadcast-footer">
<el-button type="primary" @click="handleUp" class="ok-btn">
提交
</el-button>
<el-button class="cancel-btn" @click="handleClose">
取消
</el-button>
</div>
<el-dialog class="image-dialog" :visible.sync="dialogVisibleImg" width="30%">
<big-view ref="viewForm" v-if="dialogVisibleImg" :dialogSrc="dialogSrc" :dialogType="dialogType"></big-view>
</el-dialog>
</div>
</template>
<script>
import upload from '@/api/uploadApi'
import uploadMixin from '@/mixins/upload'
// const upload = new GlsxUpload({ baseURL: 'http://scrm.dev.glsx.com.cn' })
import bigView from '@/components/big-view'
export default {
name: 'uploadVideo',
mixins: [uploadMixin],
components: {
bigView
},
data() {
return {
limitSize: 20,
size: 'small',
dialogVisibleImg: false,
loading: false,
uploadForm: {
id: ''
},
dialogSrc: '',
dialogType: '',
uploadRules: {
fileName: [{ required: true, message: '请输入视频名称', trigger: 'blur' }],
mediaUrl: [{ required: true, message: '请选择视频', trigger: 'blur' }],
coverUrl: [{ required: true, message: '请选择封面', trigger: 'blur' }]
}
}
},
methods: {
handleImgDelete() {
this.uploadForm.coverUrl = ''
},
handleLook(type) {
this.dialogType = type
this.dialogVisibleImg = true
this.dialogSrc = type == 'img' ? this.uploadForm.coverUrl : this.uploadForm.mediaUrl
},
handleClose() {
this.$router.push('/shortVideo/index')
},
handleVideoChange(e) {
const self = this
let file = e.target.files[0]
const isLt = file.size / 1024 / 1024 < this.limitSize
if (!isLt) {
this.$message.error('上传视频大小不能超过' + this.limitSize + 'MB!')
return true
}
self.loading = true
upload.init().then(res => {
if (res.status == 0) {
upload
.uploaded(file)
.then(res => {
self.$refs['uploadForm'].clearValidate('mediaUrl')
const videoUrl = res.video.url
self.$set(self.uploadForm, 'mediaUrl', videoUrl)
self.$set(self.uploadForm, 'fileId', res.fileId)
self.$nextTick(() => {
self.getImgUrl(videoUrl).then(res => {
self.$set(self.uploadForm, 'coverUrl', res)
})
})
self.loading = false
})
.finally(end => {
console.log(end)
})
upload.uploadEvent('', res => {
console.log(res, '视频上传完成')
})
upload.uploadEvent('media_progress', res => {
console.log(res)
})
}
})
},
// // 图片
handleImgChange(e) {
var reader = new FileReader()
var fileInfo = e.srcElement.files[0]
reader.readAsDataURL(fileInfo)
reader.onload = e => {
const imgFile = e.target.result
const base64 = fileInfo.name.split('.')[1] + '@' + imgFile.split(',')[1]
this.$apis.common.pictureUpload({ file: base64 }).then(res => {
this.$refs['uploadForm'].clearValidate('coverUrl')
this.$set(this.uploadForm, 'coverUrl', res)
})
}
},
handleUp() {
this.$refs['uploadForm'].validate(valid => {
if (valid) {
this.$apis.shortVideo.tencentcloudmediaUpdate(this.uploadForm).then(res => {
if (res) {
this.$router.push('/shortVideo/index')
this.$message({
type: 'success',
message: '操作成功!'
})
}
})
}
})
},
mediaDetail() {
const { id } = this.uploadForm
this.$apis.shortVideo.tencentcloudmediaDetail({ id }).then(res => {
this.uploadForm = res
})
}
},
mounted() {
const { id } = this.$route.query
if (id) {
this.uploadForm.id = id
this.mediaDetail()
}
}
}
</script>
<style lang="scss" scoped>
.broadcast-content {
background: #fff;
height: calc(100vh - 136px);
.edit-title {
font-weight: 600;
font-size: 16px;
color: #333333;
text-align: left;
line-height: 58px;
height: 58px;
padding-left: 20px;
border-bottom: 1px solid #e5e5e5;
}
}
.broadcast-footer {
margin-top: 16px;
text-align: center;
}
.broadcast-panel {
margin-top: 20px;
.activity-img {
width: 104px;
height: 104px;
background: rgba(0, 0, 0, 0.04);
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px;
cursor: pointer;
position: relative;
input {
cursor: pointer;
font-size: 0;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
.add-border {
text-align: center;
color: rgba(0, 0, 0, 0.45);
.add-icon {
margin-top: 20px;
height: 20px;
font-size: 17px;
}
.add-text {
height: 30px;
font-size: 12px;
}
}
}
.img-btns,
img {
width: 100%;
height: 100%;
}
.video-panel {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
video {
position: absolute;
object-fit: fill;
}
.el-icon-video-play {
z-index: 10;
font-size: 20px;
color: #fff;
cursor: pointer;
}
.el-icon-close {
position: absolute;
top: 0px;
right: 0px;
background: #000000;
color: #fff;
}
}
}
.video-dialog {
z-index: 2001;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
background: rgba($color: #000000, $alpha: 0.5);
&-panel {
background: #000000;
position: absolute;
top: 100px;
left: 50%;
transform: translateX(-50%);
height: calc(100% - 200px);
width: auto;
box-sizing: border-box;
padding: 10px 20px 20px;
overflow: hidden;
.video-close {
display: flex;
justify-content: flex-end;
height: 40px;
i {
cursor: pointer;
font-size: 25px;
color: #5850ff;
}
}
}
}
</style>
...@@ -9,7 +9,7 @@ const cdn = { ...@@ -9,7 +9,7 @@ const cdn = {
js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`] js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`]
} }
module.exports = { module.exports = {
outputDir: `../dist/${packageName}`, outputDir: `dist`,
publicPath, publicPath,
assetsDir: 'static', assetsDir: 'static',
productionSourceMap: false, productionSourceMap: false,
...@@ -32,7 +32,6 @@ module.exports = { ...@@ -32,7 +32,6 @@ module.exports = {
'element-ui': 'ELEMENT', 'element-ui': 'ELEMENT',
'vue-router': 'VueRouter', 'vue-router': 'VueRouter',
vuex: 'Vuex', vuex: 'Vuex',
axios: 'axios',
echarts: 'echarts' echarts: 'echarts'
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!