From ef97374758de172c1747f964232d4eb722ab23cb Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 7 Aug 2024 09:53:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E7=BB=84=E4=BB=B6=E5=B0=81?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/RightToolbar/index.vue | 269 ++++++++++-------- src/components/TableModel/index.vue | 210 ++++++++++++++ src/main.js | 4 + src/views/BasicManage/ProjectManage/config.js | 13 + src/views/BasicManage/ProjectManage/index.vue | 16 +- vue.config.js | 2 +- 6 files changed, 396 insertions(+), 118 deletions(-) create mode 100644 src/components/TableModel/index.vue create mode 100644 src/views/BasicManage/ProjectManage/config.js diff --git a/src/components/RightToolbar/index.vue b/src/components/RightToolbar/index.vue index 67da293..6d25bf8 100644 --- a/src/components/RightToolbar/index.vue +++ b/src/components/RightToolbar/index.vue @@ -1,129 +1,172 @@ diff --git a/src/components/TableModel/index.vue b/src/components/TableModel/index.vue new file mode 100644 index 0000000..9111634 --- /dev/null +++ b/src/components/TableModel/index.vue @@ -0,0 +1,210 @@ + + + + + diff --git a/src/main.js b/src/main.js index ae36024..ea2b899 100644 --- a/src/main.js +++ b/src/main.js @@ -38,6 +38,9 @@ import VueMeta from 'vue-meta' // 字典数据组件 import DictData from '@/components/DictData' +// 表格组件 +import TableModel from '@/components/TableModel' + // 全局方法挂载 Vue.prototype.getDicts = getDicts Vue.prototype.getConfigKey = getConfigKey @@ -57,6 +60,7 @@ Vue.component('Editor', Editor) Vue.component('FileUpload', FileUpload) Vue.component('ImageUpload', ImageUpload) Vue.component('ImagePreview', ImagePreview) +Vue.component('TableModel', TableModel) Vue.use(directive) Vue.use(plugins) diff --git a/src/views/BasicManage/ProjectManage/config.js b/src/views/BasicManage/ProjectManage/config.js new file mode 100644 index 0000000..5963bfc --- /dev/null +++ b/src/views/BasicManage/ProjectManage/config.js @@ -0,0 +1,13 @@ + +export const formLabel = [ + { f_label: '分公司名称', f_model: 'keywords', f_type: 'ipt' }, +] +export const columnsList = [ + // { t_width: '55px', t_props: '', t_label: '序号' }, + { t_width: '', t_props: 'scrapNum', t_label: '单位名称', }, + { t_width: '', t_props: '', t_label: '单位类型' }, + { t_width: '', t_props: 'repairNum', t_label: '所属分公司' }, + { t_width: '', t_props: 'unitName', t_label: '联系人', }, + { t_width: '', t_props: 'projectName', t_label: '联系电话', }, + { t_width: '', t_props: 'itemType', t_label: '状态', }, +] \ No newline at end of file diff --git a/src/views/BasicManage/ProjectManage/index.vue b/src/views/BasicManage/ProjectManage/index.vue index 7e55c04..7d7ce82 100644 --- a/src/views/BasicManage/ProjectManage/index.vue +++ b/src/views/BasicManage/ProjectManage/index.vue @@ -1,10 +1,18 @@ - - diff --git a/vue.config.js b/vue.config.js index c797cbc..4dbd076 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:18080`, + target: `http://192.168.2.130:18080`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''