ba16b39b691df9944d7773ff1ebb243392f43179.svn-base 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. <#assign pidFieldName = "">
  2. <#assign hasChildrenField = "">
  3. <#list originalColumns as po>
  4. <#if po.fieldDbName == tableVo.extendParams.pidField>
  5. <#assign pidFieldName = po.fieldName>
  6. </#if>
  7. <#if po.fieldDbName == tableVo.extendParams.hasChildren>
  8. <#assign hasChildrenField = po.fieldName>
  9. </#if>
  10. </#list>
  11. <template>
  12. <a-card :bordered="false">
  13. <!-- 查询区域 -->
  14. <div class="table-page-search-wrapper">
  15. <a-form layout="inline" @keyup.enter.native="searchQuery">
  16. <a-row :gutter="24">
  17. <#assign query_field_no=0>
  18. <#assign query_flag=false>
  19. <#assign list_need_dict=false>
  20. <#assign list_need_category=false>
  21. <#assign list_need_pca=false>
  22. <#assign bpm_flag=false>
  23. <#-- 开始循环 -->
  24. <#list columns as po>
  25. <#if po.fieldDbName=='bpm_status'>
  26. <#assign bpm_flag=true>
  27. </#if>
  28. <#if po.isQuery=='Y'>
  29. <#assign query_flag=true>
  30. <#if query_field_no==2>
  31. <template v-if="toggleSearchStatus">
  32. </#if>
  33. <#assign query_field_dictCode="">
  34. <#if po.dictTable?default("")?trim?length gt 1>
  35. <#assign query_field_dictCode="${po.dictTable},${po.dictText},${po.dictField}">
  36. <#elseif po.dictField?default("")?trim?length gt 1>
  37. <#assign query_field_dictCode="${po.dictField}">
  38. </#if>
  39. <#if po.queryMode=='single'>
  40. <#if query_field_no gt 1> </#if><a-col :xl="6" :lg="7" :md="8" :sm="24">
  41. <#if query_field_no gt 1> </#if><a-form-item label="${po.filedComment}">
  42. <#if po.classType=='sel_search'>
  43. <#if query_field_no gt 1> </#if><j-search-select-tag placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}" dict="${po.dictTable},${po.dictText},${po.dictField}"/>
  44. <#elseif po.classType=='sel_user'>
  45. <#if query_field_no gt 1> </#if><j-select-user-by-dep placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}"/>
  46. <#elseif po.classType=='switch'>
  47. <#if query_field_no gt 1> </#if><j-switch placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}" <#if po.dictField!= 'is_open'>:options="${po.dictField}"</#if> query></j-switch>
  48. <#elseif po.classType=='sel_depart'>
  49. <#if query_field_no gt 1> </#if><j-select-depart placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}"/>
  50. <#elseif po.classType=='list_multi'>
  51. <#if query_field_no gt 1> </#if><j-multi-select-tag placeholder="请选择${po.filedComment}" dictCode="${query_field_dictCode?default("")}" v-model="queryParam.${po.fieldName}"/>
  52. <#elseif po.classType=='cat_tree'>
  53. <#if query_field_no gt 1> </#if><j-category-select placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}" pcode="${po.dictField?default("")}"/>
  54. <#elseif po.classType=='date'>
  55. <#if query_field_no gt 1> </#if><j-date placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}"></j-date>
  56. <#elseif po.classType=='datetime'>
  57. <#if query_field_no gt 1> </#if><j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}"></j-date>
  58. <#elseif po.classType=='pca'>
  59. <#if query_field_no gt 1> </#if><j-area-linkage type="cascader" v-model="queryParam.${po.fieldName}" placeholder="请选择省市区"/>
  60. <#elseif po.classType=='popup'>
  61. <#if query_field_no gt 1> </#if><j-popup placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}" code="${po.dictTable}" org-fields="${po.dictField}" dest-fields="${po.dictText}" :field="getPopupField('${po.dictText}')" :multi="${po.extendParams.popupMulti?c}"/>
  62. <#elseif po.classType=='list' || po.classType=='radio' || po.classType=='checkbox'>
  63. <#-- ---------------------------下拉或是单选 判断数据字典是表字典还是普通字典------------------------------- -->
  64. <#if po.dictTable?default("")?trim?length gt 1>
  65. <#if query_field_no gt 1> </#if><j-dict-select-tag placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}" dictCode="${po.dictTable},${po.dictText},${po.dictField}"/>
  66. <#elseif po.dictField?default("")?trim?length gt 1>
  67. <#if query_field_no gt 1> </#if><j-dict-select-tag placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}" dictCode="${po.dictField}"/>
  68. <#else>
  69. <#if query_field_no gt 1> </#if><a-input placeholder="请输入${po.filedComment}" v-model="queryParam.${po.fieldName}"></a-input>
  70. </#if>
  71. <#else>
  72. <#if query_field_no gt 1> </#if><a-input placeholder="请输入${po.filedComment}" v-model="queryParam.${po.fieldName}"></a-input>
  73. </#if>
  74. <#if query_field_no gt 1> </#if></a-form-item>
  75. <#if query_field_no gt 1> </#if></a-col>
  76. <#else>
  77. <#if query_field_no gt 1> </#if><a-col :xl="10" :lg="11" :md="12" :sm="24">
  78. <#if query_field_no gt 1> </#if><a-form-item label="${po.filedComment}">
  79. <#if po.classType=='date'>
  80. <#if query_field_no gt 1> </#if><j-date placeholder="请选择开始日期" class="query-group-cust" v-model="queryParam.${po.fieldName}_begin"></j-date>
  81. <#if query_field_no gt 1> </#if><span class="query-group-split-cust"></span>
  82. <#if query_field_no gt 1> </#if><j-date placeholder="请选择结束日期" class="query-group-cust" v-model="queryParam.${po.fieldName}_end"></j-date>
  83. <#elseif po.classType=='datetime'>
  84. <#if query_field_no gt 1> </#if><j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" class="query-group-cust" v-model="queryParam.${po.fieldName}_begin"></j-date>
  85. <#if query_field_no gt 1> </#if><span class="query-group-split-cust"></span>
  86. <#if query_field_no gt 1> </#if><j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" class="query-group-cust" v-model="queryParam.${po.fieldName}_end"></j-date>
  87. <#else>
  88. <#if query_field_no gt 1> </#if><a-input placeholder="请输入最小值" class="query-group-cust" v-model="queryParam.${po.fieldName}_begin"></a-input>
  89. <#if query_field_no gt 1> </#if><span class="query-group-split-cust"></span>
  90. <#if query_field_no gt 1> </#if><a-input placeholder="请输入最大值" class="query-group-cust" v-model="queryParam.${po.fieldName}_end"></a-input>
  91. </#if>
  92. <#if query_field_no gt 1> </#if></a-form-item>
  93. <#if query_field_no gt 1> </#if></a-col>
  94. </#if>
  95. <#assign query_field_no=query_field_no+1>
  96. </#if>
  97. <#if !list_need_dict && po.fieldShowType!='popup' && po.dictField?default("")?trim?length gt 1>
  98. <#assign list_need_dict=true>
  99. </#if>
  100. <#if po.classType=='cat_tree' && po.dictText?default("")?trim?length == 0>
  101. <#assign list_need_category=true>
  102. </#if>
  103. <#if po.classType=='pca'>
  104. <#assign list_need_pca=true>
  105. </#if>
  106. </#list>
  107. <#-- 结束循环 -->
  108. <#t>
  109. <#if query_field_no gt 2>
  110. </template>
  111. </#if>
  112. <#if query_flag>
  113. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  114. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  115. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  116. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  117. <a @click="handleToggleSearch" style="margin-left: 8px">
  118. {{ toggleSearchStatus ? '收起' : '展开' }}
  119. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  120. </a>
  121. </span>
  122. </a-col>
  123. </#if>
  124. </a-row>
  125. </a-form>
  126. </div>
  127. <!-- 查询区域-END -->
  128. <!-- 操作按钮区域 -->
  129. <div class="table-operator">
  130. <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
  131. <a-button type="primary" icon="download" @click="handleExportXls('${tableVo.ftlDescription}')">导出</a-button>
  132. <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  133. <a-button type="primary" icon="import">导入</a-button>
  134. </a-upload>
  135. <!-- 高级查询区域 -->
  136. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  137. <a-dropdown v-if="selectedRowKeys.length > 0">
  138. <a-menu slot="overlay">
  139. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  140. </a-menu>
  141. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  142. </a-dropdown>
  143. </div>
  144. <!-- table区域-begin -->
  145. <div>
  146. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  147. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  148. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  149. </div>
  150. <a-table
  151. ref="table"
  152. size="middle"
  153. rowKey="id"
  154. class="j-table-force-nowrap"
  155. :scroll="{x:true}"
  156. :columns="columns"
  157. :dataSource="dataSource"
  158. :pagination="ipagination"
  159. :loading="loading"
  160. :expandedRowKeys="expandedRowKeys"
  161. @change="handleTableChange"
  162. @expand="handleExpand"
  163. v-bind="tableProps">
  164. <template slot="imgSlot" slot-scope="text">
  165. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  166. <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  167. </template>
  168. <template slot="fileSlot" slot-scope="text">
  169. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  170. <a-button
  171. v-else
  172. :ghost="true"
  173. type="primary"
  174. icon="download"
  175. size="small"
  176. @click="downloadFile(text)">
  177. 下载
  178. </a-button>
  179. </template>
  180. <span slot="action" slot-scope="text, record">
  181. <a @click="handleEdit(record)">编辑</a>
  182. <a-divider type="vertical" />
  183. <a-dropdown>
  184. <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
  185. <a-menu slot="overlay">
  186. <a-menu-item>
  187. <a @click="handleAddChild(record)">添加下级</a>
  188. </a-menu-item>
  189. <a-menu-item>
  190. <a-popconfirm title="确定删除吗?" @confirm="() => handleDeleteNode(record.id)" placement="topLeft">
  191. <a>删除</a>
  192. </a-popconfirm>
  193. </a-menu-item>
  194. </a-menu>
  195. </a-dropdown>
  196. </span>
  197. </a-table>
  198. </div>
  199. <${entityName?uncap_first}-modal ref="modalForm" @ok="modalFormOk"></${entityName?uncap_first}-modal>
  200. </a-card>
  201. </template>
  202. <script>
  203. import { getAction, deleteAction } from '@/api/manage'
  204. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  205. import ${entityName}Modal from './modules/${entityName}Modal'
  206. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  207. import { filterObj } from '@/utils/util';
  208. <#if list_need_category>
  209. import { loadCategoryData } from '@/api/api'
  210. </#if>
  211. <#if list_need_pca>
  212. import Area from '@/components/_util/Area'
  213. </#if>
  214. export default {
  215. name: "${entityName}List",
  216. mixins:[JeecgListMixin],
  217. components: {
  218. ${entityName}Modal
  219. },
  220. data () {
  221. return {
  222. description: '${tableVo.ftlDescription}管理页面',
  223. // 表头
  224. columns: [
  225. <#list columns as po>
  226. <#if po.fieldDbName==tableVo.extendParams.textField>
  227. {
  228. title:'${po.filedComment}',
  229. align:"left",
  230. dataIndex: '${po.fieldName}'
  231. },
  232. </#if>
  233. </#list>
  234. <#list columns as po>
  235. <#if po.isShowList =='Y'>
  236. <#if po.fieldDbName!=tableVo.extendParams.textField && po.fieldName!=pidFieldName>
  237. {
  238. title:'${po.filedComment}',
  239. align:"left",
  240. <#if po.sort=='Y'>
  241. sorter: true,
  242. </#if>
  243. <#if po.classType=='date'>
  244. dataIndex: '${po.fieldName}',
  245. customRender:function (text) {
  246. return !text?"":(text.length>10?text.substr(0,10):text)
  247. }
  248. <#elseif po.classType=='file'>
  249. dataIndex: '${po.fieldName}',
  250. scopedSlots: {customRender: 'fileSlot'}
  251. <#elseif po.fieldDbType=='Blob'>
  252. dataIndex: '${po.fieldName}String'
  253. <#elseif po.classType=='image'>
  254. dataIndex: '${po.fieldName}',
  255. scopedSlots: {customRender: 'imgSlot'}
  256. <#elseif po.classType == 'sel_tree' || po.classType=='list' || po.classType=='list_multi' || po.classType=='sel_search' || po.classType=='radio' || po.classType=='checkbox' || po.classType=='sel_depart' || po.classType=='sel_user'>
  257. dataIndex: '${po.fieldName}_dictText'
  258. <#elseif po.classType=='switch'>
  259. dataIndex: '${po.fieldName}',
  260. <#if po.dictField != 'is_open'>
  261. customRender: (text) => (!text ? "" : (text == ${po.dictField}[0] ? "是" : "否"))
  262. <#else>
  263. customRender: (text) => (!text ? "" : (text == "Y" ? "是" : "否"))
  264. </#if>
  265. <#elseif po.classType=='cat_tree'>
  266. <#if list_need_category>
  267. dataIndex: '${po.fieldName}',
  268. customRender: (text) => (text ? filterMultiDictText(this.dictOptions['${po.fieldName}'], text) : '')
  269. <#else>
  270. dataIndex: '${po.fieldName}',
  271. customRender: (text, record) => (text ? record['${po.dictText}'] : '')
  272. </#if>
  273. <#else>
  274. dataIndex: '${po.fieldName}'
  275. </#if>
  276. },
  277. </#if>
  278. </#if>
  279. </#list>
  280. {
  281. title: '操作',
  282. dataIndex: 'action',
  283. align:"center",
  284. fixed:"right",
  285. width:147,
  286. scopedSlots: { customRender: 'action' },
  287. }
  288. ],
  289. url: {
  290. list: "/${entityPackage}/${entityName?uncap_first}/rootList",
  291. childList: "/${entityPackage}/${entityName?uncap_first}/childList",
  292. getChildListBatch: "/${entityPackage}/${entityName?uncap_first}/getChildListBatch",
  293. delete: "/${entityPackage}/${entityName?uncap_first}/delete",
  294. deleteBatch: "/${entityPackage}/${entityName?uncap_first}/deleteBatch",
  295. exportXlsUrl: "/${entityPackage}/${entityName?uncap_first}/exportXls",
  296. importExcelUrl: "${entityPackage}/${entityName?uncap_first}/importExcel",
  297. },
  298. expandedRowKeys:[],
  299. hasChildrenField:"${hasChildrenField}",
  300. pidField:"${pidFieldName}",
  301. dictOptions: {},
  302. loadParent: false,
  303. superFieldList:[],
  304. }
  305. },
  306. created() {
  307. this.getSuperFieldList();
  308. },
  309. computed: {
  310. importExcelUrl(){
  311. <#noparse>return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;</#noparse>
  312. },
  313. tableProps() {
  314. let _this = this
  315. return {
  316. // 列表项是否可选择
  317. rowSelection: {
  318. selectedRowKeys: _this.selectedRowKeys,
  319. onChange: (selectedRowKeys) => _this.selectedRowKeys = selectedRowKeys
  320. }
  321. }
  322. }
  323. },
  324. methods: {
  325. loadData(arg){
  326. if(arg==1){
  327. this.ipagination.current=1
  328. }
  329. this.loading = true
  330. let params = this.getQueryParams()
  331. params.hasQuery = 'true'
  332. getAction(this.url.list,params).then(res=>{
  333. if(res.success){
  334. let result = res.result
  335. if(Number(result.total)>0){
  336. this.ipagination.total = Number(result.total)
  337. this.dataSource = this.getDataByResult(res.result.records)
  338. return this.loadDataByExpandedRows(this.dataSource)
  339. }else{
  340. this.ipagination.total=0
  341. this.dataSource=[]
  342. }
  343. }else{
  344. this.$message.warning(res.message)
  345. }
  346. }).finally(()=>{
  347. this.loading = false
  348. })
  349. },
  350. // 根据已展开的行查询数据(用于保存后刷新时异步加载子级的数据)
  351. loadDataByExpandedRows(dataList) {
  352. if (this.expandedRowKeys.length > 0) {
  353. return getAction(this.url.getChildListBatch,{ parentIds: this.expandedRowKeys.join(',') }).then(res=>{
  354. if (res.success && res.result.records.length>0) {
  355. //已展开的数据批量子节点
  356. let records = res.result.records
  357. const listMap = new Map();
  358. for (let item of records) {
  359. let pid = item[this.pidField];
  360. if (this.expandedRowKeys.join(',').includes(pid)) {
  361. let mapList = listMap.get(pid);
  362. if (mapList == null) {
  363. mapList = [];
  364. }
  365. mapList.push(item);
  366. listMap.set(pid, mapList);
  367. }
  368. }
  369. let childrenMap = listMap;
  370. let fn = (list) => {
  371. if(list) {
  372. list.forEach(data => {
  373. if (this.expandedRowKeys.includes(data.id)) {
  374. data.children = this.getDataByResult(childrenMap.get(data.id))
  375. fn(data.children)
  376. }
  377. })
  378. }
  379. }
  380. fn(dataList)
  381. }
  382. })
  383. } else {
  384. return Promise.resolve()
  385. }
  386. },
  387. getQueryParams(arg) {
  388. //获取查询条件
  389. let sqp = {}
  390. let param = {}
  391. if(this.superQueryParams){
  392. sqp['superQueryParams']=encodeURI(this.superQueryParams)
  393. sqp['superQueryMatchType'] = this.superQueryMatchType
  394. }
  395. if(arg){
  396. param = Object.assign(sqp, this.isorter ,this.filters);
  397. }else{
  398. param = Object.assign(sqp, this.queryParam, this.isorter ,this.filters);
  399. }
  400. if(JSON.stringify(this.queryParam) === "{}" || arg){
  401. param.hasQuery = 'false'
  402. }else{
  403. param.hasQuery = 'true'
  404. }
  405. param.field = this.getQueryField();
  406. param.pageNo = this.ipagination.current;
  407. param.pageSize = this.ipagination.pageSize;
  408. return filterObj(param);
  409. },
  410. searchReset() {
  411. //重置
  412. this.expandedRowKeys = []
  413. this.queryParam = {}
  414. this.loadData(1);
  415. },
  416. getDataByResult(result){
  417. if(result){
  418. return result.map(item=>{
  419. //判断是否标记了带有子节点
  420. if(item[this.hasChildrenField]=='1'){
  421. let loadChild = { id: item.id+'_loadChild', name: 'loading...', isLoading: true }
  422. item.children = [loadChild]
  423. }
  424. return item
  425. })
  426. }
  427. },
  428. handleExpand(expanded, record){
  429. // 判断是否是展开状态
  430. if (expanded) {
  431. this.expandedRowKeys.push(record.id)
  432. if (record.children.length>0 && record.children[0].isLoading === true) {
  433. let params = this.getQueryParams(1);//查询条件
  434. params[this.pidField] = record.id
  435. params.hasQuery = 'false'
  436. params.superQueryParams=""
  437. getAction(this.url.childList,params).then((res)=>{
  438. if(res.success){
  439. if(res.result.records){
  440. record.children = this.getDataByResult(res.result.records)
  441. this.dataSource = [...this.dataSource]
  442. }else{
  443. record.children=''
  444. record.hasChildrenField='0'
  445. }
  446. }else{
  447. this.$message.warning(res.message)
  448. }
  449. })
  450. }
  451. }else{
  452. let keyIndex = this.expandedRowKeys.indexOf(record.id)
  453. if(keyIndex>=0){
  454. this.expandedRowKeys.splice(keyIndex, 1);
  455. }
  456. }
  457. },
  458. handleAddChild(record){
  459. this.loadParent = true
  460. let obj = {}
  461. obj[this.pidField] = record['id']
  462. this.$refs.modalForm.add(obj);
  463. },
  464. handleDeleteNode(id) {
  465. if(!this.url.delete){
  466. this.$message.error("请设置url.delete属性!")
  467. return
  468. }
  469. var that = this;
  470. deleteAction(that.url.delete, {id: id}).then((res) => {
  471. if (res.success) {
  472. that.loadData(1)
  473. } else {
  474. that.$message.warning(res.message);
  475. }
  476. });
  477. },
  478. batchDel(){
  479. if(this.selectedRowKeys.length<=0){
  480. this.$message.warning('请选择一条记录!');
  481. return false;
  482. }else{
  483. let ids = "";
  484. let that = this;
  485. that.selectedRowKeys.forEach(function(val) {
  486. ids+=val+",";
  487. });
  488. that.$confirm({
  489. title:"确认删除",
  490. content:"是否删除选中数据?",
  491. onOk: function(){
  492. that.handleDeleteNode(ids)
  493. that.onClearSelected();
  494. }
  495. });
  496. }
  497. },
  498. getSuperFieldList(){
  499. <#include "/common/utils.ftl">
  500. let fieldList=[];
  501. <#list columns as po>
  502. fieldList.push(${superQueryFieldList(po)})
  503. </#list>
  504. this.superFieldList = fieldList
  505. }
  506. }
  507. }
  508. </script>
  509. <style scoped>
  510. @import '~@assets/less/common.less';
  511. </style>