Commit e4426b28 authored by Zhang Xiaojie's avatar Zhang Xiaojie

fix

parent 2366ec86
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
:before-upload="beforeUpload" :before-upload="beforeUpload"
@change="handleChange" @change="handleChange"
> >
<img v-if="imageUrl" :src="imageUrl" alt="图片不存在" /> <img v-if="imageUrl" :src="imageUrl" />
<div v-else> <div v-else>
<a-icon :type="loading ? 'loading' : 'plus'" /> <a-icon :type="loading ? 'loading' : 'plus'" />
<div class="ant-upload-text"> <div class="ant-upload-text text-center">
上传概要图片 上传概要图片
</div> </div>
</div> </div>
...@@ -94,16 +94,24 @@ export default Vue.extend({ ...@@ -94,16 +94,24 @@ export default Vue.extend({
}) })
</script> </script>
<style lang="scss" scoped> <style lang="less" scoped>
.avatar-uploader > .ant-upload {
width: 128px;
height: 128px;
}
.ant-upload-select-picture-card i { .ant-upload-select-picture-card i {
font-size: 32px; font-size: 30px;
color: #999; color: #999;
} }
/deep/.ant-upload.ant-upload-select-picture-card{
width: 355px;
height: 90px;
>img{
width: 355px;
height: 90px;
object-position: center;
object-fit: cover;
}
}
.ant-upload-select-picture-card .ant-upload-text { .ant-upload-select-picture-card .ant-upload-text {
margin-top: 8px; margin-top: 8px;
color: #666; color: #666;
......
...@@ -26,7 +26,11 @@ ...@@ -26,7 +26,11 @@
style="width: 120px; margin-right: 10px" style="width: 120px; margin-right: 10px"
v-model="searchPageReqParams.status" v-model="searchPageReqParams.status"
> >
<a-select-option v-for="(status, i) in productStatus" :key="i" :value="status.value"> <a-select-option
v-for="(status, i) in productStatus"
:key="i"
:value="status.value"
>
{{ status.title }} {{ status.title }}
</a-select-option> </a-select-option>
</a-select> </a-select>
...@@ -120,7 +124,7 @@ export default Vue.extend({ ...@@ -120,7 +124,7 @@ export default Vue.extend({
start_time: newV.startTime, start_time: newV.startTime,
end_time: newV.endTime, end_time: newV.endTime,
loan_type: newV.type, loan_type: newV.type,
product_status:newV.status product_status: newV.status,
}); });
}, },
}, },
...@@ -149,6 +153,7 @@ export default Vue.extend({ ...@@ -149,6 +153,7 @@ export default Vue.extend({
reset() { reset() {
this.searchPageReqParams.name = ""; this.searchPageReqParams.name = "";
this.searchPageReqParams.type = 0; this.searchPageReqParams.type = 0;
this.searchPageReqParams.status = 0;
this.searchPageReqParams.startTime = undefined; this.searchPageReqParams.startTime = undefined;
this.searchPageReqParams.endTime = undefined; this.searchPageReqParams.endTime = undefined;
this.$nextTick(() => { this.$nextTick(() => {
......
...@@ -179,6 +179,7 @@ export default Vue.extend({ ...@@ -179,6 +179,7 @@ export default Vue.extend({
this.form.target = record.apply_to; this.form.target = record.apply_to;
this.form.applicationCon = record.apply_cond; this.form.applicationCon = record.apply_cond;
this.form.submissionCon = record.submit_cond; this.form.submissionCon = record.submit_cond;
this.uuid = record.uuid
} }
}, },
data() { data() {
...@@ -200,7 +201,6 @@ export default Vue.extend({ ...@@ -200,7 +201,6 @@ export default Vue.extend({
applicationCon: "", applicationCon: "",
submissionCon: "", submissionCon: "",
}, },
isEditable: false,
eProductType, eProductType,
uuid: "", uuid: "",
eGuaranteeType, eGuaranteeType,
...@@ -268,7 +268,7 @@ export default Vue.extend({ ...@@ -268,7 +268,7 @@ export default Vue.extend({
onSubmit() { onSubmit() {
(this.$refs.addProductForm as FormModel).validate((valid) => { (this.$refs.addProductForm as FormModel).validate((valid) => {
if (valid) { if (valid) {
if (this.isEditable) { if (this.$route.query.record) {
// 编辑 // 编辑
LoanProductService.getInstance() LoanProductService.getInstance()
.modifyLoan({ .modifyLoan({
...@@ -294,7 +294,7 @@ export default Vue.extend({ ...@@ -294,7 +294,7 @@ export default Vue.extend({
message.success("编辑成功"); message.success("编辑成功");
this.$router.push({ name: "loanProduct" }); this.$router.push({ name: "loanProduct" });
} else if (ret.code === 406) { } else if (ret.code === 406) {
message.success("发布失败"); message.success("编辑失败");
} }
}); });
} else { } else {
......
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