|
@@ -1,100 +0,0 @@
|
|
|
-<template>
|
|
|
- <el-form label-width="80px">
|
|
|
- <el-form-item>
|
|
|
- key值
|
|
|
- <el-input v-model="getUserInput" style="width:90%; margin-top:50px; margin-left: 30px;" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button style="margin-left:70px;" type="primary" @click="onSubmit">提交</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script>
|
|
|
-import { getGlobalInterface, getRedis } from '@/api/actionHome'
|
|
|
-
|
|
|
-export default {
|
|
|
- name: 'Redis',
|
|
|
- data() {
|
|
|
- return {
|
|
|
- formData: {},
|
|
|
- showexplain: false,
|
|
|
- dataoption: '',
|
|
|
- transForMation: '',
|
|
|
- getUserInput: '',
|
|
|
- WidgetMap: {
|
|
|
- INPUT: 'el-input',
|
|
|
- RADIO: '',
|
|
|
- CHECKBOX: '',
|
|
|
- TEXTAREA: '',
|
|
|
- RESET: '',
|
|
|
- SELECT: ''
|
|
|
- },
|
|
|
- Queryoptin: {
|
|
|
- defaultValue: null,
|
|
|
- label: '',
|
|
|
- maxLength: 0,
|
|
|
- name: '',
|
|
|
- options: null,
|
|
|
- pattern: null,
|
|
|
- placeHolder: '',
|
|
|
- required: false,
|
|
|
- text: null,
|
|
|
- title: null,
|
|
|
- widgetType: ''
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- created() {
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- methods: {
|
|
|
- getList() {
|
|
|
- getGlobalInterface().then(response => {
|
|
|
- this.dataoption = response.data
|
|
|
- this.menuName = this.dataoption[0].menuName
|
|
|
- this.transForMation = this.dataoption[1].subMenus[0].widgets
|
|
|
- // for (var val of this.transForMation) {
|
|
|
- // this.Queryoptin.defaultValue = val.defaultValue
|
|
|
- // this.Queryoptin.label = val.label
|
|
|
- // this.Queryoptin.maxLength = val.maxLength
|
|
|
- // this.Queryoptin.name = val.name
|
|
|
- // this.Queryoptin.options = val.options
|
|
|
- // this.Queryoptin.pattern = val.pattern
|
|
|
- // this.Queryoptin.placeHolder = val.placeHolder
|
|
|
- // this.Queryoptin.required = val.required
|
|
|
- // this.Queryoptin.text = val.text
|
|
|
- // this.Queryoptin.title = val.title
|
|
|
- // this.Queryoptin.widgetType = val.widgetType
|
|
|
- // }
|
|
|
- // console.log(this.Queryoptin)
|
|
|
- })
|
|
|
- },
|
|
|
- onSubmit() {
|
|
|
- // this.data2 = JSON.parse(localStorage.getItem('mob'))
|
|
|
- const luok = { key: this.getUserInput }
|
|
|
- // this.showKey = Object.assign(this.data2, luok)
|
|
|
- // localStorage.setItem('key', JSON.stringify(luok))
|
|
|
- getRedis(luok).then(response => {
|
|
|
- this.open(response.result)
|
|
|
- })
|
|
|
- },
|
|
|
- open(e) {
|
|
|
- this.$alert(e, '', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- callback: action => {
|
|
|
- // this.$message({
|
|
|
- // type: 'info'
|
|
|
- // // message: `action: ${{ action }}`
|
|
|
- // })
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-</script>
|
|
|
-
|
|
|
-<style scoped>
|
|
|
-
|
|
|
-</style>
|