Browse Source

调整文化页面错误

lite
453530270@qq.com 3 years ago
parent
commit
df2d0f2c3e
  1. 14
      src/api/home.js
  2. 37
      src/views/cultrue/index.vue
  3. 25
      src/views/ty/index.vue

14
src/api/home.js

@ -9,7 +9,9 @@ const api={
monthly_klqs:'/pass.passcc/allGroupTimeNum&granularity=monthly', monthly_klqs:'/pass.passcc/allGroupTimeNum&granularity=monthly',
yearly_klqs:'/pass.passcc/allGroupTimeNum&granularity=yearly', yearly_klqs:'/pass.passcc/allGroupTimeNum&granularity=yearly',
tyg_klqs:'/pass.passcc/allGroupTimeNum', tyg_klqs:'/pass.passcc/allGroupTimeNum',
zonglan_data:'/pass.passcc/allGroupNum' zonglan_data:'/pass.passcc/allGroupNum',
// 借阅办证的信息
librurl:'/library.pass/getLibraryService'
} }
// 获取群组 // 获取群组
@ -92,3 +94,13 @@ export function allGetVideo(param) {
param, param,
}) })
} }
// 图书借阅信息
export function libbrow(params) {
return request({
url: api.librurl,
method: 'get',
params,
})
}

37
src/views/cultrue/index.vue

