ab26e348d7b99d554cbbf1239dd940cdcd2651b0.svn-base 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. <template>
  2. <a-card :bordered="false" style="height:100%;padding-bottom:200px; ">
  3. <div class="table-page-search-wrapper">
  4. <a-form-model ref="form" :model="formData" layout="inline">
  5. <!-- 字典下拉 -->
  6. <a-row :gutter="24">
  7. <a-col :span="12">
  8. <a-form-model-item label="性别" prop="sex">
  9. <j-dict-select-tag v-model="formData.sex" title="性别" dictCode="sex" placeholder="请选择性别"/>
  10. <!-- <j-dict-select-tag title="性别" dictCode="sex" disabled/>-->
  11. </a-form-model-item>
  12. </a-col>
  13. <a-col :span="12">选中值:{{ formData.sex}}</a-col>
  14. </a-row>
  15. <a-row :gutter="24">
  16. <a-col :span="12">
  17. <a-form-model-item label="性别2" prop="sex2">
  18. <j-dict-select-tag v-model="formData.sex2" type="radioButton" title="性别2" dictCode="sex" placeholder="请选择性别2"/>
  19. </a-form-model-item>
  20. </a-col>
  21. <a-col :span="12">选中值:{{ formData.sex2}}</a-col>
  22. </a-row>
  23. <!-- 字典表下拉 -->
  24. <a-row :gutter="24">
  25. <a-col :span="12">
  26. <a-form-model-item label="字典表下拉" prop="user">
  27. <j-dict-select-tag v-model="formData.user" placeholder="请选择用户" dictCode="sys_user,realname,id"/>
  28. </a-form-model-item>
  29. </a-col>
  30. <a-col :span="12">选中值:{{ formData.user}}</a-col>
  31. </a-row>
  32. <!-- 带条件字典表下拉 -->
  33. <a-row :gutter="24">
  34. <a-col :span="12">
  35. <a-form-model-item label="字典表下拉(带条件)" prop="user2">
  36. <j-dict-select-tag v-model="formData.user2" placeholder="请选择用户" dictCode="sys_user,realname,id,username!='admin' order by create_time"/>
  37. </a-form-model-item>
  38. </a-col>
  39. <a-col :span="12">选中值:{{ formData.user2}}</a-col>
  40. </a-row>
  41. <!-- 字典搜索 -->
  42. <a-row :gutter="24">
  43. <a-col :span="12">
  44. <a-form-model-item label="字典搜索(同步)" prop="searchValue">
  45. <j-search-select-tag placeholder="请做出你的选择" v-model="formData.searchValue" :dictOptions="searchOptions">
  46. </j-search-select-tag>
  47. </a-form-model-item>
  48. </a-col>
  49. <a-col :span="12">选中值:{{ formData.searchValue}}</a-col>
  50. </a-row>
  51. <!-- 字典搜索 异步加载 -->
  52. <a-row :gutter="24">
  53. <a-col :span="12">
  54. <a-form-model-item label="字典搜索(异步)" prop="asyncSelectValue">
  55. <j-search-select-tag
  56. placeholder="请做出你的选择"
  57. v-model="formData.asyncSelectValue"
  58. dict="sys_depart,depart_name,id"
  59. :pageSize="6"
  60. :async="true">
  61. </j-search-select-tag>
  62. </a-form-model-item>
  63. </a-col>
  64. <a-col :span="12">选中值:{{ formData.asyncSelectValue}}</a-col>
  65. </a-row>
  66. <!-- JMultiSelectTag -->
  67. <a-row :gutter="24">
  68. <a-col :span="12">
  69. <a-form-model-item label="字典下拉(多选)" prop="selMuti">
  70. <j-multi-select-tag
  71. v-model="formData.selMuti"
  72. dictCode="sex"
  73. placeholder="请选择">
  74. </j-multi-select-tag>
  75. </a-form-model-item>
  76. </a-col>
  77. <a-col :span="12">多选组合(v-model):{{ formData.selMuti }}</a-col>
  78. </a-row>
  79. <!-- 部门选择控件 -->
  80. <a-row :gutter="24">
  81. <a-col :span="12">
  82. <a-form-model-item label="选择部门 自定义返回值" prop="orgCodes">
  83. <j-select-depart v-model="formData.orgCodes" :trigger-change="true" customReturnField="orgCode" :multi="true"></j-select-depart>
  84. </a-form-model-item>
  85. </a-col>
  86. <a-col :span="12">选中的部门Code(v-model):{{ formData.orgCodes }}</a-col>
  87. </a-row>
  88. <a-row :gutter="24">
  89. <a-col :span="12">
  90. <a-form-model-item label="选择部门" prop="departId">
  91. <j-select-depart v-model="formData.departId" :multi="true"></j-select-depart>
  92. </a-form-model-item>
  93. </a-col>
  94. <a-col :span="12">选中的部门ID(v-model):{{ formData.departId }}</a-col>
  95. </a-row>
  96. <!-- 通过部门选择用户控件 -->
  97. <a-row :gutter="24">
  98. <a-col :span="12">
  99. <a-form-model-item label="选择用户" prop="userIds">
  100. <j-select-user-by-dep v-model="formData.userIds" :multi="true"></j-select-user-by-dep>
  101. </a-form-model-item>
  102. </a-col>
  103. <a-col :span="12">选中的用户(v-model):{{ formData.userIds }}</a-col>
  104. </a-row>
  105. <!-- 用户选择控件 -->
  106. <a-row :gutter="24">
  107. <a-col :span="12">
  108. <a-form-model-item label="选择用户" prop="multiUser">
  109. <j-select-multi-user v-model="formData.multiUser" :query-config="selectUserQueryConfig"/>
  110. </a-form-model-item>
  111. </a-col>
  112. <a-col :span="12">选中的用户(v-model):{{ formData.multiUser }}</a-col>
  113. </a-row>
  114. <!-- 角色选择 -->
  115. <a-row :gutter="24">
  116. <a-col :span="12">
  117. <a-form-model-item label="选择角色" prop="selectRole">
  118. <j-select-role v-model="formData.selectRole" @change="changeMe"/>
  119. </a-form-model-item>
  120. </a-col>
  121. <a-col :span="12">选中值:{{ formData.selectRole}}</a-col>
  122. </a-row>
  123. <!-- 职务选择 -->
  124. <a-row :gutter="24">
  125. <a-col :span="12">
  126. <a-form-model-item label="选择职务" prop="selectPosition">
  127. <j-select-position :buttons="false" v-model="formData.selectPosition" />
  128. </a-form-model-item>
  129. </a-col>
  130. <a-col :span="12">选中值:{{ formData.selectPosition}}</a-col>
  131. </a-row>
  132. <!-- JCheckbox -->
  133. <a-row :gutter="24">
  134. <a-col :span="12">
  135. <a-form-model-item label="多选组合" prop="jCheckbox">
  136. <j-checkbox
  137. v-model="formData.jCheckbox"
  138. :options="jCheckboxOptions"
  139. />
  140. </a-form-model-item>
  141. </a-col>
  142. <a-col :span="12">多选组合(v-model):{{ formData.jCheckbox }}</a-col>
  143. </a-row>
  144. <!-- JCodeEditor -->
  145. <a-row :gutter="24">
  146. <a-col :span="12">
  147. <a-form-model-item label="代码输入框" style="min-height: 120px" prop="jCodeEditor">
  148. <j-code-editor
  149. language="javascript"
  150. v-model="formData.jCodeEditor"
  151. :fullScreen="true"
  152. style="min-height: 100px"/>
  153. </a-form-model-item>
  154. </a-col>
  155. <a-col :span="12">代码输入框(v-model):{{ formData.jCodeEditor }}</a-col>
  156. </a-row>
  157. <!-- JDate -->
  158. <a-row :gutter="24">
  159. <a-col :span="12">
  160. <a-form-model-item label="日期选择框" prop="jDate">
  161. <j-date v-model="formData.jDate" :showTime="true" dateFormat="YYYY-MM-DD HH:mm:ss"/>
  162. </a-form-model-item>
  163. </a-col>
  164. <a-col :span="12">日期选择框(v-model):{{ formData.jDate }}</a-col>
  165. </a-row>
  166. <!-- JEditor -->
  167. <a-row :gutter="24">
  168. <a-col :span="12">
  169. <a-form-model-item label="富文本编辑器" style="min-height: 300px" prop="jEditor">
  170. <j-editor v-model="formData.jEditor"/>
  171. </a-form-model-item>
  172. </a-col>
  173. <a-col :span="12">富文本编辑器(v-model):{{ formData.jEditor }}</a-col>
  174. </a-row>
  175. <!-- JEllipsis -->
  176. <a-row :gutter="24">
  177. <a-col :span="12">
  178. <a-form-model-item label="过长剪切" prop="jEllipsis">
  179. <j-ellipsis :value="formData.jEllipsis" :length="30"/>
  180. </a-form-model-item>
  181. </a-col>
  182. <a-col :span="12">过长剪切:{{ formData.jEllipsis }}</a-col>
  183. </a-row>
  184. <!-- JSlider -->
  185. <a-row :gutter="24">
  186. <a-col :span="12">
  187. <a-form-model-item label="滑块验证码" prop="jSlider">
  188. <j-slider @onSuccess="handleJSliderSuccess"/>
  189. </a-form-model-item>
  190. </a-col>
  191. <a-col :span="12">滑块验证码验证通过:{{ formData.jSlider }}</a-col>
  192. </a-row>
  193. <!-- JSelectMultiple -->
  194. <a-row :gutter="24">
  195. <a-col :span="12">
  196. <a-form-model-item label="多选下拉框" prop="jSelectMultiple">
  197. <j-select-multiple v-model="formData.jSelectMultiple" :options="jSelectMultipleOptions"/>
  198. </a-form-model-item>
  199. </a-col>
  200. <a-col :span="12">多选下拉框(v-model):{{ formData.jSelectMultiple }}</a-col>
  201. </a-row>
  202. <!-- JSelectMultiple -->
  203. <a-row :gutter="24">
  204. <a-col>
  205. <a-form-model-item label="JModal弹窗">
  206. <a-button style="margin-right: 8px;" @click="()=>modal.visible=true">点击弹出JModal</a-button>
  207. <span style="margin-right: 8px;">全屏化:<a-switch v-model="modal.fullscreen"/></span>
  208. <span style="margin-right: 8px;">允许切换全屏:<a-switch v-model="modal.switchFullscreen"/></span>
  209. </a-form-model-item>
  210. <j-modal
  211. :visible.sync="modal.visible"
  212. :width="1200"
  213. :title="modal.title"
  214. :fullscreen.sync="modal.fullscreen"
  215. :switchFullscreen="modal.switchFullscreen"
  216. >
  217. <template v-for="(i,k) of 30">
  218. <p :key="k">这是主体内容,高度是自适应的</p>
  219. </template>
  220. </j-modal>
  221. </a-col>
  222. </a-row>
  223. <a-row :gutter="24">
  224. <a-col :span="12">
  225. <a-form-model-item label="树字典" prop="treeDict">
  226. <j-tree-dict v-model="formData.treeDict" placeholder="请选择树字典" parentCode="A01" />
  227. </a-form-model-item>
  228. </a-col>
  229. <a-col :span="12">选中的值(v-model):{{ formData.treeDict }}</a-col>
  230. </a-row>
  231. <a-row :gutter="24">
  232. <a-col :span="12">
  233. <a-form-model-item label="下拉树选择" prop="treeSelect">
  234. <j-tree-select
  235. v-model="formData.treeSelect"
  236. placeholder="请选择菜单"
  237. dict="sys_permission,name,id"
  238. pidField="parent_id"
  239. pidValue=""
  240. />
  241. </a-form-model-item>
  242. </a-col>
  243. <a-col :span="12">选中的值(v-model):{{ formData.treeSelect }}</a-col>
  244. </a-row>
  245. <a-row :gutter="24">
  246. <a-col :span="12">
  247. <a-form-model-item label="下拉树多选" prop="treeSelectMultiple">
  248. <j-tree-select
  249. v-model="formData.treeSelectMultiple"
  250. placeholder="请选择菜单"
  251. dict="sys_permission,name,id"
  252. pidField="parent_id"
  253. pidValue=""
  254. multiple
  255. />
  256. </a-form-model-item>
  257. </a-col>
  258. <a-col :span="12">选中的值(v-model):{{ formData.treeSelectMultiple }}</a-col>
  259. </a-row>
  260. <!-- 分类字典树 -->
  261. <a-row :gutter="24">
  262. <a-col :span="12">
  263. <a-form-model-item label="分类字典树" prop="selectCategory">
  264. <j-category-select v-model="formData.selectCategory" pcode="B01" :multiple="true"/>
  265. </a-form-model-item>
  266. </a-col>
  267. <a-col :span="12">选中的值(v-model):{{ formData.selectCategory }}</a-col>
  268. </a-row>
  269. <!-- VueCron -->
  270. <a-row :gutter="24">
  271. <a-col :span="12">
  272. <a-form-model-item label="cron表达式" prop="cronExpression">
  273. <j-easy-cron v-model="formData.cronExpression"></j-easy-cron>
  274. </a-form-model-item>
  275. </a-col>
  276. </a-row>
  277. <a-row :gutter="24">
  278. <a-col :span="12">
  279. <a-form-model-item label="高级查询">
  280. <j-super-query :fieldList="superQuery.fieldList" />
  281. </a-form-model-item>
  282. </a-col>
  283. </a-row>
  284. <a-row :gutter="24">
  285. <a-col :span="12">
  286. <a-form-model-item label="高级查询(自定义按钮)">
  287. <j-super-query :fieldList="superQuery.fieldList">
  288. <!--
  289. v-slot:button 可以更高自由的定制按钮
  290. 参数介绍:
  291. isActive: 是否是激活状态(已有高级查询条件生效)
  292. isMobile: 当前是否是移动端,可针对移动端展示不同的样式
  293. open: 打开弹窗,一个方法,可绑定点击事件
  294. reset: 重置所有查询条件,一个方法,可绑定点击事件
  295. -->
  296. <template v-slot:button="{isActive,isMobile,open,reset}">
  297. <!-- 定义的是普通状态下的按钮 -->
  298. <a-button v-if="!isActive" type="primary" ghost icon="clock-circle" @click="open()">高级查询</a-button>
  299. <!-- 定义的当有高级查询条件生效状态下的按钮 -->
  300. <a-button-group v-else>
  301. <a-button type="primary" ghost @click="open()">
  302. <a-icon type="plus-circle" spin/>
  303. <span>高级查询</span>
  304. </a-button>
  305. <a-button v-if="isMobile" type="primary" ghost icon="delete" @click="reset()"/>
  306. </a-button-group>
  307. </template>
  308. </j-super-query>
  309. </a-form-model-item>
  310. </a-col>
  311. </a-row>
  312. <a-row :gutter="24">
  313. <a-col :span="12">
  314. <a-form-model-item label="图片上传" prop="imgList">
  315. <j-image-upload bizPath="scott/pic" v-model="formData.imgList"></j-image-upload>
  316. </a-form-model-item>
  317. </a-col>
  318. <a-col :span="12">选中的值(v-model):{{ formData.imgList }}</a-col>
  319. </a-row>
  320. <a-row :gutter="24" style="margin-top: 65px;margin-bottom:50px;">
  321. <a-col :span="12">
  322. <a-form-model-item label="文件上传" prop="fileList">
  323. <j-upload v-model="formData.fileList"></j-upload>
  324. </a-form-model-item>
  325. </a-col>
  326. <a-col :span="12">
  327. 选中的值(v-model):
  328. <j-ellipsis :value="formData.fileList" :length="30" v-if="formData.fileList.length>0"/>
  329. </a-col>
  330. </a-row>
  331. <!-- 特殊查询组件 -->
  332. <a-row :gutter="24">
  333. <a-col :span="12">
  334. <a-form-model-item label="特殊查询组件" prop="jInput">
  335. <a-row>
  336. <a-col :span="15">
  337. <j-input v-model="formData.jInput" :type="jInput.type"/>
  338. </a-col>
  339. <a-col :span="4" style="text-align: right;" >查询类型:</a-col>
  340. <a-col :span="5">
  341. <a-select v-model="jInput.type" :options="jInput.options"></a-select>
  342. </a-col>
  343. </a-row>
  344. </a-form-model-item>
  345. </a-col>
  346. <a-col :span="12">输入的值(v-model):{{ formData.jInput }}</a-col>
  347. </a-row>
  348. <a-row :gutter="24">
  349. <a-col :span="15">
  350. <a-form-model-item label="MarkdownEditor" prop="content" style="min-height: 300px">
  351. <j-markdown-editor v-model="formData.content"></j-markdown-editor>
  352. </a-form-model-item>
  353. </a-col>
  354. <a-col :span="9">
  355. 输入的值(v-model):{{ formData.content }}
  356. </a-col>
  357. </a-row>
  358. <!-- 省市县级联 -->
  359. <a-row :gutter="24">
  360. <a-col :span="12">
  361. <a-form-model-item label="省市县级联" prop="areaLinkage1">
  362. <j-area-linkage v-model="formData.areaLinkage1" type="cascader"/>
  363. </a-form-model-item>
  364. </a-col>
  365. <a-col :span="12">输入的值(v-model):{{ formData.areaLinkage1 }}</a-col>
  366. </a-row>
  367. <!-- 省市县级联 -->
  368. <a-row :gutter="24">
  369. <a-col :span="12">
  370. <a-form-model-item label="省市县级联" prop="areaLinkage2">
  371. <j-area-linkage v-model="formData.areaLinkage2" type="select"/>
  372. </a-form-model-item>
  373. </a-col>
  374. <a-col :span="12">输入的值(v-model):{{ formData.areaLinkage2 }}</a-col>
  375. </a-row>
  376. <!-- 功能示例:关闭当前页面 -->
  377. <a-row :gutter="24">
  378. <a-col :span="12">
  379. <a-form-model-item label="功能示例:关闭当前页面">
  380. <a-button type="primary" @click="handleCloseCurrentPage">点击关闭当前页面</a-button>
  381. </a-form-model-item>
  382. </a-col>
  383. </a-row>
  384. <!-- JPopup示例 -->
  385. <a-row :gutter="24">
  386. <a-col :span="12">
  387. <a-form-model-item label="JPopup示例" prop="jPopup">
  388. <j-popup v-model="formData.jPopup" code="demo" field="name" orgFields="name" destFields="name" :multi="true"/>
  389. </a-form-model-item>
  390. </a-col>
  391. <a-col :span="12">选择的值(v-model):{{ formData.jPopup }}</a-col>
  392. </a-row>
  393. </a-form-model>
  394. </div>
  395. </a-card>
  396. </template>
  397. <script>
  398. import JDictSelectTag from '../../components/dict/JDictSelectTag.vue'
  399. import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
  400. import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep'
  401. import JSelectMultiUser from '@/components/jeecgbiz/JSelectMultiUser'
  402. import JSelectRole from '@/components/jeecgbiz/JSelectRole'
  403. import JCheckbox from '@/components/jeecg/JCheckbox'
  404. import JCodeEditor from '@/components/jeecg/JCodeEditor'
  405. import JDate from '@/components/jeecg/JDate'
  406. import JEditor from '@/components/jeecg/JEditor'
  407. import JEllipsis from '@/components/jeecg/JEllipsis'
  408. import JSlider from '@/components/jeecg/JSlider'
  409. import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
  410. import JTreeDict from "../../components/jeecg/JTreeDict.vue";
  411. import JCron from "@/components/jeecg/JCron.vue";
  412. import JEasyCron from "@/components/jeecg/JEasyCron";
  413. import JTreeSelect from '@/components/jeecg/JTreeSelect'
  414. import JSuperQuery from '@/components/jeecg/JSuperQuery'
  415. import JUpload from '@/components/jeecg/JUpload'
  416. import JImageUpload from '@/components/jeecg/JImageUpload'
  417. import JSelectPosition from '@comp/jeecgbiz/JSelectPosition'
  418. import JCategorySelect from '@comp/jeecg/JCategorySelect'
  419. import JMultiSelectTag from '@comp/dict/JMultiSelectTag'
  420. import JInput from '@comp/jeecg/JInput'
  421. import JAreaLinkage from '@comp/jeecg/JAreaLinkage'
  422. import JMarkdownEditor from '@/components/jeecg/JMarkdownEditor/index'
  423. import JSearchSelectTag from '@/components/dict/JSearchSelectTag'
  424. export default {
  425. name: 'SelectDemo',
  426. inject:['closeCurrent'],
  427. components: {
  428. JMarkdownEditor,
  429. JAreaLinkage,
  430. JInput,
  431. JCategorySelect,
  432. JSelectPosition,
  433. JImageUpload,
  434. JUpload,
  435. JTreeDict,
  436. JDictSelectTag,
  437. JSelectDepart,
  438. JSelectUserByDep,
  439. JSelectMultiUser,
  440. JSelectRole,
  441. JCheckbox,
  442. JCodeEditor,
  443. JDate, JEditor, JEllipsis, JSlider, JSelectMultiple,
  444. JCron, JEasyCron,JTreeSelect, JSuperQuery, JMultiSelectTag,
  445. JSearchSelectTag
  446. },
  447. data() {
  448. return {
  449. selectList: [],
  450. selectedDepUsers: '',
  451. formData: {
  452. areaLinkage1: '110105',
  453. areaLinkage2: '140221',
  454. sex: 1,
  455. orgCodes: 'A02A01,A02A02',
  456. departId: '57197590443c44f083d42ae24ef26a2c,a7d7e77e06c84325a40932163adcdaa6',
  457. userIds: 'admin',
  458. multiUser: 'admin,jeecg',
  459. jCheckbox: 'spring,jeecgboot',
  460. jCodeEditor: `function sayHi(word) {\n alert(word)\n}\nsayHi('hello, world!')`,
  461. jDate: '2019-5-10 15:33:06',
  462. jEditor: '<h2 style="text-align: center;">富文本编辑器</h2> <p>这里是富文本编辑器。</p>',
  463. jEllipsis: '这是一串很长很长的文字段落。这是一串很长很长的文字段落。这是一串很长很长的文字段落。这是一串很长很长的文字段落。',
  464. jSlider: false,
  465. jSelectMultiple: 'Integer,Boolean',
  466. imgList:[],
  467. fileList:[],
  468. content: '',
  469. cronExpression: '* * * * * ? *',
  470. },
  471. jCheckboxOptions: [
  472. {label: 'Jeecg', value: 'jeecg'},
  473. {label: 'Jeecg-Boot', value: 'jeecgboot'},
  474. {label: 'Spring', value: 'spring', disabled: true},
  475. {label: 'MyBaits', value: 'mybatis'}
  476. ],
  477. jSelectMultipleOptions: [
  478. {text: '字符串', value: 'String'},
  479. {text: '整数型', value: 'Integer'},
  480. {text: '浮点型', value: 'Double'},
  481. {text: '布尔型', value: 'Boolean'}
  482. ],
  483. modal: {
  484. title: '这里是标题',
  485. visible: false,
  486. fullscreen: true,
  487. switchFullscreen: true,
  488. },
  489. cron: '',
  490. superQuery: {
  491. fieldList: [
  492. { type: 'input', value: 'name', text: '姓名', },
  493. { type: 'select', value: 'sex', text: '性别', dictCode: 'sex' },
  494. { type: 'number', value: 'age', text: '年龄', },
  495. {
  496. type: 'select', value: 'hobby', text: '爱好',
  497. options: [
  498. { label: '音乐', value: '1' },
  499. { label: '游戏', value: '2' },
  500. { label: '电影', value: '3' },
  501. { label: '读书', value: '4' },
  502. ]
  503. },
  504. ]
  505. },
  506. jInput: {
  507. type: 'like',
  508. options: [
  509. { value: 'like', label: '模糊(like)' },
  510. { value: 'ne', label: '不等于(ne)' },
  511. { value: 'ge', label: '大于等于(ge)' },
  512. { value: 'le', label: '小于等于(le)' },
  513. ],
  514. },
  515. searchOptions:[{
  516. text:"选项一",
  517. value:"1"
  518. },{
  519. text:"选项二",
  520. value:"2"
  521. },{
  522. text:"选项三",
  523. value:"3"
  524. }],
  525. // 选择用户查询条件配置
  526. selectUserQueryConfig: [
  527. {key: 'phone', label: '电话'},
  528. ],
  529. }
  530. },
  531. computed: {
  532. nameList: function() {
  533. var names = []
  534. for (var a = 0; a < this.selectList.length; a++) {
  535. names.push(this.selectList[a].name)
  536. }
  537. return names
  538. }
  539. },
  540. methods: {
  541. handleChange() {
  542. },
  543. getDepartIdValue() {
  544. return this.formData.departId
  545. },
  546. getOrgCodesValue() {
  547. return this.formData.orgCodes
  548. },
  549. changeMe() {
  550. console.log('you so ... , change Me')
  551. },
  552. selectOK: function(data) {
  553. this.selectList = data
  554. },
  555. handleSelect: function() {
  556. this.$refs.selectDemoModal.add()
  557. },
  558. selectReset() {
  559. this.selectList = []
  560. },
  561. //通过组织机构筛选选择用户
  562. onSearchDepUser() {
  563. this.$refs.JSearchUserByDep.showModal()
  564. this.selectedDepUsers = ''
  565. this.$refs.JSearchUserByDep.title = '根据部门查询用户'
  566. },
  567. onSearchDepUserCallBack(selectedDepUsers) {
  568. this.selectedDepUsers = selectedDepUsers
  569. },
  570. handleJSliderSuccess(value) {
  571. this.formData.jSlider = value
  572. },
  573. handleCloseCurrentPage() {
  574. // 注意:以下代码必须存在
  575. // inject:['closeCurrent'],
  576. this.closeCurrent()
  577. },
  578. }
  579. }
  580. </script>
  581. <style lang="less" scoped>
  582. .ant-card-body .table-operator {
  583. margin-bottom: 18px;
  584. }
  585. .ant-table-tbody .ant-table-row td {
  586. padding-top: 15px;
  587. padding-bottom: 15px;
  588. }
  589. .anty-row-operator button {
  590. margin: 0 5px
  591. }
  592. .ant-btn-danger {
  593. background-color: #ffffff
  594. }
  595. .ant-modal-cust-warp {
  596. height: 100%
  597. }
  598. .ant-modal-cust-warp .ant-modal-body {
  599. height: calc(100% - 110px) !important;
  600. overflow-y: auto
  601. }
  602. .ant-modal-cust-warp .ant-modal-content {
  603. height: 90% !important;
  604. overflow-y: hidden
  605. }
  606. </style>