Commit fe63dd5a authored by 王向前's avatar 王向前

no message

parent acd196f9
const fs = require('fs') const fs = require('fs')
const child_process = require('child_process'); const child_process = require('child_process');
let clone = 'D: && CD D://FrontPackage && git clone git@gitlab.gavelinfo.com:lisu/common.git '; let clone = 'CD /Users/forwards/Dev/FrontPackage && git clone git@gitlab.gavelinfo.com:lisu/common.git ';
let pull = 'D: && CD D://FrontPackage && cd common && git pull '; let pull = 'CD /Users/forwards/Dev/FrontPackage && cd common && git pull';
fs.readFile('./README.md','utf-8',(err,data)=>{ fs.readFile('./README.md','utf-8',(err,data)=>{
console.log(data||'Loading') console.log(data||'Loading')
console.table(global.process.versions) console.table(global.process.versions)
console.log('\x1B[33m%s','>正在读取项目必须依赖common包') console.log('\x1B[33m%s','>正在读取项目必须依赖common包')
}) })
fs.mkdir('D://FrontPackage', (error) => { fs.mkdir('/Users/forwards/Dev/FrontPackage', (error) => {
if(error){ if(error){
if(error.code=='EEXIST'){ if(error.code=='EEXIST'){
creatCommon() creatCommon()
...@@ -20,7 +20,7 @@ let pull = 'D: && CD D://FrontPackage && cd common && git pull '; ...@@ -20,7 +20,7 @@ let pull = 'D: && CD D://FrontPackage && cd common && git pull ';
} }
}) })
function creatCommon(){ function creatCommon(){
fs.readFile('D:/FrontPackage/common/index.js','utf-8',(err,data)=>{ fs.readFile('/Users/forwards/Dev/FrontPackage/common/index.js','utf-8',(err,data)=>{
if(data){ if(data){
console.log('\x1B[33m%s','>正在拉取最新commom包') console.log('\x1B[33m%s','>正在拉取最新commom包')
child_process.exec(pull,(err,s1,s2)=>{ child_process.exec(pull,(err,s1,s2)=>{
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"clear": "rmdir /s/q node_modules", "clear": "rmdir /s/q node_modules",
"serve": "node init && vue-cli-service serve", "serve": "vue-cli-service serve",
"devbuild": "vue-cli-service build --mode development", "devbuild": "vue-cli-service build --mode development",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"build:report": "vue-cli-service build --report", "build:report": "vue-cli-service build --report",
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
"@riophae/vue-treeselect": "0.4.0", "@riophae/vue-treeselect": "0.4.0",
"axios": "0.24.0", "axios": "0.24.0",
"clipboard": "2.0.8", "clipboard": "2.0.8",
"common": "file:D://common", "common": "file:/Users/forwards/Dev/sgaqgl-vue/public/common",
"core-js": "3.19.1", "core-js": "3.19.1",
"echarts": "^4.9.0", "echarts": "^4.9.0",
"element-ui": "2.15.8", "element-ui": "2.15.8",
......
import request from '@/utils/request';
/*query */
export function fxpcQuery(query) {
return request({
url: '/aqgl/kbcx/fxpc',
method: 'post',
data: query||{}
})
}
export function lzglQuery(query) {
return request({
url: '/aqgl/kbcx/lzgl',
method: 'post',
data: query||{}
})
}
export function ygczQuery(query) {
return request({
url: '/aqgl/kbcx/ygcz',
method: 'post',
data: query||{}
})
}
export function yhtjQuery(query) {
return request({
url: '/aqgl/kbcx/yhtj',
method: 'post',
data: query||{}
})
}
export function yjylQuery(query) {
return request({
url: '/aqgl/kbcx/yjyl',
method: 'post',
data: query||{}
})
}
\ No newline at end of file
This image diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment