Browse Source

Merge branch 'feature-page' into develop

master
2183691628 2 years ago
parent
commit
1575b22d18
9 changed files with 34 additions and 26 deletions
  1. +10
    -2
      README.md
  2. +2
    -2
      src/styles/element-ui.scss
  3. +2
    -2
      src/utils/model.js
  4. +6
    -2
      src/views/dashboard/index.vue
  5. +6
    -7
      src/views/login/index.vue
  6. +1
    -2
      src/views/off-limits-manage/alarm-recognition/index.vue
  7. +2
    -3
      src/views/off-limits-manage/common-exception/index.vue
  8. +3
    -3
      src/views/off-limits-manage/off-limits-main/off-limits-type/index.vue
  9. +2
    -3
      src/views/off-limits-manage/user-exception/index.vue

+ 10
- 2
README.md View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2021-11-29 11:14:13 * @Date: 2021-11-29 11:14:13
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @LastEditTime: 2021-12-16 11:14:12
* @LastEditTime: 2021-12-21 11:18:11
* @FilePath: \GpsCardAdmin\README.md * @FilePath: \GpsCardAdmin\README.md
* @description: * @description:
--> -->
@@ -96,4 +96,12 @@ FEATURE
`2021年12月16日` `2021年12月16日`
FEATURE FEATURE
- 修改 用户例外搜索功能,可根据imei搜索 - 修改 用户例外搜索功能,可根据imei搜索
- 修改 告警分页查询页面功能
- 修改 告警分页查询页面功能


## v1.1.1F
`2021年12月21日`
IMPROVEMENT
- 优化 首页样式
- 统一 输入框长度
- 统一 状态判断

+ 2
- 2
src/styles/element-ui.scss View File

