lion 2 years ago
parent f93e575bbf
commit 661e0a98bf

@ -5,4 +5,4 @@ ENV = 'development'
VUE_APP_BASE_API = 'https://gb-test.ali251.langye.net'
#VUE_APP_BASE_API = 'https://gb-test.ali251.langye.net'
#VUE_APP_BASE_API = ' https://gbyuyue.szgmbwg.org.cn'

@ -4,4 +4,4 @@ ENV = 'production'
# base api
#VUE_APP_BASE_API = 'https://gb-test.ali251.langye.net'
VUE_APP_BASE_API = 'https://gb-test.ali251.langye.net'
VUE_APP_BASE_API = 'https://gbyuyue.szgmbwg.org.cn'

@ -7,12 +7,19 @@ import store from '@/store'
import {
getToken
} from '@/utils/auth'
// create an axios instance
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout: 50000 // request timeout
let baseUrl = ''
if(window.location.origin.indexOf('localhost')>-1){
baseUrl = process.env.VUE_APP_BASE_API
}else{
baseUrl = window.location.origin + '/'
}
const service = axios.create({
baseURL: baseUrl, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout: 50000, // request timeout
// isLoading:true
})
// request interceptor

@ -91,9 +91,11 @@
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>结束时间
</div>
<div class="xy-table-item-content">
<el-date-picker style="width: 300px;" default-time="16:00:00" v-model="form.over_time" value-format="yyyy-MM-dd HH:mm:ss"
<el-input v-model="form.over_time" placeholder="请输入结束时间" clearable style="width: 300px;"></el-input>
<!-- <el-date-picker style="width: 300px;" default-time="16:00:00" v-model="form.over_time" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" placeholder="选择日期时间">
</el-date-picker>
</el-date-picker> -->
</div>
</div>
</template>

