mirror of
https://gitee.com/beecue/fastbee.git
synced 2026-05-06 15:54:42 +08:00
fix(配置): 部署报错修复
This commit is contained in:
@@ -20,9 +20,9 @@
|
|||||||
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
||||||
|
|
||||||
<el-tooltip :content="$t('navbar.layoutSize')" effect="dark" placement="bottom">
|
<el-tooltip :content="$t('navbar.layoutSize')" effect="dark" placement="bottom">
|
||||||
<langSelect id="lang-select" class="right-menu-item hover-effect" />
|
|
||||||
<size-select id="size-select" class="right-menu-item hover-effect" />
|
<size-select id="size-select" class="right-menu-item hover-effect" />
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
<langSelect id="lang-select" class="right-menu-item hover-effect" style="font-size: 26px" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
|
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import Cookies from 'js-cookie';
|
import Cookies from 'js-cookie';
|
||||||
module.exports = {
|
|
||||||
|
export default {
|
||||||
/**
|
/**
|
||||||
* 侧边栏主题 深色主题theme-dark,浅色主题theme-light
|
* 侧边栏主题 深色主题theme-dark,浅色主题theme-light
|
||||||
*/
|
*/
|
||||||
@@ -43,7 +44,7 @@ module.exports = {
|
|||||||
*/
|
*/
|
||||||
errorLog: 'production',
|
errorLog: 'production',
|
||||||
/**
|
/**
|
||||||
* 默认语言 先從cookies拿,沒有從瀏覽器語言拿,最後用'zh-CN'
|
* 默认语言 先從cookies拿,沒有從
|
||||||
*/
|
*/
|
||||||
language: Cookies.get('language') || navigator.language || navigator.browserLanguage || 'zh-CN',
|
language: Cookies.get('language') || navigator.language || navigator.browserLanguage || 'zh-CN',
|
||||||
}
|
};
|
||||||
|
|||||||
@@ -220,7 +220,7 @@
|
|||||||
|
|
||||||
<div style="width: 100%; text-align: center; font-size: 14px; color: #666; line-height: 32px; margin-top: 50px">
|
<div style="width: 100%; text-align: center; font-size: 14px; color: #666; line-height: 32px; margin-top: 50px">
|
||||||
<span>
|
<span>
|
||||||
Copyright © 2021-2022
|
Copyright © 2021-2026
|
||||||
<a href="https://fastbee.cn/" target="_blank">FastBee</a>
|
<a href="https://fastbee.cn/" target="_blank">FastBee</a>
|
||||||
|
|
|
|
||||||
<a href="https://fastbee.cn/" target="_blank">{{ $t('home.fengxinIoT') }}</a>
|
<a href="https://fastbee.cn/" target="_blank">{{ $t('home.fengxinIoT') }}</a>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog :title="$t('iot.group.device-list.849593-0')" :visible.sync="openDeviceList" width="800px" append-to-body>
|
<el-dialog :title="$t('iot.group.device-list.849593-0')" :visible.sync="openDeviceList" width="800px" append-to-body>
|
||||||
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
|
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
|
||||||
<el-form-item :label="$t('iot.group.device-list.849593-1')" prop="deviceName">
|
<el-form-item :label="$t('iot.group.device-list.849593-1')" prop="deviceName">
|
||||||
<el-input v-model="queryParams.deviceName" :placeholder="$t('iot.group.device-list.849593-2')" clearable size="small" @keyup.enter.native="handleQuery" />
|
<el-input v-model="queryParams.deviceName" :placeholder="$t('iot.group.device-list.849593-2')" clearable size="small" @keyup.enter.native="handleQuery" />
|
||||||
@@ -9,14 +9,14 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="deviceList" @select="handleSelectionChange" @select-all="handleSelectionAll" ref="multipleTable" size="mini" border>
|
<el-table v-loading="loading" :data="deviceList" @select="handleSelectionChange" @select-all="handleSelectionAll" ref="multipleTable" size="mini" :border="false">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column :label="$t('iot.group.device-list.849593-4')" align="center" prop="deviceName" />
|
<el-table-column :label="$t('iot.group.device-list.849593-4')" align="center" prop="deviceName" />
|
||||||
<el-table-column :label="$t('iot.group.device-list.849593-5')" align="center" prop="serialNumber" />
|
<el-table-column :label="$t('iot.group.device-list.849593-5')" align="center" prop="serialNumber" />
|
||||||
<el-table-column :label="$t('iot.group.device-list.849593-6')" align="center" prop="productName" />
|
<el-table-column :label="$t('iot.group.device-list.849593-6')" align="center" prop="productName" />
|
||||||
<el-table-column :label="$t('iot.group.device-list.849593-7')" align="center">
|
<el-table-column :label="$t('iot.group.device-list.849593-7')" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag type="success" v-if="scope.row.isOwner==0">{{ $t('iot.group.device-list.849593-8') }}</el-tag>
|
<el-tag type="success" v-if="scope.row.isOwner == 0">{{ $t('iot.group.device-list.849593-8') }}</el-tag>
|
||||||
<el-tag type="primary" v-else>{{ $t('iot.group.device-list.849593-9') }}</el-tag>
|
<el-tag type="primary" v-else>{{ $t('iot.group.device-list.849593-9') }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -26,32 +26,27 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
||||||
|
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="handleDeviceSelected">{{ $t('iot.group.device-list.849593-11') }}</el-button>
|
<el-button type="primary" @click="handleDeviceSelected">{{ $t('iot.group.device-list.849593-11') }}</el-button>
|
||||||
<el-button @click="closeSelectDeviceList">{{ $t('iot.group.device-list.849593-12') }}</el-button>
|
<el-button @click="closeSelectDeviceList">{{ $t('iot.group.device-list.849593-12') }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import { getDeviceIds, updateDeviceGroups } from '@/api/iot/group';
|
||||||
getDeviceIds,
|
import { listDeviceByGroup } from '@/api/iot/device';
|
||||||
updateDeviceGroups
|
|
||||||
} from "@/api/iot/group"
|
|
||||||
import {
|
|
||||||
listDeviceByGroup,
|
|
||||||
} from "@/api/iot/device";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "device-list",
|
name: 'device-list',
|
||||||
dicts: ['iot_device_status'],
|
dicts: ['iot_device_status'],
|
||||||
props: {
|
props: {
|
||||||
group: {
|
group: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: null
|
default: null,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -97,16 +92,14 @@ export default {
|
|||||||
this.getDeviceIdsByGroupId(this.deviceGroup.groupId);
|
this.getDeviceIdsByGroupId(this.deviceGroup.groupId);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true,
|
||||||
}
|
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
created() {},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取分组下关联的设备ID数组
|
// 获取分组下关联的设备ID数组
|
||||||
getDeviceIdsByGroupId(groupId) {
|
getDeviceIdsByGroupId(groupId) {
|
||||||
getDeviceIds(groupId).then(response => {
|
getDeviceIds(groupId).then((response) => {
|
||||||
this.ids = response.data;
|
this.ids = response.data;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
@@ -116,20 +109,20 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.queryParams.params = {};
|
this.queryParams.params = {};
|
||||||
if (null != this.daterangeActiveTime && '' != this.daterangeActiveTime) {
|
if (null != this.daterangeActiveTime && '' != this.daterangeActiveTime) {
|
||||||
this.queryParams.params["beginActiveTime"] = this.daterangeActiveTime[0];
|
this.queryParams.params['beginActiveTime'] = this.daterangeActiveTime[0];
|
||||||
this.queryParams.params["endActiveTime"] = this.daterangeActiveTime[1];
|
this.queryParams.params['endActiveTime'] = this.daterangeActiveTime[1];
|
||||||
}
|
}
|
||||||
listDeviceByGroup(this.queryParams).then(response => {
|
listDeviceByGroup(this.queryParams).then((response) => {
|
||||||
this.deviceList = response.rows;
|
this.deviceList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
// 设置分组关联的设备选中
|
// 设置分组关联的设备选中
|
||||||
this.deviceList.forEach(row => {
|
this.deviceList.forEach((row) => {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.ids.some(x => x === row.deviceId)) {
|
if (this.ids.some((x) => x === row.deviceId)) {
|
||||||
this.$refs.multipleTable.toggleRowSelection(row, true);
|
this.$refs.multipleTable.toggleRowSelection(row, true);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -141,7 +134,7 @@ export default {
|
|||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.daterangeActiveTime = [];
|
this.daterangeActiveTime = [];
|
||||||
this.resetForm("queryForm");
|
this.resetForm('queryForm');
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
@@ -181,11 +174,11 @@ export default {
|
|||||||
// 更新分组下的设备
|
// 更新分组下的设备
|
||||||
handleDeviceSelected() {
|
handleDeviceSelected() {
|
||||||
this.group.deviceIds = this.ids;
|
this.group.deviceIds = this.ids;
|
||||||
updateDeviceGroups(this.group).then(response => {
|
updateDeviceGroups(this.group).then((response) => {
|
||||||
this.$modal.msgSuccess(this.$t('iot.group.device-list.849593-13'));
|
this.$modal.msgSuccess(this.$t('iot.group.device-list.849593-13'));
|
||||||
this.openDeviceList = false;
|
this.openDeviceList = false;
|
||||||
})
|
});
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -109,9 +109,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<div class="pagination-container">
|
<!-- <div class="pagination-container"> -->
|
||||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
||||||
</div>
|
<!-- </div> -->
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -586,7 +586,7 @@ export default {
|
|||||||
.dept-card {
|
.dept-card {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
height: 810px;
|
height: 700px;
|
||||||
|
|
||||||
::v-deep .el-card__body {
|
::v-deep .el-card__body {
|
||||||
padding: 18px;
|
padding: 18px;
|
||||||
@@ -604,6 +604,7 @@ export default {
|
|||||||
|
|
||||||
.table-card {
|
.table-card {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
height: 620px;
|
||||||
|
|
||||||
::v-deep .el-card__body {
|
::v-deep .el-card__body {
|
||||||
padding: 18px;
|
padding: 18px;
|
||||||
@@ -637,8 +638,6 @@ export default {
|
|||||||
.pagination-container {
|
.pagination-container {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
margin-top: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-pagination {
|
::v-deep .el-pagination {
|
||||||
@@ -658,13 +657,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-container {
|
|
||||||
line-height: 40px;
|
|
||||||
margin-bottom: 30px;
|
|
||||||
margin-top: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
::v-deep .el-pagination {
|
::v-deep .el-pagination {
|
||||||
padding: 20px 0 0 0;
|
padding: 20px 0 0 0;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|||||||
Reference in New Issue
Block a user