下拉框bug,状态颜色
This commit is contained in:
parent
05f8582e48
commit
8b24a14adf
|
|
@ -2,6 +2,7 @@
|
|||
<!-- 工程管理 新增、编辑 表单组件 -->
|
||||
<div>
|
||||
<el-form
|
||||
v-loading="open"
|
||||
label-width="100px"
|
||||
size="medium"
|
||||
ref="projectParamsRef"
|
||||
|
|
@ -136,20 +137,23 @@ export default {
|
|||
created() {
|
||||
// this.getRanges()
|
||||
},
|
||||
mounted() {
|
||||
async mounted() {
|
||||
this.open = true
|
||||
await this.getRanges()
|
||||
if (this.crewParams) {
|
||||
this.crewParams.proId = Number(this.crewParams.proId)
|
||||
this.ableSelect = this.crewParams.relId
|
||||
Object.assign(this.projectParams, this.crewParams)
|
||||
await Object.assign(this.projectParams, this.crewParams)
|
||||
this.subSort = 2
|
||||
} else {
|
||||
this.subSort = 1
|
||||
}
|
||||
this.getRanges()
|
||||
this.open = false
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
columnsListCrew,
|
||||
open: false,
|
||||
exportList: [],
|
||||
subSort: '', // 提交类型:新增 1 / 修改 2
|
||||
ableSelect: undefined,
|
||||
|
|
|
|||
|
|
@ -121,10 +121,8 @@ export default {
|
|||
async mounted() {
|
||||
this.open = true
|
||||
await this.getRanges()
|
||||
console.log(this.editParams)
|
||||
if (this.editParams) {
|
||||
await Object.assign(this.deviceParams, this.editParams)
|
||||
console.log(this.deviceParams)
|
||||
this.subSort = 2
|
||||
} else {
|
||||
this.subSort = 1
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
<template slot="devStatusName" slot-scope="{ data }">
|
||||
<span
|
||||
v-if="data.devStatusName === '在线'"
|
||||
style="color:aquamarine;"
|
||||
style="color: #11AB21;"
|
||||
>{{ data.devStatusName }}</span>
|
||||
<span
|
||||
v-if="data.devStatusName === '离线'"
|
||||
|
|
|
|||
Loading…
Reference in New Issue