单风机:计算量显示优化
节点:密码修改为密码框
This commit is contained in:
parent
93699326bb
commit
229805f40b
@ -1008,6 +1008,7 @@ const createRealTimeData = async () => {
|
|||||||
{ type138: [], type140: [], type199: [] },
|
{ type138: [], type140: [], type199: [] },
|
||||||
]
|
]
|
||||||
modelList.forEach((item: any) => {
|
modelList.forEach((item: any) => {
|
||||||
|
|
||||||
const realVal = realData[item.attributeCode.toLowerCase()]
|
const realVal = realData[item.attributeCode.toLowerCase()]
|
||||||
let val = getCutDecimalsValue(realVal)
|
let val = getCutDecimalsValue(realVal)
|
||||||
if (enumStore.keys.includes(item.attributeCode)) {
|
if (enumStore.keys.includes(item.attributeCode)) {
|
||||||
@ -1113,7 +1114,7 @@ const realTimeForSubSystem = reactive<any>({
|
|||||||
})
|
})
|
||||||
const curSubSystem = ref('type1')
|
const curSubSystem = ref('type1')
|
||||||
const subSystemDataList = computed(() => {
|
const subSystemDataList = computed(() => {
|
||||||
const type = dialogradioactiveName.value === 138 ? 'type138' : 'type140'
|
const type = dialogradioactiveName.value === 138 ? 'type138' : dialogradioactiveName.value === 140 ? 'type140' : 'type199'
|
||||||
return realTimeForSubSystem[curSubSystem.value][type]
|
return realTimeForSubSystem[curSubSystem.value][type]
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1373,7 +1374,6 @@ const sendManualCommand = (type: 1 | 0) => {
|
|||||||
const getAlarmList = () => {
|
const getAlarmList = () => {
|
||||||
const start = dayjs().subtract(3, 'day').startOf('day').toDate().getTime()
|
const start = dayjs().subtract(3, 'day').startOf('day').toDate().getTime()
|
||||||
const end = dayjs().endOf('day').toDate().getTime()
|
const end = dayjs().endOf('day').toDate().getTime()
|
||||||
console.log(route.query.name)
|
|
||||||
|
|
||||||
getAlarmListReq({
|
getAlarmListReq({
|
||||||
startTime: start,
|
startTime: start,
|
||||||
|
@ -39,8 +39,6 @@ const props = withDefaults(defineProps<{ visible: boolean; type: string; type138
|
|||||||
})
|
})
|
||||||
|
|
||||||
const showData = computed(() => {
|
const showData = computed(() => {
|
||||||
console.log(props);
|
|
||||||
|
|
||||||
let data = props.type === '138' ? props.type138 : props.type === '140' ? props.type140 : props.type199
|
let data = props.type === '138' ? props.type138 : props.type === '140' ? props.type140 : props.type199
|
||||||
return data.slice((pageSetting.current - 1) * pageSetting.pageSize, pageSetting.current * pageSetting.pageSize)
|
return data.slice((pageSetting.current - 1) * pageSetting.pageSize, pageSetting.current * pageSetting.pageSize)
|
||||||
})
|
})
|
||||||
@ -60,11 +58,13 @@ watch(
|
|||||||
() => props.type,
|
() => props.type,
|
||||||
() => {
|
() => {
|
||||||
pageSetting.current = 1
|
pageSetting.current = 1
|
||||||
pageSetting.total = props.type === '138' ? props.type138.length : props.type140.length
|
pageSetting.total =
|
||||||
|
props.type === '138' ? props.type138.length : (pageSetting.total = props.type === '140' ? props.type140.length : props.type199.length)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
pageSetting.total = props.type === '138' ? props.type138.length : props.type140.length
|
pageSetting.total =
|
||||||
|
props.type === '138' ? props.type138.length : (pageSetting.total = props.type === '140' ? props.type140.length : props.type199.length)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -21,6 +21,14 @@
|
|||||||
:disabled="props.disabled"
|
:disabled="props.disabled"
|
||||||
class="formInput"
|
class="formInput"
|
||||||
></el-input>
|
></el-input>
|
||||||
|
<el-input
|
||||||
|
v-if="itemChild.data.type === 'password'"
|
||||||
|
type="password"
|
||||||
|
show-password
|
||||||
|
v-model="formData[itemChild.key] as string"
|
||||||
|
:disabled="props.disabled"
|
||||||
|
class="formInput"
|
||||||
|
></el-input>
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-else-if="itemChild.data.type === 'number'"
|
v-else-if="itemChild.data.type === 'number'"
|
||||||
v-model="formData[itemChild.key] as number"
|
v-model="formData[itemChild.key] as number"
|
||||||
@ -967,7 +975,7 @@ const formColumnList: formColumnType[] = [
|
|||||||
key: 'ftpPassword',
|
key: 'ftpPassword',
|
||||||
data: {
|
data: {
|
||||||
label: 'FTP密码',
|
label: 'FTP密码',
|
||||||
type: 'input',
|
type: 'password',
|
||||||
value: '',
|
value: '',
|
||||||
showKey: 'ftpMode',
|
showKey: 'ftpMode',
|
||||||
showValue: '1',
|
showValue: '1',
|
||||||
@ -1085,7 +1093,7 @@ const formColumnList: formColumnType[] = [
|
|||||||
key: 'ftpPassword',
|
key: 'ftpPassword',
|
||||||
data: {
|
data: {
|
||||||
label: 'FTP密码',
|
label: 'FTP密码',
|
||||||
type: 'input',
|
type: 'password',
|
||||||
value: '',
|
value: '',
|
||||||
showKey: 'ftpMode',
|
showKey: 'ftpMode',
|
||||||
showValue: '1',
|
showValue: '1',
|
||||||
@ -1105,7 +1113,7 @@ const formColumnList: formColumnType[] = [
|
|||||||
key: 'adsPassword',
|
key: 'adsPassword',
|
||||||
data: {
|
data: {
|
||||||
label: 'ADS密码',
|
label: 'ADS密码',
|
||||||
type: 'input',
|
type: 'password',
|
||||||
value: '',
|
value: '',
|
||||||
showKey: 'ftpMode',
|
showKey: 'ftpMode',
|
||||||
showValue: '1',
|
showValue: '1',
|
||||||
|
Loading…
Reference in New Issue
Block a user