| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | 'use strict';/** * 项目设置 相关常量 * * @author Mai * @date 2018/9/25 * @version */const cType = {    dropDown: 1,    // radio: 2,};const cTypeStr = [];cTypeStr[cType.dropDown] = '下拉菜单';// cTypeStr[cType.radio] = '单选框';// 显示设置-路由列表const listPath = [    { label_name: '计量进度', path: '/list/progress', is_default: false }, // 计量进度    { label_name: '标段列表', path: '/list', is_default: false }, // 标段列表    { label_name: '金额概况', path: '/list/info', is_default: false }, // 金额概况];// 登录方式const loginWay = {    normalPsw: 0, // 正常登录    extraPsw: 1, // 副密码登录};const exMemoPos = [    { key: 'memo', hint: '该列位于备注之后' },    { key: 'name', hint: '该列位于名称之后' },];const exMemoPosRange = (function () {    const range = {        ex_memo1: [],        ex_memo2: ['memo', 'name'],        ex_memo3: [],    };    const result = {};    for (const r in range) {        result[r] = [];        for (const k of range[r]) {            result[r].push(exMemoPos.find(x => { return x.key === k; }))        }    }    return result;})();const sjsRela = {    ledgerCol: [        { field: 'ex_memo1', name: '备注1', show: 0, alias: '', hint: '该列显示于名称之前' },        { field: 'ex_memo2', name: '备注2', show: 0, alias: '', pos: 'memo', hint: '该列显示于备注之后' },        { field: 'ex_memo3', name: '备注3', show: 0, alias: '', hint: '该列显示于备注之后' },    ]};module.exports = {    cType: {        key: cType,        text: cTypeStr,    },    listPath,    loginWay,    sjsRela,    exMemoPos, exMemoPosRange,};
 |