Explorar el Código

init

newStyle
lancer hace 2 años
padre
commit
28871d706f
Se han modificado 8 ficheros con 114 adiciones y 3 borrados
  1. +16
    -0
      src/views/Equipment/index.vue
  2. +20
    -0
      src/views/Equipment/state.vue
  3. +7
    -0
      src/views/Statistics/dataScreeAge.vue
  4. +7
    -0
      src/views/Statistics/dataScreeOrg.vue
  5. +7
    -0
      src/views/Statistics/dataScreeSys.vue
  6. +19
    -0
      src/views/admin/log/index.vue
  7. +19
    -0
      src/views/admin/log/log.vue
  8. +19
    -3
      src/views/admin/user/index.vue

+ 16
- 0
src/views/Equipment/index.vue Ver fichero

@@ -215,6 +215,9 @@
<div style="margin-left: 20px" v-if="equ_index_add">
<el-button @click="infoadd()" type="primary">添加</el-button>
</div>
<div style="margin-left: auto;margin-right:10px;" v-if="euq_index_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div>
</div>

@@ -717,6 +720,7 @@

<script>
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default {
data() {
return {
@@ -881,6 +885,7 @@ export default {
this.euq_index_batch = this.permissions["euq_index_batch"];
this.euq_index_back = this.permissions["euq_index_back"];
this.euq_index_normal = this.permissions["euq_index_normal"];
this.euq_index_downLoad = this.permissions["euq_index_downLoad"];
},
mounted() {
if(this.$route.query.time){
@@ -896,6 +901,17 @@ export default {
this.zkhousePage();
},
methods: {
downLoad(){
let obj = {
timeType:1,
orgType: localStorage.getItem("orgType"),
orgCode: localStorage.getItem("orgCode"),
agentId: localStorage.getItem("agentId"),
houseId: localStorage.getItem("houseId"),
...this.searchForm,
};
// exportMethodPost()
},
//转写设置
zhuanxeishezhi(row){
this.radioindexid=row.id;


+ 20
- 0
src/views/Equipment/state.vue Ver fichero

@@ -327,6 +327,9 @@
>批量解绑</el-button
>
</div>
<div style="margin-left: auto;margin-right:10px;" v-if="equ_state_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div>
</div>

@@ -603,6 +606,7 @@

<script>
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default {
data() {
return {
@@ -817,6 +821,7 @@ export default {
this.equ_state_take = this.permissions["equ_state_take"];
this.equ_state_WiFi = this.permissions["equ_state_WiFi"];
this.equ_state_Voice = this.permissions["equ_state_Voice"];
this.equ_state_downLoad = this.permissions["equ_state_downLoad"];
},
mounted() {
if(this.$route.query.flag){
@@ -834,6 +839,21 @@ export default {
this.zkhousePage();
},
methods: {
downLoad(){
let obj = {
size: this.size,
current: this.currentPage,
timeType:2,
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.choicValue : null,
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.choicValue : null,
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.choicValue : null,
orgType: localStorage.getItem("orgType"),
queryOrgType:this.selValue/1+1,
...this.searchForm,
houseTypes: this.houseTypes,
};
// exportMethodPost()
},
sysChange(){
this.choicValue=''
this.selValue='0'


+ 7
- 0
src/views/Statistics/dataScreeAge.vue Ver fichero

@@ -123,6 +123,7 @@
</div>
<el-select
v-model="echarValue1"
@change="echarValue1Change"
style="width: 100px; margin-left: 10px"
placeholder="请选择"
>
@@ -575,6 +576,12 @@ export default {
// this.tabtimetap(4);
},
methods: {
echarValue1Change(e){
if(e==0){
this.secindex = 1
this.dataOverviewWithSystemWithDay()
}
},
goDetail1(row, str, idx) {
console.log(row);



+ 7
- 0
src/views/Statistics/dataScreeOrg.vue Ver fichero

@@ -198,6 +198,7 @@
</div>
<el-select
v-model="echarValue1"
@change="echarValue1Change"
style="width: 100px; margin-left: 10px"
placeholder="请选择"
>
@@ -664,6 +665,12 @@ export default {
// this.tabtimetap(4);
},
methods: {
echarValue1Change(e){
if(e==0){
this.secindex = 1
this.dataOverviewWithSystemWithDay()
}
},
goDetail1(row, str, idx) {
console.log(row);



+ 7
- 0
src/views/Statistics/dataScreeSys.vue Ver fichero

@@ -196,6 +196,7 @@
</div>
<el-select
v-model="echarValue1"
@change="echarValue1Change"
style="width: 100px; margin-left: 10px"
placeholder="请选择"
>
@@ -715,6 +716,12 @@ export default {
// this.tabtimetap(4);
},
methods: {
echarValue1Change(e){
if(e==0){
this.secindex = 1
this.dataOverviewWithSystemWithDay()
}
},
goDetail1(row, str, idx) {
console.log(row);



+ 19
- 0
src/views/admin/log/index.vue Ver fichero

@@ -73,6 +73,9 @@
<div style="margin-left: 20px">
<el-button @click="reset">清空筛选条件</el-button>
</div>
<div style="margin-left: auto;margin-right:10px;" v-if="admin_idx_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div>
</div>
<basic-container>
@@ -99,6 +102,7 @@
import { delObj, fetchList } from "@/api/admin/log";
import { tableOption } from "@/const/crud/admin/log";
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";

export default {
name: "Log",
@@ -132,7 +136,22 @@ export default {
};
},
},
created() {
this.admin_idx_downLoad = this.permissions["admin_idx_downLoad"];
},
methods: {
downLoad(){
let obj=Object.assign(
{
descs: "create_time",
orgType: localStorage.getItem("orgType"),
orgCode: localStorage.getItem("orgCode"),
agentId: localStorage.getItem("agentId"),
houseId: localStorage.getItem("houseId"),
},
this.searchForm)
// exportMethodPost()
},
selChange(e) {
this.value = "";
this.searchForm.name = "";


+ 19
- 0
src/views/admin/log/log.vue Ver fichero

@@ -82,6 +82,9 @@
<div style="margin-left: 20px">
<el-button @click="reset">清空筛选条件</el-button>
</div>
<div style="margin-left: auto;margin-right:10px;" v-if="admin_log_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div>
</div>
<basic-container>
@@ -107,6 +110,7 @@
import { delObj, fetchList1 } from "@/api/admin/log";
import { tableOption } from "@/const/crud/admin/log";
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";

export default {
name: "Log",
@@ -140,8 +144,23 @@ export default {
delBtn: this.vaildData(this.permissions.sys_log_del, false),
};
},
},
created() {
this.admin_log_downLoad = this.permissions["admin_log_downLoad"];
},
methods: {
downLoad(){
let obj=Object.assign(
{
descs: "create_time",
orgType: localStorage.getItem("orgType"),
orgCode: localStorage.getItem("orgCode"),
agentId: localStorage.getItem("agentId"),
houseId: localStorage.getItem("houseId"),
},
this.searchForm)
// exportMethodPost()
},
selChange(e) {
this.value = "";
this.searchForm.name = "";


+ 19
- 3
src/views/admin/user/index.vue Ver fichero

@@ -21,7 +21,7 @@
class="demo-form-inline"
ref="searchMsg"
>
<el-form-item label="身份" prop="flag">
<el-form-item label="" prop="flag">
<el-input
v-if="searchMsg.flag == 1"
v-model="searchMsg.username"
@@ -83,7 +83,7 @@
class="demo-form-inline"
ref="searchMsg1"
>
<el-form-item label="身份" prop="flag">
<el-form-item label="" prop="flag">
<el-input
v-if="searchMsg1.flag == 1"
v-model="searchMsg1.username"
@@ -174,10 +174,15 @@
</el-form>
</div>

<div style="margin: 0 0 10px 10px" v-if="sys_user_add==true && choseFlag==false">
<div style="display:flex;" v-if=" choseFlag==false">
<div style="margin: 0 0 10px 10px" v-if="sys_user_add==true && choseFlag==false">
<!-- <el-button type="primary" :disabled='checkRole.length==0' @click="delIds">批量删除</el-button> -->
<el-button type="primary" @click="addRole">添加</el-button>
</div>
<div style="margin-left: auto;margin-right:10px;" v-if="sys_user_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div>
</div>

<!-- 表格 -->
@@ -1246,6 +1251,7 @@ export default {
this.sys_user_choseHouse = this.permissions["sys_user_choseHouse"];
this.sys_user_bind = this.permissions["sys_user_bind"];
this.sys_user_pwd = this.permissions["sys_user_pwd"];
this.sys_user_downLoad = this.permissions["sys_user_downLoad"];
// return
// 获取用户信息
let info = getStore({ name: "userInfo" });
@@ -1275,6 +1281,16 @@ export default {
);
},
methods: {
downLoad(){
let obj={
...this.searchMsg1,
orgType: localStorage.getItem("orgType"),
orgCode: localStorage.getItem("orgCode"),
agentId: localStorage.getItem("agentId"),
houseId: localStorage.getItem("houseId"),
}
this.exportMethodPost()
},
cleartap(){
this.formTwo.deptId='';
console.log(this.formTwo)


Cargando…
Cancelar
Guardar