pull/1/head
袁野 4 years ago
parent d4fcb1424c
commit d46cdecc35
  1. 10
      src/app/admin/coupon/coupon-edit/coupon-edit.component.html
  2. 1
      src/app/admin/coupon/coupon-edit/coupon-edit.component.ts
  3. 4
      src/app/admin/coupon/coupon-list/coupon-list.component.html
  4. 2
      src/app/admin/merchant/merchant-detail/merchant-detail.component.html
  5. 2
      src/app/admin/merchant/merchant-detail/merchant-detail.component.ts

@ -24,7 +24,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzFor]="'couponType'" nzRequired>卡券类型</nz-form-label> <nz-form-label [nzFor]="'couponType'" nzRequired>卡券类型</nz-form-label>
<nz-form-control nzErrorTip="请选择卡券类型!"> <nz-form-control nzErrorTip="请选择卡券类型!">
<nz-select nzPlaceHolder="请选择卡券类型" [formControlName]="'couponType'"> <nz-select [nzDisabled]="editFlag" nzPlaceHolder="请选择卡券类型" [formControlName]="'couponType'">
<nz-option nzValue="1" nzLabel="内部卷"></nz-option> <nz-option nzValue="1" nzLabel="内部卷"></nz-option>
<nz-option nzValue="2" nzLabel="外部卷"></nz-option> <nz-option nzValue="2" nzLabel="外部卷"></nz-option>
</nz-select> </nz-select>
@ -35,7 +35,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzFor]="'couponSource'" >卡券来源</nz-form-label> <nz-form-label [nzFor]="'couponSource'" >卡券来源</nz-form-label>
<nz-form-control nzErrorTip="请选择卡券来源!"> <nz-form-control nzErrorTip="请选择卡券来源!">
<nz-select nzPlaceHolder="请选择卡券来源" [formControlName]="'couponSource'"> <nz-select [nzDisabled]="editFlag" nzPlaceHolder="请选择卡券来源" [formControlName]="'couponSource'">
<nz-option nzValue="1" nzLabel="中石化"></nz-option> <nz-option nzValue="1" nzLabel="中石化"></nz-option>
<nz-option nzValue="2" nzLabel="消费券"></nz-option> <nz-option nzValue="2" nzLabel="消费券"></nz-option>
</nz-select> </nz-select>
@ -193,6 +193,7 @@
<nz-upload <nz-upload
nzAction="{{WEB_SERVE_URL}}/fileUpload/uploadfile" nzAction="{{WEB_SERVE_URL}}/fileUpload/uploadfile"
nzListType="picture-card" nzListType="picture-card"
[nzMultiple]="true"
[(nzFileList)]="couponCarouselImg" [(nzFileList)]="couponCarouselImg"
[nzShowButton]="couponCarouselImg.length < 5" [nzShowButton]="couponCarouselImg.length < 5"
[nzPreview]="handlePreview" [nzPreview]="handlePreview"
@ -216,6 +217,7 @@
nzAction="{{WEB_SERVE_URL}}/fileUpload/uploadfile" nzAction="{{WEB_SERVE_URL}}/fileUpload/uploadfile"
nzListType="picture-card" nzListType="picture-card"
[(nzFileList)]="couponDescImg" [(nzFileList)]="couponDescImg"
[nzMultiple]="true"
[nzShowButton]="couponDescImg.length < 5" [nzShowButton]="couponDescImg.length < 5"
[nzPreview]="handlePreview" [nzPreview]="handlePreview"
> >
@ -233,8 +235,8 @@
</div> </div>
<div nz-row> <div nz-row>
<div nz-col [nzSpan]="24" class="search-area"> <div nz-col [nzSpan]="24" class="search-area">
<button nz-button (click)="resetForm()">重置</button> <!-- <button nz-button (click)="resetForm()">重置</button>-->
<button nz-button [nzType]="'primary'" (click)="getSave()">提交</button> <button nz-button [nzType]="'primary'" style="width: 200px;" [nzSize]="'Large'" (click)="getSave()">提交</button>
</div> </div>
</div> </div>
</form> </form>

