主管理员 1 month ago
parent
commit
7ca8afe52c
2 changed files with 24 additions and 5 deletions
  1. +4
    -0
      .gitignore
  2. +20
    -5
      admin-hanhai-vue/src/views/assessmentCode/AssessmentCodeList.vue

+ 4
- 0
.gitignore View File

@ -0,0 +1,4 @@
/target/
.idea
dist
dist.*

+ 20
- 5
admin-hanhai-vue/src/views/assessmentCode/AssessmentCodeList.vue View File

@ -11,13 +11,16 @@
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<div class="table-operator"> <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-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-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
@ -100,6 +103,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import AssessmentCodeModal from './modules/AssessmentCodeModal' import AssessmentCodeModal from './modules/AssessmentCodeModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
import {getAction} from "@api/manage";
export default { export default {
name: 'AssessmentCodeList', name: 'AssessmentCodeList',
@ -171,6 +175,10 @@
}, },
dictOptions:{}, dictOptions:{},
superFieldList:[], superFieldList:[],
formaaaa : {
num : 1,
discountAmount : 1.0,
},
} }
}, },
created() { created() {
@ -182,6 +190,13 @@
}, },
}, },
methods: { methods: {
addCode(){
getAction(
"/assessment/config/generateCode",
this.formaaaa
).then(res=>{
})
},
initDictConfig(){ initDictConfig(){
}, },
getSuperFieldList(){ getSuperFieldList(){


Loading…
Cancel
Save