index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. <template>
  2. <div class="base-container">
  3. <fnHeader></fnHeader>
  4. <div class="top-bg"></div>
  5. <div class="top">
  6. <!-- <div class="back btn" @click="goBack">
  7. <img class="icon" src="@/assets/images/common/back-icon.png" alt="" />
  8. <span>返回</span>
  9. </div> -->
  10. <div class="search">
  11. <el-select
  12. v-model="locationVal"
  13. filterable
  14. remote
  15. effect="dark"
  16. reserve-keyword
  17. placeholder="搜索地区"
  18. :remote-method="remoteMethod"
  19. :loading="loading"
  20. @change="handleSearchRes"
  21. class="v-select"
  22. >
  23. <template #prefix>
  24. <el-icon class="el-input__icon"><search /></el-icon>
  25. </template>
  26. <el-option
  27. v-for="(item, index) in locationOptions.list"
  28. :key="index"
  29. :label="item.title"
  30. :value="item.point"
  31. >
  32. <span>{{ item.title }}</span>
  33. <span class="sub-title"
  34. >{{ item.province }}{{ item.city }}{{ item.district }}</span
  35. >
  36. </el-option>
  37. </el-select>
  38. <div class="add btn" @click="handleAdd">
  39. <el-icon><Plus /></el-icon>
  40. <span>创建</span>
  41. </div>
  42. <div class="upload btn" @click="handleExport">
  43. <img class="icon" src="@/assets/images/common/back-icon.png" alt="" />
  44. <span>导出</span>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="content">
  49. <el-form
  50. :inline="true"
  51. :model="formInlineSearch"
  52. class="search-form"
  53. ref="formInlineRef"
  54. >
  55. <el-form-item label="农场地址">
  56. <el-input
  57. v-model="formInlineSearch.address"
  58. placeholder="请输入农场地址"
  59. clearable
  60. />
  61. </el-form-item>
  62. <el-form-item label="农场名称">
  63. <el-input
  64. v-model="formInlineSearch.farmName"
  65. placeholder="请输入农场名称"
  66. clearable
  67. />
  68. </el-form-item>
  69. <el-form-item label="作物物种">
  70. <el-input
  71. v-model="formInlineSearch.speciesTypeName"
  72. placeholder="请输入作物物种"
  73. clearable
  74. />
  75. </el-form-item>
  76. <el-form-item label="客户姓名">
  77. <el-input
  78. v-model="formInlineSearch.masterName"
  79. placeholder="请输入客户姓名"
  80. clearable
  81. />
  82. </el-form-item>
  83. <el-form-item label="联系电话">
  84. <el-input
  85. v-model="formInlineSearch.masterTel"
  86. placeholder="请输入联系电话"
  87. clearable
  88. />
  89. </el-form-item>
  90. <div class="button">
  91. <el-button class="btn" type="primary" @click="onSearch">查询</el-button>
  92. <el-button class="btn reset" @click="onRest">重置</el-button>
  93. </div>
  94. </el-form>
  95. <div class="box">
  96. <div class="map-box">
  97. <div ref="mapRef" class="map"></div>
  98. </div>
  99. <div class="tool-group">
  100. <!-- <div class="btn" @click="handleCancel" v-show="isEdit&&mapData.point">
  101. <img
  102. class="icon"
  103. src="@/assets/images/common/back-black-icon.png"
  104. alt=""
  105. />
  106. <span>撤销</span>
  107. </div> -->
  108. <!-- <div class="btn" @click="handleDeletePoint">
  109. <el-icon size="15"><CloseBold /></el-icon>
  110. <span>删除点</span>
  111. </div> -->
  112. <div class="btn delete" @click="handleDelete" v-show="mapData.selectPointArr.length>0">
  113. <el-icon size="15" color="#fff"><CloseBold /></el-icon>
  114. <span>删除地块</span>
  115. </div>
  116. </div>
  117. <div class="edit-popup" v-show="isEdit">
  118. <div class="edit-title">
  119. <div class="name">
  120. <img src="@/assets/images/common/chart-icon.png" alt="" />
  121. <span>地块属性</span>
  122. </div>
  123. <div class="btn-group">
  124. <div v-show="disabledForm" class="edit" @click="handleEdit">
  125. 编辑
  126. </div>
  127. <div v-show="mapData.selectPointArr.length>0" class="edit ml" @click="handlePrint">打印</div>
  128. </div>
  129. </div>
  130. <div class="edit-cont">
  131. <el-form
  132. :inline="true"
  133. ref="ruleFormRef"
  134. :disabled="disabledForm"
  135. :model="formInline"
  136. :rules="rules"
  137. label-position="top"
  138. class="form-inline"
  139. >
  140. <el-form-item label="农场地址" prop="address">
  141. <el-input
  142. v-model="formInline.address"
  143. placeholder="请输入农场地址"
  144. clearable
  145. />
  146. </el-form-item>
  147. <el-form-item label="农场名称" prop="farmName">
  148. <el-input
  149. v-model="formInline.farmName"
  150. placeholder="请输入农场名称"
  151. clearable
  152. />
  153. </el-form-item>
  154. <el-form-item label="创建时间">
  155. <el-input v-model="formInline.createDate" clearable disabled />
  156. </el-form-item>
  157. <el-form-item label="农场面积">
  158. <el-input v-model="formInline.area" disabled clearable />
  159. </el-form-item>
  160. <el-form-item label="作物物种" prop="speciesTypeName">
  161. <el-input
  162. v-model="formInline.speciesTypeName"
  163. placeholder="请输入作物物种"
  164. clearable
  165. />
  166. </el-form-item>
  167. <el-form-item label="客户姓名" prop="masterName">
  168. <el-input
  169. v-model="formInline.masterName"
  170. placeholder="请输入姓名"
  171. clearable
  172. />
  173. </el-form-item>
  174. <el-form-item label="联系电话" prop="masterTel">
  175. <el-input
  176. v-model="formInline.masterTel"
  177. placeholder="请输入联系电话"
  178. clearable
  179. />
  180. </el-form-item>
  181. </el-form>
  182. <div class="list-box" v-show="pointList.length > 0">
  183. <span>边界点经纬度</span>
  184. <div class="list-cont">
  185. <div
  186. class="list-item"
  187. v-for="(item, index) in pointList"
  188. :key="index"
  189. >
  190. <span>A{{ index + 1 }}</span>
  191. <div class="item-box">北纬{{ item[1] }}</div>
  192. <div class="item-box">东经{{ item[0] }}</div>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="edit-footer">
  198. <div @click="onCancel" class="btn cancel">取消</div>
  199. <div @click="onSubmit" class="btn save">保存</div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. <!-- 导出弹窗 -->
  206. <el-dialog
  207. v-model="dialogVisible"
  208. width="82%"
  209. center
  210. :show-close="false"
  211. modal-class="dialog-dark"
  212. >
  213. <div>
  214. <el-table :data="gridData" border max-height="600" class="table-dark">
  215. <el-table-column
  216. property="farmName"
  217. label="农场名称"
  218. show-overflow-tooltip
  219. />
  220. <el-table-column
  221. property="address"
  222. label="农场地址"
  223. width="230"
  224. show-overflow-tooltip
  225. />
  226. <el-table-column property="createDate" label="创建时间" width="170" />
  227. <el-table-column property="mu" label="农场面积">
  228. <template #default="scope">
  229. <span>{{ scope.row.mu.toFixed(2) }}亩</span>
  230. </template>
  231. </el-table-column>
  232. <el-table-column property="speciesTypeName" label="作物物种" />
  233. <el-table-column property="masterName" label="客户姓名" />
  234. <el-table-column property="masterTel" label="联系电话" />
  235. <el-table-column
  236. property="points"
  237. label="边界点经纬度"
  238. width="480"
  239. show-overflow-tooltip
  240. />
  241. </el-table>
  242. </div>
  243. <template #footer>
  244. <div class="dialog-footer">
  245. <el-button class="btn" @click="dialogVisible = false">取消</el-button>
  246. <el-button class="btn" type="primary" @click="handleDowload">
  247. 下载
  248. </el-button>
  249. </div>
  250. </template>
  251. </el-dialog>
  252. <Pdf :title="formInline.id+''" :showDialog="pdfShow" @closeDialog="pdfShow = false" v-if="formInline.id && pdfShow" :rowId="formInline.id"></Pdf>
  253. </template>
  254. <script setup>
  255. import { onMounted, ref, reactive, watchEffect, watch } from "vue";
  256. import fnHeader from "@/components/fnHeader.vue";
  257. import AuthenticMap from "./authenticMap";
  258. import { mapData } from "./authenticMap";
  259. import { useRouter } from "vue-router";
  260. import { ElMessage, ElMessageBox } from "element-plus";
  261. import { dateFormat } from "@/utils/date_util";
  262. import { exportExcel, parseMultiPolygon } from "@/utils/index";
  263. import Pdf from "./Pdf";
  264. const pdfShow = ref(false)
  265. const router = useRouter();
  266. let authenticMap = new AuthenticMap();
  267. const mapRef = ref();
  268. const userInfo = JSON.parse(sessionStorage.getItem("userinfo"));
  269. const location = ref(userInfo.location);
  270. onMounted(() => {
  271. authenticMap.initMap(location.value, mapRef.value);
  272. getList();
  273. });
  274. // 获取地块列表
  275. const plotList = ref([]);
  276. const getList = () => {
  277. authenticMap.clearLayer();
  278. return VE_API.authentic.getList(formInlineSearch).then(({ code, data }) => {
  279. plotList.value = data || [];
  280. const geom = [];
  281. data.forEach((item) => {
  282. geom.push({ featureWkt: item.geom, ...item });
  283. });
  284. authenticMap.setAreaGeometry(geom);
  285. authenticMap.addPoint(data);
  286. });
  287. };
  288. // 搜索
  289. const locationVal = ref("");
  290. const loading = ref(false);
  291. const MAP_KEY = "CZLBZ-LJICQ-R4A5J-BN62X-YXCRJ-GNBUT";
  292. const handleSearchRes = (v) => {
  293. authenticMap.setMapCenter(v);
  294. };
  295. const locationOptions = reactive({
  296. list: [],
  297. });
  298. const remoteMethod = async (keyword) => {
  299. if (keyword) {
  300. locationOptions.list = [];
  301. loading.value = true;
  302. const params = {
  303. key: MAP_KEY,
  304. keyword,
  305. // location: store.getters.userLocation,
  306. location: "22.574540836684672,113.1093017627431",
  307. };
  308. await VE_API.old_mini_map
  309. .getCtiyList({ word: keyword })
  310. .then(({ data }) => {
  311. if (data && data.length) {
  312. data.forEach((item) => {
  313. item.point = item.location.lat + "," + item.location.lng;
  314. locationOptions.list.push(item);
  315. });
  316. }
  317. });
  318. VE_API.old_mini_map.search(params).then(({ data }) => {
  319. loading.value = false;
  320. data.forEach((item) => {
  321. item.point = item.location.lat + "," + item.location.lng;
  322. locationOptions.list.push(item);
  323. });
  324. });
  325. } else {
  326. locationOptions.list = [];
  327. }
  328. };
  329. const rules = {
  330. address: [{ required: true, message: "请输入农场地址", trigger: "change" }],
  331. farmName: [{ required: true, message: "请输入农场名称", trigger: "change" }],
  332. speciesTypeName: [
  333. { required: true, message: "请输入作物物种", trigger: "change" },
  334. ],
  335. masterName: [{ required: true, message: "请输入姓名", trigger: "change" }],
  336. masterTel: [{ required: true, message: "请输入联系电话", trigger: "change" }],
  337. };
  338. const ruleFormRef = ref(null);
  339. const initForm = {
  340. id: "",
  341. address: "",
  342. farmName: "",
  343. createDate: "",
  344. area: "",
  345. speciesTypeName: "",
  346. masterName: "",
  347. masterTel: "",
  348. geom: "",
  349. };
  350. const formInline = reactive({
  351. ...initForm,
  352. });
  353. const disabledForm = ref(false);
  354. // 筛选
  355. const formInlineRef = ref(null);
  356. const formInlineSearch = reactive({
  357. ...initForm,
  358. });
  359. const onSearch = () => {
  360. isUpdata.value = false
  361. onCancel()
  362. };
  363. const onRest = () => {
  364. Object.assign(formInlineSearch, initForm);
  365. onCancel()
  366. };
  367. const isEdit = ref(false);
  368. // 编辑
  369. const handleEdit = () => {
  370. disabledForm.value = false;
  371. authenticMap.startModify();
  372. };
  373. // 取消
  374. const isUpdata = ref(true);
  375. const onCancel = () => {
  376. isEdit.value = false;
  377. authenticMap.setPoint("point");
  378. authenticMap.clearMapData("isEdit", false);
  379. authenticMap.endDraw();
  380. if (isUpdata.value) {
  381. authenticMap.cancelDraw();
  382. } else {
  383. getList();
  384. }
  385. };
  386. // 保存
  387. const onSubmit = () => {
  388. if (!ruleFormRef.value) return;
  389. ruleFormRef.value.validate((valid, fields) => {
  390. if (valid) {
  391. VE_API.authentic.saveData(formInline).then((res) => {
  392. isUpdata.value = false
  393. disabledForm.value = true;
  394. const point = mapData.curPointData
  395. authenticMap.endDraw();
  396. getList().then(()=>{
  397. isRefresh.value = false
  398. isEdit.value = true;
  399. authenticMap.getSelectPointArr(point.id||plotList.value[plotList.value.length - 1].id)
  400. })
  401. });
  402. }
  403. });
  404. };
  405. // 打印
  406. const handlePrint = () =>{
  407. pdfShow.value = true
  408. }
  409. // 返回
  410. const goBack = () => {
  411. router.go(-1);
  412. };
  413. function updateFormInline(newData,name) {
  414. Object.assign(formInline, newData);
  415. }
  416. // 删除地块
  417. const handleDelete = () => {
  418. if (!mapData.curPointData.id) return ElMessage("请选择地块");
  419. const id = mapData.selectPointArr.map((item) => item.values_.id);
  420. ElMessageBox.confirm("您确定删除该地块吗?", "提示", {
  421. confirmButtonText: "确认",
  422. cancelButtonText: "取消",
  423. type: "warning",
  424. })
  425. .then(() => {
  426. VE_API.authentic.deleteData(id).then((res) => {
  427. isUpdata.value = false
  428. onCancel();
  429. });
  430. })
  431. .catch(() => {});
  432. };
  433. // 创建
  434. const isRefresh = ref(true)
  435. const handleAdd = () => {
  436. isRefresh.value = false
  437. authenticMap.clearMapData("curPointData", {});
  438. authenticMap.clearMapData("isEdit", false);
  439. authenticMap.setPoint("point");
  440. updateFormInline({ ...initForm });
  441. pointList.value = [];
  442. isEdit.value = false;
  443. ruleFormRef.value.resetFields();
  444. if (isUpdata.value) {
  445. authenticMap.cancelDraw();
  446. } else {
  447. getList();
  448. isUpdata.value = true;
  449. }
  450. authenticMap.startDraw();
  451. };
  452. // 删除点
  453. const handleDeletePoint = () => {
  454. authenticMap.removePoint();
  455. };
  456. // 撤销
  457. const handleCancel = () => {
  458. authenticMap.undoLastDraw();
  459. // authenticMap.cancelDraw()
  460. };
  461. // 导出
  462. const gridData = ref([]);
  463. const dialogVisible = ref(false);
  464. const handleExport = () => {
  465. if (mapData.selectPointArr.length < 1) return ElMessage("请选择地块");
  466. const ids = mapData.selectPointArr.map((item) => item.values_.id);
  467. VE_API.authentic.exportData(ids).then(({ data }) => {
  468. gridData.value = data.map((item) => {
  469. return {
  470. ...item,
  471. createDate: dateFormat(
  472. new Date(item.createDate),
  473. "YYYY-mm-dd HH:MM:SS"
  474. ),
  475. };
  476. });
  477. dialogVisible.value = true;
  478. });
  479. };
  480. // 下载
  481. const handleDowload = () => {
  482. const fieldLabels = [
  483. "农场名称",
  484. "农场地址",
  485. "创建时间",
  486. "农场面积",
  487. "作物物种",
  488. "客户姓名",
  489. "联系电话",
  490. "边界点经纬度",
  491. ];
  492. const fieldKeys = [
  493. "farmName",
  494. "address",
  495. "createDate",
  496. "mu",
  497. "speciesTypeName",
  498. "masterName",
  499. "masterTel",
  500. "points",
  501. ];
  502. const fileName = "农场数据" + dateFormat(new Date(), "YYYY-mm-dd");
  503. exportExcel(gridData.value, fieldLabels, fieldKeys, fileName);
  504. };
  505. const pointList = ref([]);
  506. // 获取编辑回显数据
  507. const getDetailsData = (id) => {
  508. VE_API.authentic.getDetails({ id }).then(({ data }) => {
  509. isEdit.value = true;
  510. disabledForm.value = true;
  511. data.createDate = dateFormat(
  512. new Date(data.createDate),
  513. "YYYY-mm-dd HH:MM:SS"
  514. );
  515. updateFormInline({ ...data });
  516. formInline.area = data.mu.toFixed(2) + "亩";
  517. // 经纬度列表
  518. let arr = JSON.parse(data.points);
  519. // 删除最后数组最后一项闭合数据
  520. arr.pop();
  521. pointList.value = arr;
  522. });
  523. };
  524. // 添加经纬度列表
  525. const updatePointList = () => {
  526. const { geometryArr, area } = authenticMap.getAreaGeometry();
  527. const lastItem = geometryArr[geometryArr.length - 1];
  528. formInline.geom = lastItem.featureWkt;
  529. formInline.area = area + "亩";
  530. let result = parseMultiPolygon(lastItem.featureWkt);
  531. result.pop();
  532. pointList.value = result;
  533. };
  534. watchEffect(() => {
  535. isRefresh.value = true
  536. if (mapData.isEdit && mapData.selectPointArr.length < 2&&isRefresh.value) {
  537. isEdit.value = true;
  538. disabledForm.value = false;
  539. isUpdata.value = true;
  540. formInline.createDate = dateFormat(new Date(), "YYYY-mm-dd HH:MM:SS");
  541. updatePointList();
  542. authenticMap.startModify();
  543. }
  544. if (mapData.isEditArea) {
  545. isUpdata.value = false;
  546. updatePointList();
  547. }
  548. });
  549. watch(
  550. () => mapData.selectPointArr,
  551. (newVale, oldValue) => {
  552. if (mapData.selectPointArr.length === 1) {
  553. const id = mapData.selectPointArr.map((item) => item.values_.id);
  554. getDetailsData(id[0]);
  555. } else {
  556. if(isRefresh.value){
  557. isEdit.value = false;
  558. authenticMap.endDraw();
  559. }
  560. }
  561. }
  562. );
  563. </script>
  564. <style lang="scss" scoped>
  565. .base-container {
  566. width: 100%;
  567. height: 100vh;
  568. color: #fff;
  569. box-sizing: border-box;
  570. z-index: 1;
  571. position: relative;
  572. .top-bg {
  573. position: absolute;
  574. top: 0;
  575. width: 100%;
  576. height: 74px;
  577. background: #101010;
  578. z-index: -1;
  579. }
  580. .btn {
  581. display: flex;
  582. align-items: center;
  583. padding: 6px 16px;
  584. border-radius: 4px;
  585. cursor: pointer;
  586. .icon {
  587. width: 13px;
  588. height: 13px;
  589. }
  590. span {
  591. margin-left: 10px;
  592. }
  593. }
  594. .top {
  595. display: flex;
  596. // justify-content: space-between;
  597. justify-content: flex-end;
  598. width: 100%;
  599. height: 40px;
  600. background: #101010;
  601. padding: 17px 20px 0 20px;
  602. box-sizing: border-box;
  603. display: flex;
  604. align-items: center;
  605. .back {
  606. border: 1px solid rgba(255, 255, 255, 0.4);
  607. }
  608. .search {
  609. display: flex;
  610. align-items: center;
  611. justify-content: flex-end;
  612. width: 60%;
  613. .input-with-select {
  614. margin-left: 25px;
  615. }
  616. .v-select {
  617. width: 300px;
  618. ::v-deep {
  619. .el-select__wrapper {
  620. background: #101010;
  621. box-shadow: none;
  622. border: 1px solid rgba(255, 255, 255, 0.7);
  623. .el-select__input {
  624. color: #fff;
  625. }
  626. }
  627. }
  628. }
  629. .upload {
  630. background: #2199f8;
  631. margin-left: 25px;
  632. }
  633. .add {
  634. background: #fff;
  635. color: #000;
  636. margin-left: 25px;
  637. }
  638. }
  639. }
  640. .content {
  641. width: 100%;
  642. height: calc(100% - 74px - 40px);
  643. box-sizing: border-box;
  644. background: #101010;
  645. padding: 13px 20px 20px 20px;
  646. .search-form {
  647. height: 40px;
  648. margin: 5px 0;
  649. display: flex;
  650. justify-content: flex-end;
  651. ::v-deep{
  652. .el-form-item__label{
  653. color: #fff;
  654. }
  655. .el-form-item__content{
  656. width: 190px;
  657. }
  658. .el-input__wrapper{
  659. background: #101010;
  660. box-shadow: none;
  661. border: 1px solid rgba(255, 255, 255, 0.7);
  662. .el-input__inner {
  663. color: #fff;
  664. }
  665. }
  666. }
  667. .button{
  668. display: flex;
  669. .btn{
  670. width:84px;
  671. &.reset{
  672. margin-left: 25px;
  673. }
  674. }
  675. }
  676. }
  677. .box {
  678. border: 1px solid rgba(255, 255, 255, 0.4);
  679. border-radius: 8px;
  680. padding: 20px;
  681. box-sizing: border-box;
  682. background: #232323;
  683. width: 100%;
  684. height: calc(100% - 50px);
  685. position: relative;
  686. .map-box {
  687. width: 100%;
  688. height: 100%;
  689. border-radius: 4px;
  690. border: 1px solid rgba(255, 255, 255, 0.4);
  691. .map {
  692. width: 100%;
  693. height: 100%;
  694. }
  695. }
  696. .tool-group {
  697. position: absolute;
  698. display: flex;
  699. right: calc(500px + 36px);
  700. top: 42px;
  701. .btn {
  702. background: #fff;
  703. color: #000;
  704. margin-right: 10px;
  705. }
  706. .delete {
  707. background: #e45c5c;
  708. color: #fff;
  709. }
  710. }
  711. .edit-popup {
  712. width: 500px;
  713. height: calc(100% - 53px - 20px);
  714. position: absolute;
  715. top: 36px;
  716. right: 36px;
  717. border: 1px solid rgba(255, 255, 255, 0.4);
  718. border-radius: 8px;
  719. background: #232323;
  720. .edit-title {
  721. padding: 0 10px;
  722. background: rgba(68, 68, 68, 0.4);
  723. border-bottom: 1px solid rgba(68, 68, 68, 0.4);
  724. display: flex;
  725. align-items: center;
  726. justify-content: space-between;
  727. .btn-group{
  728. display: flex;
  729. .ml{
  730. margin-left: 20px;
  731. }
  732. }
  733. .name {
  734. display: flex;
  735. padding: 12px 0px;
  736. align-items: center;
  737. }
  738. span {
  739. margin-left: 8px;
  740. font-size: 18px;
  741. font-family: "SOURCEHANTIFINE";
  742. }
  743. .edit {
  744. color: #2199f8;
  745. padding: 6px 20px;
  746. border: 1px solid #2199f8;
  747. border-radius: 4px;
  748. cursor: pointer;
  749. }
  750. }
  751. .edit-cont {
  752. padding: 16px;
  753. width: calc(100% - 32px);
  754. height: calc(100% - 64px - 84px);
  755. .form-inline {
  756. height: 320px;
  757. ::v-deep {
  758. .el-input {
  759. width: 200px;
  760. --el-input-placeholder-color: #666666;
  761. }
  762. .el-form-item__label {
  763. color: #bbbbbb;
  764. }
  765. .el-input__wrapper {
  766. background: #232323;
  767. border: 1px solid #444444;
  768. box-shadow: none;
  769. .el-input__inner {
  770. color: #fff;
  771. }
  772. }
  773. }
  774. }
  775. .list-box {
  776. width: 100%;
  777. height: calc(100% - 320px);
  778. span {
  779. color: #bbbbbb;
  780. }
  781. .list-cont {
  782. width: 100%;
  783. height: calc(100% - 20px);
  784. border-radius: 4px;
  785. margin-top: 5px;
  786. background: rgba(68, 68, 68, 0.4);
  787. padding: 12px 16px;
  788. box-sizing: border-box;
  789. overflow-y: auto;
  790. .list-item {
  791. width: 100%;
  792. margin-bottom: 8px;
  793. display: flex;
  794. align-items: center;
  795. .item-box {
  796. padding: 8px;
  797. border: 1px solid #444444;
  798. border-radius: 4px;
  799. margin-left: 10px;
  800. }
  801. }
  802. }
  803. }
  804. }
  805. .edit-footer {
  806. width: 100%;
  807. height: 64px;
  808. display: flex;
  809. align-items: center;
  810. justify-content: flex-end;
  811. box-sizing: border-box;
  812. padding: 12px 16px;
  813. border-top: 1px solid rgba(68, 68, 68, 0.4);
  814. background: rgba(68, 68, 68, 0.4);
  815. .btn {
  816. padding: 10px 35px;
  817. }
  818. .cancel {
  819. border: 1px solid rgba(255, 255, 255, 0.4);
  820. margin-right: 16px;
  821. }
  822. .save {
  823. background: #2199f8;
  824. }
  825. }
  826. }
  827. }
  828. }
  829. }
  830. .dialog-footer {
  831. .btn {
  832. width: 200px;
  833. height: 40px;
  834. }
  835. }
  836. </style>