@ -150,6 +150,7 @@ export class CouponEditComponent implements OnInit {
pageNum: this.pageNumCoupon, pageNum: this.pageNumCoupon,
pageSize: this.pageSizeCoupon, pageSize: this.pageSizeCoupon,
merchantName: e, merchantName: e,
status: 2,
}; };
this.getCouponList(paramsObject); this.getCouponList(paramsObject);
} }

@ -41,7 +41,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSpan]="6">卡券类型</nz-form-label> <nz-form-label [nzSpan]="6">卡券类型</nz-form-label>
<nz-form-control [nzSpan]="16"> <nz-form-control [nzSpan]="16">
<nz-select [formControlName]="'couponType'"> <nz-select nzShowSearch nzAllowClear [formControlName]="'couponType'">
<nz-option nzValue="1" nzLabel="内部卷"></nz-option> <nz-option nzValue="1" nzLabel="内部卷"></nz-option>
<nz-option nzValue="2" nzLabel="外部卷"></nz-option> <nz-option nzValue="2" nzLabel="外部卷"></nz-option>
</nz-select> </nz-select>
@ -52,7 +52,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSpan]="6">卡券状态</nz-form-label> <nz-form-label [nzSpan]="6">卡券状态</nz-form-label>
<nz-form-control [nzSpan]="16"> <nz-form-control [nzSpan]="16">
<nz-select [formControlName]="'status'"> <nz-select nzShowSearch nzAllowClear [formControlName]="'status'">
<nz-option nzValue="1" nzLabel="编辑中"></nz-option> <nz-option nzValue="1" nzLabel="编辑中"></nz-option>
<nz-option nzValue="2" nzLabel="已上架"></nz-option> <nz-option nzValue="2" nzLabel="已上架"></nz-option>
<nz-option nzValue="3" nzLabel="已下架"></nz-option> <nz-option nzValue="3" nzLabel="已下架"></nz-option>

@ -1,7 +1,7 @@
<div class="inner-content"> <div class="inner-content">
<nz-descriptions nzBordered> <nz-descriptions nzBordered>
<nz-descriptions-item nzTitle="商户logo" [nzSpan]="3"> <nz-descriptions-item nzTitle="商户logo" [nzSpan]="3">
<img class="head_img" src="{{data.merchantLogo}}" onerror="this.src='../../../../assets/admin/navigation/icon.png'" alt=""> <img class="head_img" src="{{FILE_URL + data.merchantLogo}}" onerror="this.src='../../../../assets/admin/navigation/icon.png'" alt="">
</nz-descriptions-item> </nz-descriptions-item>
<nz-descriptions-item nzTitle="登录账户">{{data['secUser']['loginName']}}</nz-descriptions-item> <nz-descriptions-item nzTitle="登录账户">{{data['secUser']['loginName']}}</nz-descriptions-item>
<nz-descriptions-item nzTitle="商户编号">{{data['merchantKey']}}</nz-descriptions-item> <nz-descriptions-item nzTitle="商户编号">{{data['merchantKey']}}</nz-descriptions-item>

@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core';
import {MerchantService} from '../../../services/merchant.service'; import {MerchantService} from '../../../services/merchant.service';
import {NzMessageService} from 'ng-zorro-antd'; import {NzMessageService} from 'ng-zorro-antd';
import {ActivatedRoute} from '@angular/router'; import {ActivatedRoute} from '@angular/router';
import {environment} from '../../../../environments/environment';
@Component({ @Component({
selector: 'app-merchant-detail', selector: 'app-merchant-detail',
@ -12,6 +13,7 @@ export class MerchantDetailComponent implements OnInit {
data: any = {}; data: any = {};
id: number; id: number;
FILE_URL = environment.imageUrl;
constructor( constructor(
private merchant: MerchantService, private merchant: MerchantService,
private message: NzMessageService, // 信息提示 private message: NzMessageService, // 信息提示

Loading…
Cancel
Save