摘要: 很简单 1 formatJsonData(jsonData) { 2 var smapleDetailData = JSON.stringify(JSON.parse(jsonData), null, 2); 3 return smapleDetailData; 4 }, 主要是第二行代码,OK, 阅读全文
posted @ 2021-06-22 16:57 zzzzzyyyyyy 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 在js中,每个对象都有set和get方法,也可以自己进行定义,这里先简单说下用法 var person = { _name:'小花', get name() { return this._name + 'get方法' }, set name(n) { this._name = n + '调用了set 阅读全文
posted @ 2021-06-17 17:02 zzzzzyyyyyy 阅读(2127) 评论(0) 推荐(0) 编辑
摘要: 1 <el-table-column label="任务名称" width="120px" align="center" :show-overflow-tooltip="true"> 2 <template slot-scope="scope"> 3 <a 4 href="javascript:vo 阅读全文
posted @ 2021-06-10 15:45 zzzzzyyyyyy 阅读(804) 评论(0) 推荐(0) 编辑
摘要: <a class="abAccount" :href="`${personDetailUrl}` + scope.row.personId" target="_blank" title="进入人物主页" >{{scope.row.accountName}}</a> 阅读全文
posted @ 2021-06-03 17:49 zzzzzyyyyyy 阅读(77) 评论(0) 推荐(0) 编辑
摘要: timeFormat(timestamp) { if (timestamp) { var time = new Date(timestamp); var year = time.getFullYear(); var month = time.getMonth() + 1 < 10 ? "0" + ( 阅读全文
posted @ 2021-06-01 16:45 zzzzzyyyyyy 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1.在项目中创建icons文件夹 2.在 icons 文件夹下创建 index.js 文件 内容如下 import Vue from 'vue' import SvgIcon from '@/components/SvgIcon'// svg组件 // register globally Vue.c 阅读全文
posted @ 2021-05-31 16:30 zzzzzyyyyyy 阅读(613) 评论(0) 推荐(0) 编辑
摘要: 一:HTML规范 1.HTML标签名、类名、标签属性和大部分属性值统一用小写,基本所有的HTML代码使用小写。 2.不需要为 CSS、JS 指定类型属性,HTML5 中默认已包含。 例如:<link rel="stylesheet" href="" > 3.元素属性值使用双引号语法,元素属性值可以写 阅读全文
posted @ 2021-05-20 23:56 zzzzzyyyyyy 阅读(728) 评论(0) 推荐(0) 编辑
摘要: <a class="abAccount" @click="downLoadTxt(scope.row.taskId, scope.row.taskName)">采集异常账号下载</a> // 文件下载 downLoadTxt(taskId, taskName) { let _this = this; 阅读全文
posted @ 2021-05-20 15:22 zzzzzyyyyyy 阅读(948) 评论(0) 推荐(0) 编辑
摘要: <template> <div> {{allUserList}} {{date11 | dateFormat(date11)}} <el-row> <el-col :span="12" v-for="(value, index) in allUserList" :key="index" style= 阅读全文
posted @ 2021-05-10 15:17 zzzzzyyyyyy 阅读(6574) 评论(0) 推荐(0) 编辑
摘要: 一、 <template> <div class="tab"> <ul> <!-- :class="cur ind ? 'active': '' " --> <!-- :class='["active",cur==ind ? "active" : ""]' --> <li v-for="(item, 阅读全文
posted @ 2021-04-29 21:04 zzzzzyyyyyy 阅读(219) 评论(0) 推荐(0) 编辑