archivetreeRule.vue 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071
  1. <template>
  2. <basic-container
  3. ref="container"
  4. style="height:100%;"
  5. >
  6. <el-row class="h-100p">
  7. <el-col :span="12" class=" h-100p">
  8. <div class="h-100p flex flex-d-c ov-hidden">
  9. <el-tabs v-model="activeName" @tab-click="handleClick">
  10. <el-tab-pane label="竣工档案目录" name="first">
  11. </el-tab-pane>
  12. <el-tab-pane label="文书档案目录" name="second">
  13. </el-tab-pane>
  14. </el-tabs>
  15. <div class="scrollClass " style="height:100%">
  16. <!-- <h2>归档目录树</h2> -->
  17. <el-input
  18. placeholder="输入关键字进行过滤"
  19. clearable
  20. v-model="filterText"
  21. >
  22. </el-input>
  23. <div style="height:100%;overflow-y: auto;" class="scrollClass ">
  24. <el-scrollbar style="height:75%">
  25. <el-tree
  26. style="box-sizing: border-box;"
  27. v-show="!filterText"
  28. ref="trees1"
  29. :props="props"
  30. :load="loadNode"
  31. node-key="id"
  32. :default-expanded-keys="defaultExpandedKeys"
  33. :current-node-key="curreenttid"
  34. @node-click="nodeClick"
  35. lazy >
  36. <span
  37. class="custom-tree-node flexStar"
  38. style="flex: 1;width: 100%;justify-content: flex-start;"
  39. :class="data.moreShow ? 'show' : ''"
  40. slot-scope="{ node, data }"
  41. @mouseover="mouseOver(data)"
  42. @mouseleave="mouseLeave(data)"
  43. >
  44. <div v-if="data.title&&data.title.length<=25">{{data.title | ellipsis}}</div>
  45. <el-tooltip v-if="data.title&&data.title.length>25" :content="data.title" raw-content placement="top-start" effect="light">
  46. <span v-if="data.title &&data.title.length <=25">{{ data.title }}</span>
  47. <span v-if="data.title && data.title.length > 25"> {{data.title | ellipsis}}</span>
  48. </el-tooltip>
  49. <span
  50. class="marleft10"
  51. v-show="data.moreShow"
  52. >
  53. <div class="normal-black ">
  54. <div >
  55. <el-link :underline="false">
  56. <i
  57. class="el-icon-menu "
  58. @click.stop="showMenu($event,data, node)"
  59. v-if="node.level != 1"
  60. ></i>
  61. <i
  62. class="el-icon-refresh"
  63. @click="synctree(data, node)"
  64. v-if="node.level == 1"
  65. ></i>
  66. </el-link>
  67. <!-- 因右键自定义菜单事件需要获取当前点击的位置,所以此处绑定动态样式来控制菜单实时跟踪鼠标右键点击位置 -->
  68. <ul
  69. v-show="menuvisible"
  70. :style="{ left: menuleft + 'px', top: menutop + 'px' }"
  71. class="contextmenu"
  72. >
  73. <li v-for="item in menusData" :key="item" @click="menuClick($event,item,data,node)">
  74. <i :class="item.icon"></i>
  75. <span>{{item.label}}</span>
  76. </li>
  77. </ul>
  78. </div>
  79. </div>
  80. </span>
  81. </span>
  82. </el-tree>
  83. <el-tree
  84. v-show="filterText"
  85. :props="props"
  86. :data="data"
  87. node-key="id"
  88. ref="trees2"
  89. :default-expand-all="true"
  90. :filter-node-method="filterNode"
  91. :default-expanded-keys="defaultExpandedKeys"
  92. :current-node-key="curreenttid"
  93. @node-click="nodeClick"
  94. >
  95. <span
  96. class="custom-tree-node flexStar"
  97. style="flex: 1;width: 100%;justify-content: flex-start;"
  98. :class="data.moreShow ? 'show' : ''"
  99. slot-scope="{ node, data }"
  100. @mouseover="mouseOver(data)"
  101. @mouseleave="mouseLeave(data)"
  102. >
  103. <div v-if="data.title&&data.title.length<=25">{{data.title | ellipsis}}</div>
  104. <el-tooltip v-if="data.title&&data.title.length>25" :content="data.title" raw-content placement="top-start" effect="light">
  105. <span v-if="data.title &&data.title.length <=25">{{ data.title }}</span>
  106. <span v-if="data.title && data.title.length > 25"> {{data.title | ellipsis}}</span>
  107. </el-tooltip>
  108. <span
  109. class="marleft10"
  110. v-show="data.moreShow"
  111. >
  112. <div class="normal-black ">
  113. <div >
  114. <el-link :underline="false">
  115. <i
  116. class="el-icon-menu "
  117. @click.stop="showMenu($event,data, node)"
  118. v-if="node.level != 1"
  119. ></i>
  120. <i
  121. class="el-icon-refresh"
  122. @click="synctree(data, node)"
  123. v-if="node.level == 1"
  124. ></i>
  125. </el-link>
  126. <!-- 因右键自定义菜单事件需要获取当前点击的位置,所以此处绑定动态样式来控制菜单实时跟踪鼠标右键点击位置 -->
  127. <ul
  128. v-show="menuvisible"
  129. :style="{ left: menuleft + 'px', top: menutop + 'px' }"
  130. class="contextmenu"
  131. >
  132. <li v-for="item in menusData" :key="item" @click="menuClick($event,item,data,node)">
  133. <i :class="item.icon"></i>
  134. <span>{{item.label}}</span>
  135. </li>
  136. </ul>
  137. </div>
  138. </div>
  139. </span>
  140. </span>
  141. </el-tree>
  142. </el-scrollbar >
  143. </div>
  144. </div>
  145. </div>
  146. </el-col>
  147. <el-col :span="12" class=" h-100p">
  148. <basic-container class=" h-100p ">
  149. <div class="peizhi h-100p ov-hidden" v-loading="rightTreeLoading">
  150. <el-tabs v-model="activetabName" @tab-click="handletabClick">
  151. <el-tab-pane label="立卷规则" name="second">
  152. <el-row style="margin-bottom:15px">
  153. <el-button type="primary" plain @click="setHigh">设置为最高并卷层级</el-button>
  154. <el-button type="primary" plain @click="setType">设置为分类卷并卷</el-button>
  155. <el-button type="primary" plain @click="setAlone">设置为独立组卷</el-button>
  156. </el-row>
  157. </el-tab-pane>
  158. <el-tab-pane label="工程文件入口配置" name="first"></el-tab-pane>
  159. </el-tabs>
  160. <div class="scrollClass" v-if="activetabName==='second'" style="height:100%;">
  161. <el-scrollbar style="height:80%">
  162. <el-tree
  163. :props="Rightprops"
  164. :data="rightData"
  165. node-key="id"
  166. ref="settree"
  167. class="filter-tree"
  168. show-checkbox :check-strictly="true"
  169. @check="handleCheckChange"
  170. :default-expanded-keys="defaultExpandedKeys1"
  171. :current-node-key="curreenttid1"
  172. >
  173. <div class="custom-tree-node" slot-scope="{ node, data }" @mouseover="mouseOver(data)" style="flex: 1;width: 100%;justify-content: flex-start;"
  174. @mouseleave="mouseLeave(data)">
  175. <!-- <span>{{ node.label }}</span> -->
  176. <span v-if="node.label&&node.label.length<=25">{{node.label | ellipsis1}}</span>
  177. <el-tooltip v-if="node.label&&node.label.length>25" :content="node.label" raw-content placement="top-start" effect="light">
  178. <span v-if="node.label &&node.label.length <=25">{{node.label}}</span>
  179. <span v-if="node.label && node.label.length > 25"> {{node.label | ellipsis1}}</span>
  180. </el-tooltip>
  181. <span class="marleft10"
  182. v-show="data.moreShow">
  183. <div class="config_type" v-if="data.archiveAutoType == 1&&data.archiveAutoGroupSelect == 1">最</div>
  184. <div class="config_type" v-if="data.archiveAutoType == 2&&data.archiveAutoGroupSelect == 1">分</div>
  185. <div class="config_type" v-if="data.archiveAutoType == 3&&data.archiveAutoGroupSelect == 1">独</div>
  186. <el-button
  187. type="text"
  188. size="mini"
  189. @click.stop="() => viewConfig(data,node)">
  190. 查看配置
  191. </el-button>
  192. <el-link @click.stop="removeArchive(data)" type="danger" :underline="false" class="marleft10"><i class="el-icon-delete"></i></el-link>
  193. </span>
  194. </div>
  195. </el-tree>
  196. </el-scrollbar>
  197. </div>
  198. <div class="flexEnd" v-if="isentryTree&&activetabName==='first'">
  199. <i
  200. @click="rightPushTree"
  201. class="el-icon-plus"
  202. style="backgroundColor:#2A97DF;color:#fff;fontSize:20px;cursor: pointer;"
  203. ></i>
  204. </div>
  205. <div class="scrollClass" v-if="isentryTree&&activetabName==='first'" style="height:100%">
  206. <el-scrollbar style="height:80%">
  207. <el-tree
  208. :props="Rightprops"
  209. :data="rightData"
  210. node-key="id"
  211. ref="tree"
  212. class="filter-tree"
  213. >
  214. <div class="custom-tree-node" slot-scope="{ node, data }" @mouseover="mouseOver(data)" style="flex: 1;width: 100%;justify-content: flex-start;"
  215. @mouseleave="mouseLeave(data)">
  216. <!-- <span>{{ node.label }}</span> -->
  217. <span v-if="node.label&&node.label.length<=25">{{node.label | ellipsis1}}</span>
  218. <el-tooltip v-if="node.label&&node.label.length>25" :content="node.label" raw-content placement="top-start" effect="light">
  219. <span v-if="node.label &&node.label.length <=25">{{node.label}}</span>
  220. <span v-if="node.label && node.label.length > 25"> {{node.label | ellipsis1}}</span>
  221. </el-tooltip>
  222. </div>
  223. </el-tree>
  224. </el-scrollbar>
  225. </div>
  226. </div>
  227. </basic-container>
  228. </el-col>
  229. </el-row>
  230. <!-- 新增编辑 -->
  231. <el-dialog
  232. :title="form.id?'编辑':'新增'"
  233. :visible.sync="treeTap"
  234. width="700px"
  235. :modal-append-to-body="false"
  236. @close="treeClose"
  237. >
  238. <div>
  239. <el-form
  240. ref="form"
  241. :model="form"
  242. label-width="120px"
  243. :rules="rules"
  244. >
  245. <el-form-item
  246. label="节点名称"
  247. prop="nodeName"
  248. >
  249. <el-input
  250. v-model="form.nodeName"
  251. style="width:400px;"
  252. ></el-input>
  253. </el-form-item>
  254. <el-form-item
  255. label="岗位类型"
  256. prop="postType"
  257. >
  258. <el-select
  259. v-model="form.postType"
  260. placeholder="请选择岗位"
  261. style="width:400px;"
  262. >
  263. <el-option
  264. v-for="item in JobTypeList"
  265. :key="item.id"
  266. :label="item.title"
  267. :value="item.id"
  268. ></el-option>
  269. </el-select>
  270. </el-form-item>
  271. <el-form-item
  272. label="节点类型"
  273. prop="nodeType"
  274. >
  275. <el-select
  276. v-model="form.nodeType"
  277. placeholder="请选择节点"
  278. style="width:400px;"
  279. >
  280. <el-option
  281. v-for="item in nodeTypeList"
  282. :key="item.value"
  283. :label="item.label"
  284. :value="item.value"
  285. ></el-option>
  286. </el-select>
  287. </el-form-item>
  288. <el-form-item
  289. label="工程类型"
  290. prop="projectType"
  291. >
  292. <el-select
  293. v-model="form.projectType"
  294. placeholder="工程类型"
  295. style="width:400px;"
  296. >
  297. <el-option
  298. v-for="item in projectTypeList"
  299. :key="item.value"
  300. :label="item.label"
  301. :value="item.value"
  302. ></el-option>
  303. </el-select>
  304. </el-form-item>
  305. <el-form-item
  306. label="储存类型"
  307. prop="storageType"
  308. v-if="form.nodeType==1"
  309. >
  310. <el-select
  311. v-model="form.storageType"
  312. style="width:400px;"
  313. placeholder="请选择"
  314. >
  315. <el-option
  316. v-for="item in storageTypeList"
  317. :key="item.value"
  318. :label="item.label"
  319. :value="item.value"
  320. ></el-option>
  321. </el-select>
  322. </el-form-item>
  323. <template v-if="form.nodeType==2">
  324. <el-form-item
  325. label="是否存储节点"
  326. prop="isStorageNode"
  327. >
  328. <el-select
  329. v-model="form.isStorageNode"
  330. style="width:400px;"
  331. >
  332. <el-option
  333. v-for="item in storageNodeList"
  334. :key="item.value"
  335. :label="item.label"
  336. :value="item.value"
  337. ></el-option>
  338. </el-select>
  339. </el-form-item>
  340. <el-form-item
  341. label="并卷规则"
  342. prop="archiveAutoType"
  343. >
  344. <el-select
  345. v-model="form.archiveAutoType"
  346. style="width:400px;"
  347. >
  348. <el-option
  349. v-for="item in ruleTypeList"
  350. :key="item.value"
  351. :label="item.label"
  352. :value="item.value"
  353. ></el-option>
  354. </el-select>
  355. </el-form-item>
  356. <template v-if="form.isStorageNode==1">
  357. <el-form-item
  358. label="保管期限"
  359. prop="storageTime"
  360. >
  361. <el-select
  362. v-model="form.storageTime"
  363. style="width:400px;"
  364. >
  365. <el-option
  366. v-for="item in timeList"
  367. :key="item.value"
  368. :label="item.label"
  369. :value="item.value"
  370. ></el-option>
  371. </el-select>
  372. </el-form-item>
  373. <el-form-item
  374. label="储存类型"
  375. prop="storageType"
  376. >
  377. <el-select
  378. v-model="form.storageType"
  379. style="width:400px;"
  380. placeholder="请选择"
  381. >
  382. <el-option
  383. v-for="item in storageTypeList"
  384. :key="item.value"
  385. :label="item.label"
  386. :value="item.value"
  387. ></el-option>
  388. </el-select>
  389. </el-form-item>
  390. <!-- <el-form-item
  391. label="是否竣工图"
  392. prop="isBuiltDrawing"
  393. >
  394. <el-select
  395. v-model="form.isBuiltDrawing"
  396. style="width:400px;"
  397. >
  398. <el-option
  399. v-for="item in builtDrawingList"
  400. :key="item.value"
  401. :label="item.label"
  402. :value="item.value"
  403. ></el-option>
  404. </el-select>
  405. </el-form-item> -->
  406. <el-form-item
  407. label="是否接口节点"
  408. prop="isInterfaceNode"
  409. >
  410. <el-select
  411. v-model="form.isInterfaceNode"
  412. style="width:400px;"
  413. >
  414. <el-option
  415. v-for="item in interfaceNodeList"
  416. :key="item.value"
  417. :label="item.label"
  418. :value="item.value"
  419. ></el-option>
  420. </el-select>
  421. </el-form-item>
  422. <template v-if="form.isInterfaceNode==1">
  423. <el-form-item label="选择接口类型">
  424. <el-select
  425. v-model="form.interfaceType"
  426. style="width:400px;"
  427. >
  428. <el-option
  429. v-for="item in interfaceTypeList"
  430. :key="item.value"
  431. :label="item.label"
  432. :value="item.value"
  433. ></el-option>
  434. </el-select>
  435. </el-form-item>
  436. </template>
  437. </template>
  438. </template>
  439. <!-- 数字化文件上传 -->
  440. <template v-if="form.nodeType==1">
  441. <el-form-item
  442. label="关联类型"
  443. prop="associationType"
  444. >
  445. <el-select
  446. v-model="form.associationType"
  447. style="width:400px;"
  448. placeholder="请选择"
  449. >
  450. <el-option
  451. v-for="item in associationTypeList"
  452. :key="item.value"
  453. :label="item.label"
  454. :value="item.value"
  455. ></el-option>
  456. </el-select>
  457. </el-form-item>
  458. <template v-if="form.associationType==1">
  459. <el-form-item
  460. label="业内资料类型"
  461. prop="majorDataType"
  462. >
  463. <el-checkbox-group v-model="form.majorDataType">
  464. <el-checkbox
  465. v-for="item in majorDataTypeList"
  466. :key="item.dictKey"
  467. :label="item.dictKey"
  468. name="type"
  469. >{{item.dictValue}}</el-checkbox>
  470. </el-checkbox-group>
  471. </el-form-item>
  472. <el-form-item
  473. label="显示层级"
  474. prop="displayHierarchy"
  475. >
  476. <el-select
  477. v-model="form.displayHierarchy"
  478. style="width:400px;"
  479. placeholder="请选择"
  480. >
  481. <el-option
  482. v-for="item in displayHierarchyList"
  483. :key="item.dictKey"
  484. :label="item.dictValue"
  485. :value="item.dictKey"
  486. ></el-option>
  487. </el-select>
  488. </el-form-item>
  489. </template>
  490. <template v-if="form.associationType==2">
  491. <el-form-item label="试验文件类型" prop="expDataTypes">
  492. <el-checkbox-group v-model="form.expDataTypes">
  493. <el-checkbox v-for="item in contractTrialTypes" :key="item.dictKey" :label="item.dictKey">{{item.dictValue}}</el-checkbox>
  494. </el-checkbox-group>
  495. </el-form-item>
  496. </template>
  497. <template v-if="form.associationType==6">
  498. <el-form-item label="日志文件类型" prop="contractLogTypes">
  499. <el-checkbox-group v-model="form.contractLogTypes">
  500. <el-checkbox v-for="item in contractLogTypes" :key="item.dictKey" :label="item.dictKey">{{item.dictValue}}</el-checkbox>
  501. </el-checkbox-group>
  502. </el-form-item>
  503. </template>
  504. </template>
  505. </el-form>
  506. </div>
  507. <span
  508. slot="footer"
  509. class="dialog-footer"
  510. >
  511. <el-button @click="treeTap=false">取 消</el-button>
  512. <el-button
  513. type="primary"
  514. @click="saveTree"
  515. >保 存</el-button>
  516. </span>
  517. </el-dialog>
  518. <!-- 右侧树 -->
  519. <el-dialog
  520. title="上传文件入口显示配置"
  521. :visible.sync="pushfileTap"
  522. :modal-append-to-body='false'
  523. width="800px"
  524. @close="pushFileClose"
  525. >
  526. <div style="width: 100%;overflow-x: auto;">
  527. <el-tree
  528. :props="dialogProps"
  529. show-checkbox
  530. :data="dialogData"
  531. node-key="id"
  532. accordion
  533. ref="trees"
  534. class="filter-tree"
  535. >
  536. </el-tree>
  537. </div>
  538. <span
  539. slot="footer"
  540. class="dialog-footer"
  541. >
  542. <el-button @click="pushfileTap = false">取 消</el-button>
  543. <el-button
  544. type="primary"
  545. @click="saveFile"
  546. >确 定</el-button>
  547. </span>
  548. </el-dialog>
  549. <!-- wbs树排序弹框 -->
  550. <el-dialog
  551. title="调整排序"
  552. :visible="sortTag"
  553. width="50%"
  554. append-to-body
  555. >
  556. <ManualSorting
  557. v-if="sortTag2"
  558. @bianhua='bianhua()'
  559. :sort='sort'
  560. />
  561. <span
  562. slot="footer"
  563. class="dialog-footer"
  564. >
  565. <el-button @click="sortTag=false,sortTag2=false">取 消</el-button>
  566. <el-button
  567. type="primary"
  568. @click="editSort()"
  569. >确 定</el-button>
  570. </span>
  571. </el-dialog>
  572. <!-- 设置最高层级 -->
  573. <el-dialog
  574. :title="setName"
  575. :visible.sync="highVisible"
  576. width="50%"
  577. append-to-body
  578. >
  579. <el-checkbox-group v-model="checkList" class="wraplabel">
  580. <div v-for="node in nodesList" :key="node.id">
  581. <el-checkbox :label="node.id" style="margin-bottom:10px;">{{node.pathName}}</el-checkbox>
  582. </div>
  583. </el-checkbox-group>
  584. <span
  585. slot="footer"
  586. class="dialog-footer"
  587. >
  588. <el-button @click="highVisible=false,highVisible=false">取 消</el-button>
  589. <el-button
  590. type="primary"
  591. @click="setRecordsHandle()"
  592. >确 定</el-button>
  593. </span>
  594. </el-dialog>
  595. <!-- 查看配置 -->
  596. <!-- <el-dialog
  597. title="设置最高并卷层级"
  598. :visible.sync="configVisible"
  599. width="50%"
  600. append-to-body
  601. >
  602. <el-tabs v-model="configactiveName" @tab-click="confighandleClick">
  603. <el-tab-pane label="最高层级配置" name="first"></el-tab-pane>
  604. <el-tab-pane label="分类并卷配置" name="second"></el-tab-pane>
  605. <el-tab-pane label="独立组卷配置" name="third"></el-tab-pane>
  606. </el-tabs>
  607. <el-checkbox-group v-model="checkList">
  608. <el-checkbox label="复选框 A" style="margin-bottom:10px"></el-checkbox><br/>
  609. <el-checkbox label="复选框 B" style="margin-bottom:10px"></el-checkbox><br/>
  610. <el-checkbox label="复选框 C" style="margin-bottom:10px"></el-checkbox><br/>
  611. </el-checkbox-group>
  612. <span
  613. slot="footer"
  614. class="dialog-footer"
  615. >
  616. <el-button @click="configVisible=false,configVisible=false">取 消</el-button>
  617. <el-button
  618. type="primary"
  619. @click="editSort()"
  620. >确 定</el-button>
  621. </span>
  622. </el-dialog> -->
  623. <el-dialog
  624. :visible.sync="configVisible"
  625. width="50%"
  626. append-to-body
  627. >
  628. <div v-if="configInfo && configInfo.type">
  629. <div class="config-type-name">
  630. <span>配置类别:</span>
  631. <span v-if="configInfo.type == 1">最高并卷层级</span>
  632. <span v-if="configInfo.type == 2">分类并卷</span>
  633. <span v-if="configInfo.type == 3">独立组卷</span>
  634. </div>
  635. <template v-if="configInfo.type !== 2">
  636. <div class="config-allname">
  637. {{configInfo.data.allName}}
  638. </div>
  639. </template>
  640. <template v-else>
  641. <el-tree :data="configInfo.data.tree" :props="{label: 'nodeName'}" show-checkbox :check-strictly="true" :default-checked-keys="checkedKeys" :default-expanded-keys="checkedKeys" node-key="id" ref="configtree" @check="configCheckChange" class="config-allname"></el-tree>
  642. </template>
  643. </div>
  644. <div style="text-align: center;font-size: 22px;" v-else>
  645. 该节点尚未配置
  646. </div>
  647. <span
  648. slot="footer"
  649. class="dialog-footer"
  650. >
  651. <el-button @click="configVisible=false">取消查看</el-button>
  652. <el-button v-if="configInfo && configInfo.type == 2"
  653. type="primary"
  654. @click="changeConfig"
  655. >确认修改配置</el-button>
  656. </span>
  657. </el-dialog>
  658. </basic-container>
  659. </template>
  660. <script>
  661. import ManualSorting from '@/components/WbsTree/ManualSorting'
  662. import { archiveTreeInit, lazyTree, dictionary, remove, archiveTreeSave, archiveTreeUpdate, archiveTreeDetail, archiveTreetree, submitDisplayConfigTree, getSameGradeNode, submitArchiveTreeSort,syncProjectTree,saveArchiveAutoRule,getArchiveAutoRule,updateArchiveAutoRule,removeArchiveAutoRule } from "@/api/manager/archivetree";
  663. import {getWbsList} from "@/api/manager/wbsinfo";
  664. import { getToken } from '@/util/auth';
  665. import { roletree } from "@/api/system/role.js";
  666. import { getDictionaryBiz } from "@/api/other";
  667. // import logoVue from '../../page/index/logo.vue';
  668. import { getStore, setStore } from "@/util/store";
  669. export default {
  670. components: {
  671. ManualSorting,
  672. },
  673. data () {
  674. return {
  675. publictreeoptions: [],
  676. publictreevalue:'',
  677. testtreeoptions: [],
  678. testtreevalue:'',
  679. activeName: 'second',
  680. activetabName:'second',
  681. configactiveName:'second',
  682. isentryTree:true,
  683. checkList:[],
  684. //#region 左侧树
  685. defaultExpanded: [],//默认选中的节点
  686. filterText: '',//筛选条件
  687. rulefilterText:'',
  688. treeNode: {},
  689. treeParent:{},
  690. nodeNames: '',
  691. token: '',
  692. props: {
  693. label: 'title',
  694. children: 'children',
  695. isLeaf: 'hasChildren'
  696. },
  697. data: [],//树节点枚举值
  698. //#endregion
  699. //#region 新增编辑节点弹框
  700. treeTap: false,
  701. form: {
  702. id: '',//新增还是编辑
  703. parentId: '', //上级节点id
  704. nodeName: "", //节点名称
  705. nodeType: '', // 节点类型 2 = 数字化上传文件
  706. postType: '', //岗位类型
  707. isStorageNode: '', //是否为存储节点
  708. // isBuiltDrawing: '', //竣工图
  709. isInterfaceNode: '', //是否接口节点
  710. interfaceType: '', //选择接口类型
  711. associationType: '', //关联类型
  712. majorDataType: [], //内业资料类型
  713. displayHierarchy: '', //显示层级
  714. projectType:'',//工程类型
  715. storageType:'',//储存类型
  716. expDataTypes:[],//文件类型
  717. contractLogTypes: [],
  718. storageTime:'3',
  719. archiveAutoType:1,//并卷规则
  720. },
  721. rules: {
  722. nodeName: [{ required: true, message: '请输入节点名称', trigger: 'blur' }],
  723. postType: [{ required: true, message: '请选择岗位类型', trigger: 'change' }],
  724. nodeType: [{ required: true, message: '请选择节点类型', trigger: 'change' }],
  725. isStorageNode: [{ required: true, message: '请选择存储节点', trigger: 'change' }],
  726. // isBuiltDrawing: [{ required: true, message: '请选择竣工图', trigger: 'change' }],
  727. isInterfaceNode: [{ required: true, message: '请选择接口节点', trigger: 'change' }],
  728. interfaceType: [{ required: true, message: '请选择接口类型', trigger: 'change' }],
  729. associationType: [{ required: true, message: '请选择关联类型', trigger: 'change' }],
  730. majorDataType: [{ required: true, message: '请选择业内资料类型', trigger: 'change' }],
  731. displayHierarchy: [{ required: true, message: '请选择显示层级', trigger: 'change' }],
  732. projectType: [{ required: true, message: '请选择工程类型', trigger: 'change' }],
  733. storageType: [{ required: true, message: '请选择储存类型', trigger: 'change' }],
  734. expDataTypes: [{ required: true, message: '请选择文件类型', trigger: 'change' }],
  735. contractLogType: [{ required: true, message: '请选择业内资料类型', trigger: 'change' }],
  736. },
  737. JobTypeList: [],//岗位类型枚举
  738. nodeTypeList: [
  739. {
  740. label: '关联电子原生文件',
  741. value: 1
  742. }, {
  743. label: '数字化上传文件',
  744. value: 2
  745. },
  746. ],//节点类型枚举
  747. projectTypeList:[
  748. {
  749. label: '水利水电工程',
  750. value: 1
  751. }, {
  752. label: '公路工程',
  753. value: 2
  754. }, {
  755. label: '全部',
  756. value: 3
  757. },
  758. ],//工程类型枚举
  759. storageTypeList:[
  760. {
  761. label: '普通',
  762. value: 1
  763. },{
  764. label: '竣工图',
  765. value: 2
  766. },{
  767. label: '计量',
  768. value: 3
  769. },{
  770. label: '质检',
  771. value: 4
  772. },{
  773. label: '声像',
  774. value: 5
  775. },{
  776. label: '隐蔽',
  777. value: 6
  778. },{
  779. label: '原材试验',
  780. value: 7
  781. },{
  782. label: '管理文件',
  783. value: 8
  784. },{
  785. label: '变更令',
  786. value: 9
  787. },
  788. ],
  789. ruleTypeList: [
  790. {
  791. label: '单独组卷',
  792. value: 1
  793. }, {
  794. label: '分类并卷',
  795. value: 2
  796. },
  797. {
  798. label: '最高组卷',
  799. value: 3
  800. },
  801. ],
  802. timeList: [
  803. { label: '永久', value: '3' },
  804. { label: '30年', value: '2' },
  805. { label: '10年', value: '1' },
  806. ],
  807. //储存类型枚举
  808. storageNodeList: [{
  809. label: '是',
  810. value: 1
  811. }, {
  812. label: '否',
  813. value: 2
  814. },],//存储节点枚举
  815. builtDrawingList: [{
  816. label: '是',
  817. value: 1
  818. }, {
  819. label: '否',
  820. value: 2
  821. },],//竣工图枚举
  822. interfaceNodeList: [{
  823. label: '是',
  824. value: 1
  825. }, {
  826. label: '否',
  827. value: 2
  828. },],//接口节点枚举
  829. interfaceTypeList: [
  830. {
  831. label: '试验接口',
  832. value: 1
  833. }, {
  834. label: '计量接口',
  835. value: 2
  836. },
  837. ],//选择接口类型枚举
  838. associationTypeList: [{
  839. label: '质检资料',
  840. value: 1
  841. },
  842. {
  843. label: '试验资料',
  844. value: 2
  845. },
  846. {
  847. label: '影像资料',
  848. value: 3
  849. },
  850. {
  851. label: '台账资料',
  852. value: 4
  853. },{
  854. label: '首件资料',
  855. value: 5
  856. },{
  857. label: '日志文件',
  858. value: 6
  859. },
  860. ],//
  861. fileTypeList:[
  862. {
  863. label: '配合比',
  864. value: 1
  865. },
  866. {
  867. label: '原材',
  868. value: 2
  869. },{
  870. label: '汇总',
  871. value: 3
  872. },{
  873. label: '设备',
  874. value: 4
  875. },{
  876. label: '外委(第三方)',
  877. value: 5
  878. },
  879. ],
  880. majorDataTypeList: [],//
  881. displayHierarchyList: [],//
  882. //#endregion
  883. //#region 右侧树节点
  884. pushfileTap: false,//开关
  885. Rightprops: {
  886. label: 'title'
  887. },
  888. rightData: [],
  889. rightTreeLoading:false,//右侧树加载
  890. //#endregion
  891. //#region 右侧树弹框
  892. dialogProps: {
  893. label: 'title'
  894. },
  895. dialogData: [],
  896. checkXuan: [],
  897. //#endregion
  898. heights: '',
  899. sortTag2: false,
  900. sortTag: false,
  901. sort: [],
  902. ruledata: [{
  903. id: 1,
  904. label: '一级 1',
  905. children: [{
  906. id: 4,
  907. label: '二级 1-1',
  908. children: [{
  909. id: 9,
  910. label: '三级 1-1-1'
  911. }, {
  912. id: 10,
  913. label: '三级 1-1-2'
  914. }]
  915. }]
  916. }, {
  917. id: 2,
  918. label: '一级 2',
  919. children: [{
  920. id: 5,
  921. label: '二级 2-1'
  922. }, {
  923. id: 6,
  924. label: '二级 2-2'
  925. }]
  926. }, {
  927. id: 3,
  928. label: '一级 3',
  929. children: [{
  930. id: 7,
  931. label: '二级 3-1'
  932. }, {
  933. id: 8,
  934. label: '二级 3-2'
  935. }]
  936. }],
  937. ruledefaultProps: {
  938. children: 'children',
  939. label: 'label'
  940. },
  941. highVisible:false,
  942. configVisible:false,
  943. projectId:'',
  944. archiveAutoType:'',//最高1 分类2 独立3
  945. nodesList:[],
  946. configInfo:null,
  947. checkedKeys:[],//分类并卷 回显 勾选数组
  948. treeSelectId:'',//选中的划分树
  949. menusData:[
  950. {icon: 'el-icon-plus', label: '新增', key: "add"},
  951. {icon: 'el-icon-s-promotion', label: '编辑', key: "edit"},
  952. {icon: 'el-icon-sort', label: '排序', key: "sort"},
  953. {icon: 'el-icon-delete', label: '删除', key: "del"},
  954. {icon: 'el-icon-refresh', label: '同步', key: "sync"},
  955. ],//树组件操作菜单
  956. menuvisible:false,
  957. menuleft:20,
  958. menutop:0,
  959. defaultExpandedKeys:[],
  960. defaultExpandedKeys1:[],
  961. expandName: this.$route.fullPath,
  962. curreenttid:'',
  963. curreenttid1:'',
  964. contractLogTypes: [],
  965. contractTrialTypes: []
  966. }
  967. },
  968. computed:{
  969. setName(){
  970. let name = '';
  971. switch (this.archiveAutoType) {
  972. case 1:
  973. name = '设置最高并卷层级';
  974. break;
  975. case 2:
  976. name = '设置分类并卷层级';
  977. break;
  978. case 3:
  979. name = '设置单独并卷层级';
  980. break;
  981. }
  982. return name;
  983. }
  984. },
  985. methods: {
  986. //切换tabs
  987. handleClick(tab, event) {
  988. console.log(tab, event);
  989. },
  990. handletabClick(tab, event) {
  991. console.log(tab, event);
  992. },
  993. confighandleClick(tab, event) {
  994. console.log(tab, event);
  995. },
  996. setHigh(){
  997. if(this.showHighVisible()){
  998. this.archiveAutoType =1;
  999. }
  1000. //console.log('设置最高');
  1001. },
  1002. setType(){
  1003. if(this.showHighVisible()){
  1004. this.archiveAutoType =2;
  1005. }
  1006. //console.log('设置类型');
  1007. },
  1008. setAlone(){
  1009. if(this.showHighVisible()){
  1010. this.archiveAutoType =3;
  1011. }
  1012. //console.log('设置独立');
  1013. },
  1014. showHighVisible(){
  1015. let nodes = this.$refs.settree.getCheckedNodes();
  1016. if(nodes.length < 1){
  1017. this.$message({
  1018. message: '请先勾选节点,再进行设置',
  1019. type: 'warning'
  1020. });
  1021. return false;
  1022. }
  1023. let ids = [];
  1024. nodes.forEach((element)=>{
  1025. element.pathName = this.getTreeNodePath(element,'settree')
  1026. ids.push(element.id);
  1027. })
  1028. //console.log(nodes)
  1029. this.checkList = ids;
  1030. this.nodesList = nodes;
  1031. this.highVisible=true;
  1032. return true;
  1033. },
  1034. async viewConfig(data,node){
  1035. //获取节点展开路径
  1036. this.getExpandedKeys1(node);
  1037. setStore({
  1038. name: 'curreenttid1',
  1039. content: data.id,
  1040. type: true, //sessionStorage
  1041. });
  1042. this.configInfo = null;
  1043. const { data: res } = await getArchiveAutoRule({
  1044. nodeId:data.id,//归档树节点的id 或者 挂载wbs节点的ID(具体哪个ID待定)
  1045. iswbsNode:data.iswbsNode,//是否是wbs节点
  1046. projectId:this.projectId,// 系统级为0 项目级为项目id
  1047. wbsNode2ArchiveTreeNodeId:data.wbsNode2ArchiveTreeNodeId,// 这个树节点里面有(iswbsNode为true需传)
  1048. wbsId:this.treeSelectId // 这个就是一开始上面选择划分树的id(iswbsNode为true需传)
  1049. })
  1050. if (res.code == 200 && res.msg == "操作成功") {
  1051. //console.log(res.data)
  1052. if(res.data.type){
  1053. this.configInfo = res.data;
  1054. }else if(res.data.archiveAutoType){
  1055. this.configInfo = {
  1056. type:2,
  1057. data:res.data
  1058. }
  1059. this.checkedKeys = res.data.selectNodeIds.split(',');
  1060. }
  1061. this.configVisible=true
  1062. }
  1063. },
  1064. handleCheckChange(data, checks) {
  1065. //console.log(data, checks);
  1066. let array = checks.checkedNodes;
  1067. for (let index = 1; index < array.length; index++) {
  1068. const element = array[index];
  1069. if(element.iswbsNode !== array[0].iswbsNode){
  1070. //取消勾选
  1071. this.$refs.settree.setChecked(data.id,false,false)
  1072. this.$message({
  1073. message: '非wbs节点不能和wbs节点一起设置规则',
  1074. type: 'warning'
  1075. });
  1076. return;
  1077. }
  1078. }
  1079. },
  1080. handleentrybtn(){
  1081. console.log(this.entrybtn,'entrybtn');
  1082. this.isentryTree=false;
  1083. },
  1084. handlerulebtn(){
  1085. this.isentryTree=true;
  1086. console.log(this.rulebtn,'rulebtn');
  1087. },
  1088. savebtn(){
  1089. this.isentryTree=true;
  1090. },
  1091. paixuMD (data) {
  1092. this.sortTag = true
  1093. this.sortTag2 = true
  1094. this.curTreeData = data;
  1095. this.findWbsTreeSameLevel(data.id)
  1096. },
  1097. async findWbsTreeSameLevel (parentId) {//查询当前节点的同级节点
  1098. const { data: res } = await getSameGradeNode({ id: parentId })
  1099. //console.log(res);
  1100. if (res.code === 200) {
  1101. this.sort = res.data
  1102. }
  1103. },
  1104. bianhua () {
  1105. this.sortTag2 = false
  1106. this.$nextTick(() => {
  1107. this.sortTag2 = true
  1108. })
  1109. },
  1110. editSort () {//修改排序
  1111. let sortArr = this.sort, newArr = []
  1112. for (let i = 0; i < sortArr.length; i++) {
  1113. newArr.push({
  1114. id: sortArr[i].id,
  1115. nodeName: sortArr[i].nodeName
  1116. })
  1117. }
  1118. this.wbsTreeSort(newArr)
  1119. },
  1120. async wbsTreeSort (newArr) {//修改排序
  1121. const { data: res } = await submitArchiveTreeSort(newArr)
  1122. //console.log(res);
  1123. if (res.code == 200) {
  1124. this.sortTag = false
  1125. this.sortTag2 = false
  1126. //刷新页面
  1127. window.location.reload()
  1128. }
  1129. },
  1130. //#region 左侧树方法
  1131. async loadNode (node, resolve) {
  1132. console.log(node);
  1133. if (node.level === 0) {
  1134. let ks = await this.lazyTree(0)
  1135. if (ks.length) {
  1136. resolve(ks)
  1137. } else {
  1138. this.archiveTreeInit()
  1139. }
  1140. } else {
  1141. resolve(await this.lazyTree(node.data.id))
  1142. }
  1143. },
  1144. async archiveTreeInit () {//添加根节点
  1145. const { data: res } = await archiveTreeInit({
  1146. projectId:this.projectId//项目id
  1147. })
  1148. console.log(res);
  1149. if (res.code == 200 && res.msg == '操作成功') {
  1150. res.data.forEach(val => {
  1151. val.hasChildren = !val.hasChildren
  1152. });
  1153. return res.data
  1154. } else if (res.code == 200 && res.msg == "未查询到信息") {
  1155. return []
  1156. }
  1157. },
  1158. async lazyTree (parentId) {//树节点懒加载
  1159. const { data: res } = await lazyTree({
  1160. parentId,
  1161. // token: this.token,
  1162. projectId:this.projectId
  1163. })
  1164. console.log(res);
  1165. if (res.code == 200 && res.msg == '操作成功') {
  1166. res.data.forEach(val => {
  1167. val.hasChildren = !val.hasChildren
  1168. });
  1169. return res.data
  1170. } else if (res.code == 200 && res.msg == "未查询到信息") {
  1171. return []
  1172. }
  1173. },
  1174. mouseLeave (data) {
  1175. if (data.moreShow) {
  1176. this.$set(data, 'moreShow', false)
  1177. this.menuvisible=false
  1178. }
  1179. },
  1180. mouseOver (data) {
  1181. if (!data.moreShow) {
  1182. this.$set(data, 'moreShow', true)
  1183. }
  1184. },
  1185. //获取节点展开路径
  1186. getExpandedKeys(node) {
  1187. //console.log(node)
  1188. let expandedKeys = [];
  1189. while (node.parent) {
  1190. expandedKeys.push(node.data.id);
  1191. node = node.parent;
  1192. }
  1193. setStore({
  1194. name: this.expandName,
  1195. content: expandedKeys,
  1196. type: true, //sessionStorage
  1197. });
  1198. //console.log(expandedKeys)
  1199. },
  1200. getExpandedKeys1(node) {
  1201. //console.log(node)
  1202. let expandedKeys = [];
  1203. while (node.parent) {
  1204. expandedKeys.push(node.data.id);
  1205. node = node.parent;
  1206. }
  1207. setStore({
  1208. name: 'configkey',
  1209. content: expandedKeys,
  1210. type: true, //sessionStorage
  1211. });
  1212. //console.log(expandedKeys)
  1213. },
  1214. nodeClick(data,node){
  1215. //获取节点展开路径
  1216. this.getExpandedKeys(node);
  1217. setStore({
  1218. name: 'curreenttid',
  1219. content: data.id,
  1220. type: true, //sessionStorage
  1221. });
  1222. },
  1223. addtree (data, node) {//添加树
  1224. console.log(data);
  1225. if (this.JobTypeList.length == 0) {
  1226. this.roletree()
  1227. }
  1228. if (this.majorDataTypeList.length == 0) {
  1229. this.major_data_type()//内业资料类型
  1230. }
  1231. if (this.displayHierarchyList.length == 0) {
  1232. this.display_hierarchy()//显示层级
  1233. }
  1234. this.form.postType = data.postType
  1235. this.form.id = ''
  1236. this.form.parentId = data.id
  1237. if (this.filterText) {
  1238. this.defaultExpanded = [data.id]
  1239. }
  1240. this.form.contractLogTypes = []
  1241. this.form.expDataTypes = []
  1242. this.form.archiveAutoType=1
  1243. this.treeTap = true
  1244. },
  1245. async edittree (data,node) {//编辑树
  1246. if (this.JobTypeList.length == 0) {
  1247. this.roletree()
  1248. }
  1249. if (this.majorDataTypeList.length == 0) {
  1250. this.major_data_type()//内业资料类型
  1251. }
  1252. if (this.displayHierarchyList.length == 0) {
  1253. this.display_hierarchy()//显示层级
  1254. }
  1255. await this.archiveTreeDetail(data)
  1256. this.form.id = data.id
  1257. this.form.parentId = ''
  1258. this.treeNode = data
  1259. this.treeParent = node.parent.data
  1260. this.treeTap = true
  1261. },
  1262. deletetree (node) {//删除树
  1263. let _that = this
  1264. this.$confirm('是否删除此数据', '提示', {
  1265. distinguishCancelAndClose: true,
  1266. confirmButtonText: '确认',
  1267. cancelButtonText: '取消'
  1268. })
  1269. .then(() => {
  1270. this.remove(node.id).then(()=>{
  1271. _that.$refs.trees1.remove(node) //删除界面上的节点
  1272. this.archiveTreetree4()//全加载左侧树
  1273. }).catch(()=>{
  1274. })
  1275. })
  1276. .catch(() => {
  1277. });
  1278. },
  1279. async remove (id) {//删除接口
  1280. const { data: res } = await remove({ id })
  1281. console.log(res);
  1282. if (res.code == 200) {
  1283. this.$message({
  1284. type: 'success',
  1285. message: '删除成功'
  1286. })
  1287. }
  1288. },
  1289. async archiveTreeDetail (data) {//详情接口
  1290. console.log(data);
  1291. const { data: res } = await archiveTreeDetail({ id: data.id })
  1292. console.log(res);
  1293. if (res.code == 200) {
  1294. this.form.nodeName = res.data.fullName //节点名称
  1295. this.form.nodeType = res.data.nodeType // 节点类型 2 = 数字化上传文件
  1296. this.form.postType = res.data.postType //岗位类型
  1297. this.form.isStorageNode = res.data.isStorageNode //是否为存储节点
  1298. // this.form.isBuiltDrawing = res.data.isBuiltDrawing //竣工图
  1299. this.form.isInterfaceNode = res.data.isInterfaceNode //是否接口节点
  1300. this.form.interfaceType = res.data.interfaceType //选择接口类型
  1301. this.form.associationType = res.data.associationType //关联类型
  1302. // this.form.majorDataType = res.data.majorDataType.split(',') //内业资料类型
  1303. this.form.displayHierarchy = res.data.displayHierarchy //显示层级
  1304. this.form.projectType = res.data.projectType //工程类型
  1305. this.form.storageType = res.data.storageType //储存类型
  1306. if(res.data.contractTrialType){
  1307. this.form.expDataTypes = res.data.contractTrialType.split(',') //文件类型
  1308. }else{
  1309. this.form.expDataTypes = [];
  1310. }
  1311. if(res.data.majorDataType){
  1312. this.form.majorDataType = res.data.majorDataType.split(',') //文件类型
  1313. }else{
  1314. this.form.majorDataType = [];
  1315. }
  1316. //日志类型
  1317. let str
  1318. if (res.data.contractLogType) {
  1319. str = res.data.contractLogType
  1320. } else {
  1321. str = ''
  1322. }
  1323. this.form.contractLogTypes = str.split(',')
  1324. }
  1325. },
  1326. async archiveTreetree4 () {//全加载左侧树
  1327. const { data: res } = await archiveTreetree({
  1328. // token: this.token,
  1329. projectId:this.projectId
  1330. })
  1331. console.log(res);
  1332. if (res.code == 200 && res.msg == "操作成功") {
  1333. this.data = res.data
  1334. }
  1335. },
  1336. filterNode (value,data,node) {//筛选条件
  1337. if (!value) return true;
  1338. return data.title.indexOf(value) !== -1;
  1339. },
  1340. rulefilterNode (value,data,node) {//筛选条件
  1341. if (!value) return true;
  1342. return data.title.indexOf(value) !== -1;
  1343. },
  1344. //判断节点是否匹配
  1345. getReturnNode(node,_array,value){
  1346. let isPass = node.data && node.data.title && node.data.title.indexOf(value) !== -1;
  1347. isPass?_array.push(isPass):'';
  1348. //判断节点是否是父节点
  1349. if(!isPass && node.level!=1 && node.parent){
  1350. this.getReturnNode(node.parent,_array,value);
  1351. }
  1352. },
  1353. //#endregion
  1354. //#region 新增编辑节点弹框
  1355. treeClose () {//弹框关闭事件
  1356. this.form = {
  1357. parentId: '', //上级节点id
  1358. nodeName: "", //节点名称
  1359. nodeType: '', // 节点类型 2 = 数字化上传文件
  1360. postType: '', //岗位类型
  1361. isStorageNode: '', //是否为存储节点
  1362. // isBuiltDrawing: '', //竣工图
  1363. isInterfaceNode: '', //是否接口节点
  1364. interfaceType: '', //选择接口类型
  1365. associationType: '', //关联类型
  1366. majorDataType: [], //内业资料类型
  1367. displayHierarchy: '', //显示层级
  1368. projectType:'',//工程类型
  1369. storageType:'',//储存类型
  1370. expDataTypes:[],//文件类型
  1371. contractLogTypes: []
  1372. }
  1373. this.$refs.form.resetFields();
  1374. this.form.id = ''
  1375. this.treeTap = false
  1376. },
  1377. async roletree () {//岗位类型枚举
  1378. const { data: res } = await roletree()
  1379. console.log(res);
  1380. if (res.code == 200) {
  1381. this.JobTypeList = res.data
  1382. }
  1383. },
  1384. async major_data_type () {//内业资料类型
  1385. const { data: res } = await dictionary({ code: 'major_data_type' })
  1386. console.log(res);
  1387. if (res.code == 200) {
  1388. this.majorDataTypeList = res.data
  1389. }
  1390. },
  1391. async display_hierarchy () {//显示层级
  1392. const { data: res } = await dictionary({ code: 'display_hierarchy' })
  1393. console.log(res);
  1394. if (res.code == 200) {
  1395. this.displayHierarchyList = res.data
  1396. }
  1397. },
  1398. saveTree () {//保存按钮
  1399. console.log(this.form.postType,'this.form.postType');
  1400. if(this.treeParent.postType&&this.treeParent.postType!== this.form.postType){
  1401. this.$message.warning('岗位类型必须和父级节点岗位类型一致')
  1402. }else{
  1403. this.$refs.form.validate(val => {
  1404. if (val) {
  1405. if (this.form.nodeType == 2) {
  1406. if (this.form.isStorageNode == 1) {
  1407. if (this.form.isInterfaceNode == 1) {
  1408. this.baocun({
  1409. id: this.form.id,
  1410. parentId: this.form.parentId, //上级节点id
  1411. nodeName: this.form.nodeName, //节点名称
  1412. nodeType: this.form.nodeType, // 节点类型
  1413. postType: this.form.postType, //岗位类型
  1414. isStorageNode: this.form.isStorageNode, //是否为存储节点
  1415. // isBuiltDrawing: this.form.isBuiltDrawing, //竣工图
  1416. isInterfaceNode: this.form.isInterfaceNode, //是否接口节点
  1417. interfaceType: this.form.interfaceType, //选择接口类型
  1418. projectType:this.form.projectType, //工程类型
  1419. storageType:this.form.storageType, //储存类型
  1420. projectId:this.projectId,//项目id
  1421. })
  1422. } else {
  1423. this.baocun({
  1424. id: this.form.id,
  1425. parentId: this.form.parentId, //上级节点id
  1426. nodeName: this.form.nodeName, //节点名称
  1427. nodeType: this.form.nodeType, // 节点类型
  1428. postType: this.form.postType, //岗位类型
  1429. isStorageNode: this.form.isStorageNode, //是否为存储节点
  1430. // isBuiltDrawing: this.form.isBuiltDrawing, //竣工图
  1431. isInterfaceNode: this.form.isInterfaceNode, //是否接口节点
  1432. projectType:this.form.projectType, //工程类型
  1433. storageType:this.form.storageType, //储存类型
  1434. projectId:this.projectId,//项目id
  1435. })
  1436. }
  1437. } else {
  1438. this.baocun({
  1439. id: this.form.id,
  1440. parentId: this.form.parentId, //上级节点id
  1441. nodeName: this.form.nodeName, //节点名称
  1442. nodeType: this.form.nodeType, // 节点类型
  1443. postType: this.form.postType, //岗位类型
  1444. isStorageNode: this.form.isStorageNode, //是否为存储节点
  1445. projectType:this.form.projectType, //工程类型
  1446. projectId:this.projectId,//项目id
  1447. })
  1448. }
  1449. } else if (this.form.nodeType == 1) {
  1450. if (this.form.associationType == 1) {
  1451. this.baocun({
  1452. id: this.form.id,
  1453. parentId: this.form.parentId, //上级节点id
  1454. nodeName: this.form.nodeName, //节点名称
  1455. nodeType: this.form.nodeType, // 节点类型
  1456. postType: this.form.postType, //岗位类型
  1457. associationType: this.form.associationType, //关联类型
  1458. majorDataType: this.form.majorDataType, //内业资料类型
  1459. displayHierarchy: this.form.displayHierarchy, //显示层级
  1460. projectType:this.form.projectType, //工程类型
  1461. storageType:this.form.storageType, //储存类型
  1462. projectId:this.projectId,//项目id
  1463. })
  1464. } else if(this.form.associationType == 2){
  1465. //试验资料
  1466. this.baocun({
  1467. id: this.form.id,
  1468. parentId: this.form.parentId, //上级节点id
  1469. nodeName: this.form.nodeName, //节点名称
  1470. nodeType: this.form.nodeType, // 节点类型
  1471. postType: this.form.postType, //岗位类型
  1472. associationType: this.form.associationType, //关联类型
  1473. contractTrialType: this.form.expDataTypes.join(','),//文件类型
  1474. projectType: this.form.projectType, //工程类型
  1475. storageType: this.form.storageType, //储存类型
  1476. projectId: this.projectId,//项目id
  1477. contractLogType: this.form.contractLogTypes.join(','),
  1478. })
  1479. }else {
  1480. this.baocun({
  1481. id: this.form.id,
  1482. parentId: this.form.parentId, //上级节点id
  1483. nodeName: this.form.nodeName, //节点名称
  1484. nodeType: this.form.nodeType, // 节点类型
  1485. postType: this.form.postType, //岗位类型
  1486. associationType: this.form.associationType, //关联类型
  1487. projectType:this.form.projectType, //工程类型
  1488. storageType:this.form.storageType, //储存类型
  1489. projectId:this.projectId,//项目id
  1490. contractLogType: this.form.contractLogTypes.join(','),
  1491. })
  1492. }
  1493. }
  1494. }
  1495. })
  1496. if(this.menuKey='edit'){
  1497. //刷新页面
  1498. window.location.reload()
  1499. }
  1500. }
  1501. },
  1502. async baocun (da) {
  1503. if (da.majorDataType) {
  1504. if (da.majorDataType.length > 0) {
  1505. let das = ''
  1506. da.majorDataType.forEach((val, key) => {
  1507. das += val
  1508. if (da.majorDataType.length - 1 != key) {
  1509. das += ','
  1510. }
  1511. })
  1512. da.majorDataType = das
  1513. }
  1514. }
  1515. if (this.form.id) {
  1516. await this.archiveTreeUpdate(da)
  1517. } else {
  1518. await this.archiveTreeSave(da)
  1519. }
  1520. if (this.filterText) {
  1521. this.archiveTreetree4()
  1522. }
  1523. },
  1524. async archiveTreeSave (da) {//新增
  1525. console.log(da);
  1526. const { data: res } = await archiveTreeSave(da)
  1527. console.log(res);
  1528. if (res.code == 200) {
  1529. this.$message({
  1530. type: 'success',
  1531. message: '新增成功'
  1532. })
  1533. this.treeTap = false
  1534. let das = await this.lazyTree(da.parentId)
  1535. this.$refs.trees1.updateKeyChildren(da.parentId, das)
  1536. let node = this.$refs.trees1.getNode(da.parentId);
  1537. node.isLeaf = false;
  1538. node.isLeafByUser = false;
  1539. }
  1540. },
  1541. async archiveTreeUpdate (da) {//编辑
  1542. const { data: res } = await archiveTreeUpdate(da)
  1543. console.log(res);
  1544. if (res.code == 200) {
  1545. this.$message({
  1546. type: 'success',
  1547. message: '编辑成功'
  1548. })
  1549. this.treeTap = false
  1550. this.treeNode.title = da.nodeName
  1551. this.treeNode.postType = da.postType
  1552. }
  1553. },
  1554. //#endregion
  1555. //#region 右侧树节点
  1556. async rightPushTree () {//右侧节点树
  1557. this.checkXuan = []
  1558. await this.archiveTreetree2({
  1559. // token: this.token,
  1560. nodeType: 2,
  1561. })
  1562. this.pushfileTap = true
  1563. // await this.saixuan(this.dialogData)
  1564. await this.saixuan(this.dialogData[0].selectAllNodes)
  1565. this.$refs.trees.setCheckedKeys(this.checkXuan);
  1566. },
  1567. saixuan (da) {//赛选
  1568. if (da.length > 0) {
  1569. da.forEach(val=>{
  1570. this.checkXuan.push(val)
  1571. })
  1572. }
  1573. },
  1574. // 赛选
  1575. // saixuan (da) {//赛选
  1576. // if (da.length > 0) {
  1577. // let tag = true
  1578. // da.forEach(val => {
  1579. // if (val.isDisplayTree == 1 && val.hasChildren) {
  1580. // let ks = this.saixuan(val.children)
  1581. // if (ks) {
  1582. // this.checkXuan.push(val.id)
  1583. // }
  1584. // } else if (val.isDisplayTree == 1 && !val.hasChildren) {
  1585. // this.checkXuan.push(val.id)
  1586. // } else {
  1587. // tag = false
  1588. // }
  1589. // })
  1590. // return tag
  1591. // }
  1592. // },
  1593. pushFileClose () {//弹框关闭事件
  1594. this.checkXuan = []
  1595. },
  1596. async archiveTreetree (da) {//右侧树全加载接口
  1597. da = Object.assign(da,{projectId:this.projectId})
  1598. const { data: res } = await archiveTreetree(da)
  1599. console.log(res);
  1600. if (res.code == 200 && res.msg == "操作成功") {
  1601. this.rightData = res.data
  1602. }
  1603. },
  1604. //#endregion
  1605. //#region 右侧树弹框
  1606. async submitDisplayConfigTree (ids) {//保存接口
  1607. const { data: res } = await submitDisplayConfigTree({ ids })
  1608. console.log(res);
  1609. if (res.code == 200) {
  1610. this.$message({
  1611. type: 'success',
  1612. message: '设置成功'
  1613. })
  1614. this.archiveTreetree({
  1615. // token: this.token,
  1616. disPlayTree: 1,
  1617. nodeType: 2,
  1618. })
  1619. this.pushfileTap = false
  1620. }
  1621. },
  1622. async archiveTreetree2 (da) {//右侧树全加载接口
  1623. da = Object.assign(da,{projectId:this.projectId})
  1624. //console.log(da,'ddddddda')
  1625. const { data: res } = await archiveTreetree(da)
  1626. console.log(res);
  1627. if (res.code == 200 && res.msg == "操作成功") {
  1628. this.dialogData = res.data
  1629. }
  1630. },
  1631. saveFile () {//保存按钮
  1632. let zi = this.$refs.trees.getCheckedKeys() //返回选中子节点的key
  1633. let fu = this.$refs.trees.getHalfCheckedKeys()//返回选中子节点的父节点的key
  1634. let arr = [...zi, ...fu]
  1635. if (arr.length > 0) {
  1636. let ids = ''
  1637. arr.forEach((val, key) => {
  1638. ids += val
  1639. if (key != arr.length - 1) {
  1640. ids += ','
  1641. }
  1642. })
  1643. this.submitDisplayConfigTree(ids)
  1644. } else {
  1645. this.$message({
  1646. type: 'error',
  1647. message: '请先设置配置文件'
  1648. })
  1649. }
  1650. },
  1651. //#endregion
  1652. async getWbsList(){
  1653. const datas = await Promise.all([
  1654. getWbsList(1),
  1655. getWbsList(2),
  1656. ])
  1657. //console.log(datas,'ressssss');
  1658. this.publictreeoptions = datas[0].data.data;
  1659. this.testtreeoptions = datas[1].data.data;
  1660. },
  1661. synctree(data){
  1662. this.$confirm('是否同步该节点?', '提示', {
  1663. confirmButtonText: '确定',
  1664. cancelButtonText: '取消',
  1665. }).then(() => {
  1666. syncProjectTree({
  1667. id:data.id
  1668. }).then((res)=>{
  1669. if(res.data.code==200){
  1670. this.$message.success(res.data.msg)
  1671. setTimeout(()=>{
  1672. // 刷新页面
  1673. this.$router.go(0)
  1674. },1000)
  1675. }else{
  1676. this.$message.warning(res.data.msg)
  1677. }
  1678. })
  1679. }).catch(() => {
  1680. });
  1681. },
  1682. //获取树节点名字路径
  1683. getTreeNodePath(node,refName){
  1684. let nodeInfo = this.$refs[refName].getNode(node.id);
  1685. //console.log(nodeInfo)
  1686. let pathArr = [];
  1687. while (nodeInfo.parent) {
  1688. pathArr.push(nodeInfo.data.title)
  1689. nodeInfo = nodeInfo.parent
  1690. }
  1691. return pathArr.reverse().join('/');
  1692. },
  1693. async setRecordsHandle(){
  1694. const { data: res } = await saveArchiveAutoRule({
  1695. archiveAutoType:this.archiveAutoType,//最高1 分类2 独立3
  1696. selectNodeIds:this.checkList.join(','),//鼠标选择的节点ID(只要鼠标选择的节点,选择节点的下级子节点那种不要),逗号拼接
  1697. iswbsNode:this.nodesList[0].iswbsNode,//是否是wbs节点
  1698. projectId:this.projectId,// 系统级为0 项目级为项目id
  1699. })
  1700. if (res.code == 200 && res.msg == "操作成功") {
  1701. this.$message({
  1702. type: 'success',
  1703. message: '设置成功'
  1704. })
  1705. this.archiveTreetree({
  1706. // token: this.token,
  1707. //disPlayTree: 1,
  1708. //nodeType: 2,
  1709. })
  1710. this.highVisible = false;
  1711. }
  1712. },
  1713. //立卷树勾选修改
  1714. configCheckChange(data, checks){
  1715. let array = checks.checkedNodes;
  1716. for (let index = 1; index < array.length; index++) {
  1717. const element = array[index];
  1718. if(element.iswbsNode !== array[0].iswbsNode){
  1719. //取消勾选
  1720. this.$refs.configtree.setChecked(data.id,false,false)
  1721. this.$message({
  1722. message: '非wbs节点不能和wbs节点一起设置规则',
  1723. type: 'warning'
  1724. });
  1725. return;
  1726. }
  1727. }
  1728. },
  1729. //立卷规则修改
  1730. async changeConfig(){
  1731. let keys = this.$refs.configtree.getCheckedKeys();
  1732. let nodes = this.$refs.configtree.getCheckedNodes();
  1733. console.log(nodes)
  1734. const { data: res } = await updateArchiveAutoRule({
  1735. archiveAutoType:2,//最高1 分类2 独立3
  1736. archiveAutoGroupId:this.configInfo.data.archiveAutoGroupId,
  1737. selectNodeIds:keys.join(','),//鼠标选择的节点ID(只要鼠标选择的节点,选择节点的下级子节点那种不要),逗号拼接
  1738. iswbsNode:nodes[0].iswbsNode,//是否是wbs节点
  1739. projectId:this.projectId,// 系统级为0 项目级为项目id
  1740. })
  1741. if (res.code == 200 && res.msg == "操作成功") {
  1742. this.$message({
  1743. type: 'success',
  1744. message: '修改成功'
  1745. })
  1746. this.configVisible = false;
  1747. }
  1748. },
  1749. async removeArchive(data){
  1750. this.$confirm('此操作将永久删除配置, 是否继续?', '提示', {
  1751. confirmButtonText: '确定',
  1752. cancelButtonText: '取消',
  1753. type: 'warning'
  1754. }).then(() => {
  1755. removeArchiveAutoRule({
  1756. nodeId:data.id,
  1757. iswbsNode:data.iswbsNode,//是否是wbs节点 flase 不是 true 是 (先false,具体怎么区分后面再看)
  1758. projectId:this.projectId,// 系统级为0 项目级为项目id
  1759. }).then((res)=>{
  1760. //console.log(res)
  1761. if (res.data.code == 200 && res.data.msg == "操作成功") {
  1762. this.$message({
  1763. type: 'success',
  1764. message: '修改成功'
  1765. })
  1766. }
  1767. })
  1768. });
  1769. },
  1770. //树形控件菜单相关方法
  1771. mouseout(){
  1772. this.menuvisible=false
  1773. },
  1774. //展示菜单
  1775. showMenu(e,data,node){
  1776. e.preventDefault();
  1777. console.log(e,'e');
  1778. var x = e.pageX; //这个应该是相对于整个浏览器页面的x坐标,左上角为坐标原点(0,0)
  1779. var y = e.pageY; //这个应该是相对于整个浏览器页面的y坐标,左上角为坐标原点(0,0)
  1780. this.menutop = y-70;
  1781. this.menuleft = x;
  1782. this.menuvisible=true
  1783. },
  1784. menuClick(e,item,data,node){
  1785. this.menuKey=''
  1786. //获取节点展开路径
  1787. this.getExpandedKeys(node);
  1788. e.preventDefault();
  1789. if(item.key==='add'){
  1790. if(data.isStorageNode!=1){
  1791. this.addtree(data,node)
  1792. this.menuKey='add'
  1793. }else{
  1794. this.$message.warning('该节点下不允许新增节点')
  1795. }
  1796. }
  1797. else if(item.key==='edit'){
  1798. this.edittree(data,node)
  1799. this.menuKey='edit'
  1800. }
  1801. else if(item.key==='del'){
  1802. this.menuKey='del'
  1803. this.deletetree(data,node)
  1804. }else if(item.key==='copy'){
  1805. this.$message.info('暂无相关接口')
  1806. }
  1807. else if(item.key==='sort'){
  1808. this.menuKey='sort'
  1809. this.paixuMD(data,node)
  1810. }
  1811. else if(item.key==='sync'){
  1812. this.menuKey='sync'
  1813. this.synctree(data,node)
  1814. }
  1815. },
  1816. //获取日志类型
  1817. getContractLogType() {
  1818. getDictionaryBiz({code: 'contract_log_type'}).then(({data}) => {
  1819. if (data.code===200) {
  1820. this.contractLogTypes = data.data
  1821. } else {
  1822. this.contractLogTypes = []
  1823. }
  1824. })
  1825. },
  1826. getContractTrialType() {
  1827. getDictionaryBiz({code: 'contract_trial_type'}).then(({data}) => {
  1828. if (data.code===200) {
  1829. this.contractTrialTypes = data.data
  1830. } else {
  1831. this.contractTrialTypes = []
  1832. }
  1833. })
  1834. },
  1835. },
  1836. watch: {
  1837. filterText (val) {
  1838. this.$refs.trees2.filter(val);
  1839. },
  1840. rulefilterText(val) {
  1841. this.$refs.ruletree.filter(val);
  1842. }
  1843. },
  1844. created () {
  1845. this.token = 'bearer ' + getToken()
  1846. this.projectId = this.$route.query.projectId;
  1847. this.defaultExpandedKeys = getStore({ name: this.expandName });
  1848. this.defaultExpandedKeys1 = getStore({ name: 'configkey' });
  1849. this.curreenttid= getStore({ name:'curreenttid' });
  1850. this.curreenttid1= getStore({ name:'curreenttid1' });
  1851. this.archiveTreetree({
  1852. // token: this.token,
  1853. //disPlayTree: 1,
  1854. //nodeType: 2,
  1855. })
  1856. this.archiveTreetree4()//全加载左侧树
  1857. this.getWbsList();
  1858. this.getContractLogType()
  1859. this.getContractTrialType()
  1860. },
  1861. mounted () {
  1862. this.heights = this.$refs.container.$el.offsetHeight;
  1863. },
  1864. filters:{
  1865. ellipsis(value) {
  1866. if (!value) return "";
  1867. if (value.length > 25) {
  1868. return value.slice(0, 25) + "...";
  1869. }
  1870. return value;
  1871. },
  1872. ellipsis1(value) {
  1873. if (!value) return "";
  1874. if (value.length > 25) {
  1875. return value.slice(0, 25) + "...";
  1876. }
  1877. return value;
  1878. },
  1879. },
  1880. }
  1881. </script>
  1882. <style lang="scss" scoped>
  1883. .peizhi {
  1884. // border: 1px solid #e5e5e5;
  1885. border-radius: 5px;
  1886. padding: 15px 10px;
  1887. }
  1888. .btnground{
  1889. background-color: #e5e5e5;
  1890. }
  1891. .el-tree .el-tree-node__content{
  1892. display: block !important;
  1893. }
  1894. ::v-deep .el-tree .el-tree-node__children{
  1895. overflow: visible!important;
  1896. }
  1897. .config-type-name{
  1898. font-size: 18px;
  1899. }
  1900. .config-allname{
  1901. margin-top: 20px;
  1902. }
  1903. .wraplabel ::v-deep .el-checkbox__label {
  1904. display: inline-grid;
  1905. white-space: pre-line;
  1906. word-wrap: break-word;
  1907. overflow: hidden;
  1908. line-height: 20px;
  1909. }
  1910. .treeBox{
  1911. overflow-y: auto;
  1912. width: 100%;
  1913. height: 650px;
  1914. font-size: 14px;
  1915. }
  1916. .treebox .el-tree{
  1917. display: inline-block;
  1918. min-width: 100%;
  1919. font-size: s;
  1920. }
  1921. .contextmenu {
  1922. margin: 0;
  1923. background: #fff;
  1924. z-index: 1000;
  1925. position: fixed; //关键样式设置固定定位
  1926. list-style-type: none;
  1927. padding: 5px 0;
  1928. border-radius: 4px;
  1929. font-size: 12px;
  1930. font-weight: 400;
  1931. color: #333;
  1932. box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
  1933. }
  1934. .contextmenu li {
  1935. margin: 0;
  1936. padding: 7px 16px;
  1937. cursor: pointer;
  1938. }
  1939. .contextmenu li:hover {
  1940. background: #eee;
  1941. }
  1942. .config_type{
  1943. display: inline-block;
  1944. background: rgb(254, 110, 34);
  1945. color: #fff;
  1946. width: 16px;
  1947. height: 16px;
  1948. border-radius: 50%;
  1949. text-align: center;
  1950. line-height: 20px;
  1951. margin-right: 8px;
  1952. font-size: 12px;
  1953. }
  1954. </style>