装备率功能开发
This commit is contained in:
parent
431278f5fa
commit
19e4fe9c51
|
|
@ -91,6 +91,12 @@ const setActiveCompanyName = () => {
|
||||||
|
|
||||||
const placeholderText = ref('搜索设备关键词')
|
const placeholderText = ref('搜索设备关键词')
|
||||||
|
|
||||||
|
//忘记密码
|
||||||
|
// 忘记密码
|
||||||
|
const handlerForget = () => {
|
||||||
|
window.location.href = 'http://sgwpdm.ah.sgcc.com.cn/iws/cas/pre-forget-password'
|
||||||
|
}
|
||||||
|
|
||||||
// 退出登录
|
// 退出登录
|
||||||
const handlerLogout = () => {
|
const handlerLogout = () => {
|
||||||
ElMessageBox.confirm('是否确定退出登录', {
|
ElMessageBox.confirm('是否确定退出登录', {
|
||||||
|
|
@ -531,6 +537,7 @@ onUnmounted(() => {
|
||||||
注册
|
注册
|
||||||
</a> -->
|
</a> -->
|
||||||
<a v-else @click="handlerLogout">退出登录</a>
|
<a v-else @click="handlerLogout">退出登录</a>
|
||||||
|
<a @click="handlerForget">忘记密码</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -328,6 +328,17 @@ const routes: Array<RouteRecordRaw> = [
|
||||||
isLogin: true
|
isLogin: true
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/rent-facility',
|
||||||
|
name: 'rent-facility',
|
||||||
|
component: () => import('views/user/rent-facility/index.vue'),
|
||||||
|
meta: {
|
||||||
|
title: '自有装备管理',
|
||||||
|
keepAlive: true,
|
||||||
|
AuthFlag: false,
|
||||||
|
isLogin: true
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/rent-manage',
|
path: '/rent-manage',
|
||||||
name: 'rent-manage',
|
name: 'rent-manage',
|
||||||
|
|
|
||||||
|
|
@ -174,6 +174,7 @@ const equipmentDeployment = (row: any) => {
|
||||||
deviceName: '',
|
deviceName: '',
|
||||||
deviceTypeList: [],
|
deviceTypeList: [],
|
||||||
deviceCount: 1,
|
deviceCount: 1,
|
||||||
|
originaValue:'',
|
||||||
unitName: '',
|
unitName: '',
|
||||||
code: '',
|
code: '',
|
||||||
brand: '',
|
brand: '',
|
||||||
|
|
@ -270,6 +271,7 @@ const getDetailData = async (row: any) => {
|
||||||
deviceName,
|
deviceName,
|
||||||
// deviceTypeList,
|
// deviceTypeList,
|
||||||
deviceCount,
|
deviceCount,
|
||||||
|
originaValue,
|
||||||
unitName,
|
unitName,
|
||||||
code,
|
code,
|
||||||
brand,
|
brand,
|
||||||
|
|
@ -296,6 +298,7 @@ const getDetailData = async (row: any) => {
|
||||||
Object.assign(addAndEditForm, {
|
Object.assign(addAndEditForm, {
|
||||||
deviceName,
|
deviceName,
|
||||||
deviceCount,
|
deviceCount,
|
||||||
|
originaValue,
|
||||||
unitName,
|
unitName,
|
||||||
code,
|
code,
|
||||||
brand,
|
brand,
|
||||||
|
|
@ -514,6 +517,7 @@ const equipmentDeploymentParams: any = ref({
|
||||||
deviceName: '',
|
deviceName: '',
|
||||||
deviceTypeList: [],
|
deviceTypeList: [],
|
||||||
deviceCount: 1,
|
deviceCount: 1,
|
||||||
|
originaValue:'',
|
||||||
unitName: '',
|
unitName: '',
|
||||||
code: '',
|
code: '',
|
||||||
brand: '',
|
brand: '',
|
||||||
|
|
@ -601,6 +605,12 @@ const dialogFormVisibleSettlein: any = ref(false)
|
||||||
const ruleFormRef: any = ref(null)
|
const ruleFormRef: any = ref(null)
|
||||||
//表单校验规则
|
//表单校验规则
|
||||||
const equipRules = ref({
|
const equipRules = ref({
|
||||||
|
originaValue:[{
|
||||||
|
required: true,
|
||||||
|
message: '请输入原值',
|
||||||
|
trigger: 'blur',
|
||||||
|
},
|
||||||
|
],
|
||||||
deviceName: [
|
deviceName: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
|
|
@ -1092,6 +1102,7 @@ const addAndEditForm = reactive<any>({
|
||||||
deviceName: '',
|
deviceName: '',
|
||||||
deviceTypeList: [],
|
deviceTypeList: [],
|
||||||
deviceCount: 1,
|
deviceCount: 1,
|
||||||
|
originaValue:'',
|
||||||
unitName: '',
|
unitName: '',
|
||||||
code: '',
|
code: '',
|
||||||
brand: '',
|
brand: '',
|
||||||
|
|
@ -1331,6 +1342,7 @@ const onDialogClose = () => {
|
||||||
deviceName: '',
|
deviceName: '',
|
||||||
deviceTypeList: [],
|
deviceTypeList: [],
|
||||||
deviceCount: 1,
|
deviceCount: 1,
|
||||||
|
originaValue:'',
|
||||||
unitName: '',
|
unitName: '',
|
||||||
code: '',
|
code: '',
|
||||||
brand: '',
|
brand: '',
|
||||||
|
|
@ -1879,7 +1891,17 @@ const handleDel = (index: any) => {
|
||||||
:disabled="typeDisabled"
|
:disabled="typeDisabled"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="原值:" prop="originaValue">
|
||||||
|
<el-input
|
||||||
|
v-model="addAndEditForm.originaValue"
|
||||||
|
placeholder="请输入原值"
|
||||||
|
clearable
|
||||||
|
maxlength="11"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<!-- 1.13 需求变动要求隐藏 -->
|
<!-- 1.13 需求变动要求隐藏 -->
|
||||||
<!-- <el-row :gutter="20">
|
<!-- <el-row :gutter="20">
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,8 @@ const lessorMenus: MenuItem[] = [
|
||||||
{ title: '合同管理', name: 'contract-manage', permission: ['1'] },
|
{ title: '合同管理', name: 'contract-manage', permission: ['1'] },
|
||||||
{ title: '自有装备管理', name: 'owned-manage', permission: ['1'] },
|
{ title: '自有装备管理', name: 'owned-manage', permission: ['1'] },
|
||||||
{ title: '外租装备管理', name: 'rent-manage', permission: ['1'] },
|
{ title: '外租装备管理', name: 'rent-manage', permission: ['1'] },
|
||||||
{ title: '后台管理', name: 'admin', permission: ['1'] },
|
{ title: '装备率', name: 'rent-facility', permission: ['1'] },
|
||||||
|
{ title: '后台管理', name: 'admin', permission: ['1'] },
|
||||||
]
|
]
|
||||||
// 按角色分组定义菜单---承租方
|
// 按角色分组定义菜单---承租方
|
||||||
const lesseeMenus: MenuItem[] = [
|
const lesseeMenus: MenuItem[] = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue