5 changed files with 10 additions and 140 deletions
-
1src/main.js
-
32src/utils/damo.js
-
80src/utils/refreshTableColumn.js
-
28src/views/modules/project/demo.vue
-
9src/views/modules/project/projectInfo/projectInfo.vue
@ -1,32 +0,0 @@ |
|||
// import {
|
|||
// getTableDefaultListLanguage,
|
|||
// getTableUserListLanguage,
|
|||
// } from "@/api/table.js"
|
|||
//
|
|||
//
|
|||
//
|
|||
//
|
|||
// async function getTableUserColumn2(queryTableUser,tableId, columnList) {
|
|||
// queryTableUser.tableId=tableId
|
|||
// await getTableUserListLanguage(queryTableUser).then(({data}) => {
|
|||
// if (data.rows.length > 0) {
|
|||
//
|
|||
// columnList = data.rows
|
|||
//
|
|||
// } else {
|
|||
//
|
|||
// getTableDefaultListLanguage(queryTableUser).then(({data}) => {
|
|||
// if (data.rows.length > 0) {
|
|||
//
|
|||
// columnList = data.rows
|
|||
//
|
|||
// } else {
|
|||
//
|
|||
// }
|
|||
// })
|
|||
// }
|
|||
// })
|
|||
//
|
|||
// }
|
|||
//
|
|||
// export default {getTableUserColumn2}
|
|||
@ -1,80 +0,0 @@ |
|||
// import {
|
|||
// getTableDefaultListLanguage,
|
|||
// getTableUserListLanguage,
|
|||
// } from "@/api/table.js"
|
|||
//
|
|||
//
|
|||
// const refreshTableColumn = {
|
|||
// methods: {
|
|||
// async getTableUserColumn2(tableId, columnList) {
|
|||
// debugger
|
|||
// let queryTableUser = {
|
|||
// userId: this.$store.state.user.name,
|
|||
// functionId: this.$route.meta.menuId,
|
|||
// tableId: tableId,
|
|||
// status: true,
|
|||
// languageCode: this.$i18n.locale
|
|||
// }
|
|||
// await getTableUserListLanguage(queryTableUser).then(({data}) => {
|
|||
// if (data.rows.length > 0) {
|
|||
//
|
|||
// columnList = data.rows
|
|||
//
|
|||
// } else {
|
|||
// let queryTable= {
|
|||
// functionId: this.$route.meta.menuId,
|
|||
// tableId: tableId,
|
|||
// languageCode: this.$i18n.locale
|
|||
// }
|
|||
// getTableDefaultListLanguage(queryTable).then(({data}) => {
|
|||
// if (!data.rows.length == 0) {
|
|||
//
|
|||
// columnList = data.rows
|
|||
//
|
|||
// } else {
|
|||
//
|
|||
// }
|
|||
// })
|
|||
// }
|
|||
// })
|
|||
//
|
|||
// },
|
|||
// }
|
|||
// }
|
|||
//
|
|||
// export default refreshTableColumn
|
|||
|
|||
|
|||
import { |
|||
getTableDefaultListLanguage, |
|||
getTableUserListLanguage, |
|||
} from "@/api/table.js" |
|||
|
|||
|
|||
|
|||
|
|||
async function getTableUserColumn2(queryTableUser,tableId, columnList) { |
|||
|
|||
queryTableUser.tableId=tableId |
|||
await getTableUserListLanguage(queryTableUser).then(({data}) => { |
|||
if (data.rows.length > 0) { |
|||
|
|||
this.columnList = data.rows |
|||
|
|||
} else { |
|||
|
|||
getTableDefaultListLanguage(queryTableUser).then(({data}) => { |
|||
if (data.rows.length > 0) { |
|||
|
|||
this.columnList = data.rows |
|||
|
|||
} else { |
|||
|
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
|
|||
} |
|||
|
|||
export default {getTableUserColumn2} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue