|
@@ -475,10 +475,10 @@ const changeRemove= ()=>{
|
|
|
//删除数据
|
|
|
if (copiedCustomizeColumns.value.length > 0) {
|
|
|
const custom= copiedCustomizeColumns.value[selectedItemIndex.value];
|
|
|
- const se_type = custom.se_type
|
|
|
- for (let i = 0; i < sensorList.value.length; i++) {
|
|
|
- if (sensorList.value[i].se_type === se_type) {
|
|
|
- sensorList.value[i].isSelected = false;
|
|
|
+ const data_id = custom.data_id
|
|
|
+ for (let i = 0; i < elementList.value.length; i++) {
|
|
|
+ if (elementList.value[i].data_id === data_id) {
|
|
|
+ elementList.value[i].isSelected = false;
|
|
|
}
|
|
|
}
|
|
|
copiedCustomizeColumns.value.splice(selectedItemIndex.value, 1)
|
|
@@ -493,8 +493,8 @@ const changeCleared=()=>{
|
|
|
//清空所有数据
|
|
|
selectedItemIndex.value = 0
|
|
|
copiedCustomizeColumns.value = []
|
|
|
- for (let i = 0; i < sensorList.value.length; i++) {
|
|
|
- sensorList.value[i].isSelected = false;
|
|
|
+ for (let i = 0; i < elementList.value.length; i++) {
|
|
|
+ elementList.value[i].isSelected = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -595,7 +595,7 @@ const submitForm = () => {
|
|
|
|
|
|
// 大概计算字符串长度
|
|
|
function calculateTextLengthInPixels(text) {
|
|
|
- return (text.length * 14)+100;
|
|
|
+ return (text.length * 12)+100;
|
|
|
}
|
|
|
|
|
|
//时间戳转换为指定格式的日期字符串
|