【web】 文案修改

dev
Wangxin 8 months ago
parent 044a767ed7
commit 198868bc3d
  1. 2
      ALOps_sys_fe/alops-ui/src/views/device/deviceType/index.vue
  2. 6
      ALOps_sys_fe/alops-ui/src/views/device/supplier/index.vue
  3. 8
      ALOps_sys_fe/alops-ui/src/views/inMonitoring/inMonitor/message/index.vue
  4. 23
      ALOps_sys_fe/alops-ui/src/views/index.vue

@ -39,7 +39,7 @@
<el-table-column label="描述" align="center" key="description" prop="description" :show-overflow-tooltip="true" />
<el-table-column label="图片" align="center" key="image" prop="image" :show-overflow-tooltip="true" >
<template slot-scope="scope">
<ImagePreview :src="scope.row.image"/>
<ImagePreview height="100px" :src="scope.row.image"/>
</template>
</el-table-column>
<el-table-column label="创建人" align="center" key="createBy" prop="createBy" :show-overflow-tooltip="true" />

@ -7,9 +7,9 @@
<!--类型类型管理-->
<pane size="84">
<el-col>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="类型名称" prop="name">
<el-input v-model="queryParams.name" placeholder="请输入类型名称" clearable style="width: 240px" @keyup.enter.native="handleQuery" />
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="90px">
<el-form-item label="供应商名称" prop="name">
<el-input v-model="queryParams.name" placeholder="请输入供应商名称" clearable style="width: 240px" @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>

@ -237,6 +237,14 @@ export default {
if (level) {
this.queryParams.level = level;
}
//
const startTime = this.$route.query.startTime;
const endTime = this.$route.query.endTime;
if (startTime && endTime) {
this.dateRange = [startTime, endTime];
}
this.getList()
},
methods: {

@ -903,6 +903,29 @@ export default {
//
if (level === 'annual') {
this.$router.push('/inMonitoring/inMonitoring/message');
}else if (level === 'monthly') {
const today = new Date();
//
const firstDayOfMonth = new Date(today.getFullYear(), today.getMonth(), 1);
// YYYY-MM-DD HH:mm:ss
const formatDate = (date) => {
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
const hours = String(date.getHours()).padStart(2, '0');
const minutes = String(date.getMinutes()).padStart(2, '0');
const seconds = String(date.getSeconds()).padStart(2, '0');
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
};
this.$router.push({
path: '/inMonitoring/inMonitoring/message',
query: {
startTime: formatDate(firstDayOfMonth),
endTime: formatDate(today)
}
});
}
// 1-3
else if (level === 'level1') {

Loading…
Cancel
Save