|
|
|
@ -11,13 +11,16 @@ |
|
|
|
|
|
|
|
<!-- 操作按钮区域 --> |
|
|
|
<div class="table-operator"> |
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('兑换码信息表')">导出</a-button> |
|
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
|
|
|
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> --> |
|
|
|
<a-input-number v-model="formaaaa.num" placeholder="请输入数量" style="width: 100%" /> |
|
|
|
<a-input-number v-model="formaaaa.discountAmount" placeholder="请输入抵扣金额" style="width: 100%" /> |
|
|
|
<a-button @click="addCode" type="primary" icon="plus">生成兑换码</a-button> |
|
|
|
<!-- <a-button type="primary" icon="download" @click="handleExportXls('兑换码信息表')">导出</a-button> --> |
|
|
|
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
|
|
|
<a-button type="primary" icon="import">导入</a-button> |
|
|
|
</a-upload> |
|
|
|
</a-upload> --> |
|
|
|
<!-- 高级查询区域 --> |
|
|
|
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
|
|
|
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> --> |
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0"> |
|
|
|
<a-menu slot="overlay"> |
|
|
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
|
|
|
@ -100,6 +103,7 @@ |
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
|
|
|
import AssessmentCodeModal from './modules/AssessmentCodeModal' |
|
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' |
|
|
|
import {getAction} from "@api/manage"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'AssessmentCodeList', |
|
|
|
@ -171,6 +175,10 @@ |
|
|
|
}, |
|
|
|
dictOptions:{}, |
|
|
|
superFieldList:[], |
|
|
|
formaaaa : { |
|
|
|
num : 1, |
|
|
|
discountAmount : 1.0, |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -182,6 +190,13 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
addCode(){ |
|
|
|
getAction( |
|
|
|
"/assessment/config/generateCode", |
|
|
|
this.formaaaa |
|
|
|
).then(res=>{ |
|
|
|
}) |
|
|
|
}, |
|
|
|
initDictConfig(){ |
|
|
|
}, |
|
|
|
getSuperFieldList(){ |
|
|
|
|