Browse Source

feat: 修复编辑调整详情报错

lanjianrong 4 years ago
parent
commit
f3c272a0da

+ 1 - 1
.env.development

@@ -8,7 +8,7 @@ VITE_PUBLIC_PATH = /
 
 # Cross-domain proxy, you can configure multiple
 # Please note that no line breaks
-VITE_PROXY = [["/api","http://localhost:6060/api"], ["/upload", "http://localhost:7070/api/upload"]]
+VITE_PROXY = [["/api","http://pmqa.smartcost.com.cn/api"], ["/upload", "http://localhost:7070/api/upload"]]
 # VITE_PROXY=[["/api","https://vvbin.cn/test"]]
 
 # Delete console

+ 1 - 0
.gitignore

@@ -25,3 +25,4 @@ pnpm-debug.log*
 *.njsproj
 *.sln
 *.sw?
+dist.zip

+ 1 - 1
.vscode/settings.json

@@ -171,7 +171,7 @@
   },
   "[vue]": {
     "editor.codeActionsOnSave": {
-      // "source.fixAll.eslint": false,
+      "source.fixAll.eslint": false,
       "source.fixAll.stylelint": true
     }
   },

+ 1 - 3
src/views/dashboard/project-detail/components/account.vue

@@ -26,7 +26,6 @@
   import { BasicForm, FormActionType, FormSchema, useForm } from '/@/components/Form/index'
   import { getTableColumns } from './tableData'
   import { getProjectAccount, addProjectAccount } from '/@/api/sys/project'
-  import { useGo } from '/@/hooks/web/usePage'
   import { propTypes } from '/@/utils/propTypes'
   import { Radio } from 'ant-design-vue'
   import { Icon } from '/@/components/Icon/index'
@@ -58,9 +57,8 @@
     setup(props) {
       const formElRef = ref<Nullable<FormActionType>>(null)
       const { createMessage } = useMessage()
-      const go = useGo()
       const [registerTable, { setTableData, reload }] = useTable({
-        columns: getTableColumns(() => go('/acount/detail')),
+        columns: getTableColumns(() => showModalFn()),
         showTableSetting: true,
         canResize: true
       })

+ 4 - 2
src/views/dashboard/project-detail/components/tableData.tsx

@@ -26,11 +26,13 @@ export function getTableColumns(fn: (id: string) => void): BasicColumn[] {
     },
     {
       dataIndex: 'mobile',
-      title: '手机'
+      title: '手机',
+      width: '10%'
     },
     {
       dataIndex: 'telephone',
-      title: '电话'
+      title: '电话',
+      width: '10%'
     },
     {
       dataIndex: 'action',

+ 1 - 1
src/views/manager/detail/index.vue

@@ -38,7 +38,7 @@
   </PageWrapper>
 </template>
 <script lang="ts">
-  import { computed, defineComponent, ref } from 'vue'
+  import { computed, defineComponent, ref, watch } from 'vue'
   import { useRoute } from 'vue-router'
   import { getManagerInfoById, toggleManagerStatus } from '/@/api/sys/manager'
   import { PageWrapper } from '/@/components/Page'