社区大门 增删改查完成
This commit is contained in:
		
							
								
								
									
										51
									
								
								frontend/src/api/gate.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								frontend/src/api/gate.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,51 @@
 | 
			
		||||
import send_request from '../utils/send_request';
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 获取大门列表
 | 
			
		||||
 * @returns
 | 
			
		||||
 */
 | 
			
		||||
export function getGateList(params) {
 | 
			
		||||
    return send_request({
 | 
			
		||||
        url: '/access/gate/manage/getGateList',
 | 
			
		||||
        method: 'GET',
 | 
			
		||||
        params: params,
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 添加/修改大门信息
 | 
			
		||||
 * @returns
 | 
			
		||||
 */
 | 
			
		||||
export function editGate(params) {
 | 
			
		||||
    return send_request({
 | 
			
		||||
        url: '/access/gate/manage/editGate',
 | 
			
		||||
        method: 'POST',
 | 
			
		||||
        useQS: true,
 | 
			
		||||
        params: params,
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 删除大门
 | 
			
		||||
 * @returns
 | 
			
		||||
 */
 | 
			
		||||
export function deleteGate(params) {
 | 
			
		||||
    return send_request({
 | 
			
		||||
        url: '/access/gate/manage/deleteGate',
 | 
			
		||||
        method: 'POST',
 | 
			
		||||
        useQS: true,
 | 
			
		||||
        params: params,
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 导出大门列表
 | 
			
		||||
 * @returns
 | 
			
		||||
 */
 | 
			
		||||
export function exportGateList(params) {
 | 
			
		||||
    return send_request({
 | 
			
		||||
        url: '/access/gate/manage/exportGateList',
 | 
			
		||||
        method: 'GET',
 | 
			
		||||
        params: params,
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
@@ -32,7 +32,7 @@
 | 
			
		||||
            </div>
 | 
			
		||||
            <!-- 表格 -->
 | 
			
		||||
            <el-table :data="tableData" border class="table" ref="multipleTable" header-cell-class-name="table-header">
 | 
			
		||||
                <el-table-column prop="id" label="ID" width="55" align="center"></el-table-column>
 | 
			
		||||
                <el-table-column prop="id" label="ID" align="center"></el-table-column>
 | 
			
		||||
                <el-table-column v-for="(field, index) in tableFields" :prop="field.prop" :label="field.label" :key="index"
 | 
			
		||||
                    align="center">
 | 
			
		||||
                    <template #default="scope" v-if="field.type == 'image'">
 | 
			
		||||
 
 | 
			
		||||
@@ -1,11 +1,11 @@
 | 
			
		||||
<template>
 | 
			
		||||
    <div class="container">
 | 
			
		||||
        <manageList :list-func="shopGoodApi.getGoodList" :add-func="shopGoodApi.editGood" :edit-func="shopGoodApi.editGood"
 | 
			
		||||
            :delete-func="shopGoodApi.deleteGood" :export-func="shopGoodApi.exportGoodList" edit-permiss="shop-good-setting" />
 | 
			
		||||
        <manageList :list-func="gateApi.getGateList" :add-func="gateApi.editGate" :edit-func="gateApi.editGate"
 | 
			
		||||
            :delete-func="gateApi.deleteGate" :export-func="gateApi.exportGateList" edit-permiss="access-gate-setting" />
 | 
			
		||||
    </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script setup lang="ts">
 | 
			
		||||
import manageList from '../components/manage-list.vue';
 | 
			
		||||
import * as shopGoodApi from '../api/shop-good';
 | 
			
		||||
import * as gateApi from '../api/gate';
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<template>
 | 
			
		||||
    <div class="container">
 | 
			
		||||
        <manageList :list-func="reportApi.getReportList" :export-func="reportApi.exportReportList"
 | 
			
		||||
            edit-permiss="privilege-user-setting" />
 | 
			
		||||
            edit-permiss="access-log" />
 | 
			
		||||
    </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user