| | |
| | | </el-option> |
| | | </el-select> |
| | | <el-button v-if="getBtnPermission('add')" class="filter-item" style="margin-left: 10px;" type="primary" |
| | | icon="el-icon-plus" @click="showCreateHandle">旧系统信息录入 |
| | | icon="el-icon-plus" @click="showCreateHandle">万能码信息录入 |
| | | </el-button> |
| | | <el-upload v-if="userType === 1" |
| | | class="filter-item" |
| | |
| | | :on-success="onSuccessHandler" |
| | | :on-error="onErrorHandler" |
| | | :auto-upload="true"> |
| | | <el-dropdown @command="handleCommand" split-button trigger="hover" type="primary" style="margin-left: 10px;" icon="el-icon-plus" :disabled="uploadBtnControl">旧系统信息导入 |
| | | <el-dropdown @command="handleCommand" split-button trigger="hover" type="primary" style="margin-left: 10px;" icon="el-icon-plus" :disabled="uploadBtnControl">万能码信息导入 |
| | | <el-button type="primary" slot="trigger" :disabled="uploadBtnControl"></el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item icon="el-icon-plus" command="download" >下载模板</el-dropdown-item> |
| | |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogFormVisible = false">取消</el-button> |
| | | <el-button type="primary" @click="submitHandle">确认</el-button> |
| | | <el-button type="primary" @click="debouncedSubmit">确认</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <div style="clear: both;"></div> |
| | |
| | | ...mapGetters([ |
| | | 'userType', |
| | | 'username' |
| | | ]) |
| | | ]), |
| | | debouncedSubmit() { |
| | | return this.debounce(this.submitHandle, 1000); |
| | | } |
| | | }, |
| | | methods: { |
| | | async selectChange(){ |
| | |
| | | parseError({error: error, vm: _this}) |
| | | }) |
| | | }, |
| | | debounce(func, wait) { |
| | | let timeout; |
| | | return (...args) => { |
| | | clearTimeout(timeout); |
| | | timeout = setTimeout(() => { |
| | | func.apply(this, args); |
| | | }, wait); |
| | | }; |
| | | }, |
| | | submitHandle:function(){ |
| | | if (this.dialogStatus === 'create') { |
| | | this.createHandle(); |