@ -54,12 +54,12 @@
<span class="cmdt">博物馆</span> <span class="cmdt">博物馆</span>
</div> </div>
<div class="cmdiv"> <div class="cmdiv">
<span id="cmdval2" class="cmdval">890,098</span> <span id="cmdval2" class="cmdval">{{whg_num}}</span>
<span class="cmdt">文化馆</span> <span class="cmdt">文化馆</span>
</div> </div>
</div> </div>
<div class="cbuttom"> <div class="cbuttom">
<span id="cmdval3" class="cbval">23,334</span> <span id="cmdval3" class="cbval">{{ tsg_num }}</span>
<span class="cbt">图书馆</span> <span class="cbt">图书馆</span>
</div> </div>
</div> </div>
@ -95,6 +95,10 @@ export default {
yearNum: 0, yearNum: 0,
// //
bwg_num:1000, bwg_num:1000,
//
whg_num:5160,
//
tsg_num:8662,
}; };
}, },
@ -106,6 +110,8 @@ export default {
} else { } else {
cc.classList.add("wh_bg"); cc.classList.add("wh_bg");
} }
//
this.bwugrs()
this.cultrue_bar1(); this.cultrue_bar1();
this.cultrue_bar2(); this.cultrue_bar2();
@ -114,11 +120,12 @@ export default {
this.addNumber(0, this.monthNum, 'insv2') this.addNumber(0, this.monthNum, 'insv2')
this.addNumber(0, this.yearNum, 'insv3') this.addNumber(0, this.yearNum, 'insv3')
// //
this.addNumber(0, this.bwg_num, 'cmdval1') // this.addNumber(0, this.bwg_num, 'cmdval1')
this.addNumber(0, 890098, 'cmdval2') // this.addNumber(0, this.whg_num, 'cmdval2')
this.addNumber(0, 234098, 'cmdval3') // this.addNumber(0, this.tsg_num, 'cmdval3')
this.getTsgInfoDatas() this.getTsgInfoDatas()
// var name = ['', '', ''] // var name = ['', '', '']
}, },
methods: { methods: {
cultrue_bar1() { cultrue_bar1() {
@ -456,6 +463,11 @@ export default {
// //
cultrue_bar3() { cultrue_bar3() {
//
homeApi.libbrow().then(res=>{
// console.log(res)
});
var chartDom = document.getElementById("tsgchart"); var chartDom = document.getElementById("tsgchart");
var myChart = echarts.init(chartDom); var myChart = echarts.init(chartDom);
var option; var option;
@ -463,17 +475,17 @@ export default {
var data = [{ var data = [{
name: '今日办证人数', name: '今日办证人数',
icon: '../../assets/wh/wh_right3.png', icon: '../../assets/wh/wh_right3.png',
value: 323, value: 352,
}, },
{ {
name: '今日还书册数', name: '今日还书册数',
icon: '../../assets/wh/wh_right2.png', icon: '../../assets/wh/wh_right2.png',
value: 209, value: 17775,
}, },
{ {
name: '今日借书册数', name: '今日借书册数',
icon: '../../assets/wh/wh_right1.png', icon: '../../assets/wh/wh_right1.png',
value: 323, value: 24546,
}, },
]; ];
var libraryIcons = { var libraryIcons = {
@ -742,7 +754,8 @@ export default {
// //
bwugrs(){ bwugrs(){
homeApi.allTygGroupTimeNum({granularity:"daily",groupsId:"510"}).then(res=>{ homeApi.allTygGroupTimeNum({granularity:"daily",groupsId:"510"}).then(res=>{
console.log(res) let bwgrs = res.data.data.groupsData
this.bwg_num = bwgrs[0].noRepeatInNum
}); });
}, },
// //
@ -751,12 +764,12 @@ export default {
homeApi.allTsgInfoDatas().then(res => { homeApi.allTsgInfoDatas().then(res => {
// get allTimeData // get allTimeData
const tmpdata = res.data.data const tmpdata = res.data.data
console.log(tmpdata); // console.log(tmpdata);
console.log(typeof(tmpdata.today.incount)); // console.log(typeof(tmpdata.today.incount));
this.todayNum = this.toLocaleString(tmpdata.today.incount) this.todayNum = this.toLocaleString(tmpdata.today.incount)
this.monthNum = this.toLocaleString(tmpdata.month.incount) this.monthNum = this.toLocaleString(tmpdata.month.incount)
this.yearNum = this.toLocaleString(tmpdata.year.incount) this.yearNum = this.toLocaleString(tmpdata.year.incount)
console.log(this.todayNum, this.monthNum, this.yearNum); // console.log(this.todayNum, this.monthNum, this.yearNum);
// this.day_num = tmpdata.day.noRepeatInNum // this.day_num = tmpdata.day.noRepeatInNum
// this.week_num_num = tmpdata.week.noRepeatInNum // this.week_num_num = tmpdata.week.noRepeatInNum

25
src/views/ty/index.vue

@ -147,7 +147,7 @@ export default {
data() { data() {
return { return {
player: '', player: '',
videoUrl: 'rtmp://192.168.66.13:1935/live/openUrl/1OSHzLa/', videoUrl: '',
istygShow: false, istygShow: false,
istygShow2: false, istygShow2: false,
istygShow3: false, istygShow3: false,
@ -178,15 +178,11 @@ export default {
}, },
created() { created() {
// this.$nextTick DOM使DOM // this.$nextTick DOM使DOM
this.$nextTick(() => { // this.$nextTick(() => {
this.initPlugin(); // this.initPlugin();
this.initPlugin2(); // this.initPlugin2();
this.initPlugin3(); // this.initPlugin3();
}); // });
},
// 退
destroy(){
}, },
@ -812,7 +808,6 @@ export default {
let baseviodejson = this.sec_decode(baseviode) let baseviodejson = this.sec_decode(baseviode)
var jsonParseJson = JSON.parse(baseviodejson); var jsonParseJson = JSON.parse(baseviodejson);
// console.log(jsonParseJson);
this.videoData = jsonParseJson this.videoData = jsonParseJson
}); });
@ -847,12 +842,12 @@ export default {
iServicePortEnd: 15900, iServicePortEnd: 15900,
szClassId: '23BF3B0A-2C56-4D97-9C03-0CB103AA8F11', // IE10使ActiveXclsid szClassId: '23BF3B0A-2C56-4D97-9C03-0CB103AA8F11', // IE10使ActiveXclsid
cbConnectSuccess() { cbConnectSuccess() {
console.log('创建WebControl实例成功'); // console.log('WebControl1');
$('#camera0').html('创建WebControl实例成功1');
oWebControl0.JS_StartService('window', { oWebControl0.JS_StartService('window', {
// WebControl // WebControl
dllPath: './VideoPluginConnect.dll', // "./VideoPluginConnect.dll" dllPath: './VideoPluginConnect.dll', // "./VideoPluginConnect.dll"
}) }).then(
.then(
() => { () => {
// // // //
// oWebControl0.JS_SetWindowControlCallback({ // oWebControl0.JS_SetWindowControlCallback({
@ -1022,8 +1017,8 @@ export default {
}, },
// //
init() { init() {
console.log("i am init")
let _that = this; let _that = this;
_that.getPubKey(function () { _that.getPubKey(function () {
// //
// console.log(typeof(_that.videoData[0].host)); // console.log(typeof(_that.videoData[0].host));

Loading…
Cancel
Save