2019-04-14 16:20:04 +08:00
|
|
|
|
<template>
|
|
|
|
|
<a-card :bordered="false" style="height:100%">
|
|
|
|
|
|
|
|
|
|
<div class="table-page-search-wrapper">
|
2019-05-19 18:54:09 +08:00
|
|
|
|
<a-form layout="inline" :form="form">
|
2019-07-05 15:38:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 字典下拉 -->
|
2019-04-14 16:20:04 +08:00
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
2019-07-05 15:38:38 +08:00
|
|
|
|
<a-form-item label="性别">
|
|
|
|
|
<j-dict-select-tag v-model="formData.sex" title="性别" dictCode="sex"/>
|
|
|
|
|
<!-- <j-dict-select-tag title="性别" dictCode="sex" disabled/>-->
|
2019-04-14 16:20:04 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2019-07-05 15:38:38 +08:00
|
|
|
|
<a-col :span="12">选中值:{{ formData.sex}}</a-col>
|
2019-04-14 16:20:04 +08:00
|
|
|
|
</a-row>
|
|
|
|
|
|
2019-07-05 15:38:38 +08:00
|
|
|
|
<!-- 字典表下拉 -->
|
2019-04-14 16:20:04 +08:00
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
2019-07-05 15:38:38 +08:00
|
|
|
|
<a-form-item label="字典表下拉">
|
|
|
|
|
<j-dict-select-tag v-model="formData.user" placeholder="请选择用户" dictCode="sys_user,realname,id"/>
|
2019-04-14 16:20:04 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2019-07-05 15:38:38 +08:00
|
|
|
|
<a-col :span="12">选中值:{{ formData.user}}</a-col>
|
2019-04-14 16:20:04 +08:00
|
|
|
|
</a-row>
|
|
|
|
|
|
2019-07-05 15:38:38 +08:00
|
|
|
|
<!-- 带条件字典表下拉 -->
|
2019-05-19 18:54:09 +08:00
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
2019-07-05 15:38:38 +08:00
|
|
|
|
<a-form-item label="字典表下拉(带条件)">
|
|
|
|
|
<j-dict-select-tag v-model="formData.user2" placeholder="请选择用户" dictCode="sys_user,realname,id,username!='admin' order by create_time"/>
|
2019-05-19 18:54:09 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2019-07-05 15:38:38 +08:00
|
|
|
|
<a-col :span="12">选中值:{{ formData.user2}}</a-col>
|
2019-05-19 18:54:09 +08:00
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<!-- 部门选择控件 -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
2019-11-21 18:17:25 +08:00
|
|
|
|
<a-form-item label="选择部门 自定义返回值">
|
|
|
|
|
<j-select-depart v-decorator="['departId']" :trigger-change="true" customReturnField="departName"></j-select-depart>
|
2019-05-19 18:54:09 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">选中的部门ID(v-decorator):{{ getDepartIdValue() }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="选择部门">
|
2019-08-24 00:15:45 +08:00
|
|
|
|
<j-select-depart v-model="departId" :multi="true"></j-select-depart>
|
2019-05-19 18:54:09 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">选中的部门ID(v-model):{{ departId }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
2019-10-18 18:37:41 +08:00
|
|
|
|
<!-- 通过部门选择用户控件 -->
|
2019-05-19 18:54:09 +08:00
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="选择用户">
|
2019-10-18 18:37:41 +08:00
|
|
|
|
<j-select-user-by-dep v-model="userIds" :multi="true"></j-select-user-by-dep>
|
2019-05-19 18:54:09 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
2019-10-18 18:37:41 +08:00
|
|
|
|
<a-col :span="12">选中的用户(v-model):{{ userIds }}</a-col>
|
2019-05-19 18:54:09 +08:00
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<!-- 用户选择控件 -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="选择用户">
|
2019-11-21 18:17:25 +08:00
|
|
|
|
<j-select-multi-user v-model="multiUser" ></j-select-multi-user>
|
2019-05-19 18:54:09 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">选中的用户(v-model):{{ multiUser }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
2019-10-18 18:37:41 +08:00
|
|
|
|
<!-- 角色选择 -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="选择角色">
|
|
|
|
|
<j-select-role v-model="formData.selectRole"/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">选中值:{{ formData.selectRole}}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
2019-05-19 18:54:09 +08:00
|
|
|
|
<!-- JCheckbox -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="多选组合">
|
|
|
|
|
<j-checkbox
|
|
|
|
|
v-model="jcheckbox.values"
|
|
|
|
|
:options="jcheckbox.options"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">多选组合(v-model):{{ jcheckbox.values }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<!-- JCodeEditor -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="代码输入框" style="min-height: 120px">
|
|
|
|
|
<j-code-editor
|
|
|
|
|
language="javascript"
|
|
|
|
|
v-model="jcodedditor.value"
|
|
|
|
|
:fullScreen="true"
|
|
|
|
|
style="min-height: 100px"/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">代码输入框(v-model):{{ jcodedditor.value }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<!-- JDate -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="日期选择框">
|
|
|
|
|
<j-date v-model="jdate.value" :showTime="true" dateFormat="YYYY-MM-DD HH:mm:ss"/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">日期选择框(v-model):{{ jdate.value }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<!-- JEditor -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="富文本编辑器" style="min-height: 300px">
|
|
|
|
|
<j-editor v-model="jeditor.value"/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">富文本编辑器(v-model):{{ jeditor.value }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<!-- JEllipsis -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="过长剪切">
|
|
|
|
|
<j-ellipsis :value="jellipsis.value" :length="30"/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">过长剪切:{{ jellipsis.value }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<!-- JGraphicCode -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="验证码">
|
|
|
|
|
<j-graphic-code @success="generateCode"/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">验证码:{{ jgraphicCode.value }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<!-- JSlider -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="滑块验证码">
|
|
|
|
|
<j-slider @onSuccess="handleJSliderSuccess"/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">滑块验证码验证通过:{{ jslider.value }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<!-- JSelectMultiple -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="多选下拉框">
|
|
|
|
|
<j-select-multiple v-model="jselectMultiple.value" :options="jselectMultiple.options"/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">多选下拉框(v-model):{{ jselectMultiple.value }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<!-- JSelectMultiple -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col>
|
|
|
|
|
|
|
|
|
|
<a-form-item label="最大化弹窗">
|
|
|
|
|
<a-button @click="()=>modal.visible=true">最大化弹窗</a-button>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
|
|
<a-modal
|
|
|
|
|
:visible="modal.visible"
|
|
|
|
|
:width="modal.width"
|
|
|
|
|
:style="modal.style"
|
|
|
|
|
@ok="()=>modal.visible=false"
|
|
|
|
|
@cancel="()=>modal.visible=false">
|
|
|
|
|
|
|
|
|
|
<template slot="title">
|
|
|
|
|
<div style="width: 100%;height:20px;padding-right:32px;">
|
|
|
|
|
<div style="float: left;">{{ modal.title }}</div>
|
|
|
|
|
<div style="float: right;">
|
|
|
|
|
<a-button
|
|
|
|
|
icon="fullscreen"
|
|
|
|
|
style="width:56px;height:100%;border:0"
|
|
|
|
|
@click="handleClickToggleFullScreen"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-for="(i,k) of 30">
|
|
|
|
|
<p :key="k">这是主体内容,高度是自适应的</p>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</a-modal>
|
|
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
2019-07-05 15:38:38 +08:00
|
|
|
|
<!-- JSuperQuery 高级查询 -->
|
|
|
|
|
<!-- JTreeSelect 树组件 -->
|
|
|
|
|
<!-- JTreeTable 树列表 -->
|
|
|
|
|
<!-- JUpload.上传组件 -->
|
|
|
|
|
<!-- JImportModal 导入组件 -->
|
|
|
|
|
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="树字典">
|
2019-11-21 18:17:25 +08:00
|
|
|
|
<j-tree-dict parentCode="B01" />
|
2019-07-05 15:38:38 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12"></a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
2019-10-18 18:37:41 +08:00
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="下拉树选择">
|
|
|
|
|
<j-tree-select
|
|
|
|
|
v-model="formData.treeSelect"
|
|
|
|
|
placeholder="请选择菜单"
|
|
|
|
|
dict="sys_permission,name,id"
|
|
|
|
|
pidField="parent_id"
|
|
|
|
|
pidValue=""
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :spapn="12">选中的值(v-model):{{ formData.treeSelect }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="下拉树多选">
|
|
|
|
|
<j-tree-select
|
|
|
|
|
v-model="formData.treeSelectMultiple"
|
|
|
|
|
placeholder="请选择菜单"
|
|
|
|
|
dict="sys_permission,name,id"
|
|
|
|
|
pidField="parent_id"
|
|
|
|
|
pidValue=""
|
|
|
|
|
multiple
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :spapn="12">选中的值(v-model):{{ formData.treeSelectMultiple }}</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
2019-07-05 15:38:38 +08:00
|
|
|
|
<!-- VueCron -->
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="cron表达式">
|
2019-10-18 18:37:41 +08:00
|
|
|
|
<j-cron ref="innerVueCron" v-decorator="['cronExpression', { initialValue: '* * * * * ? *' }]" @change="setCorn"></j-cron>
|
2019-07-05 15:38:38 +08:00
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
2019-04-14 16:20:04 +08:00
|
|
|
|
</a-form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</a-card>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2019-07-05 15:38:38 +08:00
|
|
|
|
|
2019-05-19 18:54:09 +08:00
|
|
|
|
import JDictSelectTag from '../../components/dict/JDictSelectTag.vue'
|
|
|
|
|
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
|
|
|
|
|
import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep'
|
|
|
|
|
import JSelectMultiUser from '@/components/jeecgbiz/JSelectMultiUser'
|
2019-10-18 18:37:41 +08:00
|
|
|
|
import JSelectRole from '@/components/jeecgbiz/JSelectRole'
|
2019-05-19 18:54:09 +08:00
|
|
|
|
import JCheckbox from '@/components/jeecg/JCheckbox'
|
|
|
|
|
import JCodeEditor from '@/components/jeecg/JCodeEditor'
|
|
|
|
|
import JDate from '@/components/jeecg/JDate'
|
|
|
|
|
import JEditor from '@/components/jeecg/JEditor'
|
|
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
|
|
import JGraphicCode from '@/components/jeecg/JGraphicCode'
|
|
|
|
|
import JSlider from '@/components/jeecg/JSlider'
|
|
|
|
|
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
2019-07-05 15:38:38 +08:00
|
|
|
|
import JTreeDict from "../../components/jeecg/JTreeDict.vue";
|
2019-08-24 00:15:45 +08:00
|
|
|
|
import JCron from "@/components/jeecg/JCron.vue";
|
2019-10-18 18:37:41 +08:00
|
|
|
|
import JTreeSelect from '@/components/jeecg/JTreeSelect'
|
|
|
|
|
|
2019-04-14 16:20:04 +08:00
|
|
|
|
export default {
|
2019-05-19 18:54:09 +08:00
|
|
|
|
name: 'SelectDemo',
|
2019-04-14 16:20:04 +08:00
|
|
|
|
components: {
|
2019-07-05 15:38:38 +08:00
|
|
|
|
JTreeDict,
|
2019-05-19 18:54:09 +08:00
|
|
|
|
JDictSelectTag,
|
|
|
|
|
JSelectDepart,
|
|
|
|
|
JSelectUserByDep,
|
|
|
|
|
JSelectMultiUser,
|
2019-10-18 18:37:41 +08:00
|
|
|
|
JSelectRole,
|
2019-05-19 18:54:09 +08:00
|
|
|
|
JCheckbox,
|
|
|
|
|
JCodeEditor,
|
2019-07-05 15:38:38 +08:00
|
|
|
|
JDate, JEditor, JEllipsis, JGraphicCode, JSlider, JSelectMultiple,
|
2019-10-18 18:37:41 +08:00
|
|
|
|
JCron, JTreeSelect
|
2019-04-14 16:20:04 +08:00
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
selectList: [],
|
2019-05-19 18:54:09 +08:00
|
|
|
|
selectedDepUsers: '',
|
2019-10-18 18:37:41 +08:00
|
|
|
|
formData: {},
|
2019-05-19 18:54:09 +08:00
|
|
|
|
form: this.$form.createForm(this),
|
|
|
|
|
departId: '4f1765520d6346f9bd9c79e2479e5b12,57197590443c44f083d42ae24ef26a2c',
|
2019-10-18 18:37:41 +08:00
|
|
|
|
userIds: 'admin',
|
|
|
|
|
multiUser: 'admin,jeecg',
|
2019-05-19 18:54:09 +08:00
|
|
|
|
jcheckbox: {
|
|
|
|
|
values: 'spring,jeecgboot',
|
|
|
|
|
options: [
|
|
|
|
|
{ label: 'Jeecg', value: 'jeecg' },
|
|
|
|
|
{ label: 'Jeecg-Boot', value: 'jeecgboot' },
|
|
|
|
|
{ label: 'Spring', value: 'spring', disabled: true },
|
|
|
|
|
{ label: 'MyBaits', value: 'mybatis' }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
jcodedditor: {
|
|
|
|
|
value: `function sayHi(word) {
|
|
|
|
|
alert(word)
|
|
|
|
|
}
|
|
|
|
|
sayHi('hello, world!')`
|
|
|
|
|
},
|
|
|
|
|
jdate: {
|
|
|
|
|
value: '2019-5-10 15:33:06'
|
|
|
|
|
},
|
|
|
|
|
jeditor: {
|
|
|
|
|
value: '<h2 style="text-align: center;">富文本编辑器</h2> <p>这里是富文本编辑器。</p>'
|
|
|
|
|
},
|
|
|
|
|
jellipsis: {
|
|
|
|
|
value: '这是一串很长很长的文字段落。这是一串很长很长的文字段落。这是一串很长很长的文字段落。这是一串很长很长的文字段落。'
|
|
|
|
|
},
|
|
|
|
|
jgraphicCode: {
|
|
|
|
|
value: ''
|
|
|
|
|
},
|
|
|
|
|
jslider: {
|
|
|
|
|
value: false
|
|
|
|
|
},
|
|
|
|
|
jselectMultiple: {
|
|
|
|
|
options: [
|
|
|
|
|
{ text: '字符串', value: 'String' },
|
|
|
|
|
{ text: '整数型', value: 'Integer' },
|
|
|
|
|
{ text: '浮点型', value: 'Double' },
|
|
|
|
|
{ text: '布尔型', value: 'Boolean' }
|
|
|
|
|
],
|
|
|
|
|
value: 'Integer,Boolean'
|
|
|
|
|
},
|
|
|
|
|
modal: {
|
|
|
|
|
title: '这里是标题',
|
|
|
|
|
visible: false,
|
|
|
|
|
width: '100%',
|
|
|
|
|
style: { top: '20px' },
|
|
|
|
|
fullScreen: true
|
2019-07-05 15:38:38 +08:00
|
|
|
|
},
|
2019-08-24 00:15:45 +08:00
|
|
|
|
cron: '',
|
2019-04-14 16:20:04 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
2019-05-19 18:54:09 +08:00
|
|
|
|
nameList: function() {
|
|
|
|
|
|
|
|
|
|
var names = []
|
2019-04-14 16:20:04 +08:00
|
|
|
|
for (var a = 0; a < this.selectList.length; a++) {
|
2019-05-19 18:54:09 +08:00
|
|
|
|
names.push(this.selectList[a].name)
|
2019-04-14 16:20:04 +08:00
|
|
|
|
}
|
2019-05-19 18:54:09 +08:00
|
|
|
|
return names
|
2019-04-14 16:20:04 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
handleChange() {
|
|
|
|
|
},
|
2019-05-19 18:54:09 +08:00
|
|
|
|
getDepartIdValue() {
|
|
|
|
|
return this.form.getFieldValue('departId')
|
2019-04-14 16:20:04 +08:00
|
|
|
|
},
|
2019-05-19 18:54:09 +08:00
|
|
|
|
selectOK: function(data) {
|
|
|
|
|
this.selectList = data
|
|
|
|
|
},
|
|
|
|
|
handleSelect: function() {
|
|
|
|
|
this.$refs.selectDemoModal.add()
|
2019-04-14 16:20:04 +08:00
|
|
|
|
},
|
|
|
|
|
selectReset() {
|
2019-05-19 18:54:09 +08:00
|
|
|
|
this.selectList = []
|
2019-04-14 16:20:04 +08:00
|
|
|
|
},
|
|
|
|
|
//通过组织机构筛选选择用户
|
|
|
|
|
onSearchDepUser() {
|
2019-05-19 18:54:09 +08:00
|
|
|
|
this.$refs.JSearchUserByDep.showModal()
|
2019-04-14 16:20:04 +08:00
|
|
|
|
this.selectedDepUsers = ''
|
2019-05-19 18:54:09 +08:00
|
|
|
|
this.$refs.JSearchUserByDep.title = '根据部门查询用户'
|
2019-04-14 16:20:04 +08:00
|
|
|
|
},
|
|
|
|
|
onSearchDepUserCallBack(selectedDepUsers) {
|
|
|
|
|
this.selectedDepUsers = selectedDepUsers
|
2019-05-19 18:54:09 +08:00
|
|
|
|
},
|
|
|
|
|
generateCode(value) {
|
|
|
|
|
this.jgraphicCode.value = value.toLowerCase()
|
|
|
|
|
},
|
|
|
|
|
handleJSliderSuccess(value) {
|
|
|
|
|
this.jslider.value = value
|
|
|
|
|
},
|
|
|
|
|
/** 切换全屏显示 */
|
|
|
|
|
handleClickToggleFullScreen() {
|
|
|
|
|
let mode = !this.modal.fullScreen
|
|
|
|
|
if (mode) {
|
|
|
|
|
this.modal.width = '100%'
|
|
|
|
|
this.modal.style.top = '20px'
|
|
|
|
|
} else {
|
|
|
|
|
this.modal.width = '1200px'
|
|
|
|
|
this.modal.style.top = '50px'
|
|
|
|
|
}
|
|
|
|
|
this.modal.fullScreen = mode
|
2019-07-05 15:38:38 +08:00
|
|
|
|
},
|
2019-08-24 00:15:45 +08:00
|
|
|
|
setCorn(data){
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.form.cronExpression = data;
|
|
|
|
|
})
|
|
|
|
|
}
|
2019-04-14 16:20:04 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.ant-card-body .table-operator {
|
|
|
|
|
margin-bottom: 18px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-table-tbody .ant-table-row td {
|
|
|
|
|
padding-top: 15px;
|
|
|
|
|
padding-bottom: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.anty-row-operator button {
|
|
|
|
|
margin: 0 5px
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-btn-danger {
|
|
|
|
|
background-color: #ffffff
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-modal-cust-warp {
|
|
|
|
|
height: 100%
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-modal-cust-warp .ant-modal-body {
|
|
|
|
|
height: calc(100% - 110px) !important;
|
|
|
|
|
overflow-y: auto
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-modal-cust-warp .ant-modal-content {
|
|
|
|
|
height: 90% !important;
|
|
|
|
|
overflow-y: hidden
|
|
|
|
|
}
|
|
|
|
|
</style>
|