This commit is contained in:
Cc 2025-03-14 09:42:45 +08:00
parent 0bf2b1dca7
commit 2a1ca57ca9
15 changed files with 72 additions and 71 deletions

View File

@ -63,7 +63,7 @@
"vue": "^3.0.4", "vue": "^3.0.4",
"vue-baidu-map": "^0.21.22", "vue-baidu-map": "^0.21.22",
"vue-echarts": "^6.0.0-rc.6", "vue-echarts": "^6.0.0-rc.6",
"vue-i18n": "^10.0.5", "vue-i18n": "^10.0.6",
"vue-quill-editor": "^3.0.6", "vue-quill-editor": "^3.0.6",
"vue-router": "^4.0.0-rc.6", "vue-router": "^4.0.0-rc.6",
"vuex": "^4.0.0-rc.2", "vuex": "^4.0.0-rc.2",

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 684 KiB

After

Width:  |  Height:  |  Size: 784 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -5,6 +5,7 @@ const en = {
username: 'Please enter username/mobile number', username: 'Please enter username/mobile number',
password: 'Please enter password', password: 'Please enter password',
login: 'Login', login: 'Login',
use: 'Cloud platform free to use',
}, },
defalult: { defalult: {
grzx: 'Personal Center', grzx: 'Personal Center',
@ -143,6 +144,9 @@ const en = {
sjhm: 'Mobile number', sjhm: 'Mobile number',
yx: 'Email', yx: 'Email',
bdxm: 'Bound project', bdxm: 'Bound project',
dh: 'tel',
gs: 'company',
zw: 'post',
}, },
maintenance: { maintenance: {
zxbx: 'Online repair reporting', zxbx: 'Online repair reporting',
@ -256,6 +260,8 @@ const en = {
ccsj: 'Transmission time', ccsj: 'Transmission time',
qxzqgq: 'Please select sensor', qxzqgq: 'Please select sensor',
zhi: 'Value', zhi: 'Value',
gscTps: 'Formula calculation, such as x / 100, can be left blank',
gsTps: 'Formula calculation, such as x * 100, can be left blank',
}, },
vehicles: { vehicles: {
clmc: 'Vehicle name', clmc: 'Vehicle name',

View File

@ -5,6 +5,7 @@ const zh = {
username: '请输入用户名/手机号', username: '请输入用户名/手机号',
password: '请输入密码', password: '请输入密码',
login: '登录', login: '登录',
use: '云平台免费使用',
}, },
defalult: { defalult: {
grzx: '个人中心', grzx: '个人中心',
@ -141,6 +142,9 @@ const zh = {
sjhm: '手机号码', sjhm: '手机号码',
yx: '邮箱', yx: '邮箱',
bdxm: '绑定项目', bdxm: '绑定项目',
dh: '电话',
gs: '公司',
zw: '职位',
}, },
maintenance: { maintenance: {
@ -255,6 +259,8 @@ const zh = {
ccsj: '传输时间', ccsj: '传输时间',
qxzqgq: '请选择传感器', qxzqgq: '请选择传感器',
zhi: '值', zhi: '值',
gscTps: '公式计算如x/100 可不填',
gsTps: '公式计算如x*100 可不填',
}, },
vehicles: { vehicles: {
clmc: '车辆名称', clmc: '车辆名称',

View File

@ -1,5 +1,5 @@
<template> <template>
<el-badge <!-- <el-badge
class="item" class="item"
:value="total" :value="total"
max="99" max="99"
@ -10,8 +10,8 @@
{{ $t('device.xmdp') }} {{ $t('device.xmdp') }}
</el-link> </el-link>
<i class="el-icon-message-solid"></i> <i class="el-icon-message-solid"></i>
<!-- <el-button type="danger" size="mini" @click="jumpAlarm">报警</el-button>--> <el-button type="danger" size="mini" @click="jumpAlarm">报警</el-button>
</el-badge> </el-badge>-->
<el-dropdown <el-dropdown
style="margin-left: 20px" style="margin-left: 20px"
@command="handleCommand" @command="handleCommand"

View File

@ -19,9 +19,9 @@
:value="item.id" :value="item.id"
></el-option> ></el-option>
</el-select> </el-select>
<el-link type="primary" :href="url" target="_blank"> <!-- <el-link type="primary" :href="url" target="_blank">
{{ $t('device.sydp') }} {{ $t('device.sydp') }}
</el-link> </el-link>-->
<!-- <el-dropdown @command="onToggleProject">--> <!-- <el-dropdown @command="onToggleProject">-->
<!-- <span class="el-dropdown-link cursor">--> <!-- <span class="el-dropdown-link cursor">-->
<!-- {{ activeProject.name }}--> <!-- {{ activeProject.name }}-->

View File

@ -18,7 +18,7 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="phone" prop="phone"
label="电话" :label="$t('staff.dh')"
width="120" width="120"
align="center" align="center"
></el-table-column> ></el-table-column>

View File

@ -144,6 +144,19 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('sensor.sxgs')">
<el-input
v-model="form.formulaUp"
:placeholder="$t('sensor.gscTps')"
></el-input>
</el-form-item>
<el-form-item :label="$t('sensor.xsgs')">
<el-input
v-model="form.formulaDown"
:placeholder="$t('sensor.gsTps')"
></el-input>
</el-form-item>
</el-form> </el-form>
<vab-query-form> <vab-query-form>
<el-button type="primary" @click="save"> <el-button type="primary" @click="save">
@ -212,8 +225,8 @@ export default {
functionCode: '', functionCode: '',
dataFormat: '', dataFormat: '',
sort: '', sort: '',
// formulaUp: '', formulaUp: '',
// formulaDown: '', formulaDown: '',
readWrite: '', readWrite: '',
homeShowFlag: '', homeShowFlag: '',
img: '', img: '',
@ -290,8 +303,8 @@ export default {
if (form.unit != undefined) { if (form.unit != undefined) {
this.form.unit = form.unit.dataCode; this.form.unit = form.unit.dataCode;
} }
// this.form.formulaUp = form.formulaUp; this.form.formulaUp = form.formulaUp;
// this.form.formulaDown = form.formulaDown; this.form.formulaDown = form.formulaDown;
if (form.dataFormat != undefined) { if (form.dataFormat != undefined) {
this.form.dataFormat = form.dataFormat.dataCode; this.form.dataFormat = form.dataFormat.dataCode;
} }

View File

@ -1,41 +1,21 @@
<template> <template>
<div class="login-container"> <div class="login-container">
<div class="login-logo"> <div class="login-logo">
<!--<el-image :src="require('@/assets/login_images/logo.png')"></el-image>--> <el-button class="login-el-button" type="primary" @click="trialShow">
<!--<el-button class="login-el-button" type="primary" @click="trialShow"> {{ $t('login.use') }}
云平台免费使用 </el-button>
</el-button>-->
</div> </div>
<div class="login"> <div class="login">
<img
:src="require('@/assets/login_images/login_wrap.png')"
style="width: 100%"
/>
<div class="el-tabs"> <div class="el-tabs">
<div class="el-tabs-left">
<div style="text-align: center">
<img
class="el-tabs-ewm"
style="width: 160px; height: 160px; margin: auto"
:src="codeUrl"
alt=""
/>
<div>
<!-- <span v-show="show" class="getCode" @click="getQrCode">
点击扫码登录
</span>
<span v-show="!show" class="count">{{ count }}s后失效</span>-->
</div>
</div>
</div>
<div class="el-tabs-right"> <div class="el-tabs-right">
<el-form ref="form" :model="form" label-width="100px"> <el-form ref="form" :model="form" label-width="0px">
<el-form-item prop="userName"> <el-form-item prop="userName">
<el-input <el-input
v-model="form.userName" v-model="form.userName"
v-focus v-focus
:placeholder="$t('login.username')" :placeholder="$t('login.username')"
tabindex="1" tabindex="1"
class="el-input_tran"
type="text" type="text"
> >
<template #prefix> <template #prefix>
@ -43,11 +23,12 @@
</template> </template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="passwords"> <el-form-item prop="passwords" style="margin-top: 30px">
<el-input <el-input
:key="passwordType" :key="passwordType"
ref="password" ref="password"
v-model="form.passwords" v-model="form.passwords"
class="el-input_tran"
:placeholder="$t('login.password')" :placeholder="$t('login.password')"
:type="passwordType" :type="passwordType"
tabindex="2" tabindex="2"
@ -76,8 +57,7 @@
:loading="loading" :loading="loading"
class="login-btn" class="login-btn"
type="primary" type="primary"
size="small" style="width: 120%; margin: 30px -10%"
style="width: 77%; margin-left: 23%"
@click="handleLogin" @click="handleLogin"
> >
{{ $t('login.login') }} {{ $t('login.login') }}
@ -353,36 +333,28 @@ export default {
margin-left: 50px; margin-left: 50px;
} }
.login { .login {
width: 660px;
margin: auto; margin: auto;
position: relative; position: relative;
.el-tabs__nav-wrap::after { width: 100vw;
background-color: white; height: 100vh;
} display: flex;
justify-content: center;
align-items: center;
.el-tabs { .el-tabs {
position: absolute;
top: 80px;
left: 0;
width: 560px;
margin: 30px 60px;
display: flex; display: flex;
justify-content: space-between; justify-content: center;
align-items: center; align-items: center;
.el-tabs__nav-wrap { background: url('~@/assets/login_images/login_wrap.png') no-repeat;
padding: 30px 0; width: 570px;
padding-left: 120px; height: 400px;
} .el-input_tran {
.el-tabs-left { transform: scale(1.2);
width: 200px; width: 400px;
.getCode {
color: white;
}
.count {
color: white;
}
} }
.el-tabs-right { .el-tabs-right {
width: 350px; margin-top: 80px;
.el-form-item { .el-form-item {
margin-bottom: 10px !important; margin-bottom: 10px !important;
.el-input__inner { .el-input__inner {
@ -403,6 +375,10 @@ export default {
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
padding: 30px 60px 60px; padding: 30px 60px 60px;
position: fixed;
right: 0;
z-index: 1;
.login-el-button { .login-el-button {
background: rgba(2, 35, 115, 0.6); background: rgba(2, 35, 115, 0.6);
} }

View File

@ -20,21 +20,21 @@
autocomplete="off" autocomplete="off"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="电话"> <el-form-item :label="$t('staff.dh')">
<el-input <el-input
v-model="form.phone" v-model="form.phone"
size="small" size="small"
autocomplete="off" autocomplete="off"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="公司"> <el-form-item :label="$t('staff.gs')">
<el-input <el-input
v-model="form.company" v-model="form.company"
size="small" size="small"
autocomplete="off" autocomplete="off"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="职务"> <el-form-item :label="$t('staff.zw')">
<el-input <el-input
v-model="form.position" v-model="form.position"
size="small" size="small"
@ -54,7 +54,7 @@
style="width: 100%" style="width: 100%"
@click="save" @click="save"
> >
提交 {{ $t('defalult.tjtn') }}
</el-button> </el-button>
</el-form> </el-form>
</div> </div>
@ -77,8 +77,8 @@ export default {
email: '', email: '',
}, },
rules: { rules: {
name: [{ required: true, trigger: 'blur', message: '请输入姓名' }], name: [{ required: true, trigger: 'blur', message: 'name' }],
phone: [{ required: true, trigger: 'blur', message: '请输入手机号' }], phone: [{ required: true, trigger: 'blur', message: 'phone' }],
}, },
}; };
}, },

View File

@ -44,7 +44,7 @@ export default {
deviceCode: function (newVal, oldVal) { deviceCode: function (newVal, oldVal) {
this.queryForm.deviceCode = newVal; this.queryForm.deviceCode = newVal;
this.src = this.src =
'https://dp.lidinghb.com/chudy_visual/view/' + 'http://world.lidinghb.com:8088/chudy_visual/view/' +
newVal[1] + newVal[1] +
'?' + '?' +
'deviceCode=' + 'deviceCode=' +

View File

@ -20,7 +20,7 @@
autocomplete="off" autocomplete="off"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="公司" prop="company"> <el-form-item :label="$t('staff.gs')" prop="company">
<el-input <el-input
v-model.trim="form.company" v-model.trim="form.company"
size="small" size="small"

View File

@ -29,7 +29,7 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="company" prop="company"
label="公司" :label="$t('staff.gs')"
width="250" width="250"
align="center" align="center"
></el-table-column> ></el-table-column>