qianxj
2023-03-17 d274e9db5fdadfaec1761ecd76d5e122bd25ddc4
qianxj
已添加1个文件
已修改1个文件
94 ■■■■ 文件已修改
ruoyi-ui/src/smartor/dataobject/dw_iveoption_maint.vue 78 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/smartor/svytitle/index.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/smartor/dataobject/dw_iveoption_maint.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,78 @@
<template>
    <div>
      <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px">
        <el-form-item label="下拉选择" prop="field101">
          <el-select v-model="formData.field101" placeholder="请选择下拉选择" clearable :style="{width: '100%'}">
            <el-option v-for="(item, index) in field101Options" :key="index" :label="item.label"
              :value="item.value" :disabled="item.disabled"></el-option>
          </el-select>
          <el-input placeholder="选项内容"></el-input>
        </el-form-item>
        <el-form-item size="large">
          <el-button type="primary" @click="submitForm">提交</el-button>
          <el-button @click="resetForm">重置</el-button>
        </el-form-item>
      </el-form>
    </div>
  </template>
  <script>
  export default {
    components: {},
    props: [],
    data() {
      return {
        formData: {
          field101: undefined,
        },
        rules: {
          field101: [{
            required: true,
            message: '请选择下拉选择',
            trigger: 'change'
          }],
        },
        field101Options: [{
          "label": "单选项",
          "value": 1
        },
        {
          "label": "多选项",
          "value": 2
        },
        {
          "label": "直接填写",
          "value": 3
        },
        {
          "label": "日期范围",
          "value": 4
        },
        {
          "label": "数值范围",
          "value": 5
        }
        ],
      }
    },
    computed: {},
    watch: {},
    created() {},
    mounted() {},
    methods: {
      submitForm() {
        this.$refs['elForm'].validate(valid => {
          if (!valid) return
          // TODO æäº¤è¡¨å•
        })
      },
      resetForm() {
        this.$refs['elForm'].resetFields()
      },
    }
  }
  </script>
  <style>
  </style>
ruoyi-ui/src/views/smartor/svytitle/index.vue
@@ -14,16 +14,12 @@
      <el-button size="small" type1="primary" @click="handleQueryGrid">表检索</el-button>
      <el-button size="small" type1="primary" @click="handleQueryTree">树检索</el-button>
    </div>
    <div id="content" />
    <!--el-container style="display:none">
      <el-aside width="200px">
        <el-tree :data="data" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
      </el-aside>
      <el-main>
        <div is='dw_topic' />
      </el-main>
    </el-container-->
    <div id="content">
      <div v-for="(item,i) in svytitleList" :key="i" style="margin-left:12pt;margin-top:12pt">
            <a style="color:#000080;font-size:11pt">{{item.svyname}}({{item.version}})</a>
            <div>{{item.description}}</div>
       </div>
    </div>
  </div>
</template>
<style>