+
已驳回
+
+ 已下架
+
+
+ 已注销
+
@@ -43,7 +55,7 @@
@@ -53,71 +65,21 @@
import headerTop from "./com/headerTop.vue"
import addCom from "./com/addCom.vue"
import { ElConfirmBeforeOpert } from "utils/elementCom"
+import { apiGetCompanyInfoSelectList, apiupdateCompanyInfo } from "http/api/enterprise"
+import { ElMessage } from 'element-plus'
const router = useRouter()
const addComRef = ref()
const paginationInfo = reactive({
- currentPage: 1,
+ pageNum: 1,
pageSize: 15
})
-const tableData = [
- {
- v_id: '1',
- v_company: '2016-05-03',
- v_code: 'Tom',
- v_represent: 'California',
- v_auth_name: 'Los Angeles',
- v_username: 'No. 189, Grove St, Los Angeles',
- v_applyTime: 'CA 90036',
- v_status: '1',
- },
- {
- v_id: '2',
- v_company: '2016-05-03',
- v_code: 'Tom',
- v_represent: 'California',
- v_auth_name: 'Los Angeles',
- v_username: 'No. 189, Grove St, Los Angeles',
- v_applyTime: 'CA 90036',
- v_status: '1',
- },
- {
- v_id: '3',
- v_company: '2016-05-03',
- v_code: 'Tom',
- v_represent: 'California',
- v_auth_name: 'Los Angeles',
- v_username: 'No. 189, Grove St, Los Angeles',
- v_applyTime: 'CA 90036',
- v_status: '1',
- },
- {
- v_id: '4',
- v_company: '2016-05-03',
- v_code: 'Tom',
- v_represent: 'California',
- v_auth_name: 'Los Angeles',
- v_username: 'No. 189, Grove St, Los Angeles',
- v_applyTime: 'CA 90036',
- v_status: '1',
-
- },
- {
- v_id: '5',
- v_company: '2016-05-03',
- v_code: 'Tom',
- v_represent: 'California',
- v_auth_name: 'Los Angeles',
- v_username: 'No. 189, Grove St, Los Angeles',
- v_applyTime: 'CA 90036',
- v_status: '2',
- },
-
-]
-
+let total = ref(0)
let tableListInfo = reactive({
- list: tableData
+ list: []
})
+let searchParams: any = {}
+
const editRowFn = (row: any) => {
addComRef.value.edit({
@@ -125,14 +87,31 @@ const editRowFn = (row: any) => {
})
}
-const showRowFn=(row: any) => {
+const showRowFn = (row: any) => {
router.push({
- name:'enterpriseInfoDetails'
+ name: 'entryAuditDetails',
+ query: {
+ type: 'settleIn',
+ subType: 'show',
+ id: row.companyId
+ }
})
}
-const deleteItem = (row: any) => {
- const itemID = row.v_id
+const deleteItem = async (row: any) => {
+ const itemID = row.companyId
console.log("ITEMid", row)
+ let params = {
+ bmCompanyInfo: {
+ companyId: itemID,
+ status: '3'
+ }
+ }
+ const res = await apiupdateCompanyInfo(params)
+ ElMessage({
+ type: 'success',
+ message: "下架成功"
+ })
+ initTableList()
}
const deleteRowFn = (row: any) => {
@@ -147,8 +126,9 @@ const deleteRowFn = (row: any) => {
}
-const searchFn = () => {
-
+const searchFn = (params: any) => {
+ searchParams = params
+ initTableList()
}
const resetFn = () => {
@@ -166,15 +146,24 @@ const addFn = () => {
const getPageFn = (val: any) => {
- paginationInfo.currentPage = val.currentPage
+ paginationInfo.pageNum = val.pageNum
paginationInfo.pageSize = val.pageSize
initTableList()
}
-
-const initTableList = () => {
-
+const initTableList = async () => {
+ const params = {
+ ...searchParams,
+ ...paginationInfo
+ }
+ const res: any = await apiGetCompanyInfoSelectList(params)
+ console.log("apiGetCompanyInfoSelectList", res)
+ tableListInfo.list = res.rows
+ // tableListInfo.list =
+ total.value = res.total
}
-
+onMounted(() => {
+ initTableList()
+})
diff --git a/src/views/enterpriseManagement/enterpriseType/index.vue b/src/views/enterpriseManagement/enterpriseType/index.vue
index ddc595a..ea50189 100644
--- a/src/views/enterpriseManagement/enterpriseType/index.vue
+++ b/src/views/enterpriseManagement/enterpriseType/index.vue
@@ -4,7 +4,8 @@
+ :height="'calc(100vh - 72px - 48px - 65px - 12px - 60px - 48px)'"
+ :header-cell-style="{ background: '#F2F3F5' }">
@@ -105,6 +106,8 @@ const exportFn = async () => {
type: 'success',
message: "导出成功"
})
+
+
}