同步数据修改
parent
b5e3ae96aa
commit
213a68f952
@ -1,45 +1,46 @@
|
|||||||
{
|
{
|
||||||
"name": "my-project",
|
"name": "my-project",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"stage": "vue-cli-service build --mode stage",
|
"stage": "vue-cli-service build --mode stage",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
"test:unit": "vue-cli-service test:unit"
|
"test:unit": "vue-cli-service test:unit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.18.0",
|
"axios": "^0.18.0",
|
||||||
"babel-polyfill": "^6.26.0",
|
"babel-polyfill": "^6.26.0",
|
||||||
"element-china-area-data": "^5.0.2",
|
"element-china-area-data": "^5.0.2",
|
||||||
"element-ui": "^2.8.2",
|
"element-ui": "^2.8.2",
|
||||||
"file-saver": "^2.0.2",
|
"file-saver": "^2.0.2",
|
||||||
"js-cookie": "^2.2.0",
|
"js-cookie": "^2.2.0",
|
||||||
"mockjs": "^1.0.1-beta3",
|
"mockjs": "^1.0.1-beta3",
|
||||||
"nprogress": "^0.2.0",
|
"node-sass": "^7.0.1",
|
||||||
"pinyin": "^2.10.2",
|
"nprogress": "^0.2.0",
|
||||||
"vue": "^2.5.16",
|
"pinyin": "^2.10.2",
|
||||||
"vue-router": "^3.0.1",
|
"vue": "^2.5.16",
|
||||||
"vue2-verify": "^1.1.5",
|
"vue-router": "^3.0.1",
|
||||||
"vuedraggable": "^2.17.0",
|
"vue2-verify": "^1.1.5",
|
||||||
"vuex": "^3.0.1"
|
"vuedraggable": "^2.17.0",
|
||||||
},
|
"vuex": "^3.0.1"
|
||||||
"devDependencies": {
|
},
|
||||||
"@vue/cli-plugin-babel": "^3.0.0-beta.15",
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-eslint": "^3.0.0-beta.15",
|
"@vue/cli-plugin-babel": "^3.0.0-beta.15",
|
||||||
"@vue/cli-plugin-unit-jest": "^3.0.0-beta.15",
|
"@vue/cli-plugin-eslint": "^3.0.0-beta.15",
|
||||||
"@vue/cli-service": "^3.0.0-beta.15",
|
"@vue/cli-plugin-unit-jest": "^3.0.0-beta.15",
|
||||||
"@vue/eslint-config-prettier": "^3.0.0-rc.3",
|
"@vue/cli-service": "^3.0.0-beta.15",
|
||||||
"@vue/test-utils": "^1.0.0-beta.16",
|
"@vue/eslint-config-prettier": "^3.0.0-rc.3",
|
||||||
"babel-core": "7.0.0-bridge.0",
|
"@vue/test-utils": "^1.0.0-beta.16",
|
||||||
"babel-jest": "^23.0.1",
|
"babel-core": "7.0.0-bridge.0",
|
||||||
"sass-loader": "^7.0.1",
|
"babel-jest": "^23.0.1",
|
||||||
"vue-template-compiler": "^2.5.16"
|
"sass-loader": "^7.0.1",
|
||||||
},
|
"vue-template-compiler": "^2.5.16"
|
||||||
"browserslist": [
|
},
|
||||||
"> 1%",
|
"browserslist": [
|
||||||
"last 2 versions",
|
"> 1%",
|
||||||
"not ie <= 8"
|
"last 2 versions",
|
||||||
]
|
"not ie <= 8"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
// 添加日期范围
|
||||||
|
export function addDateRange(params, dateRange) {
|
||||||
|
let search = params;
|
||||||
|
search.startDate = null
|
||||||
|
search.endDate = null;
|
||||||
|
if (null != dateRange && '' != dateRange) {
|
||||||
|
search.startDate = dateRange[0];
|
||||||
|
search.endDate = dateRange[1];
|
||||||
|
}
|
||||||
|
return search;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 回显数据字典
|
||||||
|
export function selectDictLabel(datas, value) {
|
||||||
|
var actions = [];
|
||||||
|
Object.keys(datas).map((key) => {
|
||||||
|
if (datas[key].value == ('' + value)) {
|
||||||
|
actions.push(datas[key].label);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return actions.join('');
|
||||||
|
}
|
Loading…
Reference in New Issue