
MC5.0相关
一些解决方案
dongsdh
少熬夜,多运动,记得笑
展开
-
dsf5.0 弹框点确定没有返回值的问题
弹框点确定没有返回值的问题原创 2022-07-21 09:47:35 · 117 阅读 · 0 评论 -
dsf5.0新建页面访问时重定向到首页的问题
重定向到首页的问题原创 2022-07-19 10:40:32 · 149 阅读 · 0 评论 -
dsf5.0本地运行正常,打包后报组件未注册
后台去设置,应该读取的是打包后的xxx_project.html文件,而不是xxx_product.html文件xxx_product.html读取不到,新创建的组件,所以会报错原创 2022-05-17 11:29:16 · 169 阅读 · 0 评论 -
dsf5.0修改不了头像
//填充数据let photo = JSON.parse(data.photo || '[]') try { if (photo && photo.length) { if (!photo[0].relativePath) { photo[0].relativePath = dsf.config.setting_public_user_default_card_header || dsf.config.原创 2022-05-07 16:51:24 · 153 阅读 · 0 评论 -
dsf5.0小操作
删除cookedsf.cookies.remove("abc"); dsf.storage.session.clear();dsf.cookies.set("isLogin", "");原创 2022-04-08 09:59:12 · 459 阅读 · 0 评论 -
dsf5.0二次开发输入框监听,其他类似
{"@keyup":"inpKeyup","@change":"inpChange"}methods:{ inpKeyup(d){ console.log(d); }, inpChange(d){ console.log(d) }}原创 2022-03-31 14:06:23 · 124 阅读 · 0 评论 -
dsf5.0 element ui表单相关验证
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="126px" class="demo-ruleForm"> <el-form-item label="登录密码" prop="password"> <el-input v-model="ruleForm.password"></el-input> .原创 2022-03-11 17:03:50 · 1365 阅读 · 0 评论 -
dsf5.0获取嵌入页面的数据
这是嵌入的页面<dsf-view-part path="/pc/nc/*****" style="height: 300px"></dsf-view-part>获取表格数据 ,位置不同,获取层级需调整this.$refs.ruleForm.$children[6].$children[1].$refs.view.$viewData;原创 2022-03-11 16:59:53 · 238 阅读 · 0 评论 -
dsf5.0没登录显示登录弹框
{"@click":"click"}click(sd){// console.log(sd);let userid = dsf.getCookie('userId');if(userid){window.open('page.html#/pc/******?type=channel&id='+sd.args.id)}else{this.$checkLogin();}}原创 2022-02-24 09:58:44 · 544 阅读 · 0 评论 -
dsf5.0让配置的菜单选中
?active=tab3原创 2022-02-16 15:26:08 · 103 阅读 · 0 评论 -
dsf5.0弹框中的保存回调-关闭弹框
this.$dialog.$parent.cancel();原创 2022-01-19 13:39:58 · 322 阅读 · 0 评论 -
dsf5.0字段映射
keysMap: { type: Array, default: () => { return [ { from: "title", to: "title", type: "text", desc: "标题" }, ]; }, },json{ "text": "字段映射", "bindControlAttr": "keysMap", "showTy.原创 2021-12-14 17:04:17 · 983 阅读 · 0 评论 -
dsf5.0 自定义数组格式
props: { Padding: { type: String, default: "50px 0 60px 0", desc: "内边距", }, logoUrl: { type: String, default: require("../../../assets/styles/img/pcimg/footer-logosx3.png"), desc: "图标", }, Copy: { .原创 2021-12-13 10:49:15 · 344 阅读 · 0 评论 -
dsf5.0 有确认按钮的弹框
dsf.layer.openDialog({ template: "新系统!", title: "提示", width: "420px", height: "60px", btnSize: "small", btns: [ { .原创 2021-12-08 16:33:55 · 139 阅读 · 0 评论 -
dsf5.0 默认图片
.vue<dsf-image class="cimg" :src="setImg(item['nc_teacher_data_mainTeacherData.photo'])" :error-src="defaultImg" />setImg(cover) { let src = "../../../assets/imgs/404.png"; if (cover) { src = JSON.parse(cover)[0] ? JSON.par原创 2021-11-25 15:35:53 · 656 阅读 · 0 评论 -
dsf5.0 json配置相关(字段映射)
.vue<span>{{ item[keysMap[0].from] }}</span> props: { keysMap: { type: Array, default: () => { return [{ from: "nc_courses_page_homesource.publish_time", to: "time", t..原创 2021-11-24 17:27:52 · 204 阅读 · 0 评论 -
dsf5.0 json配置相关(字符串or布尔)
.vue props: { newDetail: { type: String, default: "../a.html?id=", } },json{ "text": "新闻详情", "bindControlAttr": "newDetail", "showType": "text", "inCommonUse": true }原创 2021-11-24 16:20:51 · 206 阅读 · 0 评论 -
dsf5.0 json配置相关(数组)
props: { menus: { type: Array, default: () => { return [ { id: 1, name: "中国政府网", icon: "", url: "http://www.baidu.com?a=1", }, { id.原创 2021-11-24 16:19:05 · 429 阅读 · 0 评论 -
dsf5.0组件相关
弹出loginlet userId = dsf.getCookie("userId"), moreUrl = this.moreUrl; let res = this.$checkLogin(); if (res && res.then) { res.then(r => { if (r !== false) { dsf.layer.openWindow(this.moreUrl);原创 2021-11-24 16:09:36 · 267 阅读 · 0 评论 -
dsf5.0默认图片
dsf.config.setting_public_card_default_img原创 2021-08-25 18:17:03 · 117 阅读 · 0 评论 -
组件显示弹框
that.$openDialog({title:"",width:"950px",height:"610px",params:{path:"/nc/page/pc/personalCenter/preference",},onClosed(){...原创 2021-09-14 17:24:04 · 190 阅读 · 0 评论