|
@@ -6,7 +6,7 @@
|
|
|
size="small"
|
|
|
:inline="true"
|
|
|
v-show="showSearch"
|
|
|
-
|
|
|
+ label-width="68px"
|
|
|
>
|
|
|
<el-form-item :label="$t('merchant.merchantNumber')" prop="no">
|
|
|
<el-input
|
|
@@ -27,9 +27,9 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('merchant.status')" prop="status">
|
|
|
- <el-select v-model="queryParams.status" :placeholder="$t('merchant.status')" clearable >
|
|
|
- <el-option :key="$t('merchant.enabledKey')" :label="$t('merchant.enabled')" :value="A" />
|
|
|
- <el-option :key="$t('merchant.disabledKey')" :label="$t('merchant.disabled')" :value="N" />
|
|
|
+ <el-select v-model="queryParams.status" :placeholder="$t('merchant.status')" clearable style="width: 120px">
|
|
|
+ <el-option :key="$t('merchant.enabledKey')" :label="$t('merchant.enabled')" value="A" />
|
|
|
+ <el-option :key="$t('merchant.disabledKey')" :label="$t('merchant.disabled')" value="N" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
@@ -58,60 +58,64 @@
|
|
|
:default-sort="defaultSort"
|
|
|
@sort-change="handleSortChange"
|
|
|
>
|
|
|
- <el-table-column :label="$t('merchant.ID')" prop="id" width="55">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ showIdLastFour(scope.row.id) }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('merchant.merchantNumber')" align="center" prop="no" />
|
|
|
- <el-table-column :label="$t('merchant.merchantName')" align="center" prop="name" />
|
|
|
- <el-table-column :label="$t('merchant.contactPerson')" align="center" prop="contact" />
|
|
|
- <el-table-column :label="$t('merchant.phoneNumber')" align="center" prop="phone" />
|
|
|
- <el-table-column :label="$t('merchant.address')" align="center" prop="address" />
|
|
|
- <el-table-column
|
|
|
- :label="$t('merchant.createTime')"
|
|
|
- align="center"
|
|
|
- prop="createTime"
|
|
|
- sortable="custom"
|
|
|
- :sort-orders="['descending', 'ascending']"
|
|
|
- width="180"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('merchant.status')" align="center" prop="status">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-switch
|
|
|
- v-model="scope.row.status"
|
|
|
- active-value="A"
|
|
|
- inactive-value="N"
|
|
|
- @change="handleStatusChange(scope.row)"
|
|
|
- ></el-switch>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('merchant.operation')" align="center" class-name="small-padding fixed-width">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- v-hasPermi="['merchant:index']"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
- >
|
|
|
- {{ $t('merchant.modify') }}
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- v-hasPermi="['merchant:index']"
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
- >
|
|
|
- {{ $t('merchant.delete') }}
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column :label="$t('merchant.ID')" prop="id" width="55">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ showIdLastFour(scope.row.id) }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('merchant.merchantNumber')" align="center" prop="no" />
|
|
|
+ <el-table-column :label="$t('merchant.merchantName')" align="center" prop="name" />
|
|
|
+ <el-table-column :label="$t('merchant.contactPerson')" align="center" prop="contact" />
|
|
|
+ <el-table-column :label="$t('merchant.phoneNumber')" align="center" prop="phone" />
|
|
|
+ <el-table-column :label="$t('merchant.address')" align="center" prop="address" />
|
|
|
+ <el-table-column
|
|
|
+ :label="$t('merchant.createTime')"
|
|
|
+ align="center"
|
|
|
+ prop="createTime"
|
|
|
+ sortable="custom"
|
|
|
+ :sort-orders="['descending', 'ascending']"
|
|
|
+ width="180"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('merchant.status')" align="center" prop="status">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-switch
|
|
|
+ v-model="scope.row.status"
|
|
|
+ active-value="A"
|
|
|
+ inactive-value="N"
|
|
|
+ @change="handleStatusChange(scope.row)"
|
|
|
+ ></el-switch>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ :label="$t('merchant.operation')"
|
|
|
+ align="center"
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ v-hasPermi="['merchant:index']"
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
+ >
|
|
|
+ {{ $t('merchant.modify') }}
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ v-hasPermi="['merchant:index']"
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
+ >
|
|
|
+ {{ $t('merchant.delete') }}
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
@@ -122,165 +126,193 @@
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
|
|
|
- <!-- 添加或修改对话框 -->
|
|
|
- <el-dialog
|
|
|
- :title="title"
|
|
|
- :visible.sync="open"
|
|
|
- class="common-dialog"
|
|
|
- width="800px"
|
|
|
- append-to-body
|
|
|
+ <!-- 添加或修改对话框 -->
|
|
|
+ <el-dialog
|
|
|
+ :title="title"
|
|
|
+ :visible.sync="open"
|
|
|
+ class="common-dialog"
|
|
|
+ width="800px"
|
|
|
+ append-to-body
|
|
|
>
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="180px">
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.merchantNumber')" prop="no">
|
|
|
- <el-input
|
|
|
- v-model="form.no"
|
|
|
- :placeholder="$t('merchant.pleaseEnterMerchantNumberTip')"
|
|
|
- maxlength="30"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.merchantType')" prop="type">
|
|
|
- <el-select
|
|
|
- class="input"
|
|
|
- v-model="form.type"
|
|
|
- clearable
|
|
|
- :placeholder="$t('merchant.pleaseSelectMerchantType')"
|
|
|
- style="width: 300px"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in typeOptions"
|
|
|
- :key="item.key"
|
|
|
- :label="item.name"
|
|
|
- :value="item.key"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- <div class="form-tips">{{ $t('merchant.selectSuitableIndustryTip') }}</div>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.merchantName')" prop="name">
|
|
|
- <el-input v-model="form.name" :placeholder="$t('merchant.pleaseEnterMerchantName')" maxlength="30" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="9">
|
|
|
- <el-form-item :label="$t('merchant.merchantLogo')" prop="logo">
|
|
|
- <el-upload
|
|
|
- :action="uploadAction"
|
|
|
- list-type="picture-card"
|
|
|
- :class="{ hide: hideUpload }"
|
|
|
- :file-list="uploadFiles"
|
|
|
- :auto-upload="true"
|
|
|
- :show-file-list="false"
|
|
|
- :headers="uploadHeader"
|
|
|
- :on-success="handleUploadSuccess"
|
|
|
- >
|
|
|
- <img v-if="form.logo" :src="imagePath + form.logo" class="list-img" />
|
|
|
- <i v-if="!form.logo" class="el-icon-plus"></i>
|
|
|
- </el-upload>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <p class="form-tips">{{ $t('merchant.clickToModifyLogoTip') }}</p>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.contactPerson')" prop="contact">
|
|
|
- <el-input v-model="form.contact" :placeholder="$t('merchant.pleaseEnterContactPersonName')" maxlength="30" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.contactPhone')" prop="contactPhone">
|
|
|
- <el-input v-model="form.phone" :placeholder="$t('merchant.pleaseEnterContactPhone')" maxlength="30" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.contactAddress')" prop="address">
|
|
|
- <el-input v-model="form.address" :placeholder="$t('merchant.pleaseEnterContactAddress')" maxlength="200" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.wxMiniAppId')" prop="wxAppId">
|
|
|
- <el-input
|
|
|
- v-model="form.wxAppId"
|
|
|
- :placeholder="$t('merchant.pleaseEnterWxMiniAppIdTip')"
|
|
|
- maxlength="50"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.wxMiniAppSecret')" prop="wxAppSecret">
|
|
|
- <el-input
|
|
|
- v-model="form.wxAppSecret"
|
|
|
- :placeholder="$t('merchant.pleaseEnterWxMiniAppSecretTip')"
|
|
|
- maxlength="50"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.wxOfficialAppId')" prop="wxOfficialAppId">
|
|
|
- <el-input
|
|
|
- v-model="form.wxOfficialAppId"
|
|
|
- :placeholder="$t('merchant.pleaseEnterWxMiniAppIdTip')"
|
|
|
- maxlength="50"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.wxOfficialAppSecret')" prop="wxOfficialAppSecret">
|
|
|
- <el-input
|
|
|
- v-model="form.wxOfficialAppSecret"
|
|
|
- :placeholder="$t('merchant.pleaseEnterWxMiniAppSecretTip')"
|
|
|
- maxlength="50"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.remarkInfo')">
|
|
|
- <el-input
|
|
|
- v-model="form.description"
|
|
|
- type="textarea"
|
|
|
- :placeholder="$t('merchant.pleaseEnterContent')"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item :label="$t('merchant.status')">
|
|
|
- <el-radio-group v-model="form.status">
|
|
|
- <el-radio :key="$t('merchant.enabledKey')" :label="$t('merchant.enabledLabel')" value="A">{{ $t('merchant.enabled') }}</el-radio>
|
|
|
- <el-radio :key="$t('merchant.disabledKey')" :label="$t('merchant.disabledLabel')" value="N">{{ $t('merchant.disabled') }}</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">{{ $t('merchant.confirm') }}</el-button>
|
|
|
- <el-button @click="cancel">{{ $t('merchant.cancel') }}</el-button>
|
|
|
- </div>
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="180px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.merchantNumber')" prop="no">
|
|
|
+ <el-input
|
|
|
+ v-model="form.no"
|
|
|
+ :placeholder="$t('merchant.pleaseEnterMerchantNumberTip')"
|
|
|
+ maxlength="30"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.merchantType')" prop="type">
|
|
|
+ <el-select
|
|
|
+ class="input"
|
|
|
+ v-model="form.type"
|
|
|
+ clearable
|
|
|
+ :placeholder="$t('merchant.pleaseSelectMerchantType')"
|
|
|
+ style="width: 300px"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in typeOptions"
|
|
|
+ :key="item.key"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.key"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ <div class="form-tips">{{ $t('merchant.selectSuitableIndustryTip') }}</div>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.merchantName')" prop="name">
|
|
|
+ <el-input
|
|
|
+ v-model="form.name"
|
|
|
+ :placeholder="$t('merchant.pleaseEnterMerchantName')"
|
|
|
+ maxlength="30"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="9">
|
|
|
+ <el-form-item :label="$t('merchant.merchantLogo')" prop="logo">
|
|
|
+ <el-upload
|
|
|
+ :action="uploadAction"
|
|
|
+ list-type="picture-card"
|
|
|
+ :class="{ hide: hideUpload }"
|
|
|
+ :file-list="uploadFiles"
|
|
|
+ :auto-upload="true"
|
|
|
+ :show-file-list="false"
|
|
|
+ :headers="uploadHeader"
|
|
|
+ :on-success="handleUploadSuccess"
|
|
|
+ >
|
|
|
+ <img v-if="form.logo" :src="form.logo" class="list-img" />
|
|
|
+ <i v-if="!form.logo" class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <p class="form-tips">{{ $t('merchant.clickToModifyLogoTip') }}</p>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.contactPerson')" prop="contact">
|
|
|
+ <el-input
|
|
|
+ v-model="form.contact"
|
|
|
+ :placeholder="$t('merchant.pleaseEnterContactPersonName')"
|
|
|
+ maxlength="30"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.contactPhone')" prop="contactPhone">
|
|
|
+ <el-input
|
|
|
+ v-model="form.phone"
|
|
|
+ :placeholder="$t('merchant.pleaseEnterContactPhone')"
|
|
|
+ maxlength="30"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.contactAddress')" prop="address">
|
|
|
+ <el-input
|
|
|
+ v-model="form.address"
|
|
|
+ :placeholder="$t('merchant.pleaseEnterContactAddress')"
|
|
|
+ maxlength="200"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.wxMiniAppId')" prop="wxAppId">
|
|
|
+ <el-input
|
|
|
+ v-model="form.wxAppId"
|
|
|
+ :placeholder="$t('merchant.pleaseEnterWxMiniAppIdTip')"
|
|
|
+ maxlength="50"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.wxMiniAppSecret')" prop="wxAppSecret">
|
|
|
+ <el-input
|
|
|
+ v-model="form.wxAppSecret"
|
|
|
+ :placeholder="$t('merchant.pleaseEnterWxMiniAppSecretTip')"
|
|
|
+ maxlength="50"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.wxOfficialAppId')" prop="wxOfficialAppId">
|
|
|
+ <el-input
|
|
|
+ v-model="form.wxOfficialAppId"
|
|
|
+ :placeholder="$t('merchant.pleaseEnterWxMiniAppIdTip')"
|
|
|
+ maxlength="50"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.wxOfficialAppSecret')" prop="wxOfficialAppSecret">
|
|
|
+ <el-input
|
|
|
+ v-model="form.wxOfficialAppSecret"
|
|
|
+ :placeholder="$t('merchant.pleaseEnterWxMiniAppSecretTip')"
|
|
|
+ maxlength="50"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.remarkInfo')">
|
|
|
+ <el-input
|
|
|
+ v-model="form.description"
|
|
|
+ type="textarea"
|
|
|
+ :placeholder="$t('merchant.pleaseEnterContent')"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item :label="$t('merchant.status')">
|
|
|
+ <el-radio-group v-model="form.status">
|
|
|
+ <el-radio
|
|
|
+ :key="$t('merchant.enabledKey')"
|
|
|
+ :label="$t('merchant.enabledLabel')"
|
|
|
+ value="A"
|
|
|
+ >
|
|
|
+ {{ $t('merchant.enabled') }}
|
|
|
+ </el-radio>
|
|
|
+ <el-radio
|
|
|
+ :key="$t('merchant.disabledKey')"
|
|
|
+ :label="$t('merchant.disabledLabel')"
|
|
|
+ value="N"
|
|
|
+ >
|
|
|
+ {{ $t('merchant.disabled') }}
|
|
|
+ </el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitForm">{{ $t('merchant.confirm') }}</el-button>
|
|
|
+ <el-button @click="cancel">{{ $t('merchant.cancel') }}</el-button>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -351,36 +383,36 @@ export default {
|
|
|
},
|
|
|
rules: {
|
|
|
type: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: this.$t('merchant.merchantNumberRequired'),
|
|
|
- trigger: 'blur'
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: this.$t('merchant.merchantNumberRequired'),
|
|
|
+ trigger: 'blur'
|
|
|
}
|
|
|
],
|
|
|
no: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: this.$t('merchant.merchantNumberRequired'),
|
|
|
- trigger: 'blur'
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: this.$t('merchant.merchantNumberRequired'),
|
|
|
+ trigger: 'blur'
|
|
|
},
|
|
|
- {
|
|
|
- min: 5,
|
|
|
- max: 30,
|
|
|
- message: this.$t('merchant.merchantNumberLengthRange'),
|
|
|
- trigger: 'blur'
|
|
|
+ {
|
|
|
+ min: 5,
|
|
|
+ max: 30,
|
|
|
+ message: this.$t('merchant.merchantNumberLengthRange'),
|
|
|
+ trigger: 'blur'
|
|
|
}
|
|
|
],
|
|
|
name: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: this.$t('merchant.merchantNameRequired'),
|
|
|
- trigger: 'blur'
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: this.$t('merchant.merchantNameRequired'),
|
|
|
+ trigger: 'blur'
|
|
|
},
|
|
|
- {
|
|
|
- min: 2,
|
|
|
- max: 30,
|
|
|
- message: this.$t('merchant.merchantNameLengthRange'),
|
|
|
- trigger: 'blur'
|
|
|
+ {
|
|
|
+ min: 2,
|
|
|
+ max: 30,
|
|
|
+ message: this.$t('merchant.merchantNameLengthRange'),
|
|
|
+ trigger: 'blur'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -392,14 +424,14 @@ export default {
|
|
|
methods: {
|
|
|
// 查询日志
|
|
|
getList() {
|
|
|
- this.loading = true;
|
|
|
- getMerchantList(this.addDateRange(this.queryParams, this.dateRange)).then((response) => {
|
|
|
- this.list = response.data.dataList.content;
|
|
|
- this.total = response.data.dataList.totalElements;
|
|
|
- this.imagePath = response.data.imagePath;
|
|
|
- this.typeOptions = response.data.typeList;
|
|
|
- this.loading = false;
|
|
|
- });
|
|
|
+ this.loading = true
|
|
|
+ getMerchantList(this.addDateRange(this.queryParams, this.dateRange)).then((response) => {
|
|
|
+ this.list = response.data.dataList.content
|
|
|
+ this.total = response.data.dataList.totalElements
|
|
|
+ this.imagePath = response.data.imagePath
|
|
|
+ this.typeOptions = response.data.typeList
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
},
|
|
|
// 搜索按钮操作
|
|
|
handleQuery() {
|