Commit d085cad4 authored by caimeng's avatar caimeng

修改一些问题

parent 8d11165d
...@@ -290,6 +290,8 @@ export default { ...@@ -290,6 +290,8 @@ export default {
const result = await this.send_msg_code(this.form); const result = await this.send_msg_code(this.form);
if(result.success){ if(result.success){
this.countDown(); this.countDown();
}else{
this.$baseMessage(result.message,'error');
} }
} else { } else {
this.$baseMessage('请输入用户名和密码','error'); this.$baseMessage('请输入用户名和密码','error');
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
placeholder="请输入机构编号" placeholder="请输入机构编号"
/> />
</el-form-item> </el-form-item>
<el-form-item label="机构称"> <el-form-item label="机构称">
<el-input <el-input
v-model="queryForm.tenantName" v-model="queryForm.tenantName"
clearable clearable
placeholder="请输入机构称" placeholder="请输入机构称"
/> />
</el-form-item> </el-form-item>
<el-form-item label="机构状态"> <el-form-item label="机构状态">
...@@ -119,9 +119,9 @@ ...@@ -119,9 +119,9 @@
</el-table> </el-table>
<el-pagination <el-pagination
:current-page="queryForm.pageNo" :current-page="queryForm.current"
:layout="layout" :layout="layout"
:page-size="queryForm.pageSize" :page-size="queryForm.size"
:total="total" :total="total"
background background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
...@@ -187,10 +187,10 @@ export default { ...@@ -187,10 +187,10 @@ export default {
list: [], list: [],
listLoading: true, listLoading: true,
layout: "total, sizes, prev, pager, next, jumper", layout: "total, sizes, prev, pager, next, jumper",
total: 0, total: 1,
queryForm: { queryForm: {
current: 1, current: 1,
size: 8, size: 9,
status: "", status: "",
tenantName: "", tenantName: "",
tenantNo: "" tenantNo: ""
......
...@@ -53,6 +53,20 @@ ...@@ -53,6 +53,20 @@
fit="fit" fit="fit"
/> />
</div> </div>
<div v-else-if="item.label==='公告状态'">
<el-tag
v-if="row[item.prop]===0"
type="success"
>
已上架
</el-tag>
<el-tag
v-else
type="info"
>
已下架
</el-tag>
</div>
<span v-else>{{ row[item.prop] }}</span> <span v-else>{{ row[item.prop] }}</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -65,18 +79,19 @@ ...@@ -65,18 +79,19 @@
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button
type="text" type="text"
@click="handleView(row)" @click="handleChangeStatus(row)"
> >
上架 <span v-if="row.prop===0">下架</span>
<span v-else>下架</span>
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
:current-page="queryForm.pageNo" :current-page="queryForm.current"
:layout="layout" :layout="layout"
:page-size="queryForm.pageSize" :page-size="queryForm.size"
:total="total" :total="total"
background background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
...@@ -120,12 +135,12 @@ export default { ...@@ -120,12 +135,12 @@ export default {
{ {
order: 5, order: 5,
label: "公告状态", label: "公告状态",
prop: "status" prop: "isDelete"
}, },
{ {
order: 6, order: 6,
label: "创建时间", label: "创建时间",
prop: "appLogo" prop: "gmtCreate"
} }
], ],
list: [], list: [],
...@@ -161,12 +176,9 @@ export default { ...@@ -161,12 +176,9 @@ export default {
onSubmit() { onSubmit() {
this.fetchData(); this.fetchData();
}, },
handleView(row) { handleChangeStatus(row) {
const {appNo} = row; //const {appNo} = row;
this.$router.push({
path: '/prod/edit',
query: { appNo }
})
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.queryForm.size = val; this.queryForm.size = val;
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
> >
<el-select <el-select
v-model="form.abutmentWay" v-model="form.abutmentWay"
:disabled="!!appNo"
placeholder="请选择" placeholder="请选择"
> >
<el-option <el-option
......
...@@ -118,9 +118,9 @@ ...@@ -118,9 +118,9 @@
</el-table> </el-table>
<el-pagination <el-pagination
:current-page="queryForm.pageNo" :current-page="queryForm.current"
:layout="layout" :layout="layout"
:page-size="queryForm.pageSize" :page-size="queryForm.size"
:total="total" :total="total"
background background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
......
...@@ -324,20 +324,20 @@ export default { ...@@ -324,20 +324,20 @@ export default {
form: { form: {
tenantNo: "", tenantNo: "",
abutmentWay: "", abutmentWay: "",
gradeSort: "3", gradeSort: "",
appLogo: "", appLogo: "",
appName: "MC产品", appName: "",
appInfo: "产品介绍", appInfo: "",
abstratInfo: "产品摘要", abstratInfo: "",
applyAmtMin: "300", applyAmtMin: "",
applyAmtMax: "500", applyAmtMax: "",
withdrawSpan: "1000", withdrawSpan: "",
incomeCount: "1000", incomeCount: "",
approvalTime: "1000", approvalTime: "",
raiseTimeMax: "7", raiseTimeMax: "",
raiseTimeMin: "5", raiseTimeMin: "",
memo: "1000", memo: "",
customerNumbers: "400", // 客服电话 customerNumbers: "", // 客服电话
creditWay: 1 // 授信方式 creditWay: 1 // 授信方式
}, },
rules: { rules: {
......
...@@ -69,7 +69,8 @@ module.exports = { ...@@ -69,7 +69,8 @@ module.exports = {
// } // }
//}, //},
"/api": { "/api": {
target: `http://192.168.0.199:8221`, //target: `http://192.168.0.199:8221`,
target: `http://192.168.0.75:8080`,
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
......
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