From b553ae530addcd818af2007783ddbac63b6e00a7 Mon Sep 17 00:00:00 2001 From: yanfeiyong <2060201549@qq.com> Date: Thu, 17 Apr 2025 09:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=89=8B=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/compilation/handbook/index.vue | 2 +- src/views/compilation/handbook/yulan.vue | 110 +++++++++++------------ src/views/orientedtwo/bqspan/index.vue | 91 +++++++++++++++++-- vue.config.js | 4 +- 4 files changed, 143 insertions(+), 64 deletions(-) diff --git a/src/views/compilation/handbook/index.vue b/src/views/compilation/handbook/index.vue index 87c77f8..5de7487 100644 --- a/src/views/compilation/handbook/index.vue +++ b/src/views/compilation/handbook/index.vue @@ -1,6 +1,6 @@ @@ -102,7 +164,24 @@ export default { startTime: undefined, endTime: undefined, status: undefined, - } + }, + // 默认数据 + defaultData: [ + { + id: 0, + name: '默认企业名称', + tyshxydm: '123456789012345678', + bqdm: 'DEFAULT', + state: '有效', + yhlx: '默认用户类型', + bqzs: '默认标签注释', + bqzt: '默认标签状态' + } + ], + // 弹窗显示控制 + dialogVisible: false, + // 详情数据 + detailData: {} }; }, created() { @@ -117,8 +196,9 @@ export default { //api getCybqInformationPage(this.queryParams).then((response) => { - this.postList = response.data.records; - this.total = response.data.total; + // 将默认数据与从后端获取的数据合并 + this.postList = [...this.defaultData, ...response.data.records]; + this.total = response.data.total + this.defaultData.length; this.loading = false; }).catch(); }, @@ -132,9 +212,8 @@ export default { /** 详情按钮操作 */ getAdd(row, type) { - this.$store.commit("SET_CRUMBS", this.$route.meta.title + "新增"); - const id = row.id || this.ids[0]; - this.$router.push({ path: `/manage-add/${id}`, query: { action: type } }); + this.detailData = row; + this.dialogVisible = true; }, /** 重置按钮操作 */ resetQuery() { diff --git a/vue.config.js b/vue.config.js index ea3100a..167a45c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -46,8 +46,8 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://192.168.0.106:7071/`, - // target: `http://39.101.188.84:7071/`, + // target: `http://192.168.0.106:7071/`, + target: `http://39.101.188.84:7071/`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''