|
@@ -31,6 +31,14 @@
|
|
</transition>
|
|
</transition>
|
|
|
|
|
|
<q-space />
|
|
<q-space />
|
|
|
|
+ <q-btn flat @click="save_db()" round dense icon="save"
|
|
|
|
+ ><q-tooltip
|
|
|
|
+ content-class="bg-amber text-black shadow-4"
|
|
|
|
+ :offset="[15, 15]"
|
|
|
|
+ content-style="font-size: 12px"
|
|
|
|
+ >{{ "保存数据库" }}</q-tooltip
|
|
|
|
+ ></q-btn
|
|
|
|
+ >
|
|
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
|
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
|
<transition appear enter-active-class="animated zoomIn">
|
|
<transition appear enter-active-class="animated zoomIn">
|
|
<q-btn
|
|
<q-btn
|
|
@@ -658,7 +666,7 @@
|
|
</q-layout>
|
|
</q-layout>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { get, getauth, post, baseurl } from 'boot/axios_request'
|
|
|
|
|
|
+import { get, getauth, post, postauth, baseurl } from 'boot/axios_request'
|
|
import { LocalStorage, SessionStorage, openURL } from 'quasar'
|
|
import { LocalStorage, SessionStorage, openURL } from 'quasar'
|
|
import Bus from 'boot/bus.js'
|
|
import Bus from 'boot/bus.js'
|
|
import LottieWebCimo from 'components/lottie-web-cimo'
|
|
import LottieWebCimo from 'components/lottie-web-cimo'
|
|
@@ -717,6 +725,18 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ save_db () {
|
|
|
|
+ var _this = this
|
|
|
|
+ postauth('backup/trigger/')
|
|
|
|
+ .then((res) => {
|
|
|
|
+ _this.$q.notify({
|
|
|
|
+ message: '数据库备份成功',
|
|
|
|
+ icon: 'check',
|
|
|
|
+ color: 'green'
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
linkChange (e) {
|
|
linkChange (e) {
|
|
var _this = this
|
|
var _this = this
|
|
localStorage.removeItem('menulink')
|
|
localStorage.removeItem('menulink')
|