修改业务统计,经营异常移出和严重违法移出,分别再加上“线上申请”和“线下申请”的统计列
This commit is contained in:
parent
b3fdb7b390
commit
b5df0404b6
|
|
@ -0,0 +1,61 @@
|
||||||
|
const path = require('path')
|
||||||
|
const fs = require('fs')
|
||||||
|
var compressing = require('compressing')
|
||||||
|
const axios = require('axios')
|
||||||
|
const child_process = require('child_process')
|
||||||
|
|
||||||
|
function parseTime(time, format = 'yyyy-MM-dd hh:mm:ss') {
|
||||||
|
const date = time instanceof Date ? time : new Date(time)
|
||||||
|
|
||||||
|
const o = {
|
||||||
|
'M+': date.getMonth() + 1, // 月份
|
||||||
|
'd+': date.getDate(), // 日
|
||||||
|
'h+': date.getHours(), // 小时
|
||||||
|
'm+': date.getMinutes(), // 分
|
||||||
|
's+': date.getSeconds(), // 秒
|
||||||
|
'q+': Math.floor((date.getMonth() + 3) / 3), // 季度
|
||||||
|
'S': date.getMilliseconds() // 毫秒
|
||||||
|
}
|
||||||
|
if (/(y+)/.test(format)) {
|
||||||
|
format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
|
||||||
|
}
|
||||||
|
for (const k in o) {
|
||||||
|
if (new RegExp('(' + k + ')').test(format)) {
|
||||||
|
format = format.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return format
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打包插件 v2.0
|
||||||
|
* youfool
|
||||||
|
*/
|
||||||
|
class IncrePack {
|
||||||
|
constructor(options) {
|
||||||
|
this.options = options
|
||||||
|
}
|
||||||
|
apply(compiler) {
|
||||||
|
const projectPath = path.join(__dirname, '../')
|
||||||
|
const distPath = projectPath + 'dist'
|
||||||
|
compiler.hooks.done.tap('IncrePack', async (compilation, callback) => {
|
||||||
|
// 排除开发环境
|
||||||
|
if (process.env.ENV !== 'development') {
|
||||||
|
|
||||||
|
const increName = `${this.options.name}.zip`
|
||||||
|
// 打包压缩
|
||||||
|
const tempFile = projectPath + '/' + increName
|
||||||
|
compressing.zip.compressDir(distPath, tempFile, { ignoreBase: true })
|
||||||
|
.then(() => {
|
||||||
|
// 剪切回dist目录下
|
||||||
|
fs.renameSync(tempFile, distPath + '/' + increName)
|
||||||
|
console.log('------------------打包成功------------------')
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
console.error(err)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
module.exports = IncrePack
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
const { run } = require('runjs')
|
||||||
|
const chalk = require('chalk')
|
||||||
|
const config = require('../vue.config.js')
|
||||||
|
const rawArgv = process.argv.slice(2)
|
||||||
|
const args = rawArgv.join(' ')
|
||||||
|
|
||||||
|
if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
|
||||||
|
const report = rawArgv.includes('--report')
|
||||||
|
|
||||||
|
run(`vue-cli-service build ${args}`)
|
||||||
|
|
||||||
|
const port = 9526
|
||||||
|
const publicPath = config.publicPath
|
||||||
|
|
||||||
|
var connect = require('connect')
|
||||||
|
var serveStatic = require('serve-static')
|
||||||
|
const app = connect()
|
||||||
|
|
||||||
|
app.use(
|
||||||
|
publicPath,
|
||||||
|
serveStatic('./dist', {
|
||||||
|
index: ['index.html', '/']
|
||||||
|
})
|
||||||
|
)
|
||||||
|
|
||||||
|
app.listen(port, function () {
|
||||||
|
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
|
||||||
|
if (report) {
|
||||||
|
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
run(`vue-cli-service build ${args}`)
|
||||||
|
}
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<div class="btn-box">
|
<div class="btn-box">
|
||||||
<el-button size="mini" type="primary" @click="search" :loading="loading">查询</el-button>
|
<el-button size="mini" type="primary" :loading="loading" @click="search">查询</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -56,35 +56,41 @@
|
||||||
style="wdith:100%;border:1px solid #8CC3FB"
|
style="wdith:100%;border:1px solid #8CC3FB"
|
||||||
:cell-style="{'text-align':'center'}"
|
:cell-style="{'text-align':'center'}"
|
||||||
>
|
>
|
||||||
<el-table-column prop="orgunitname" label="单位" min-width="20%" fixed />
|
<el-table-column prop="orgunitname" label="单位" width="100px" fixed />
|
||||||
<el-table-column label="业务类型">
|
<el-table-column label="业务类型" width="200px">
|
||||||
<el-table-column label="异常经营名录">
|
<el-table-column label="异常经营名录" width="200px">
|
||||||
<el-table-column label-class-name="bgColor" prop="abnlrnum" label="列入" min-width="10%" />
|
<el-table-column label-class-name="bgColor" prop="abnlrnum" label="列入" width="60px" />
|
||||||
<el-table-column label-class-name="bgColor" prop="abnycnum" label="移出" min-width="10%" />
|
<el-table-column label-class-name="bgColor" prop="abnycnum" label="移出" width="200px">
|
||||||
<el-table-column label-class-name="bgColor" prop="abnyynum" label="异议" min-width="10%" />
|
<el-table-column label-class-name="bgColor" prop="abnycnumon" label="线上申请" width="100px" />
|
||||||
|
<el-table-column label-class-name="bgColor" prop="abnycnumoff" label="线下申请" width="100px" />
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label-class-name="bgColor" prop="abnyynum" label="异议" width="60px" />
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="严重违法失信">
|
<el-table-column label="严重违法失信" width="260px">
|
||||||
<el-table-column label-class-name="bgColor" prop="leglrnum" label="列入" min-width="10%" />
|
<el-table-column label-class-name="bgColor" prop="leglrnum" label="列入" width="60px" />
|
||||||
<el-table-column label-class-name="bgColor" prop="legxfnum" label="移出" min-width="10%" />
|
<el-table-column label-class-name="bgColor" prop="legxfnum" label="移出" width="200px">
|
||||||
<el-table-column label-class-name="bgColor" prop="legyynum" label="异议" min-width="10%" />
|
<el-table-column label-class-name="bgColor" prop="legycnumon" label="线上申请" width="100px" />
|
||||||
|
<el-table-column label-class-name="bgColor" prop="legycnumoff" label="线下申请" width="100px" />
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label-class-name="bgColor" prop="legyynum" label="异议" width="60px" />
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="ualfknum" label="年报公示信息异议反馈" min-width="30%" />
|
<el-table-column prop="ualfknum" label="年报公示信息异议反馈" width="100px" />
|
||||||
<el-table-column prop="mytrnum" label="冒用他人身份信息" min-width="10%" />
|
<el-table-column prop="mytrnum" label="冒用他人身份信息" width="100px" />
|
||||||
<!-- <el-table-column prop="wtcznum" label="问题处置反馈" min-width="10%" />-->
|
<!-- <el-table-column prop="wtcznum" label="问题处置反馈" min-width="10%" />-->
|
||||||
<!-- <el-table-column prop="
|
<!-- <el-table-column prop="
|
||||||
" label="严重违法信用修复" min-width="10%" />-->
|
" label="严重违法信用修复" min-width="10%" />-->
|
||||||
<!-- <el-table-column prop="xyfxyynum" label="信用风险异议申请" min-width="10%" />-->
|
<!-- <el-table-column prop="xyfxyynum" label="信用风险异议申请" min-width="10%" />-->
|
||||||
<!-- <el-table-column label="勘误">-->
|
<!-- <el-table-column label="勘误">-->
|
||||||
<!-- <el-table-column prop="abnkwnum" label-class-name="bgColor" label="列异勘误" min-width="20%" />-->
|
<!-- <el-table-column prop="abnkwnum" label-class-name="bgColor" label="列异勘误" min-width="20%" />-->
|
||||||
<!-- <el-table-column prop="legkwnum" label-class-name="bgColor" label="列严勘误" min-width="20%" />-->
|
<!-- <el-table-column prop="legkwnum" label-class-name="bgColor" label="列严勘误" min-width="20%" />-->
|
||||||
<!-- </el-table-column>-->
|
<!-- </el-table-column>-->
|
||||||
<el-table-column prop="pldxnum" label="批量吊销" min-width="20%" />
|
<el-table-column prop="pldxnum" label="批量吊销" width="100px" />
|
||||||
<!-- <el-table-column prop="cxnum" label="撤销" min-width="10%" />-->
|
<!-- <el-table-column prop="cxnum" label="撤销" min-width="10%" />-->
|
||||||
<!-- <el-table-column prop="fynum" label="复议" min-width="10%" />-->
|
<!-- <el-table-column prop="fynum" label="复议" min-width="10%" />-->
|
||||||
<!-- <el-table-column prop="susnum" label="诉讼" min-width="10%" />-->
|
<!-- <el-table-column prop="susnum" label="诉讼" min-width="10%" />-->
|
||||||
<el-table-column label="联合惩戒">
|
<el-table-column label="联合惩戒">
|
||||||
<el-table-column prop="locknum" label-class-name="bgColor" label="锁定" min-width="10%" />
|
<el-table-column prop="locknum" label-class-name="bgColor" label="锁定" />
|
||||||
<el-table-column prop="unlocknum" label-class-name="bgColor" label="解锁" min-width="10%" />
|
<el-table-column prop="unlocknum" label-class-name="bgColor" label="解锁" />
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -127,7 +133,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.search() //不做初始化查询
|
// this.search() //不做初始化查询
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tableRowClassName({ row, rowIndex }) {
|
tableRowClassName({ row, rowIndex }) {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ module.exports = {
|
||||||
// 如果有多个mock请往里面继续添加
|
// 如果有多个mock请往里面继续添加
|
||||||
[process.env.VUE_APP_BASE_API]: {
|
[process.env.VUE_APP_BASE_API]: {
|
||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
target: `http://localhost:8086`,
|
target: `http://219.148.175.145:56666`,
|
||||||
// target: `http://127.0.0.1:8090`,
|
// target: `http://127.0.0.1:8090`,
|
||||||
// target: `http://172.22.80.129`,
|
// target: `http://172.22.80.129`,
|
||||||
changeOrigin: true
|
changeOrigin: true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue