attr_select.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. <template>
  2. <div id="attr-select">
  3. <!--选中-->
  4. <div class="attr-select" v-if="type==='baseLine'">
  5. <span class="grid-title">外观</span>
  6. <div class="row">
  7. <div class="row-tit">线宽</div>
  8. <div class="grid-content">
  9. <a-input-number
  10. v-model="lineWidth"
  11. :min="1"
  12. :max="9"
  13. @change="changeLineWidth"
  14. style="width: 168px"
  15. />
  16. </div>
  17. <div class="color-choice">
  18. <swatches v-model="borderColor" popover-x="left" @close="changeBorderColor" />
  19. </div>
  20. </div>
  21. <div class="row">
  22. <div class="row-tit">线型</div>
  23. <a-select
  24. style="width: 208px"
  25. v-model="borderStyle"
  26. :default-value="borderLineOption[0].id"
  27. @change="changeBorder"
  28. >
  29. <a-select-option
  30. v-for="item in borderLineOption"
  31. :key="item.id"
  32. :label="item.src"
  33. :value="item.id"
  34. >
  35. <img :src="item.src" alt />
  36. </a-select-option>
  37. </a-select>
  38. </div>
  39. </div>
  40. <!--文字内容-->
  41. <div class="attr-select" v-if="type==='baseText'">
  42. <span class="grid-title">文字内容</span>
  43. <div class="grid-content">
  44. <a-textarea
  45. placeholder="请在此处输入文字!"
  46. v-model="textMsg"
  47. allow-clear
  48. @change="changeTextArea"
  49. :rows="4"
  50. />
  51. </div>
  52. <span class="grid-title">外观</span>
  53. <div class="row">
  54. <div class="row-tit">字号</div>
  55. <div class="grid-content">
  56. <a-input-number v-model="fontSize" :min="1" @change="changeFont" style="width: 168px" />
  57. </div>
  58. <div class="color-choice">
  59. <swatches v-model="fontColor" popover-x="left" @close="changeFontColor" />
  60. </div>
  61. </div>
  62. <div class="row">
  63. <div class="row-tit">背景色</div>
  64. <div class="color-choice">
  65. <swatches
  66. v-model="backColor"
  67. :swatches="swatches"
  68. popover-x="left"
  69. @close="changebackColor"
  70. />
  71. </div>
  72. </div>
  73. </div>
  74. <!--图片-->
  75. <div class="attr-select" v-if="type=='baseImage'">
  76. <span class="grid-title">图片</span>
  77. <section class="grid">
  78. <div class="grid-content">
  79. <a-upload-dragger
  80. name="file"
  81. :customRequest="customRequest"
  82. :showUploadList="false"
  83. action="https://jsonplaceholder.typicode.com/posts/"
  84. @change="changeImage"
  85. >
  86. <p class="icon-image">
  87. <a-icon type="cloud-upload" />
  88. </p>
  89. <p class="ant-upload-text">将图片拖动到这里替换</p>
  90. <p class="ant-upload-hint">本地上传</p>
  91. </a-upload-dragger>
  92. </div>
  93. </section>
  94. <span class="grid-title">外观</span>
  95. <div class="row">
  96. <div class="row-tit">边框</div>
  97. <div class="grid-content">
  98. <a-input-number
  99. v-model="lineWidth"
  100. :min="1"
  101. :max="9"
  102. @change="changeLineWidth"
  103. style="width: 168px"
  104. />
  105. </div>
  106. <div class="color-choice">
  107. <swatches v-model="borderColor" popover-x="left" @close="changeBorderColor" />
  108. </div>
  109. </div>
  110. </div>
  111. <!--针对“设备/位置/管线/分区”属性示例-->
  112. <div class="attr-select" v-show="type =='Image'|| type == 'Line' || type == 'Zone'">
  113. <div v-if="type =='Image'|| type == 'Line'">
  114. <div class="row">
  115. <div class="row-tit">名称显示</div>
  116. <a-button type="link" class="edit-option-btn" @click="OpenEditStatus">{{editStatus[type]}}</a-button>
  117. </div>
  118. <div class="row">
  119. <a-input v-model="lengedName" @change="changeLengedName" />
  120. </div>
  121. <div class="row">
  122. <div class="row-tit">字号</div>
  123. <div class="grid-content">
  124. <a-input-number v-model="fontSize" :min="1" @change="changeFont" style="width: 168px" />
  125. </div>
  126. <div class="color-choice">
  127. <swatches v-model="fontColor" @close="changeFontColor" popover-x="left" />
  128. </div>
  129. </div>
  130. <!-- 当为设备状态时 -->
  131. <div class="row" v-if="type =='Image'">
  132. <div class="row-tit">数量</div>
  133. <div class="grid-content">
  134. <a-input-number
  135. v-model="imageNum"
  136. :min="attrCards.length==imageNum?imageNum:1"
  137. @change="changeImageNum"
  138. style="width: 208px"
  139. />
  140. </div>
  141. </div>
  142. <!-- 当为管道状态时 -->
  143. <div class="row" v-if="type =='Line'">
  144. <div class="row-tit">线宽</div>
  145. <div class="grid-content">
  146. <a-input-number
  147. v-model="lineWidth"
  148. :min="1"
  149. :max="9"
  150. @change="changeLineWidth"
  151. style="width: 208px"
  152. />
  153. </div>
  154. </div>
  155. </div>
  156. <div v-if="type == 'Zone'">
  157. <div v-if="SubType=='FHFQ'">
  158. <!-- 防火分区 -->
  159. <div class="row-tit">颜色</div>
  160. <div class="row">
  161. <swatches @input="changefillColor" :swatches="swatchess" v-model="fillColor" inline></swatches>
  162. </div>
  163. <div class="row">
  164. <div class="row-tit">名称显示</div>
  165. <a-button
  166. type="link"
  167. class="edit-option-btn"
  168. @click="OpenEditStatus"
  169. >{{editStatus[type]}}</a-button>
  170. </div>
  171. <div class="row">
  172. <a-input v-model="lengedName" @change="changeLengedName" />
  173. </div>
  174. <div class="row">
  175. <div class="row-tit">字号</div>
  176. <div class="grid-content">
  177. <a-input-number
  178. v-model="fontSize"
  179. :min="1"
  180. @change="changeFont"
  181. style="width: 168px"
  182. />
  183. </div>
  184. <div class="color-choice">
  185. <swatches v-model="fontColor" @close="changeFontColor" popover-x="left" />
  186. </div>
  187. </div>
  188. </div>
  189. <div v-if="SubType=='SCPZ'">
  190. <!-- 石材铺装 -->
  191. <div class="row">
  192. <div class="row-tit">图例说明</div>
  193. <a-button type="link" class="edit-option-btn" @click="OpenEditStatus">编辑区域</a-button>
  194. </div>
  195. <div class="row">
  196. <a-textarea
  197. @change="changeitemExplain"
  198. v-model="itemExplain"
  199. :auto-size="{ minRows: 4, maxRows: 6 }"
  200. />
  201. </div>
  202. <div class="row">
  203. <div class="row-tit">描边</div>
  204. <div class="grid-content">
  205. <a-input-number
  206. v-model="lineWidth"
  207. :min="1"
  208. :max="9"
  209. @change="changeLineWidth"
  210. style="width: 168px"
  211. />
  212. </div>
  213. <div class="color-choice">
  214. <swatches v-model="borderColor" @close="changeBorderColor" popover-x="left" />
  215. </div>
  216. </div>
  217. <div class="row">
  218. <div class="row-tit">填充</div>
  219. <div class="color-choice">
  220. <swatches v-model="fillColor" @close="changefillColor" popover-x="left" />
  221. </div>
  222. </div>
  223. </div>
  224. <div v-if="!SubType">
  225. <!-- 普通分区 -->
  226. <div class="row">
  227. <div class="row-tit">显示名称</div>
  228. <a-button
  229. type="link"
  230. class="edit-option-btn"
  231. @click="OpenEditStatus"
  232. >{{editStatus[type]}}</a-button>
  233. </div>
  234. <div class="row">
  235. <a-input v-model="lengedName" @change="changeLengedName" />
  236. </div>
  237. <div class="row">
  238. <div class="row-tit">字号</div>
  239. <div class="grid-content">
  240. <a-input-number
  241. v-model="fontSize"
  242. :min="1"
  243. @change="changeFont"
  244. style="width: 168px"
  245. />
  246. </div>
  247. <div class="color-choice">
  248. <swatches v-model="fontColor" @close="changeFontColor" popover-x="left" />
  249. </div>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <!--设备/工程信息化ID/工程信息化中的位置类型-->
  255. <div
  256. class="attr-select attr-select-bottom"
  257. v-if="type =='Zone' || type =='Image'||type == 'Line'"
  258. >
  259. <a-spin :spinning="spinning">
  260. <div class="row">
  261. <span class="edit-option-text">{{type =='Zone'?`工程信息化中的位置类型`:'工程信息化中的设备类型'}}</span>
  262. <a-button type="link" class="edit-option-btn" @click="handleEdit">选择编辑</a-button>
  263. </div>
  264. <div class="grid-content" style="margin-top: 12px;">
  265. <a-card class="attr-card" v-for="(item,index) in attrCards" :key="index">{{item.sbjc ||item.wzjc}}</a-card>
  266. </div>
  267. </a-spin>
  268. </div>
  269. <!-- 快捷操作提示-->
  270. <div style="position: fixed;bottom: 0;width: 280px;" class="key-boards">
  271. <a-collapse :bordered="false" expand-icon-position="right">
  272. <template #expandIcon="props">
  273. <a-icon type="caret-up" :rotate="props.isActive ? 180 : 0" />
  274. </template>
  275. <a-collapse-panel key="1" :style="customStyle">
  276. <template slot="header">
  277. <div style="font-size: 12px;color: #8D9399;">
  278. <a-icon type="exclamation-circle" />
  279. <span style="margin-left: 5px;">键盘操作提示</span>
  280. </div>
  281. </template>
  282. <p
  283. v-for="item in keyboardOperation"
  284. :key="item.value"
  285. style="display: flex;margin-top: 13px;"
  286. >
  287. <span>{{item.value}}</span>
  288. <span class="key-board">{{item.keys}}</span>
  289. <span v-if="item.events" style="margin: 0 5px;">
  290. +
  291. <img style="width:13px;height:18px;" src="./../../assets/images/shubiao.png" alt />
  292. </span>
  293. <span>{{item.events}}</span>
  294. </p>
  295. </a-collapse-panel>
  296. </a-collapse>
  297. </div>
  298. <editDialog ref="dialog" :attrCards="attrCards" :sysNum="imageNum" :key="new Date().getTime()" />
  299. <!-- <editDialog ref="dialog" :typeEdit="2" :getmajorId="'1001'" :sysNum="5" />-->
  300. </div>
  301. </template>
  302. <script>
  303. import editDialog from "./edit-dialog";
  304. import Swatches from "vue-swatches";
  305. import bus from "@/bus";
  306. import "vue-swatches/dist/vue-swatches.css";
  307. import { SLineStyle } from "@saga-web/graph/lib";
  308. import {
  309. uploadImg,
  310. queryGlsmsLocation,
  311. queryGlsmsAsset
  312. } from "@/api/editer.js";
  313. import { getUrlMsg } from "@/components/urlMsg.js";
  314. export default {
  315. name: "attr_select",
  316. props: ["type", "focusItemList"],
  317. components: { editDialog, Swatches },
  318. data() {
  319. return {
  320. precisionList: [{ value: 10 }, { value: 20 }, { value: 30 }],
  321. precision: true,
  322. customStyle:
  323. "background: #fff;overflow: hidden; box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.11);border:0",
  324. keyboardOperation: [
  325. { value: "拖动画布:", keys: "Space", events: "Click" },
  326. { value: "加选对象:", keys: "Ctrl", events: "Press" },
  327. { value: "确认操作:", keys: "Enter" },
  328. { value: "取消对象:", keys: "Enter" }
  329. ],
  330. numberValue: 3,
  331. fontSize: 12, //字体大小
  332. lineWidth: 0,
  333. textMsg: "", //
  334. color: "#1CA085",
  335. fontColor: "#1CA085", //文字颜色
  336. borderColor: "", // 边框颜色 直线,折线,多边形等
  337. backColor: "", //背景色 用于text文字
  338. borderStyle: "solid",
  339. borderLineOption: [
  340. {
  341. id: "solid",
  342. src: require("@/assets/images/1pxline.jpg")
  343. },
  344. {
  345. id: "dashed",
  346. src: require("@/assets/images/dashedLine.jpg")
  347. },
  348. {
  349. id: "dotted",
  350. src: require("@/assets/images/dotLine.jpg")
  351. }
  352. ],
  353. linepxOption: [
  354. {
  355. id: 1,
  356. src: require("@/assets/images/1pxline.jpg")
  357. },
  358. {
  359. id: 2,
  360. src: require("@/assets/images/2pxline.jpg")
  361. },
  362. {
  363. id: 3,
  364. src: require("@/assets/images/3pxline.jpg")
  365. }
  366. ],
  367. editStatus: {
  368. Image: "编辑设备",
  369. Line: "管道编辑",
  370. Zone: "编辑区域"
  371. },
  372. swatchess: ["#69C5FC", "#656EDF", "#58AF6F", "#2D8FAA"],
  373. swatches: [
  374. "#00000000",
  375. "#1FBC9C",
  376. "#1CA085",
  377. "#2ECC70",
  378. "#27AF60",
  379. "#3398DB",
  380. "#2980B9",
  381. "#A463BF",
  382. "#8E43AD",
  383. "#3D556E",
  384. "#222F3D"
  385. ],
  386. lengedName: "", // 图例名称
  387. imageNum: 1, //设备数量
  388. fillColor: "", //修改填充色 (主要针对防火风区以及石材铺装)
  389. SubType: "", //空间类型,区分石材铺装
  390. itemExplain: "", //图例说明 只针对石材铺装
  391. attrCards: [],
  392. spinning: false,
  393. getmajorId: ""
  394. };
  395. },
  396. methods: {
  397. onChange(e) {
  398. this.precision = e.target.checked === true ? false : true;
  399. },
  400. changeBorder(value) {
  401. bus.$emit("changeBorder", value);
  402. },
  403. changeNumber() {
  404. bus.$emit("changeFont", this.fontSize);
  405. },
  406. // 改变字体大小
  407. changeFont() {
  408. bus.$emit("changeFont", this.fontSize);
  409. },
  410. // 改变线宽
  411. changeLineWidth() {
  412. bus.$emit("changeLineWidth", this.lineWidth);
  413. },
  414. // 改变文案
  415. changeTextArea() {
  416. bus.$emit("changeText", this.textMsg);
  417. },
  418. // 改变线的颜色
  419. changeBorderColor() {
  420. if (this.borderColor) {
  421. bus.$emit("changeBorderColor", this.borderColor);
  422. }
  423. },
  424. // 改变字体颜色
  425. changeFontColor(color) {
  426. if (color) {
  427. bus.$emit("changeFontColor", color);
  428. }
  429. },
  430. changebackColor(color) {
  431. if (color) {
  432. bus.$emit("changebackColor", color);
  433. }
  434. },
  435. customRequest(info) {
  436. const formData = new FormData();
  437. formData.append("file", info.file);
  438. const postParams = formData;
  439. uploadImg({ postParams }).then(res => {
  440. if (res.Result == "success") {
  441. bus.$emit("upadataImageUrl", res.EntityList[0]);
  442. this.$message.success(
  443. `${info.file.name} file uploaded successfully.`
  444. );
  445. } else {
  446. this.$message.error(`${info.file.name} file upload failed.`);
  447. }
  448. });
  449. },
  450. //更改图例名称
  451. changeLengedName() {
  452. bus.$emit("changeLengedName", this.lengedName);
  453. },
  454. changeImage(info) {
  455. const status = info.file.status;
  456. console.log(status);
  457. if (status !== "uploading") {
  458. console.log(info.file, info.fileList);
  459. }
  460. if (status === "done") {
  461. this.$message.success(`${info.file.name} file uploaded successfully.`);
  462. } else if (status === "error") {
  463. this.$message.error(`${info.file.name} file upload failed.`);
  464. }
  465. },
  466. handleEdit() {
  467. this.$refs.dialog.showModal();
  468. },
  469. // 修改设备数量
  470. changeImageNum() {
  471. if (!this.imageNum) {
  472. this.imageNum = 1;
  473. }
  474. bus.$emit("changeImageNum", this.imageNum);
  475. },
  476. changefillColor() {
  477. if (this.fillColor) {
  478. bus.$emit("changefillColor", this.fillColor);
  479. }
  480. },
  481. //设置缩小item为编辑状态
  482. OpenEditStatus() {
  483. bus.$emit("OpenEditStatus");
  484. },
  485. // 编辑图例说明
  486. changeitemExplain() {
  487. bus.$emit("changeitemExplain", this.itemExplain);
  488. },
  489. // 更改工程信息化数据
  490. changeAttachObjectIds(arr) {
  491. bus.$emit("changeAttachObjectIds", arr);
  492. }
  493. },
  494. watch: {
  495. focusItemList: function(newval) {
  496. const Item = newval.itemList[0];
  497. this.getmajorId = Item.data.Properties.InfoSystemId;
  498. this.imageNum = 1; //切换item初始化
  499. if (Item.data && Item.data.SubType) {
  500. this.SubType = Item.data.SubType;
  501. } else {
  502. this.SubType = "";
  503. }
  504. if (newval.itemList.length == 1) {
  505. if (newval.itemType == "baseText") {
  506. this.textMsg = Item.text;
  507. this.fontSize = Item.font.size;
  508. this.fontColor = Item.color.value;
  509. this.backColor = Item.backgroundColor.value;
  510. } else if (newval.itemType == "baseLine") {
  511. this.lineWidth = Item.lineWidth;
  512. this.borderColor = Item.strokeColor.value;
  513. if (Item.lineStyle == SLineStyle.Solid) {
  514. this.borderStyle = "solid";
  515. } else if (Item.lineStyle == SLineStyle.Dashed) {
  516. this.borderStyle = "dashed";
  517. } else if (Item.lineStyle == SLineStyle.Dotted) {
  518. this.borderStyle = "dotted";
  519. }
  520. } else if (newval.itemType == "baseImage") {
  521. this.lineWidth = Item.lineWidth;
  522. this.borderColor = Item.strokeColor.value;
  523. }else if (
  524. newval.itemType == "Zone" ||
  525. newval.itemType == "Line" ||
  526. newval.itemType == "Image"
  527. ) {
  528. this.lengedName = Item.data.Name;
  529. this.borderColor = Item.strokeColor ? Item.strokeColor.value : "";
  530. this.fillColor = Item.fillColor ? Item.fillColor.value : "";
  531. this.itemExplain = "";
  532. if (Item.data.Properties.ItemExplain) {
  533. this.itemExplain = Item.data.Properties.ItemExplain
  534. ? Item.data.Properties.ItemExplain
  535. : "";
  536. }
  537. if (newval.itemType == "Image") {
  538. this.imageNum = Item.num;
  539. this.color = Item.color.value;
  540. this.fontSize = Item.font.size;
  541. } else if (newval.itemType == "Line") {
  542. this.color = Item.color.value;
  543. this.fillColor = Item.fillColor.value;
  544. this.borderColor = Item.strokeColor.value;
  545. this.lineWidth = Item.lineWidth;
  546. }
  547. }
  548. }
  549. const locationList = [];
  550. const assetnumList = [];
  551. let params = {};
  552. this.attrCards = [];
  553. Item.data.AttachObjectIds.map(item => {
  554. if (item.type == "Zone") {
  555. locationList.push(item.id);
  556. } else if (item.type == "Image") {
  557. assetnumList.push(item.id);
  558. }
  559. });
  560. // if(newval.itemType == 'Zone'){
  561. this.spinning = true;
  562. if (locationList.length) {
  563. params = { locationList: locationList };
  564. } else {
  565. params = { locationList: [""] };
  566. }
  567. queryGlsmsLocation({ plazaId: getUrlMsg().projectId }, params).then(
  568. res => {
  569. this.spinning = false;
  570. if (res.data.result == "success") {
  571. console.log(res.data);
  572. if (res.data.data && res.data.data.length) {
  573. this.attrCards = this.attrCards.concat(res.data.data);
  574. }
  575. } else {
  576. this.$message.error("工程信息化中的位置信息获取失败");
  577. }
  578. }
  579. );
  580. // }else if(newval.itemType == 'Image'){
  581. this.spinning = true;
  582. if (assetnumList.length) {
  583. params = { assetnumList: assetnumList };
  584. } else {
  585. params = { assetnumList: [""] };
  586. }
  587. queryGlsmsAsset({ plazaId: getUrlMsg().projectId }, params).then(res => {
  588. this.spinning = false;
  589. if (res.data.result == "success") {
  590. console.log(res.data);
  591. if (res.data.data && res.data.data.length) {
  592. this.attrCards = this.attrCards.concat(res.data.data);
  593. }
  594. } else {
  595. this.$message.error("工程信息化中的设备信息获取失败");
  596. }
  597. });
  598. // }
  599. console.log(this.attrCards);
  600. }
  601. }
  602. };
  603. </script>
  604. <style scoped lang="less">
  605. /deep/ .ant-spin-nested-loading {
  606. height: 100% !important;
  607. .ant-spin-container {
  608. height: 100% !important;
  609. }
  610. }
  611. .attr-select {
  612. padding: 12px 16px;
  613. box-sizing: border-box;
  614. .grid-title {
  615. font-size: 12px;
  616. color: #8d9399;
  617. }
  618. .row {
  619. width: 100%;
  620. display: flex;
  621. justify-content: space-between;
  622. align-items: center;
  623. margin-top: 12px;
  624. .color-choice {
  625. & /deep/ .vue-swatches__trigger {
  626. width: 26px !important;
  627. height: 26px !important;
  628. border-radius: 0px !important;
  629. }
  630. }
  631. .row-tit {
  632. color: #8d9399;
  633. font-size: 14px;
  634. }
  635. }
  636. .grid {
  637. margin: 10px 15px;
  638. .grid-title {
  639. font-size: 12px;
  640. color: #8d9399;
  641. }
  642. }
  643. .grid-content {
  644. /*margin-top: 12px;*/
  645. position: relative;
  646. }
  647. .icon-image {
  648. font-size: 25px;
  649. }
  650. .edit-option-text {
  651. color: #8d9399;
  652. height: 32px;
  653. line-height: 32px;
  654. margin-top: -5px;
  655. }
  656. .edit-option-btn {
  657. float: right;
  658. margin-top: -5px;
  659. }
  660. .attr-card {
  661. width: 250px;
  662. margin-bottom: 10px;
  663. white-space: normal;
  664. box-shadow: 0px 2px 6px 0px rgba(31, 36, 41, 0.05);
  665. border-radius: 4px;
  666. }
  667. .ant-upload.ant-upload-drag p.ant-upload-text {
  668. font-size: 14px;
  669. color: #c3c7cb;
  670. }
  671. .ant-upload.ant-upload-drag p.ant-upload-hint {
  672. color: #0091ff;
  673. }
  674. }
  675. .key-boards {
  676. .key-board {
  677. width: 52px;
  678. height: 24px;
  679. border-radius: 3px;
  680. border: 1px solid rgba(195, 199, 203, 1);
  681. font-size: 14px;
  682. color: #646a73;
  683. text-align: center;
  684. }
  685. /deep/ .ant-collapse-content {
  686. border-top: 1px solid #eff0f1;
  687. }
  688. }
  689. #attr-select {
  690. width: 100%;
  691. height: 100%;
  692. .attr-select-bottom {
  693. height: 100%;
  694. width: 100%;
  695. position: absolute;
  696. overflow-y: auto;
  697. padding-bottom: 400px;
  698. }
  699. }
  700. </style>