@ -157,7 +157,7 @@ export default {
const res = await index({
page_size:this.select.pageSize,
page:this.select.pageIndex,
title:this.select.name,
name:this.select.name,
sort_name:'state',
sort_name_tow:'release_time',
sort_type:"DESC",

@ -7,14 +7,14 @@
<div slot="content"></div>
<slot>
<div>
<el-date-picker
<!-- <el-date-picker
v-model="searchFields.year"
type="year"
value-format="yyyy"
placeholder="选择年份">
</el-date-picker>
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button>
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button> -->
<Button type="primary" @click="viewPart" style="margin-left: 10px">{{btnText}}</Button>
<Button type="primary" style="margin-left: 10px" @click="handleGo"></Button>
</div>

@ -10,6 +10,8 @@
<el-date-picker
v-model="daterange"
type="daterange"
value-format="yyyy-MM-dd"
@change='dateChange'
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
@ -66,10 +68,10 @@
},
mounted() {},
data() {
return {
daterange:"",
return {
showData: false,
searchFields: {},
daterange:[],
select: {},
tableData: [],
tableHeight: 0,
btnText:"数据展示",
@ -109,11 +111,23 @@
let tableHeight = clientHeight - lxHeader_height - topHeight - paginationHeight - 20;
that.tableHeight = tableHeight;
that.chartHeight = that.tableHeight + "px"
},
dateChange(e){
if(e){
this.select.start_date = e[0]
this.select.end_date = e[1]
}else{
this.select.start_date = ''
this.select.end_date = ''
}
},
load() {
// this.showData = true;
var arr = [];
ageRpt().then((res) => {
ageRpt({
start_date:this.select.start_date,
end_date:this.select.end_date
}).then((res) => {
for (var m of res) {
m.per = ((m.use_total / (m.plan_total == 0 ? 1 : m.plan_total)) * 100).toFixed(2) + "%"

@ -10,6 +10,8 @@
<el-date-picker
v-model="daterange"
type="daterange"
value-format="yyyy-MM-dd"
@change='dateChange'
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
@ -18,7 +20,7 @@
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button>
<Button type="primary" @click="viewPart" style="margin-left: 10px">{{btnText}}</Button>
<Button type="primary" style="margin-left: 10px" @click="handleGo"></Button>
</div>
</slot>
</LxHeader>
@ -68,8 +70,8 @@
data() {
return {
showData: false,
daterange:"",
searchFields: {},
daterange:[],
select: {},
tableData: [],
tableHeight: 0,
chartHeight:"",
@ -112,13 +114,25 @@
that.tableHeight = tableHeight;
that.chartHeight = tableHeight+"px"
},
dateChange(e){
if(e){
this.select.start_date = e[0]
this.select.end_date = e[1]
}else{
this.select.start_date = ''
this.select.end_date = ''
}
},
load() {
// this.showData = true;
var xarr = [];
var planarr=[];
var usearr=[];
visitdetailRpt().then((res) => {
visitdetailRpt({
start_date:this.select.start_date,
end_date:this.select.end_date
}).then((res) => {
for (var m of res) {
m.per = ((m.use_total / (m.plan_total == 0 ? 1 : m.plan_total)) * 100).toFixed(2) + "%"
xarr.push(m.date);

@ -7,14 +7,14 @@
<div slot="content"></div>
<slot>
<div>
<el-date-picker
<!-- <el-date-picker
v-model="searchFields.year"
type="year"
value-format="yyyy"
placeholder="选择年份">
</el-date-picker>
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button>
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button> -->
<Button type="primary" @click="viewPart" style="margin-left: 10px">{{btnText}}</Button>
<Button type="primary" style="margin-left: 10px" @click="handleGo"></Button>

@ -8,7 +8,7 @@
<slot>
<div>
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button>
<!-- <Button type="primary" @click="load" style="margin-left: 10px">查询</Button> -->
<Button type="primary" @click="viewPart" style="margin-left: 10px">{{btnText}}</Button>
<Button type="primary" style="margin-left: 10px" @click="handleGo"></Button>

@ -251,7 +251,8 @@
resetForm(formName) {
var that = this;
this.$refs[formName].resetFields();
that.dialogFormVisible = false;
that.dialogFormVisible = false;
that.dialogFormEditVisible = false
},
handleCurrentChange(page) {
this.paginations.page = page;

@ -7,8 +7,8 @@
<div slot="content"></div>
<slot>
<div>
<Input style="width: 200px; margin-right: 10px" v-model.number="searchFields.Name" placeholder="关键字搜索" />
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button>
<!-- <Input style="width: 200px; margin-right: 10px" v-model.number="searchFields.Name" placeholder="关键字搜索" />
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button> -->
<Button type="primary" @click="edit()" style="margin-left: 10px">新增菜单</Button>
</div>
</slot>

@ -7,8 +7,8 @@
<div slot="content"></div>
<slot>
<div>
<Input style="width: 200px; margin-right: 10px" v-model.number="searchFields.Name" placeholder="关键字搜索" />
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button>
<!-- <Input style="width: 200px; margin-right: 10px" v-model.number="searchFields.Name" placeholder="关键字搜索" />
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button> -->
<Button type="primary" @click="edit()" style="margin-left: 10px">新增角色</Button>
</div>
</slot>

@ -7,8 +7,8 @@
<div slot="content"></div>
<slot>
<div>
<Input style="width: 200px; margin-right: 10px" v-model.number="searchFields.Name" placeholder="关键字搜索" />
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button>
<!-- <Input style="width: 200px; margin-right: 10px" v-model.number="searchFields.keyword" placeholder="关键字搜索" />
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button> -->
<Button type="primary" @click="edit()" style="margin-left: 10px">新增用户</Button>
</div>
</slot>
@ -143,7 +143,7 @@
tableHeight: 0,
//
searchFields: {
KeyWord: ""
keyword: ""
},
tableData: []
}

Loading…
Cancel
Save