본문 바로가기

728x90

엉터리 개발 이야기

[Vue] vue-cli 사용, vue ui 사용 vue-cli 설치 npm install -g @vue-cli 자세한 내용은 https://cli.vuejs.org/guide/installation.html cmd 에서 vue ui 실행 실행 시 자동으로 접속됨 만들기 탭 > 새 프로젝트 만들기 클릭 프로젝트 폴더 입력, 패키지 매니저 선택, 추가옵션 선택 기본 프리셋은 babel,eslint 플러그인이 설치된다.Manual로 선택해서 다양한 플러그인을 선택해본다. Babel, Router, Vuex, Linter/ Formatter, Unit Testing, E2E Testing, Use config files 선택 linter/ formatter config 선택, testing solution 선택, E2E testing solution 선택 직.. 더보기
참고 페이지 https://www.w3schools.com/howto/howto_css_icon_bar.asp https://bootstrap-vue.js.org/docs/components/alert Home 더보기
order.ejs 화면 정리 원주문 리스트 Search Box 주문번호 제휴사 발주날짜(From) 발주날짜(To) 상태 Complete Check 제휴사 상태 Complete Cancel Return 완료 취소 반품 확인 상태변경 No. 주문번호 발주날짜 제휴사명 상품명 수량 상태 비고 중복건수 body table tr { line-height: 0.8 !important; } button.buttons-html5 { float: right; width: 140px; border-radius: 5%; } 더보기
Datatables row height, column width, column data ellipsis style.cssbody { line-height: 0.8 !important; } ellipsis{ targets: 5, render: $.fn.dataTable.render.ellipsis(10) }https://cdn.datatables.net/plug-ins/1.10.19/dataRender/ellipsis.js column width{ targets: 1, width: '3%' }, 더보기
제휴사 컬럼 정보 제휴사 컬럼 정보 제휴사 중복검사 키 기본 키 추가 키 추가 키 이름 No. 제휴사 중복검사 키 var express = require('express'); var router = express.Router(); module.exports = app => { var router = express.Router(); app.use('/partner_col_info', router);a /* GET users listing. */ router.get('/', function (req, res, next) { app.db.models.partner.findAll({ }).then((result) => { app.db.models.partner_col_info.findAll({}).then(result1 => {.. 더보기
[datatables] column background color "rowCallback" : function( row, data ) { if( parseInt(data.duplication_count) >= 2 ) { $('td', row).css('background-color', 'Red'); } }, 더보기
Datatables excel export 예제(cell style 설정) "dom": 'Bfrtip', "buttons": [{ extend: 'excelHtml5', customize: function (xlsx) { var sheet = xlsx.xl.worksheets['sheet1.xml']; var sSh = xlsx.xl['styles.xml']; var lastXfIndex = $('cellXfs xf', sSh).length - 1; // Loop over the cells in column `C` var s4 = ''; sSh.childNodes[0].childNodes[2].innerHTML += s4; var s1 = ''; var s2 = '' + ''; var s3 = ''; //sSh.childNodes[0].childNodes[0].innerHTML.. 더보기
Sequelize Association Order.associate = function (models) { Order.belongsTo(models.partner, {as: 'partner', foreignKey: {allowNull: false}}); Order.hasMany(models.partner_order, {foreignKey: 'order_number' , targetKey: 'order_id'}); }{"id": 1,"order_id": "20161222G64993_604843664","order_date": "2016-12-23T00:00:00.000Z","product_name": "[Audi] NEW AUDI R8 푸시카 [화이트]","amount": 1,"shop_linker": "0222816467","is_comple.. 더보기

728x90