14b92be3430b9ae5b9699e8f023100e0d2a58b9b.svn-base 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. <template>
  2. <div class="j-super-query-box">
  3. <slot name="button" :isActive="superQueryFlag" :isMobile="izMobile" :open="handleOpen" :reset="handleReset">
  4. <a-tooltip v-if="superQueryFlag" v-bind="tooltipProps" :mouseLeaveDelay="0.2">
  5. <!-- begin 不知道为什么不加上这段代码就无法生效 -->
  6. <span v-show="false">{{tooltipProps}}</span>
  7. <!-- end 不知道为什么不加上这段代码就无法生效 -->
  8. <template slot="title">
  9. <span>已有高级查询条件生效</span>
  10. <a-divider type="vertical"/>
  11. <a @click="handleReset">清空</a>
  12. </template>
  13. <a-button-group>
  14. <a-button type="primary" @click="handleOpen">
  15. <a-icon type="appstore" theme="twoTone" spin/>
  16. <span>高级查询</span>
  17. </a-button>
  18. <a-button v-if="izMobile" type="primary" icon="delete" @click="handleReset"/>
  19. </a-button-group>
  20. </a-tooltip>
  21. <a-button v-else type="primary" icon="filter" @click="handleOpen">高级查询</a-button>
  22. </slot>
  23. <j-modal
  24. title="高级查询构造器"
  25. :width="1000"
  26. :visible="visible"
  27. @cancel="handleCancel"
  28. :mask="false"
  29. :fullscreen="izMobile"
  30. class="j-super-query-modal"
  31. style="top:5%;max-height: 95%;"
  32. >
  33. <template slot="footer">
  34. <div style="float: left">
  35. <a-button :loading="loading" @click="handleReset">重置</a-button>
  36. <a-button :loading="loading" @click="handleSave">保存查询条件</a-button>
  37. </div>
  38. <a-button :loading="loading" @click="handleCancel">关闭</a-button>
  39. <a-button :loading="loading" type="primary" @click="handleOk">查询</a-button>
  40. </template>
  41. <a-spin :spinning="loading">
  42. <a-row>
  43. <a-col :sm="24" :md="24-5">
  44. <a-empty v-if="queryParamsModel.length === 0" style="margin-bottom: 12px;">
  45. <div slot="description">
  46. <span>没有任何查询条件</span>
  47. <a-divider type="vertical"/>
  48. <a @click="handleAdd">点击新增</a>
  49. </div>
  50. </a-empty>
  51. <a-form v-else layout="inline">
  52. <a-row style="margin-bottom: 12px;">
  53. <a-col :md="12" :xs="24">
  54. <a-form-item label="过滤条件匹配" :labelCol="{md: 6,xs:24}" :wrapperCol="{md: 18,xs:24}" style="width: 100%;">
  55. <a-select v-model="matchType" :getPopupContainer="node=>node.parentNode" style="width: 100%;">
  56. <a-select-option value="and">AND(所有条件都要求匹配)</a-select-option>
  57. <a-select-option value="or">OR(条件中的任意一个匹配)</a-select-option>
  58. </a-select>
  59. </a-form-item>
  60. </a-col>
  61. </a-row>
  62. <a-row type="flex" style="margin-bottom:10px" :gutter="16" v-for="(item, index) in queryParamsModel" :key="index">
  63. <a-col :md="8" :xs="24" style="margin-bottom: 12px;">
  64. <a-tree-select
  65. showSearch
  66. v-model="item.field"
  67. :treeData="fieldTreeData"
  68. :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
  69. placeholder="选择查询字段"
  70. allowClear
  71. treeDefaultExpandAll
  72. :getPopupContainer="node=>node.parentNode"
  73. style="width: 100%"
  74. @select="(val,option)=>handleSelected(option,item)"
  75. >
  76. </a-tree-select>
  77. </a-col>
  78. <a-col :md="4" :xs="24" style="margin-bottom: 12px;">
  79. <a-select placeholder="匹配规则" :value="item.rule" :getPopupContainer="node=>node.parentNode" @change="handleRuleChange(item,$event)">
  80. <a-select-option value="eq">等于</a-select-option>
  81. <a-select-option value="like">包含</a-select-option>
  82. <a-select-option value="right_like">以..开始</a-select-option>
  83. <a-select-option value="left_like">以..结尾</a-select-option>
  84. <a-select-option value="in">在...中</a-select-option>
  85. <a-select-option value="ne">不等于</a-select-option>
  86. <a-select-option value="gt">大于</a-select-option>
  87. <a-select-option value="ge">大于等于</a-select-option>
  88. <a-select-option value="lt">小于</a-select-option>
  89. <a-select-option value="le">小于等于</a-select-option>
  90. </a-select>
  91. </a-col>
  92. <a-col :md="8" :xs="24" style="margin-bottom: 12px;">
  93. <!-- 下拉搜索 -->
  94. <j-search-select-tag v-if="item.type==='sel_search'" v-model="item.val" :dict="getDictInfo(item)" placeholder="请选择"/>
  95. <!-- 下拉多选 -->
  96. <template v-else-if="item.type==='list_multi'">
  97. <j-multi-select-tag v-if="item.options" v-model="item.val" :options="item.options" placeholder="请选择"/>
  98. <j-multi-select-tag v-else v-model="item.val" :dictCode="getDictInfo(item)" placeholder="请选择"/>
  99. </template>
  100. <template v-else-if="item.dictCode">
  101. <template v-if="item.type === 'table-dict'">
  102. <j-popup
  103. v-model="item.val"
  104. :code="item.dictTable"
  105. :field="item.dictCode"
  106. :orgFields="item.dictCode"
  107. :destFields="item.dictCode"
  108. :multi="true"
  109. ></j-popup>
  110. </template>
  111. <template v-else>
  112. <j-multi-select-tag v-show="allowMultiple(item)" v-model="item.val" :dictCode="item.dictCode" placeholder="请选择"/>
  113. <j-dict-select-tag v-show="!allowMultiple(item)" v-model="item.val" :dictCode="item.dictCode" placeholder="请选择"/>
  114. </template>
  115. </template>
  116. <j-popup
  117. v-else-if="item.type === 'popup'"
  118. :value="item.val"
  119. v-bind="item.popup"
  120. group-id="superQuery"
  121. @input="(e,v)=>handleChangeJPopup(item,e,v)"
  122. :multi="true"/>
  123. <j-select-multi-user
  124. v-else-if="item.type === 'select-user' || item.type === 'sel_user'"
  125. v-model="item.val"
  126. :buttons="false"
  127. :multiple="false"
  128. placeholder="请选择用户"
  129. :returnKeys="['id', item.customReturnField || 'username']"
  130. />
  131. <j-select-depart
  132. v-else-if="item.type === 'select-depart' || item.type === 'sel_depart'"
  133. v-model="item.val"
  134. :multi="false"
  135. placeholder="请选择部门"
  136. :customReturnField="item.customReturnField || 'id'"
  137. />
  138. <a-select
  139. v-else-if="item.options instanceof Array"
  140. v-model="item.val"
  141. :options="item.options"
  142. allowClear
  143. placeholder="请选择"
  144. :mode="allowMultiple(item)?'multiple':''"
  145. />
  146. <j-area-linkage v-model="item.val" v-else-if="item.type==='area-linkage' || item.type==='pca'" style="width: 100%"/>
  147. <j-date v-else-if=" item.type=='date' " v-model="item.val" placeholder="请选择日期" style="width: 100%"></j-date>
  148. <j-date v-else-if=" item.type=='datetime' " v-model="item.val" placeholder="请选择时间" :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" style="width: 100%"></j-date>
  149. <a-time-picker v-else-if="item.type==='time'" :value="item.val ? moment(item.val,'HH:mm:ss') : null" format="HH:mm:ss" style="width: 100%" @change="(time,value)=>item.val=value"/>
  150. <a-input-number v-else-if=" item.type=='int'||item.type=='number' " style="width: 100%" placeholder="请输入数值" v-model="item.val"/>
  151. <a-select v-else-if="item.type=='switch'" placeholder="请选择" v-model="item.val">
  152. <a-select-option value="Y">是</a-select-option>
  153. <a-select-option value="N">否</a-select-option>
  154. </a-select>
  155. <a-input v-else v-model="item.val" placeholder="请输入值"/>
  156. </a-col>
  157. <a-col :md="4" :xs="0" style="margin-bottom: 12px;">
  158. <a-button @click="handleAdd" icon="plus"></a-button>&nbsp;
  159. <a-button @click="handleDel( index )" icon="minus"></a-button>
  160. </a-col>
  161. <a-col :md="0" :xs="24" style="margin-bottom: 12px;text-align: right;">
  162. <a-button @click="handleAdd" icon="plus"></a-button>&nbsp;
  163. <a-button @click="handleDel( index )" icon="minus"></a-button>
  164. </a-col>
  165. </a-row>
  166. </a-form>
  167. </a-col>
  168. <a-col :sm="24" :md="5">
  169. <!-- 查询记录 -->
  170. <a-card class="j-super-query-history-card" :bordered="true">
  171. <div slot="title">
  172. 保存的查询
  173. </div>
  174. <a-empty v-if="saveTreeData.length === 0" class="j-super-query-history-empty" description="没有保存任何查询"/>
  175. <a-tree
  176. v-else
  177. class="j-super-query-history-tree"
  178. showIcon
  179. :treeData="saveTreeData"
  180. :selectedKeys="[]"
  181. @select="handleTreeSelect"
  182. >
  183. </a-tree>
  184. </a-card>
  185. </a-col>
  186. </a-row>
  187. </a-spin>
  188. <a-modal title="请输入保存的名称" :visible="prompt.visible" @cancel="prompt.visible=false" @ok="handlePromptOk">
  189. <a-input v-model="prompt.value"></a-input>
  190. </a-modal>
  191. </j-modal>
  192. </div>
  193. </template>
  194. <script>
  195. import moment from 'moment'
  196. import * as utils from '@/utils/util'
  197. import { mixinDevice } from '@/utils/mixin'
  198. import JDate from '@/components/jeecg/JDate.vue'
  199. import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
  200. import JSelectMultiUser from '@/components/jeecgbiz/JSelectMultiUser'
  201. import JMultiSelectTag from '@/components/dict/JMultiSelectTag'
  202. import JAreaLinkage from '@comp/jeecg/JAreaLinkage'
  203. export default {
  204. name: 'JSuperQuery',
  205. mixins: [mixinDevice],
  206. components: { JAreaLinkage, JMultiSelectTag, JDate, JSelectDepart, JSelectMultiUser },
  207. props: {
  208. /*
  209. fieldList: [{
  210. value:'',
  211. text:'',
  212. type:'',
  213. dictCode:'' // 只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
  214. }]
  215. type:date datetime int number string
  216. * */
  217. fieldList: {
  218. type: Array,
  219. required: true
  220. },
  221. /*
  222. * 这个回调函数接收一个数组参数 即查询条件
  223. * */
  224. callback: {
  225. type: String,
  226. required: false,
  227. default: 'handleSuperQuery'
  228. },
  229. // 当前是否在加载中
  230. loading: {
  231. type: Boolean,
  232. default: false
  233. },
  234. // 保存查询条件的唯一 code,通过该 code 区分
  235. // 默认为 null,代表以当前路由全路径为区分Code
  236. saveCode: {
  237. type: String,
  238. default: null
  239. }
  240. },
  241. data() {
  242. return {
  243. moment,
  244. fieldTreeData: [],
  245. prompt: {
  246. visible: false,
  247. value: ''
  248. },
  249. visible: false,
  250. queryParamsModel: [],
  251. treeIcon: <a-icon type="file-text"/>,
  252. // 保存查询条件的treeData
  253. saveTreeData: [],
  254. // 保存查询条件的前缀名
  255. saveCodeBefore: 'JSuperQuerySaved_',
  256. // 查询类型,过滤条件匹配(and、or)
  257. matchType: 'and',
  258. superQueryFlag: false,
  259. }
  260. },
  261. computed: {
  262. izMobile() {
  263. return this.device === 'mobile'
  264. },
  265. tooltipProps() {
  266. return this.izMobile ? { visible: false } : {}
  267. },
  268. fullSaveCode() {
  269. let saveCode = this.saveCode
  270. if (saveCode == null || saveCode === '') {
  271. saveCode = this.$route.fullPath
  272. }
  273. return this.saveCodeBefore + saveCode
  274. },
  275. },
  276. watch: {
  277. // 当 saveCode 变化时,重新查询已保存的条件
  278. fullSaveCode: {
  279. immediate: true,
  280. handler() {
  281. let list = this.$ls.get(this.fullSaveCode)
  282. if (list instanceof Array) {
  283. this.saveTreeData = list.map(i => this.renderSaveTreeData(i))
  284. }
  285. }
  286. },
  287. fieldList: {
  288. deep: true,
  289. immediate: true,
  290. handler(val) {
  291. let mainData = [], subData = []
  292. val.forEach(item => {
  293. let data = { ...item }
  294. data.label = data.label || data.text
  295. let hasChildren = (data.children instanceof Array)
  296. data.disabled = hasChildren
  297. data.selectable = !hasChildren
  298. if (hasChildren) {
  299. data.children = data.children.map(item2 => {
  300. let child = { ...item2 }
  301. child.label = child.label || child.text
  302. child.label = data.label + '-' + child.label
  303. child.value = data.value + ',' + child.value
  304. child.val = ''
  305. return child
  306. })
  307. data.val = ''
  308. subData.push(data)
  309. } else {
  310. mainData.push(data)
  311. }
  312. })
  313. this.fieldTreeData = mainData.concat(subData)
  314. }
  315. }
  316. },
  317. methods: {
  318. show() {
  319. if (!this.queryParamsModel || this.queryParamsModel.length === 0) {
  320. this.resetLine()
  321. }
  322. this.visible = true
  323. },
  324. getDictInfo(item) {
  325. let str = ''
  326. if(!item.dictTable){
  327. str = item.dictCode
  328. }else{
  329. str = item.dictTable+','+item.dictText+','+item.dictCode
  330. }
  331. console.log('高级查询字典信息',str)
  332. return str
  333. },
  334. handleOk() {
  335. if (!this.isNullArray(this.queryParamsModel)) {
  336. let event = {
  337. matchType: this.matchType,
  338. params: this.removeEmptyObject(this.queryParamsModel)
  339. }
  340. // 移动端模式下关闭弹窗
  341. if (this.izMobile) {
  342. this.visible = false
  343. }
  344. this.emitCallback(event)
  345. } else {
  346. this.$message.warn("不能查询空条件")
  347. }
  348. },
  349. emitCallback(event = {}) {
  350. let { params = [], matchType = this.matchType } = event
  351. this.superQueryFlag = (params && params.length > 0)
  352. for (let param of params) {
  353. if (Array.isArray(param.val)) {
  354. param.val = param.val.join(',')
  355. }
  356. }
  357. console.debug('---高级查询参数--->', { params, matchType })
  358. this.$emit(this.callback, params, matchType)
  359. },
  360. handleCancel() {
  361. this.close()
  362. },
  363. close() {
  364. this.$emit('close')
  365. this.visible = false
  366. },
  367. handleAdd() {
  368. this.addNewLine()
  369. },
  370. addNewLine() {
  371. this.queryParamsModel.push({ rule: 'eq' })
  372. },
  373. resetLine() {
  374. this.superQueryFlag = false
  375. this.queryParamsModel = []
  376. this.addNewLine()
  377. },
  378. handleDel(index) {
  379. this.queryParamsModel.splice(index, 1)
  380. },
  381. handleSelected(node, item) {
  382. let { type, dbType, options, dictCode, dictTable, dictText, customReturnField, popup } = node.dataRef
  383. item['type'] = type
  384. item['dbType'] = dbType
  385. item['options'] = options
  386. item['dictCode'] = dictCode
  387. item['dictTable'] = dictTable
  388. item['dictText'] = dictText
  389. item['customReturnField'] = customReturnField
  390. if (popup) {
  391. item['popup'] = popup
  392. }
  393. this.$set(item, 'val', undefined)
  394. },
  395. handleOpen() {
  396. this.show()
  397. },
  398. handleReset() {
  399. this.resetLine()
  400. this.emitCallback()
  401. },
  402. handleSave() {
  403. let queryParams = this.removeEmptyObject(this.queryParamsModel)
  404. if (this.isNullArray(queryParams)) {
  405. this.$message.warning('空条件不能保存')
  406. } else {
  407. this.prompt.value = ''
  408. this.prompt.visible = true
  409. }
  410. },
  411. handlePromptOk() {
  412. let { value } = this.prompt
  413. if(!value){
  414. this.$message.warning('保存名称不能为空')
  415. return
  416. }
  417. // 取出查询条件
  418. let records = this.removeEmptyObject(this.queryParamsModel)
  419. // 判断有没有重名的
  420. let filterList = this.saveTreeData.filter(i => i.originTitle === value)
  421. if (filterList.length > 0) {
  422. this.$confirm({
  423. content: `${value} 已存在,是否覆盖?`,
  424. onOk: () => {
  425. this.prompt.visible = false
  426. filterList[0].records = records
  427. this.saveToLocalStore()
  428. this.$message.success('保存成功')
  429. }
  430. })
  431. } else {
  432. // 没有重名的,直接添加
  433. this.prompt.visible = false
  434. // 添加到树列表中
  435. this.saveTreeData.push(this.renderSaveTreeData({
  436. title: value,
  437. matchType: this.matchType,
  438. records: records
  439. }))
  440. // 保存到 LocalStore
  441. this.saveToLocalStore()
  442. this.$message.success('保存成功')
  443. }
  444. },
  445. handleTreeSelect(idx, event) {
  446. if (event.selectedNodes[0]) {
  447. let { matchType, records } = event.selectedNodes[0].data.props
  448. // 将保存的matchType取出,兼容旧数据,如果没有保存就还是使用原来的
  449. this.matchType = matchType || this.matchType
  450. this.queryParamsModel = utils.cloneObject(records)
  451. }
  452. },
  453. handleRemoveSaveTreeItem(event, vNode) {
  454. // 阻止事件冒泡
  455. event.stopPropagation()
  456. this.$confirm({
  457. content: '是否删除当前查询?',
  458. onOk: () => {
  459. let { eventKey } = vNode
  460. this.saveTreeData.splice(Number.parseInt(eventKey.substring(2)), 1)
  461. this.saveToLocalStore()
  462. },
  463. })
  464. },
  465. // 将查询保存到 LocalStore 里
  466. saveToLocalStore() {
  467. let saveValue = this.saveTreeData.map(({ originTitle, matchType, records }) => ({ title: originTitle, matchType, records }))
  468. this.$ls.set(this.fullSaveCode, saveValue)
  469. },
  470. isNullArray(array) {
  471. //判断是不是空数组对象
  472. if (!array || array.length === 0) {
  473. return true
  474. }
  475. if (array.length === 1) {
  476. let obj = array[0]
  477. if (!obj.field || (obj.val == null || obj.val === '') || !obj.rule) {
  478. return true
  479. }
  480. }
  481. return false
  482. },
  483. // 去掉数组中的空对象
  484. removeEmptyObject(arr) {
  485. let array = utils.cloneObject(arr)
  486. for (let i = 0; i < array.length; i++) {
  487. let item = array[i]
  488. if (item == null || Object.keys(item).length <= 0) {
  489. array.splice(i--, 1)
  490. } else {
  491. if (Array.isArray(item.options)) {
  492. // 如果有字典属性,就不需要保存 options 了
  493. //update-begin-author:taoyan date:20200819 for:【开源问题】 高级查询 下拉框作为并且选项很多多多 LOWCOD-779
  494. delete item.options
  495. //update-end-author:taoyan date:20200819 for:【开源问题】 高级查询 下拉框作为并且选项很多多多 LOWCOD-779
  496. }
  497. }
  498. }
  499. return array
  500. },
  501. /** 渲染保存查询条件的 title(加个删除按钮) */
  502. renderSaveTreeData(item) {
  503. item.icon = this.treeIcon
  504. item.originTitle = item['title']
  505. item.title = (arg1, arg2) => {
  506. let vNode
  507. // 兼容旧版的Antdv
  508. if (arg1.dataRef) {
  509. vNode = arg1
  510. } else if (arg2.dataRef) {
  511. vNode = arg2
  512. } else {
  513. return <span style="color:red;">Antdv版本不支持</span>
  514. }
  515. let {originTitle} = vNode.dataRef
  516. return (
  517. <div class="j-history-tree-title">
  518. <span>{originTitle}</span>
  519. <div class="j-history-tree-title-closer" onClick={e => this.handleRemoveSaveTreeItem(e, vNode)}>
  520. <a-icon type="close-circle"/>
  521. </div>
  522. </div>
  523. )
  524. }
  525. return item
  526. },
  527. /** 判断是否允许多选 */
  528. allowMultiple(item) {
  529. return item.rule === 'in'
  530. },
  531. handleRuleChange(item, newValue) {
  532. let oldValue = item.rule
  533. this.$set(item, 'rule', newValue)
  534. // 上一个规则是否是 in,且type是字典或下拉
  535. if (oldValue === 'in') {
  536. if (item.dictCode || item.options instanceof Array) {
  537. let value = item.val
  538. if (typeof item.val === 'string') {
  539. value = item.val.split(',')[0]
  540. } else if (Array.isArray(item.val)) {
  541. value = item.val[0]
  542. }
  543. this.$set(item, 'val', value)
  544. }
  545. }
  546. },
  547. handleChangeJPopup(item, e, values) {
  548. item.val = values[item.popup['destFields']]
  549. },
  550. }
  551. }
  552. </script>
  553. <style lang="less" scoped>
  554. .j-super-query-box {
  555. display: inline-block;
  556. }
  557. .j-super-query-modal {
  558. .j-super-query-history-card {
  559. /deep/ .ant-card-body,
  560. /deep/ .ant-card-head-title {
  561. padding: 0;
  562. }
  563. /deep/ .ant-card-head {
  564. padding: 4px 8px;
  565. min-height: initial;
  566. }
  567. }
  568. .j-super-query-history-empty {
  569. /deep/ .ant-empty-image {
  570. height: 80px;
  571. line-height: 80px;
  572. margin-bottom: 0;
  573. }
  574. /deep/ img {
  575. width: 80px;
  576. height: 65px;
  577. }
  578. /deep/ .ant-empty-description {
  579. color: #afafaf;
  580. margin: 8px 0;
  581. }
  582. }
  583. .j-super-query-history-tree {
  584. .j-history-tree-title {
  585. width: calc(100% - 24px);
  586. position: relative;
  587. display: inline-block;
  588. &-closer {
  589. color: #999999;
  590. position: absolute;
  591. top: 0;
  592. right: 0;
  593. width: 24px;
  594. height: 24px;
  595. text-align: center;
  596. opacity: 0;
  597. transition: opacity 0.3s, color 0.3s;
  598. &:hover {
  599. color: #666666;
  600. }
  601. &:active {
  602. color: #333333;
  603. }
  604. }
  605. &:hover {
  606. .j-history-tree-title-closer {
  607. opacity: 1;
  608. }
  609. }
  610. }
  611. /deep/ .ant-tree-switcher {
  612. display: none;
  613. }
  614. /deep/ .ant-tree-node-content-wrapper {
  615. width: 100%;
  616. }
  617. }
  618. }
  619. </style>