Commit 1fed3570 authored by 张浩然's avatar 张浩然

'updatePTZControll'

parent 1560ca73
...@@ -5264,6 +5264,12 @@ ...@@ -5264,6 +5264,12 @@
} }
} }
}, },
"font-awesome": {
"version": "4.7.0",
"resolved": "https://registry.npm.taobao.org/font-awesome/download/font-awesome-4.7.0.tgz",
"integrity": "sha1-j6jPBBGhoxr9B7BtKQK7n8gVoTM=",
"dev": true
},
"for-in": { "for-in": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npm.taobao.org/for-in/download/for-in-1.0.2.tgz", "resolved": "https://registry.npm.taobao.org/for-in/download/for-in-1.0.2.tgz",
......
...@@ -217,3 +217,12 @@ export function undergroundSeriousHiddenTrouble(data) { ...@@ -217,3 +217,12 @@ export function undergroundSeriousHiddenTrouble(data) {
params: data params: data
}); });
} }
// 气象
export function weather(data) {
return request4({
url: "/api/meteorology",
method: "get",
params: data
});
}
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<script> <script>
import { randNum } from '@/utils' import { randNum } from '@/utils'
import { dept } from '@/api' import { dept, weather } from '@/api'
export default { export default {
data() { data() {
return { return {
...@@ -37,17 +37,19 @@ export default { ...@@ -37,17 +37,19 @@ export default {
}, },
mounted() { mounted() {
this.axios /* this.axios.get('https://tianqiapi.com/api', {
.get('https://tianqiapi.com/api', { params: {
params: { version: 'v6',
version: 'v6', appsecret: 'Ml0dXby6',
appsecret: 'Ml0dXby6', appid: '31268663',
appid: '31268663', },
}, }).then(res => {
}) this.tian_qi_data = res.data
.then(res => { }) */
this.tian_qi_data = res.data
}) weather({}).then(function(res){
console.log('weather ________________ ', res);
})
this.dept() this.dept()
this.$store.commit('SET_IS_Right', true) this.$store.commit('SET_IS_Right', true)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment