11 2022 档案

摘要:#遍历字典, 分别打印key, value, key:value emp = {'name':'Tom', 'age':20, 'salary' : 8800.00} for k in emp.keys(): print('key = {}'.format(k)) for v in emp.valu 阅读全文
posted @ 2022-11-28 14:53 门徒21 阅读(455) 评论(0) 推荐(0)
摘要:Promise.all([ request({ url: urlPrefix_custom, method: 'get', params: querys }) ]).then((res)=>{ console.log(" 自定义事件详情数据导出,回调数据 ") console.log(res[0]. 阅读全文
posted @ 2022-11-28 14:05 门徒21 阅读(1367) 评论(0) 推荐(0)
摘要:获取带参数URL:request.get_all_path() 获取不带参数URL:request.path 获取主机地址:request.get_host() 阅读全文
posted @ 2022-11-28 13:31 门徒21 阅读(33) 评论(0) 推荐(0)
摘要:// 读取本地json文件 export function GetUserAction (query){ let quesa = axios.get('/json/userAction.json').then(res => { // 获取public下的buildmenu.json文件数据 cons 阅读全文
posted @ 2022-11-25 16:35 门徒21 阅读(1728) 评论(0) 推荐(0)
摘要:数据打印格式: VUE部分: <div style="height:80vw;"> <el-table :data="resultTable.slice((queryInfo.pagenum-1)*queryInfo.pagesize,queryInfo.pagenum*queryInfo.page 阅读全文
posted @ 2022-11-17 16:05 门徒21 阅读(79) 评论(0) 推荐(0)
摘要:取整 1.取整 // 丢弃小数部分,保留整数部分 parseInt(5/2) // 2 2.向上取整 // 向上取整,有小数就整数部分加1 Math.ceil(5/2) // 3 3.向下取整 // 向下取整,丢弃小数部分 Math.floor(5/2) // 2 4四舍五入 // 四舍五入 Mat 阅读全文
posted @ 2022-11-17 15:50 门徒21 阅读(420) 评论(0) 推荐(0)
摘要:<template> <div> <el-table :data="resultTable" border ref="multipleTable" tooltip-effect="light" size="mini"> <el-table-column type="index" label="序号" 阅读全文
posted @ 2022-11-16 15:20 门徒21 阅读(650) 评论(0) 推荐(0)
摘要:1·vue获取路径传值 getEqRequest (query) { query = { data_point_app_id: this.$route.query.data_point_app_id, data_point_app_name: this.$route.query.data_point 阅读全文
posted @ 2022-11-15 17:12 门徒21 阅读(57) 评论(0) 推荐(0)
摘要:浮点型时间格式转换: GMT_FORMAT = '%Y-%m-%d %H:%M:%S' ta = str(w['create_datetime']).split(".")[0] create_datetime = datetime.datetime.strptime(ta, GMT_FORMAT) 阅读全文
posted @ 2022-11-14 22:13 门徒21 阅读(38) 评论(0) 推荐(0)
摘要:代码: if user_actions_name: # 获取自定义事件详情 print(' 自定义事件名 ') print(user_actions_name) new_custom_item = [] for w in data: custom_name = json.loads(w['custo 阅读全文
posted @ 2022-11-14 21:41 门徒21 阅读(256) 评论(0) 推荐(0)
摘要:from dvadmin.utils.json_response import SuccessResponse return SuccessResponse(data=new_custom_item, msg="获取成功")数据格式为: [{'名字': '韩梅梅'}, {'动作': '跳舞'}, { 阅读全文
posted @ 2022-11-14 17:05 门徒21 阅读(33) 评论(0) 推荐(0)
摘要:def get(self, request): print(" 用户行为列表") dictionary_key = self.request.query_params.get('data_point_app_id') print(' 445 ') print(dictionary_key) if d 阅读全文
posted @ 2022-11-11 12:07 门徒21 阅读(26) 评论(0) 推荐(0)