Commit a5d007b0 authored by caimeng's avatar caimeng

修改BUG

parent 8d7f22e4
...@@ -145,7 +145,16 @@ export default { ...@@ -145,7 +145,16 @@ export default {
method: "post", method: "post",
data data
}); });
}, // 公告编辑 },
// 公告编辑
notice_detail(data) {
return request({
url: "/smgw/getNotice",
method: "post",
data
});
},
// 公告编辑
notice_edit(data) { notice_edit(data) {
return request({ return request({
url: "/smgw/updateNotice", url: "/smgw/updateNotice",
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<el-form-item <el-form-item
class="form-item" class="form-item"
prop="loanLicenseUrl" prop="loanLicenseUrl"
label="小贷照" label="小贷照"
> >
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
...@@ -173,9 +173,9 @@ export default { ...@@ -173,9 +173,9 @@ export default {
rules: { rules: {
tenantFullName: [{ required: true, message: "请输入机构名称", trigger: "blur" }], tenantFullName: [{ required: true, message: "请输入机构名称", trigger: "blur" }],
tenantName: [{ required: true, message: "请输入机构简称", trigger: "blur" }], tenantName: [{ required: true, message: "请输入机构简称", trigger: "blur" }],
businessLicenseUrl: [{ required: true, message: "请上传营业执照", trigger: "blur" }], businessLicenseUrl: [{ required: false, message: "请上传营业执照", trigger: "blur" }],
loanLicenseUrl: [{ required: true, message: "请上传小贷拍照", trigger: "blur" }], loanLicenseUrl: [{ required: false, message: "请上传小贷牌照", trigger: "blur" }],
officeApprovalUrl: [{ required: true, message: "请上传金融办批文", trigger: "blur" }] officeApprovalUrl: [{ required: false, message: "请上传金融办批文", trigger: "blur" }]
} }
}; };
}, },
......
...@@ -98,10 +98,10 @@ export default { ...@@ -98,10 +98,10 @@ export default {
return { return {
uploadUrl: `${$API}/sysUser/upload`, uploadUrl: `${$API}/sysUser/upload`,
form: { form: {
znxTitle: "mc公告标题", znxTitle: "",
znxTitleUrl: "", znxTitleUrl: "",
znxContent: "名称公告内容", znxContent: "",
znxHref: "www.baidu.com" znxHref: ""
}, },
rules: { rules: {
znxTitle: [{ required: true, message: "请输入公告标题", trigger: "blur" }], znxTitle: [{ required: true, message: "请输入公告标题", trigger: "blur" }],
...@@ -120,9 +120,9 @@ export default { ...@@ -120,9 +120,9 @@ export default {
} }
}, },
methods: { methods: {
async init() { async init() {
const id = this.id; const id = this.id;
const { result, success } = await API.notice_edit({ id }); const { result, success } = await API.notice_detail({ id });
if (success) { if (success) {
this.form = result; this.form = result;
} }
...@@ -148,7 +148,13 @@ export default { ...@@ -148,7 +148,13 @@ export default {
this.$refs[formName].validate(async (valid) => { this.$refs[formName].validate(async (valid) => {
if (valid) { if (valid) {
const form = Object.assign({}, this.form); const form = Object.assign({}, this.form);
let result = await API.notice_add({ ...form }); let result;
if (this.id) {
result = await API.notice_edit({ ...form });
} else {
result = await API.notice_add({ ...form });
}
if (result.success) { if (result.success) {
this.$baseMessage("保存成功", "success"); this.$baseMessage("保存成功", "success");
setTimeout(() => { setTimeout(() => {
......
...@@ -17,27 +17,27 @@ ...@@ -17,27 +17,27 @@
</el-form-item> </el-form-item>
<el-form-item label="产品名称"> <el-form-item label="产品名称">
<el-input <el-input
v-model="queryForm.tenantNo" v-model="queryForm.appName"
clearable clearable
placeholder="请输入机构名称" placeholder="请输入机构名称"
/> />
</el-form-item> </el-form-item>
<el-form-item label="产品状态"> <!--<el-form-item label="产品状态">-->
<el-select <!-- <el-select-->
v-model="queryForm.status" <!-- v-model="queryForm.status"-->
clearable <!-- clearable-->
placeholder="请选择" <!-- placeholder="请选择"-->
> <!-- >-->
<el-option <!-- <el-option-->
label="启用" <!-- label="启用"-->
value="1" <!-- value="1"-->
/> <!-- />-->
<el-option <!-- <el-option-->
label="禁用" <!-- label="禁用"-->
value="0" <!-- value="0"-->
/> <!-- />-->
</el-select> <!-- </el-select>-->
</el-form-item> <!--</el-form-item>-->
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
current: 1, current: 1,
size: 10, size: 10,
status: "", status: "",
tenantName: "", appName: "",
tenantNo: "" tenantNo: ""
} }
}; };
......
...@@ -69,8 +69,8 @@ module.exports = { ...@@ -69,8 +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`, //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