| | |
| | | <!-- 查询 清空 --> |
| | | <el-form-item> |
| | | <el-button |
| | | icon="el-icon-search" |
| | | size="small" |
| | | type="primary" |
| | | @click="onSubmit" |
| | | >{{ $t("common.iquery") }}</el-button |
| | | > |
| | | <el-button |
| | | v-if="menuStatus.insert" |
| | | @click="InsertFormdialog = true" |
| | | icon="el-icon-edit" |
| | |
| | | type="danger" |
| | | size="small" |
| | | >{{ $t("common.delete") }}</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-search" |
| | | size="small" |
| | | type="primary" |
| | | @click="onSubmit" |
| | | >{{ $t("common.iquery") }}</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-delete" |
| | |
| | | ref="filterTable" |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | border |
| | | height="calc(100% - 45px)" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | |
| | | /> |
| | | <el-table-column |
| | | prop="token" |
| | | |
| | | :label="$t('operatManage.tokentoolObj.token')" |
| | | /> |
| | | <el-table-column |
| | | prop="duration" |
| | | |
| | | width="120" |
| | | :label="$t('operatManage.tokentoolObj.duration')" |
| | | /> |
| | | <el-table-column |
| | |
| | | <el-dialog |
| | | :title="$t('operatManage.tokentoolObj.addToken')" |
| | | :visible.sync="InsertFormdialog" |
| | | :before-close="handleClose" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form ref="formData1" :model="insertform" label-position="top"> |
| | |
| | | <el-dialog |
| | | :title="$t('operatManage.tokentoolObj.editToken')" |
| | | :visible.sync="EditFormdialog" |
| | | :before-close="handleCloseEdit" |
| | | > |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form ref="formData1" :model="insertform" label-position="top"> |
| | |
| | | // } |
| | | }, |
| | | editFromDataClose() { |
| | | this.EditFormdialog = false; |
| | | this.upform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.EditFormdialog = false; |
| | | this.upform = {}; |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async editFromData() { |
| | | this.upform.type = parseInt(this.upform.edit); |
| | |
| | | this.multipleSelection = val; |
| | | }, |
| | | insertFromDataClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async insertFromData() { |
| | | if ( |
| | |
| | | } |
| | | return moment(parseInt(date)).format("YYYY-MM-DD HH:mm:ss"); |
| | | }, |
| | | handleClose() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | handleCloseEdit() { |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.EditFormdialog = false |
| | | this.getRoleTabelData(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |