From 2f3ed8493285728d0f83d50f3a342dbad5a06f9f Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期二, 22 十月 2024 10:38:27 +0800
Subject: [PATCH] 问题修改乱码bug
---
src/views/fysp/check/components/ArbitraryPhoto.vue | 9 +---
src/views/fysp/check/components/CompDevicePhono.vue | 7 +--
src/components.d.ts | 1
src/views/fysp/check/components/CompProblemAddOrUpd.vue | 30 +++++++--------
src/views/fysp/check/components/ComChangeEdit.vue | 1
src/views/fysp/check/components/CompDeviceShowTest.vue | 13 ++----
6 files changed, 24 insertions(+), 37 deletions(-)
diff --git a/src/components.d.ts b/src/components.d.ts
index 5267454..124cacb 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -14,7 +14,6 @@
Content: typeof import('./components/core/Content.vue')['default']
ElAside: typeof import('element-plus/es')['ElAside']
ElAvatar: typeof import('element-plus/es')['ElAvatar']
- ElBacktop: typeof import('element-plus/es')['ElBacktop']
ElBadge: typeof import('element-plus/es')['ElBadge']
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
diff --git a/src/views/fysp/check/components/ArbitraryPhoto.vue b/src/views/fysp/check/components/ArbitraryPhoto.vue
index 7170d11..854296c 100644
--- a/src/views/fysp/check/components/ArbitraryPhoto.vue
+++ b/src/views/fysp/check/components/ArbitraryPhoto.vue
@@ -6,7 +6,7 @@
:placeholder="key_select.text"
>
<el-option
- v-for="(key_option, index_option) in filters.get(key_select.key)"
+ v-for="(key_option) in filters.get(key_select.key)"
:key="key_option.key"
:value="key_option.value"
:label="key_option.label"
@@ -128,9 +128,6 @@
}
},
mounted() {
- if (this.defaultFile == undefined || this.defaultFile == null) {
- this.defaultFile = [];
- }
if (this.subtask) {
this.getAllImgList();
}
@@ -233,11 +230,11 @@
if (this.readonly) {
return;
}
- img.isSelect = !Boolean(img.isSelect);
+ img.isSelect = !img.isSelect;
},
sendSelectedImg(isOk) {
let result = [];
- if (!Boolean(isOk)) {
+ if (!isOk) {
this.$emit('selectByAnyPhonoEvent', result);
}
for (const item of this.imgUrlList) {
diff --git a/src/views/fysp/check/components/ComChangeEdit.vue b/src/views/fysp/check/components/ComChangeEdit.vue
index bfcf316..af5562b 100644
--- a/src/views/fysp/check/components/ComChangeEdit.vue
+++ b/src/views/fysp/check/components/ComChangeEdit.vue
@@ -179,7 +179,6 @@
}
exclude = false;
// picUrls.push(item)
- } else {
}
});
diff --git a/src/views/fysp/check/components/CompDevicePhono.vue b/src/views/fysp/check/components/CompDevicePhono.vue
index 3900fa0..373e97e 100644
--- a/src/views/fysp/check/components/CompDevicePhono.vue
+++ b/src/views/fysp/check/components/CompDevicePhono.vue
@@ -90,9 +90,6 @@
}
},
mounted() {
- if (this.defaultFile == undefined || this.defaultFile == null) {
- this.defaultFile = [];
- }
this.initImgUrlList();
},
methods: {
@@ -139,11 +136,11 @@
if (this.readonly) {
return;
}
- img.isSelect = !Boolean(img.isSelect);
+ img.isSelect = !img.isSelect;
},
sendSelectedImg(isOk) {
let result = [];
- if (!Boolean(isOk)) {
+ if (!isOk) {
this.$emit('selectPhonoEvent', result);
}
for (const item of this.imgPathsDataSourceCopy) {
diff --git a/src/views/fysp/check/components/CompDeviceShowTest.vue b/src/views/fysp/check/components/CompDeviceShowTest.vue
index db10cc4..fa6b910 100644
--- a/src/views/fysp/check/components/CompDeviceShowTest.vue
+++ b/src/views/fysp/check/components/CompDeviceShowTest.vue
@@ -338,9 +338,6 @@
// 灞曠ず琛ㄥ崟鐨勮鎯呯殑鐐瑰嚮浜嬩欢
showDetail(item) {
item._isDetail = !item._isDetail;
- if (item._isDetail) {
- } else {
- }
},
init(scene) {
// 鐖剁粍浠朵富鍔ㄨ皟鐢ㄥ垵濮嬪寲瀛愮粍浠剁殑鏂规硶
@@ -537,11 +534,11 @@
return '';
}
let result;
- iDeviceTypesArray.forEach((e) => {
- if (e.value == device.typeId) {
- result = e;
- }
- });
+ // iDeviceTypesArray.forEach((e) => {
+ // if (e.value == device.typeId) {
+ // result = e;
+ // }
+ // });
return result;
},
onClickPic(e, item) {
diff --git a/src/views/fysp/check/components/CompProblemAddOrUpd.vue b/src/views/fysp/check/components/CompProblemAddOrUpd.vue
index d901b6a..eaad334 100644
--- a/src/views/fysp/check/components/CompProblemAddOrUpd.vue
+++ b/src/views/fysp/check/components/CompProblemAddOrUpd.vue
@@ -22,7 +22,7 @@
v-for="item in descriptionOptions"
:key="item.guid"
:label="item.description"
- :value="item.guid"
+ :value="item.description"
/>
</el-select>
</el-form-item>
@@ -232,7 +232,6 @@
watch: {
fileList: {
handler(newFileList, oldFileList) {
- console.log('newFileList', newFileList);
// 鍥剧墖鏍¢獙
this.pictureValidate();
},
@@ -262,10 +261,7 @@
},
adviseOptions() {
var problemGuid = this.currProTypeGuid || this.problem.guid;
- console.log("problemGuid", problemGuid);
-
var array = this.suggestions.filter((item) => item.adProblemtypeguid == problemGuid);
- console.log("array", array);
return array;
}
},
@@ -286,8 +282,7 @@
// 灏嗕竴涓猨s瀵硅薄涓墍鏈塪i锛寃i锛宲i寮�澶寸殑灞炴�у叏閮ㄦ敼鎴愬幓鎺夎繖浜涘墠缂�骞朵笖閲嶆柊鍙樹负椹煎嘲寮忓懡鍚�
const newObj = {};
for (const key in obj) {
- if (obj.hasOwnProperty(key)) {
- let newKey = key;
+ let newKey = key;
if (key.startsWith('di')) {
newKey = key.substring(2);
} else if (key.startsWith('wi')) {
@@ -297,7 +292,6 @@
}
newKey = newKey.charAt(0).toLowerCase() + newKey.slice(1);
newObj[newKey] = obj[key];
- }
}
return newObj;
},
@@ -350,8 +344,6 @@
this.saveStatus(newDevice, statusItem);
newDevice.dlLocation = statusItem.dlLocation;
newDevice.topTypeId = topTypeId;
- console.log('newDevice.topTypeId', newDevice.topTypeId);
- console.log('newDevice', newDevice);
this.deviceImgObjList.push(newDevice);
}
@@ -364,7 +356,6 @@
},
initOptions() {
if (this.problem == undefined || this.problem == null) {
- this.problem = {};
this.deepCopyProblem = {};
} else {
this.deepCopyProblem = useCloned(this.problem).cloned.value;
@@ -472,7 +463,7 @@
return result;
},
changeProblemname() {
- if (this.proRemark == null || this.proRemark == '') {
+ if (!this.proRemark || this.proRemark == null || this.proRemark == '') {
this.deepCopyProblem.problemname = this.deepCopyProblem.description;
} else {
this.deepCopyProblem.problemname =
@@ -486,10 +477,19 @@
this.deepCopyProblem.description = '';
this.deepCopyProblem.advise = '';
},
+ findProByProDesName(name) {
+ let result
+ this.problemTypeList.forEach(item=>{
+ if (item.description == name) {
+ result = item;
+ }
+ })
+ return result
+ },
onProDesChange(value) {
- let currPro = this.findProTypeByGuid(value);
+ let currPro = this.findProByProDesName(value)
this.deepCopyProblem.advise = '';
- this.currProTypeGuid = value;
+ this.currProTypeGuid = currPro.guid;
// this.deepCopyProblem.description = currPro.description;
this.changeProblemname();
this.deepCopyProblem.advise = '';
@@ -549,7 +549,6 @@
}
exclude = false;
// picUrls.push(item)
- } else {
}
});
if (this.type == 1) {
@@ -568,7 +567,6 @@
const deepCopySubTask = useCloned(this.subtask).cloned.value;
const that = this;
fileUtil.getImageFiles(picUrls, function (files) {
- console.log('deepCopySubTask', deepCopySubTask);
deepCopyPro.insGuid = deepCopySubTask.insGuid;
delete deepCopyPro['advise'];
delete deepCopyPro['description'];
--
Gitblit v1.9.3