attr_select.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  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="fhfqchangefillColor" :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. // 石材铺装
  477. changefillColor() {
  478. if (this.fillColor) {
  479. bus.$emit("changefillColor", this.fillColor);
  480. }
  481. },
  482. // 防火分区
  483. fhfqchangefillColor() {
  484. if (this.fillColor) {
  485. bus.$emit("changeBorderColor", this.fillColor);
  486. bus.$emit("changefillColor", this.fillColor);
  487. }
  488. },
  489. //设置缩小item为编辑状态
  490. OpenEditStatus() {
  491. bus.$emit("OpenEditStatus");
  492. },
  493. // 编辑图例说明
  494. changeitemExplain() {
  495. bus.$emit("changeitemExplain", this.itemExplain);
  496. },
  497. // 更改工程信息化数据
  498. changeAttachObjectIds(arr) {
  499. bus.$emit("changeAttachObjectIds", arr);
  500. }
  501. },
  502. watch: {
  503. focusItemList: function(newval) {
  504. console.log('------------')
  505. console.log(FENGMAP)
  506. const Item = newval.itemList[0];
  507. this.getmajorId = Item.data.Properties.InfoSystemId;
  508. this.imageNum = 1; //切换item初始化
  509. if (Item.data && Item.data.SubType) {
  510. this.SubType = Item.data.SubType;
  511. } else {
  512. this.SubType = "";
  513. }
  514. if (newval.itemList.length == 1) {
  515. if (newval.itemType == "baseText") {
  516. this.textMsg = Item.text;
  517. this.fontSize = Item.font.size;
  518. this.fontColor = Item.color.value;
  519. this.backColor = Item.backgroundColor.value;
  520. } else if (newval.itemType == "baseLine") {
  521. this.lineWidth = Item.lineWidth;
  522. this.borderColor = Item.strokeColor.value;
  523. if (Item.lineStyle == SLineStyle.Solid) {
  524. this.borderStyle = "solid";
  525. } else if (Item.lineStyle == SLineStyle.Dashed) {
  526. this.borderStyle = "dashed";
  527. } else if (Item.lineStyle == SLineStyle.Dotted) {
  528. this.borderStyle = "dotted";
  529. }
  530. } else if (newval.itemType == "baseImage") {
  531. this.lineWidth = Item.lineWidth;
  532. this.borderColor = Item.strokeColor.value;
  533. }else if (
  534. newval.itemType == "Zone" ||
  535. newval.itemType == "Line" ||
  536. newval.itemType == "Image"
  537. ) {
  538. this.lengedName = Item.data.Name;
  539. this.borderColor = Item.strokeColor ? Item.strokeColor.value : "";
  540. this.fillColor = Item.fillColor ? Item.fillColor.value : "";
  541. this.itemExplain = "";
  542. if (Item.data.Properties.ItemExplain) {
  543. this.itemExplain = Item.data.Properties.ItemExplain
  544. ? Item.data.Properties.ItemExplain
  545. : "";
  546. }
  547. if (newval.itemType == "Image") {
  548. this.imageNum = Item.num;
  549. this.color = Item.color.value;
  550. this.fontSize = Item.font.size;
  551. } else if (newval.itemType == "Line") {
  552. this.color = Item.color.value;
  553. this.fillColor = Item.fillColor.value;
  554. this.borderColor = Item.strokeColor.value;
  555. this.lineWidth = Item.lineWidth;
  556. }
  557. }
  558. }
  559. const locationList = [];
  560. const assetnumList = [];
  561. let params = {};
  562. this.attrCards = [];
  563. Item.data.AttachObjectIds.map(item => {
  564. if (item.type == "Zone") {
  565. locationList.push(item.id);
  566. } else if (item.type == "Image") {
  567. assetnumList.push(item.id);
  568. }
  569. });
  570. // if(newval.itemType == 'Zone'){
  571. this.spinning = true;
  572. if (locationList.length) {
  573. params = { locationList: locationList };
  574. } else {
  575. params = { locationList: [""] };
  576. }
  577. queryGlsmsLocation({ plazaId: getUrlMsg().projectId }, params).then(
  578. res => {
  579. this.spinning = false;
  580. if (res.data.result == "success") {
  581. console.log(res.data);
  582. if (res.data.data && res.data.data.length) {
  583. this.attrCards = this.attrCards.concat(res.data.data);
  584. }
  585. } else {
  586. this.$message.error("工程信息化中的位置信息获取失败");
  587. }
  588. }
  589. );
  590. // }else if(newval.itemType == 'Image'){
  591. this.spinning = true;
  592. if (assetnumList.length) {
  593. params = { assetnumList: assetnumList };
  594. } else {
  595. params = { assetnumList: [""] };
  596. }
  597. queryGlsmsAsset({ plazaId: getUrlMsg().projectId }, params).then(res => {
  598. this.spinning = false;
  599. if (res.data.result == "success") {
  600. console.log(res.data);
  601. if (res.data.data && res.data.data.length) {
  602. this.attrCards = this.attrCards.concat(res.data.data);
  603. }
  604. } else {
  605. this.$message.error("工程信息化中的设备信息获取失败");
  606. }
  607. });
  608. // }
  609. console.log(this.attrCards);
  610. }
  611. }
  612. };
  613. </script>
  614. <style scoped lang="less">
  615. /deep/ .ant-spin-nested-loading {
  616. height: 100% !important;
  617. .ant-spin-container {
  618. height: 100% !important;
  619. }
  620. }
  621. .attr-select {
  622. padding: 12px 16px;
  623. box-sizing: border-box;
  624. .grid-title {
  625. font-size: 12px;
  626. color: #8d9399;
  627. }
  628. .row {
  629. width: 100%;
  630. display: flex;
  631. justify-content: space-between;
  632. align-items: center;
  633. margin-top: 12px;
  634. .color-choice {
  635. & /deep/ .vue-swatches__trigger {
  636. width: 26px !important;
  637. height: 26px !important;
  638. border-radius: 0px !important;
  639. }
  640. }
  641. .row-tit {
  642. color: #8d9399;
  643. font-size: 14px;
  644. }
  645. }
  646. .grid {
  647. margin: 10px 15px;
  648. .grid-title {
  649. font-size: 12px;
  650. color: #8d9399;
  651. }
  652. }
  653. .grid-content {
  654. /*margin-top: 12px;*/
  655. position: relative;
  656. }
  657. .icon-image {
  658. font-size: 25px;
  659. }
  660. .edit-option-text {
  661. color: #8d9399;
  662. height: 32px;
  663. line-height: 32px;
  664. margin-top: -5px;
  665. }
  666. .edit-option-btn {
  667. float: right;
  668. margin-top: -5px;
  669. }
  670. .attr-card {
  671. width: 250px;
  672. margin-bottom: 10px;
  673. white-space: normal;
  674. box-shadow: 0px 2px 6px 0px rgba(31, 36, 41, 0.05);
  675. border-radius: 4px;
  676. }
  677. .ant-upload.ant-upload-drag p.ant-upload-text {
  678. font-size: 14px;
  679. color: #c3c7cb;
  680. }
  681. .ant-upload.ant-upload-drag p.ant-upload-hint {
  682. color: #0091ff;
  683. }
  684. }
  685. .key-boards {
  686. .key-board {
  687. width: 52px;
  688. height: 24px;
  689. border-radius: 3px;
  690. border: 1px solid rgba(195, 199, 203, 1);
  691. font-size: 14px;
  692. color: #646a73;
  693. text-align: center;
  694. }
  695. /deep/ .ant-collapse-content {
  696. border-top: 1px solid #eff0f1;
  697. }
  698. }
  699. #attr-select {
  700. width: 100%;
  701. height: 100%;
  702. .attr-select-bottom {
  703. height: 100%;
  704. width: 100%;
  705. position: absolute;
  706. overflow-y: auto;
  707. padding-bottom: 400px;
  708. }
  709. }
  710. </style>