main
严飞永 1 week ago
parent 0a4113e2ba
commit 7798f28623

@ -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)
}
}
}
</script>

@ -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) {

@ -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 = ['国企', '民企', '外企', '其他'];

@ -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();

@ -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();

@ -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();

Loading…
Cancel
Save