double.huang il y a 5 ans
Parent
commit
1fc0c18805
2 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 0 1
      src/components/Query/index.vue
  2. 2 3
      src/views/optionset/index.vue

+ 0 - 1
src/components/Query/index.vue

@@ -96,7 +96,6 @@
             </el-button>
             <el-button type="primary" :size="size" icon="el-icon-search" @click.prevent="onSubmit">{{ $t('common.search') }}</el-button>
             <el-button :size="size" icon="el-icon-brush" @click="resetForm()">{{ $t('common.reset') }}</el-button>
-            <!-- <el-button :loading="isExporting" type="primary" :size="size" @click="onExport">{{ $t('common.export') }}</el-button> -->
           </el-col>
         </el-row>
         <transition name="el-zoom-in-top">

+ 2 - 3
src/views/optionset/index.vue

@@ -10,7 +10,6 @@
         </el-main>
       </el-container>
     </el-main>
-
     <el-dialog :title="dialogStatus==='create'? $t('common.create'):$t('common.update')" :visible.sync="dialogVisible" width="40%" @close="dialogClose">
       <el-form ref="temp" :size="size" :rules="rules" :model="temp" label-width="120px">
         <el-form-item label="Name:" prop="name">
@@ -133,7 +132,7 @@ export default {
       this.$refs['temp'].validate(valid => {
         if (valid) {
           this.temp.value = JSON.stringify(this.maps)
-          this.$api.system.AddOptionset(this.temp).then(res => {
+          this.$api.sysOptionset.add(this.temp).then(res => {
             this.dialogVisible = false
             this.$message({
               message: 'Created successfully',
@@ -163,7 +162,7 @@ export default {
       this.$confirm('Confirm deletion?', 'Tips', {
         type: 'warning'
       }).then(() => {
-        this.$api.system.DelOptionset([{ id: row.id }]).then(res => {
+        this.$api.sysOptionset.del({ id: row.id }).then(res => {
           this.$refs.qtable.getData()
           this.$message({
             message: 'Removal successful',