This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.documents = { | |
| file_storage: [], | |
| file_managed: [ | |
| "47642988", | |
| "47642987", | |
| "47642989", | |
| "47643069", | |
| "47643070", | |
| "47643068", | |
| "47643072", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async signFiles() { | |
| try { | |
| await this.initCryptoThumbprint() | |
| let serializeDocuments = Object.entries(this.documents) | |
| .map(([fileSystem, files]) => { | |
| if (!!files.length) { | |
| return files.map((fileID) => { | |
| return { fileSystem, fileID } | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async getSig(fileSystem, fileID) { | |
| try { | |
| const fileBase = await $axios.get(`/api/v2/application/doc-for-sign/${fileSystem}/${fileID}`) | |
| // const signFile = await this.$createAttachedSignature(this.thumbprint, fileBase.data.file, true) | |
| // const uploadSign = await this.uploadSign(fileID, fileSystem, signFile) | |
| // console.log(fileBase.status || 'error'); | |
| // console.log(fileBase); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "bg_number": null, | |
| "closed_auction": false, | |
| "contract_type": "postavka", | |
| "currency": "rub", | |
| "delivery": null, | |
| "id": 879686, | |
| "lots": [ | |
| { | |
| "lotnum": "32110073487" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let array = ["1-3", "5-7", "2-4", "8-12", "5-11"]; | |
| let getArrayIntervals = (intervalString) => { | |
| let entry = intervalString; | |
| let output = entry.map(el => { | |
| let result = el.split('-').map((el) => { | |
| let item = parseInt(el); | |
| return (!isNaN(item) && Math.sign(item)) ? item : false; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const webpack = require('webpack') | |
| const path = require('path') | |
| const HtmlWebpackPlugin = require('html-webpack-plugin') | |
| const { CleanWebpackPlugin } = require('clean-webpack-plugin') | |
| module.exports = (env, argv) => { | |
| const isProduction = argv.mode.indexOf('production') !== -1 // npm run build -> webpack --mode=production | |
| console.log(isProduction, argv.mode) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //= ../../bower_components/jquery/dist/jquery.min.js | |
| //= ../../bower_components/jquery-ui/jquery-ui.min.js | |
| //= ../../bower_components/angular/angular.min.js | |
| //= ../../bower_components/angular-animate/angular-animate.min.js | |
| //= ../../bower_components/angular-route/angular-route.min.js | |
| //= ../../bower_components/angular-resource/angular-resource.min.js | |
| //= ../../bower_components/angular-cookies/angular-cookies.min.js | |
| //= ../../bower_components/angular-sanitize/angular-sanitize.min.js | |
| //= ../../bower_components/angular-messages/angular-messages.min.js | |
| //= ../../bower_components/angular-ui-mask/dist/mask.min.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {Component} from 'react'; | |
| import {compose} from 'redux' | |
| import {FieldArray, reduxForm} from 'redux-form/immutable' | |
| import AppealTable from './table.js' | |
| import {getSessionId} from '../../selectors/common.js' | |
| import {connect} from 'react-redux' | |
| import {Button, Input, Card, Layout} from 'element-react' | |
| import {post} from '../../services/ajax.js' | |
| import {appealLoad} from '../../actions/common.js' | |
| import Immutable from 'immutable' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // родительский | |
| render() { | |
| const myCallback = (dataFromChild) => this.dataFromChild = dataFromChild; | |
| } | |
| <SearchRoot callbackFromParent={this.myCallback}/> | |
| // дочерний | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SidePanel extends Component{ | |
| constructor(props) { | |
| super(props); | |
| this.handleScroll = this.handleScroll.bind(this); | |
| } | |
| componentDidMount() { | |
| window.addEventListener('scroll', this.handleScroll, true); | |
| } | |
| componentWillUnmount(){ | |
| window.removeEventListener('scroll', this.handleScroll, false); |
NewerOlder