|
|
@ -5,6 +5,7 @@ import { ElMessage, ElMessageBox } from "element-plus"; |
|
|
|
import axios from "axios"; |
|
|
|
import moment from "moment"; |
|
|
|
import API from "../../api/index.js"; |
|
|
|
import _ from 'lodash'; |
|
|
|
|
|
|
|
//这是获取用户信息的接口 |
|
|
|
const adminData = ref({}); |
|
|
@ -165,6 +166,7 @@ const add = async function () { |
|
|
|
} |
|
|
|
}); |
|
|
|
}; |
|
|
|
const throttledAdd = _.throttle(add, 5000); |
|
|
|
// 删除========================================================= |
|
|
|
// 删除按钮 |
|
|
|
const del = function (row) { |
|
|
@ -510,7 +512,7 @@ onMounted(async function () { |
|
|
|
|
|
|
|
<div class="dialog-footer"> |
|
|
|
<el-button @click="closeAddActivityVisible">取消</el-button> |
|
|
|
<el-button type="primary" @click="add()"> 提交 </el-button> |
|
|
|
<el-button type="primary" @click="throttledAdd()"> 提交 </el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|