diff --git a/src/components/bearicon/index.vue b/src/components/bearicon/index.vue
index 620f913..ce46504 100644
--- a/src/components/bearicon/index.vue
+++ b/src/components/bearicon/index.vue
@@ -43,12 +43,8 @@ export default {
const response = await getMessageCount();
if (response && response.code === 200) {
this.counts = response.data; // 将消息数量赋值给 counts
- } else {
- console.error('获取数据失败:', response);
- }
- } catch (error) {
- console.error('获取数据失败:', error);
- }
+ } else { }
+ } catch (error) {}
},
// 获取数据
async getCountstwo() {
@@ -56,16 +52,9 @@ export default {
const response = await getMessageCounttwo();
if (response && response.code === 200) {
this.countstwo = response.data; // 将消息数量赋值给 counts
- } else {
- console.error('获取数据失败:', response);
- }
- } catch (error) {
- console.error('获取数据失败:', error);
- }
+ } else { }
+ } catch (error) { }
},
- handleCommand(command) {
- this.$message('点击了: ' + command)
- }
}
}
diff --git a/src/views/components/analysis/function.vue b/src/views/components/analysis/function.vue
index c3d75ca..4c7ac8a 100644
--- a/src/views/components/analysis/function.vue
+++ b/src/views/components/analysis/function.vue
@@ -35,20 +35,17 @@ export default {
},
mounted() {
this.getData();
- console.log("function.vue: mounted with years:", this.years); // 调试日志
},
watch: {
years: {
immediate: true,
handler(newVal) {
- console.log("function.vue: years changed to:", newVal); // 调试日志
this.getData();
}
}
},
methods: {
async getData() {
- console.log("function.vue: getData called with years:", this.years); // 调试日志
try {
const response = await fungong({ years: this.years });
if (response && response.code === 200 && response.data) {
@@ -57,10 +54,8 @@ export default {
this.chartData = this.processData(response.data);
this.renderChart();
} else {
- console.error("function.vue: 获取数据失败:", response); // 调试日志
}
} catch (error) {
- console.error("function.vue: 请求失败:", error); // 调试日志
}
},
processData(data) {
diff --git a/src/views/components/analysis/invest.vue b/src/views/components/analysis/invest.vue
index 35e220e..488a70b 100644
--- a/src/views/components/analysis/invest.vue
+++ b/src/views/components/analysis/invest.vue
@@ -34,20 +34,17 @@ export default {
},
mounted() {
this.getData();
- console.log("invest.vue: mounted with years:", this.years); // 调试日志
},
watch: {
years: {
immediate: true,
handler(newVal) {
- console.log("invest.vue: years changed to:", newVal); // 调试日志
this.getData();
}
}
},
methods: {
async getData() {
- console.log("invest.vue: getData called with years:", this.years); // 调试日志
const response = await investall({
years: this.years,
});
@@ -56,9 +53,7 @@ export default {
this.functionnumber = totalCount;
this.chartData = this.processData(response.data);
this.renderChart();
- } else {
- console.error("invest.vue: 获取数据失败:", response); // 调试日志
- }
+ } else {}
},
processData(data) {
const names = ['国企', '民企', '外企', '其他'];
diff --git a/src/views/evalute/configtable/index.vue b/src/views/evalute/configtable/index.vue
index 720fa29..a0c53b3 100644
--- a/src/views/evalute/configtable/index.vue
+++ b/src/views/evalute/configtable/index.vue
@@ -11,8 +11,8 @@
- 查询
- 重置
+ 查询
+ 重置
@@ -36,8 +36,8 @@
- 编辑
- 删除
+ 编辑
+ 删除
@@ -114,7 +114,7 @@ export default {
getProjectEvaluationPage(this.queryParams).then(response => {
if (response && response.data && response.data.records !== undefined && response.data.total !== undefined) {
this.postList = response.data.records;
- this.total = response.data.total;
+ this.total = response.data.total;
} else {
this.postList = [];
this.total = 0;
@@ -190,8 +190,9 @@ export default {
},
// 删除按钮操作
handleDelete(row) {
- const postIds = row.id || this.ids; // 使用 id 字段
- this.$modal.confirm('是否确认删除项目评价配置编号为"' + postIds + '"的数据项?').then(() => {
+ const postIds = row.id || this.ids;
+ const pjys = row.pjys; // 获取 pjys 字段的内容
+ this.$modal.confirm(`是否确认删除"${pjys}"的数据项?`).then(() => {
return deleteProjectEvaluation(postIds);
}).then(() => {
this.getList();
diff --git a/src/views/orientedtwo/content/index.vue b/src/views/orientedtwo/content/index.vue
index 5809824..44509d5 100644
--- a/src/views/orientedtwo/content/index.vue
+++ b/src/views/orientedtwo/content/index.vue
@@ -323,7 +323,7 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const catalogIds = row.id || this.ids;
- this.$modal.confirm('是否确认删除项目知识库编号为"' + catalogIds + '"的数据项?').then(() => {
+ this.$modal.confirm('是否确认删除该数据项?').then(() => {
return deleteCatalog([catalogIds]);
}).then(() => {
this.getList();
diff --git a/src/views/orientedtwo/subdivide/index.vue b/src/views/orientedtwo/subdivide/index.vue
index 81ed442..0c62403 100644
--- a/src/views/orientedtwo/subdivide/index.vue
+++ b/src/views/orientedtwo/subdivide/index.vue
@@ -365,7 +365,7 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const catalogIds = row.id || this.ids;
- this.$modal.confirm('是否确认删除项目知识库编号为"' + catalogIds + '"的数据项?').then(() => {
+ this.$modal.confirm('是否确认删除该数据项?').then(() => {
return deleteXfcygl([catalogIds]);
}).then(() => {
this.getList();