@@ -22,8 +22,8 @@
left: 0; left: 0;
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;
width: 50%;
min-width: 375px;
/* width: 50%; */
/* min-width: 375px; */
} }
.el-pagination { .el-pagination {
white-space: pre-wrap; white-space: pre-wrap;


+ 2
- 2
src/utils/model.js View File

@@ -1,8 +1,8 @@
/* /*
* @Date: 2021-11-30 15:09:25 * @Date: 2021-11-30 15:09:25
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @LastEditTime: 2021-12-16 10:23:05
* @LastEditTime: 2021-12-21 11:18:56
* @FilePath: \GpsCardAdmin\src\utils\model.js * @FilePath: \GpsCardAdmin\src\utils\model.js
* @description: 版本号 * @description: 版本号
*/ */
export const VersionModel = '1.1.0';
export const VersionModel = '1.1.1';

+ 6
- 2
src/views/dashboard/index.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2021-11-29 11:20:35 * @Date: 2021-11-29 11:20:35
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @LastEditTime: 2021-12-08 16:49:11
* @LastEditTime: 2021-12-21 11:20:36
* @FilePath: \GpsCardAdmin\src\views\dashboard\index.vue * @FilePath: \GpsCardAdmin\src\views\dashboard\index.vue
* @description: * @description:
--> -->
@@ -31,9 +31,13 @@ export default {
padding: 30px; padding: 30px;
height: 100vh; height: 100vh;
width: 100%; width: 100%;
background-image: url('../../assets/bg.jpeg');
/* background-image: url('../../assets/bg.jpeg'); */
background-color: #fafafa;
background-size: cover; background-size: cover;
background-repeat:no-repeat; background-repeat:no-repeat;
display: flex;
justify-content: center;
align-items: center;
.dashboard-text { .dashboard-text {
text-align: center; text-align: center;
} }


+ 6
- 7
src/views/login/index.vue View File

@@ -6,15 +6,15 @@
<h3 class="title">登录</h3> <h3 class="title">登录</h3>
</div> </div>


<el-form-item prop="username">
<el-form-item prop="loginName">
<span class="svg-container"> <span class="svg-container">
<svg-icon icon-class="user" /> <svg-icon icon-class="user" />
</span> </span>
<el-input <el-input
ref="username"
ref="loginName"
v-model="loginForm.loginName" v-model="loginForm.loginName"
placeholder="用户名" placeholder="用户名"
name="username"
name="loginName"
type="text" type="text"
tabindex="1" tabindex="1"
auto-complete="on" auto-complete="on"
@@ -53,13 +53,12 @@
</template> </template>


<script> <script>
import { validUsername } from '@/utils/validate'


export default { export default {
name: 'Login', name: 'Login',
data() { data() {
const validateUsername = (rule, value, callback) => { const validateUsername = (rule, value, callback) => {
if (!validUsername(value)) {
if (value === '') {
callback(new Error('请输入账号')) callback(new Error('请输入账号'))
} else { } else {
callback() callback()
@@ -74,8 +73,8 @@ export default {
} }
return { return {
loginForm: { loginForm: {
loginName: 'telpo',
password: 'telpo#1234'
loginName: '',
password: ''
}, },
loginRules: { loginRules: {
loginName: [{ required: true, trigger: 'blur', validator: validateUsername }], loginName: [{ required: true, trigger: 'blur', validator: validateUsername }],


+ 1
- 2
src/views/off-limits-manage/alarm-recognition/index.vue View File

@@ -77,7 +77,6 @@
:model="form" :model="form"
label-position="left" label-position="left"
label-width="70px" label-width="70px"
style="width: 400px;"
> >
<!-- 类型 --> <!-- 类型 -->
<el-form-item label="类型" prop="typeRadio" v-show="false"> <el-form-item label="类型" prop="typeRadio" v-show="false">
@@ -99,7 +98,7 @@
</el-form-item> </el-form-item>
<!-- 内容名称 --> <!-- 内容名称 -->
<el-form-item label="内容名称" prop="content" label-width="80px"> <el-form-item label="内容名称" prop="content" label-width="80px">
<el-input v-model="form.content" style="width: 80%"/>
<el-input v-model="form.content" style="width: 100%"/>
</el-form-item> </el-form-item>
<!-- 状态 --> <!-- 状态 -->
<el-form-item label="状态" prop="status" required> <el-form-item label="状态" prop="status" required>


+ 2
- 3
src/views/off-limits-manage/common-exception/index.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2021-11-30 09:44:24 * @Date: 2021-11-30 09:44:24
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @LastEditTime: 2021-12-15 16:41:14
* @LastEditTime: 2021-12-21 11:50:22
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\common-exception\index.vue * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\common-exception\index.vue
* @description: * @description:
--> -->
@@ -80,7 +80,6 @@
:model="form" :model="form"
label-position="left" label-position="left"
label-width="70px" label-width="70px"
style="width: 400px;"
> >
<!-- 类别 --> <!-- 类别 -->
<el-form-item label="类别" prop="model"> <el-form-item label="类别" prop="model">
@@ -101,7 +100,7 @@
</el-form-item> </el-form-item>
<!-- 内容名称 --> <!-- 内容名称 -->
<el-form-item label="内容名称" prop="content" label-width="80px" clearable> <el-form-item label="内容名称" prop="content" label-width="80px" clearable>
<el-input v-model="form.content" style="width: 80%" />
<el-input v-model="form.content" style="width: 100%" />
</el-form-item> </el-form-item>
<!-- 状态 --> <!-- 状态 -->
<el-form-item label="状态" prop="status" required> <el-form-item label="状态" prop="status" required>


+ 3
- 3
src/views/off-limits-manage/off-limits-main/off-limits-type/index.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-12-07 15:14:51 * @Date: 2021-12-07 15:14:51
* @LastEditTime: 2021-12-14 09:24:18
* @LastEditTime: 2021-12-21 11:49:06
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @Description: 自动报警分类 * @Description: 自动报警分类
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\off-limits-main\off-limits-type\index.vue * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\off-limits-main\off-limits-type\index.vue
@@ -12,7 +12,7 @@
<el-dialog <el-dialog
:title="titleTypeAddorModify" :title="titleTypeAddorModify"
:visible.sync="dialogVisibleType" :visible.sync="dialogVisibleType"
width="50%"
width="400px"
> >
<el-form :model="currentAddType" ref="currentAddType"> <el-form :model="currentAddType" ref="currentAddType">
<el-form-item label="类型" prop="kindId"> <el-form-item label="类型" prop="kindId">
@@ -25,7 +25,7 @@
:rules="[{ required: true, message: '类别不能为空' }]" :rules="[{ required: true, message: '类别不能为空' }]"
> >
<el-input <el-input
:xs="24" :sm="24" :lg="8"
:xs="6" :sm="6" :lg="6"
v-model="currentAddType.typeLabel" v-model="currentAddType.typeLabel"
placeholder="请输入类别" placeholder="请输入类别"
></el-input> ></el-input>


+ 2
- 3
src/views/off-limits-manage/user-exception/index.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2021-11-30 09:44:24 * @Date: 2021-11-30 09:44:24
* @LastEditors: JinxuChen * @LastEditors: JinxuChen
* @LastEditTime: 2021-12-16 10:20:45
* @LastEditTime: 2021-12-21 11:51:10
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\user-exception\index.vue * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\user-exception\index.vue
* @description: * @description:
--> -->
@@ -70,7 +70,6 @@
:rules="formRules" :rules="formRules"
label-position="left" label-position="left"
label-width="70px" label-width="70px"
style="width: 400px"
> >
<!-- IMEI --> <!-- IMEI -->
<el-form-item label="IMEI" prop="imei" label-width="80px"> <el-form-item label="IMEI" prop="imei" label-width="80px">
@@ -78,7 +77,7 @@
</el-form-item> </el-form-item>
<!-- 内容名称 --> <!-- 内容名称 -->
<el-form-item label="内容名称" prop="content" label-width="80px"> <el-form-item label="内容名称" prop="content" label-width="80px">
<el-input v-model="form.content" style="width: 80%" clearable />
<el-input v-model="form.content" style="width: 100%" clearable />
</el-form-item> </el-form-item>
<!-- 状态 --> <!-- 状态 -->
<el-form-item label="状态" prop="status" required> <el-form-item label="状态" prop="status" required>


Loading…
Cancel
Save