Commit f57cc3de authored by caimeng's avatar caimeng

修改配置11

parent 34bee68a
......@@ -7,9 +7,9 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build:test": "vue-cli-service build --mode test && node ./upload_oss.js",
"build:dr": "vue-cli-service build --mode dr --modern",
"build:prod": "vue-cli-service build --mode production --modern"
"build:test": "export COMPILE_ENV=staging && vue-cli-service build --mode test && node ./upload_oss.js",
"build:dr": "export COMPILE_ENV=dr && vue-cli-service build --mode dr --modern",
"build:prod": "export COMPILE_ENV=prod && vue-cli-service build --mode production --modern && node ./upload_oss.js"
},
"dependencies": {
"ali-oss": "^6.20.0",
......
......@@ -187,7 +187,16 @@ export default new Router({
title: '信审查询',
filter: true
}
},
},
{
path: '/credit/person',
name: 'PersonalData',
component: resolve => require(['../views/recheck/person.vue'], resolve),
meta: {
title: '个人数据查询',
filter: true
}
},
{
path: '/commission/search',
name: 'CollectionSearch',
......
<template>
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" title="查询" width="50%"
:visible.sync="DialogVisible" :before-close="handleCancel">
<div>
<div class="box-agreement">
<el-form label-suffix=":" :rules="rules" label-width="200px" :model="form" ref="form">
<el-row>
<el-col :span="16">
<el-form-item prop="name" label="姓名">
<el-input clearable v-model.trim="form.name" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item prop="mobile" label="手机号">
<el-input clearable v-model.trim="form.mobile" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item prop="certNo" label="身份证号">
<el-input clearable v-model.trim="form.certNo" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item prop="brandName" label="品牌名称">
<el-input clearable v-model.trim="form.brandName" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button size="small" @click="handleCancel">取 消</el-button>
<el-button size="small" type="primary" @click="onSubmit">确 定</el-button>
</div>
</el-dialog>
</template>
<script>
export default {
name: "CreateCredit",
props: {
DialogVisible: {
type: Boolean,
required: true,
},
},
data() {
return {
rules: {
name: [
{ required: true, message: "请输入姓名", trigger: 'change' }
],
mobile: [
{ required: true, message: "请输入手机号", trigger: 'change' }
],
certNo: [
{ required: true, message: "请输入身份证号", trigger: 'change' }
],
brandName: [
{ required: true, message: "请输入品牌名称", trigger: 'change' }
]
},
form: {
"brandName": "",
"certNo": "",
"mobile": "",
"name": ""
}
};
},
methods: {
/** 取消 && 关闭弹框 */
handleCancel() {
this.$emit('handleClose')
},
/** 提交数据 */
onSubmit() {
this.$refs['form'].validate(async (valid) => {
if (!valid) {
return false
}
try {
const params = this.form;
const res = await this.$$post('/retrial/add', { ...params })
if (res.status === 200 && res.data.success) {
this.$message({ message: '操作成功!', type: 'success' });
this.$emit('handleCallback')
setTimeout(() => {
this.handleCancel()
}, 1500)
}
} catch (err) {
this.$message({ message: '异常', type: 'error' });
}
})
}
},
};
</script>
<style lang="less" scoped>
.el-dialog__title {
font-size: 30px;
font-weight: 700;
}
.box-agreement {
height: 250px;
overflow: auto;
box-sizing: border-box;
padding: 0 50px;
}
/deep/ .el-upload,
/deep/ .el-upload-list__item {
width: 80px;
height: 80px;
line-height: 90px;
}
</style>
<template>
<div class="page-byh-service">
<block-header title="搜索" />
<div class="page-search">
<el-form size="small" label-suffix=":" :inline="true" ref="refForm" :model="form" class="demo-form-inline">
<el-form-item prop="clientCell" label="姓名">
<el-input clearable v-model.trim="form.name" @keyup.enter.native="onSubmit" placeholder="请输入手机号码"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">查询</el-button>
<el-button type="primary" @click="() => SignVisible = true">新增查询</el-button>
</el-form-item>
</el-form>
</div>
<block-header title="查询记录"></block-header>
<div class="block-box">
<el-table border size="mini" :highlight-current-row="true" :header-row-class-name="headerStyle" :data="data" stripe style="width: 100%;">
<el-table-column align="center" type="index" label="序号"></el-table-column>
<el-table-column align="center" prop="name" label="姓名"></el-table-column>
<el-table-column align="center" prop="brandName" label="品牌名称"></el-table-column>
<el-table-column align="center" prop="queryDate" :formatter="transDateFormat" label="查询时间"></el-table-column>
</el-table>
</div>
<div class="pages">
<el-pagination background @current-change="handleCurrentChange" @size-change="handleSizeChange"
:current-page.sync="form.current" :page-sizes="[10, 20, 50, 100]" :page-size="form.size"
layout="total, sizes, prev, pager, next, jumper" :total="total">
</el-pagination>
</div>
<!-- 生成协议弹框 -->
<template v-if="SignVisible">
<SearchPerson :dialog-visible="SignVisible" @handleCallback="init"
@handleClose="SignVisible = false" />
</template>
</div>
</template>
<script>
import SearchPerson from "@/views/recheck/com/SearchPerson";
export default {
name: "ReCheck",
components: {
SearchPerson
},
data() {
return {
data: null,
total: 1,
form: {
current: 1,
size: 50
},
SignVisible: false,
item: null,
}
},
async created() {
await this.init()
},
methods: {
/** 表格样式 */
headerStyle() {
return "tableHeaderStyle";
},
/** 初始化订单列表 **/
async init() {
try {
const form = this.form
const res = await this.$$post('/retrial/select', { ...form })
if (res.status === 200 && res.data.success) {
const { data, total } = res.data.result;
this.data = data;
this.total = total
} else {
this.$message.error(res.data.message);
}
} catch (err) {
this.$Message.error(err || '系统异常');
console.log(err, '初始化协议列表错误')
}
},
handleCurrentChange(e) {
this.form.current = e;
this.init();
},
handleSizeChange(e) {
this.form.size = e;
this.form.current = 1;
this.init();
},
// 切换选项卡
handleClick(row) {
this.SignVisible = true; 1
this.item = row;
},
// 查询
onSubmit() {
}
}
}
</script>
<style scoped>
.link-active,
.link-null {
text-decoration: none;
}
.link-active {
color: #155bd4;
}
ul,
li {
list-style: none;
margin: 0;
padding: 0;
}
.p-table {
margin-bottom: 20px;
}
.pages {
display: flex;
align-items: center;
justify-content: center;
}
</style>
......@@ -9,6 +9,8 @@ let bucket = "customer-vue-test"; // 对应oss文件,默认为预发环境
let accessKeyId = "LTAI5tAhrEnqLFtnWPwZbDue",
accessKeySecret = "z3S6J1yrc4JoGtkMJkb75oTUsCxdOD";
console.log(process.env.COMPILE_ENV,'++++++++++')
if (COMPILE_ENV === "prod") {
bucket = "customer-vue";
} else if (COMPILE_ENV === "dr") {
......
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