This file contains 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 fetch from 'dva/fetch'; | |
import config from '../config'; | |
import { Toast } from 'antd-mobile'; | |
import { getAccessToken } from './authority'; | |
const codeMessage = { | |
200: '数据获取成功', | |
201: '操作成功', | |
202: '已加入任务队列', | |
204: '删除成功', |
This file contains 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 Point | |
attr_accessor :x, :y | |
def initialize(x, y) | |
@x = x | |
@y = y | |
end | |
end | |
# >0 left | |
# =0 on line |
This file contains 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
module ExportServices | |
class QuestionnaireResponses | |
SIMPLE_QUESTION_HEADERS = [ | |
"选项", | |
"值", | |
"提交人" | |
].freeze | |
DORPDOWN_GIRD_QUESTION_HEADERS = [ | |
"行", |
This file contains 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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { Table } from 'antd'; | |
import uuidV4 from 'uuid/v4'; | |
class ResizableTable extends React.Component { | |
constructor(props) { | |
super(props); | |
this.table = null; |