detail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. <template>
  2. <div class="system-dic-container">
  3. <div class="content">
  4. <div class="cont_box">
  5. <div class="title">设备:{{ detail.name }}</div>
  6. <div class="pro-status"><span :class="developer_status == 1 ? 'on' : 'off'"></span>{{ developer_status == 1 ? '已发布' : '未发布' }}</div>
  7. <div class="pro-option" @click="CkOption">{{ developer_status == 1 ? '停用' : '启用' }}</div>
  8. </div>
  9. </div>
  10. <div class="content-box">
  11. <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
  12. <el-tab-pane label="实例信息" name="1">
  13. <div class="pro-box">
  14. <div class="protitle">设备信息</div>
  15. <el-button type="" :icon="Edit" class="buttonedit" @click="onOpenEditDic(detail)">编辑</el-button>
  16. </div>
  17. <div class="ant-descriptions-view">
  18. <table>
  19. <tbody>
  20. <tr class="ant-descriptions-row">
  21. <th class="ant-descriptions-item-label ant-descriptions-item-colon">设备名称</th>
  22. <td class="ant-descriptions-item-content" colspan="1">{{ detail.name }}</td>
  23. <th class="ant-descriptions-item-label ant-descriptions-item-colon">所属产品</th>
  24. <td class="ant-descriptions-item-content" colspan="1">{{ detail.productName }}</td>
  25. <th class="ant-descriptions-item-label ant-descriptions-item-colon">所属部门</th>
  26. <td class="ant-descriptions-item-content" colspan="1">{{ detail.deptName }}</td>
  27. </tr>
  28. <tr class="ant-descriptions-row">
  29. <th class="ant-descriptions-item-label ant-descriptions-item-colon">消息协议</th>
  30. <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.messageProtocol }}</td>
  31. <th class="ant-descriptions-item-label ant-descriptions-item-colon">链接协议</th>
  32. <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.transportProtocol }}</td>
  33. <th class="ant-descriptions-item-label ant-descriptions-item-colon">设备类型</th>
  34. <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.deviceType }}</td>
  35. </tr>
  36. <tr class="ant-descriptions-row">
  37. <th class="ant-descriptions-item-label ant-descriptions-item-colon">创建时间</th>
  38. <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.createdAt }}</td>
  39. <th class="ant-descriptions-item-label ant-descriptions-item-colon">注册时间</th>
  40. <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.updatedAt }}</td>
  41. <th class="ant-descriptions-item-label ant-descriptions-item-colon">最后上线时间</th>
  42. <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.lastOnlineTime || '' }}</td>
  43. </tr>
  44. <tr class="ant-descriptions-row">
  45. <th class="ant-descriptions-item-label ant-descriptions-item-colon">描述</th>
  46. <td class="ant-descriptions-item-content" colspan="5">{{ prodetail.desc }}</td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. </div>
  51. </el-tab-pane>
  52. <el-tab-pane label="物模型" name="2">
  53. <div class="wu-box">
  54. <el-tabs type="border-card" v-model="activetab" @tab-click="wuhandleClick">
  55. <el-tab-pane label="属性定义" name="attr">
  56. <div class="wu-title">
  57. <div class="title">属性定义</div>
  58. <div><el-button type="primary" @click="onOpenEditAttr()">添加</el-button></div>
  59. </div>
  60. <el-table style="width: 100%" :data="tableData.data" v-if="activetab == 'attr'">
  61. <el-table-column label="属性标识" align="center" prop="key" />
  62. <el-table-column label="属性名称" prop="name" :show-overflow-tooltip="true" />
  63. <el-table-column prop="valueType" label="数据类型" width="120" align="center">
  64. <template #default="scope">
  65. <span>{{ scope.row.valueType.type }}</span>
  66. </template>
  67. </el-table-column>
  68. <el-table-column prop="accessMode" label="是否只读" width="120" align="center">
  69. <template #default="scope">
  70. <el-tag type="info" size="small" v-if="scope.row.accessMode">只读</el-tag>
  71. <el-tag type="success" size="small" v-else>读写</el-tag>
  72. </template>
  73. </el-table-column>
  74. <el-table-column label="说明" prop="desc" :show-overflow-tooltip="true" />
  75. <el-table-column label="操作" width="300" align="center" fixed="right">
  76. <template #default="scope">
  77. <el-button size="small" text type="warning" @click="onEditAttr(scope.row)">修改</el-button>
  78. <el-button size="small" text type="danger" @click="onRowDel(scope.row.key, 'attr')">删除</el-button>
  79. </template>
  80. </el-table-column>
  81. </el-table>
  82. </el-tab-pane>
  83. <el-tab-pane label="功能定义" name="fun">
  84. <div class="wu-title">
  85. <div class="title">功能定义</div>
  86. <div><el-button type="primary" @click="onOpenEditFun()">添加</el-button></div>
  87. </div>
  88. <el-table style="width: 100%" :data="tableData.data" v-if="activetab == 'fun'">
  89. <el-table-column label="功能标识" align="center" prop="key" />
  90. <el-table-column label="名称" prop="name" :show-overflow-tooltip="true" />
  91. <el-table-column label="描述" prop="desc" :show-overflow-tooltip="true" />
  92. <el-table-column label="操作" width="300" align="center" fixed="right">
  93. <template #default="scope">
  94. <el-button size="small" text type="warning" @click="onEditFun(scope.row)">修改</el-button>
  95. <el-button size="small" text type="danger" @click="onRowDel(scope.row.key, 'fun')">删除</el-button>
  96. </template>
  97. </el-table-column>
  98. </el-table>
  99. </el-tab-pane>
  100. <el-tab-pane label="事件定义" name="event">
  101. <div class="wu-title">
  102. <div class="title">事件定义</div>
  103. <div><el-button type="primary" @click="onOpenEditEvent()">添加</el-button></div>
  104. </div>
  105. <el-table style="width: 100%" :data="tableData.data" v-if="activetab == 'event'">
  106. <el-table-column label="事件标识" align="center" prop="key" />
  107. <el-table-column label="名称" prop="name" :show-overflow-tooltip="true" />
  108. <el-table-column prop="level" label="事件级别" width="120" align="center">
  109. <template #default="scope">
  110. <el-tag type="primary" size="small" v-if="scope.row.level == 0">普通</el-tag>
  111. <el-tag type="warning" size="small" v-if="scope.row.level == 1">警告</el-tag>
  112. <el-tag type="danger" size="small" v-if="scope.row.level == 2">紧急</el-tag>
  113. </template>
  114. </el-table-column>
  115. <el-table-column label="描述" prop="desc" :show-overflow-tooltip="true" />
  116. <el-table-column label="操作" width="300" align="center" fixed="right">
  117. <template #default="scope">
  118. <el-button size="small" text type="warning" @click="onEditEvent(scope.row)">修改</el-button>
  119. <el-button size="small" text type="danger" @click="onRowDel(scope.row.key, 'event')">删除</el-button>
  120. </template>
  121. </el-table-column>
  122. </el-table></el-tab-pane
  123. >
  124. <el-tab-pane label="标签定义" name="tab"
  125. ><div class="wu-title">
  126. <div class="title">标签定义</div>
  127. <div><el-button type="primary" @click="onOpenEditTab()">添加</el-button></div>
  128. </div>
  129. <el-table style="width: 100%" :data="tableData.data" v-if="activetab == 'tab'">
  130. <el-table-column label="属性标识" align="center" prop="key" />
  131. <el-table-column label="属性名称" prop="name" :show-overflow-tooltip="true" />
  132. <el-table-column prop="valueType" label="数据类型" width="120" align="center">
  133. <template #default="scope">
  134. <span>{{ scope.row.valueType.type }}</span>
  135. </template>
  136. </el-table-column>
  137. <el-table-column prop="accessMode" label="是否只读" width="120" align="center">
  138. <template #default="scope">
  139. <el-tag type="info" size="small" v-if="scope.row.accessMode">只读</el-tag>
  140. <el-tag type="success" size="small" v-else>读写</el-tag>
  141. </template>
  142. </el-table-column>
  143. <el-table-column label="描述" prop="desc" :show-overflow-tooltip="true" />
  144. <el-table-column label="操作" width="300" align="center" fixed="right">
  145. <template #default="scope">
  146. <el-button size="small" text type="warning" @click="onEditTag(scope.row)">修改</el-button>
  147. <el-button size="small" text type="danger" @click="onRowDel(scope.row.key, 'tab')">删除</el-button>
  148. </template>
  149. </el-table-column>
  150. </el-table>
  151. </el-tab-pane>
  152. </el-tabs>
  153. <pagination
  154. v-show="tableData.total > 0"
  155. :total="tableData.total"
  156. v-model:page="tableData.param.pageNum"
  157. v-model:limit="tableData.param.pageSize"
  158. @pagination="getList"
  159. />
  160. </div>
  161. </el-tab-pane>
  162. <el-tab-pane label="运行状态" name="3"> </el-tab-pane>
  163. <el-tab-pane label="日志管理" name="4">
  164. <div class="system-user-search mb15">
  165. <el-form :model="logtableData.param" ref="queryRef" :inline="true" label-width="68px">
  166. <el-form-item label="日志类型" prop="types">
  167. <el-select v-model="logtableData.param.types" placeholder="日志类型" clearable size="default">
  168. <el-option
  169. v-for="item in logTypeData"
  170. :key="item"
  171. :label="item"
  172. :value="item"
  173. />
  174. </el-select>
  175. </el-form-item>
  176. <el-form-item label="创建时间" prop="dateRange">
  177. <el-date-picker
  178. v-model="logtableData.param.dateRange"
  179. size="default"
  180. value-format="YYYY-MM-DD"
  181. type="daterange"
  182. range-separator="-"
  183. start-placeholder="开始日期"
  184. end-placeholder="结束日期"
  185. ></el-date-picker>
  186. </el-form-item>
  187. <el-form-item>
  188. <el-button size="default" type="primary" class="ml10" @click="getlog">
  189. <el-icon>
  190. <ele-Search />
  191. </el-icon>
  192. 查询
  193. </el-button>
  194. <el-button size="default" @click="resetQuery(queryRef)">
  195. <el-icon>
  196. <ele-Refresh />
  197. </el-icon>
  198. 重置
  199. </el-button>
  200. </el-form-item>
  201. </el-form>
  202. </div>
  203. <el-table style="width: 100%" :data="logtableData.data">
  204. <el-table-column label="类型" align="center" prop="type" />
  205. <el-table-column label="时间" prop="ts" :show-overflow-tooltip="true" />
  206. <el-table-column label="内容" prop="content" :show-overflow-tooltip="true" />
  207. <el-table-column label="操作" width="300" align="center" fixed="right">
  208. <template #default="scope">
  209. <el-button size="small" text type="warning" @click="onLogDetail(scope.row)">查看</el-button>
  210. </template>
  211. </el-table-column>
  212. </el-table>
  213. <pagination
  214. v-show="logtableData.total > 0"
  215. :total="logtableData.total"
  216. v-model:page="logtableData.param.pageNum"
  217. v-model:limit="logtableData.param.pageSize"
  218. @pagination="getList"
  219. />
  220. </el-tab-pane>
  221. </el-tabs>
  222. </div>
  223. <EditDic ref="editDicRef" @typeList="typeList" />
  224. <EditAttr ref="editAttrRef" @typeList="getproperty" />
  225. <EditFun ref="editFunRef" @typeList="getfunction" />
  226. <EditEvent ref="editEventRef" @typeList="getevent" />
  227. <EditTab ref="editTabRef" @typeList="gettab" />
  228. <el-dialog v-model="dialogVisible" title="返回Json数据" width="30%">
  229. <JsonViewer :value="jsonData" boxed sort theme="jv-dark" @click="onKeyclick" />
  230. <template #footer>
  231. <span class="dialog-footer">
  232. <el-button @click="dialogVisible = false">关闭</el-button>
  233. </span>
  234. </template>
  235. </el-dialog>
  236. </div>
  237. </template>
  238. <script lang="ts">
  239. import { toRefs, reactive, onMounted, ref, defineComponent } from 'vue';
  240. import { Delete, Edit, Search, Share, Upload } from '@element-plus/icons-vue';
  241. import { ElMessageBox, ElMessage, FormInstance } from 'element-plus';
  242. import "vue3-json-viewer/dist/index.css";
  243. import EditDic from '../product/component/editPro.vue';
  244. import EditAttr from '../product/component/editAttr.vue';
  245. import EditFun from '../product/component/editFun.vue';
  246. import EditEvent from '../product/component/editEvent.vue';
  247. import EditTab from '../product/component/editTab.vue';
  248. import { useRoute } from 'vue-router';
  249. import api from '/@/api/device';
  250. interface TableDataState {
  251. ids: number[];
  252. tableData: {
  253. data: [];
  254. total: number;
  255. loading: boolean;
  256. param: {
  257. pageNum: number;
  258. pageSize: number;
  259. name: string;
  260. deviceType: string;
  261. status: string;
  262. dateRange: string[];
  263. };
  264. };
  265. logtableData: {
  266. data: [];
  267. total: number;
  268. loading: boolean;
  269. param: {
  270. pageNum: number;
  271. pageSize: number;
  272. name: string;
  273. deviceType: string;
  274. status: string;
  275. dateRange: string[];
  276. };
  277. };
  278. }
  279. export default defineComponent({
  280. name: 'deviceEditPro',
  281. components: { EditDic, EditAttr, EditFun, EditEvent, EditTab },
  282. setup(prop, context) {
  283. const route = useRoute();
  284. const editDicRef = ref();
  285. const editAttrRef = ref();
  286. const editFunRef = ref();
  287. const editEventRef = ref();
  288. const editTabRef = ref();
  289. const state = reactive<TableDataState>({
  290. isShowDialog: false,
  291. dialogVisible: false,
  292. logTypeData:[],
  293. jsonData:'',
  294. activeName: '1', // 分类数据
  295. activetab: 'attr', // 分类数据
  296. detail: [],
  297. prodetail: [],
  298. product_id: 0,
  299. developer_status: 0,
  300. tableData: {
  301. data: [],
  302. total: 0,
  303. loading: false,
  304. param: {
  305. pageNum: 1,
  306. productId: 0,
  307. pageSize: 10,
  308. status: '',
  309. dateRange: [],
  310. },
  311. },
  312. logtableData: {
  313. data: [],
  314. total: 0,
  315. loading: false,
  316. param: {
  317. pageNum: 1,
  318. productId: 0,
  319. pageSize: 10,
  320. status: '',
  321. dateRange: [],
  322. },
  323. },
  324. });
  325. onMounted(() => {
  326. const ids = route.params && route.params.id;
  327. api.instance.detail(ids).then((res: any) => {
  328. state.detail = res.data;
  329. state.developer_status = res.data.status;
  330. state.tableData.param.productId = res.data.product.id;
  331. state.product_id = res.data.product.id;
  332. api.product.detail(res.data.product.id).then((res: any) => {
  333. state.prodetail = res.data;
  334. console.log(res.data);
  335. });
  336. //第一次加载
  337. api.model.property(state.tableData.param).then((res: any) => {
  338. state.tableData.data = res.Data;
  339. state.tableData.total = res.Total;
  340. });
  341. });
  342. });
  343. const onLogDetail = (row: TableDataRow) => {
  344. state.jsonData=JSON.parse(row.content);
  345. console.log(JSON.parse(row.content));
  346. state.dialogVisible=true;
  347. };
  348. //编辑属性
  349. const onEditAttr = (row: TableDataRow) => {
  350. editAttrRef.value.openDialog(row, state.product_id);
  351. };
  352. //编辑功能
  353. const onEditFun = (row: TableDataRow) => {
  354. editFunRef.value.openDialog(row, state.product_id);
  355. };
  356. //编辑事件
  357. const onEditEvent = (row: TableDataRow) => {
  358. editEventRef.value.openDialog(row, state.product_id);
  359. };
  360. //编辑标签
  361. const onEditTag = (row: TableDataRow) => {
  362. editTabRef.value.openDialog(row, state.product_id);
  363. };
  364. //打开添加属性弹窗
  365. const onOpenEditAttr = () => {
  366. editAttrRef.value.openDialog({ product_id: state.product_id, id: 0, accessMode: 0 });
  367. };
  368. //打开添加功能弹窗
  369. const onOpenEditFun = () => {
  370. editFunRef.value.openDialog({ product_id: state.product_id, id: 0 });
  371. };
  372. //打开添加事件弹窗
  373. const onOpenEditEvent = () => {
  374. editEventRef.value.openDialog({ product_id: state.product_id, id: 0, level: 0 });
  375. };
  376. //打开添加事件弹窗
  377. const onOpenEditTab = () => {
  378. editTabRef.value.openDialog({ product_id: state.product_id, id: 0, accessMode: 0 });
  379. };
  380. // 打开修改产品弹窗
  381. const onOpenEditDic = (row: TableDataRow) => {
  382. editDicRef.value.openDialog(row);
  383. };
  384. // 删除产品
  385. const onRowDel = (key, type) => {
  386. let msg = `此操作将永久删除该数据吗?,是否继续?`;
  387. if (key.length === 0) {
  388. ElMessage.error('请选择要删除的数据。');
  389. return;
  390. }
  391. ElMessageBox.confirm(msg, '提示', {
  392. confirmButtonText: '确认',
  393. cancelButtonText: '取消',
  394. type: 'warning',
  395. })
  396. .then(() => {
  397. if (type == 'attr') {
  398. api.model.propertydel(state.product_id, key).then(() => {
  399. ElMessage.success('删除成功');
  400. getproperty();
  401. });
  402. }
  403. if (type == 'fun') {
  404. api.model.functiondel(state.product_id, key).then(() => {
  405. ElMessage.success('删除成功');
  406. getfunction();
  407. });
  408. }
  409. if (type == 'event') {
  410. api.model.eventdel(state.product_id, key).then(() => {
  411. ElMessage.success('删除成功');
  412. getevent();
  413. });
  414. }
  415. if (type == 'tab') {
  416. api.model.tagdel(state.product_id, key).then(() => {
  417. ElMessage.success('删除成功');
  418. tagdel();
  419. });
  420. }
  421. })
  422. .catch(() => {});
  423. };
  424. //根据不同类型获取列表
  425. const getList = () => {
  426. switch (state.activetab) {
  427. case 'attr':
  428. getproperty();
  429. break;
  430. case 'fun':
  431. getfunction();
  432. break;
  433. case 'event':
  434. getevent();
  435. break;
  436. case 'tab':
  437. gettab();
  438. break;
  439. }
  440. };
  441. const getproperty = () => {
  442. api.model.property(state.tableData.param).then((res: any) => {
  443. state.tableData.data = res.Data;
  444. state.tableData.total = res.Total;
  445. });
  446. };
  447. const getfunction = () => {
  448. api.model.function(state.tableData.param).then((res: any) => {
  449. state.tableData.data = res.Data;
  450. state.tableData.total = res.Total;
  451. });
  452. };
  453. const getevent = () => {
  454. api.model.event(state.tableData.param).then((res: any) => {
  455. state.tableData.data = res.Data;
  456. state.tableData.total = res.Total;
  457. });
  458. };
  459. const gettab = () => {
  460. api.model.tag(state.tableData.param).then((res: any) => {
  461. state.tableData.data = res.Data;
  462. state.tableData.total = res.Total;
  463. });
  464. };
  465. const wuhandleClick = (tab: TabsPaneContext) => {
  466. state.activetab = tab.props.name;
  467. switch (tab.props.name) {
  468. case 'attr':
  469. getproperty();
  470. break;
  471. case 'fun':
  472. getfunction();
  473. break;
  474. case 'event':
  475. getevent();
  476. break;
  477. case 'tab':
  478. gettab();
  479. break;
  480. }
  481. };
  482. const handleClick = (tab: TabsPaneContext, event: Event) => {
  483. console.log(tab, event);
  484. if (tab.props.name == 4) {
  485. //获取日志
  486. getlog();
  487. getlogtype();
  488. }else if(tab.props.name==2){
  489. getList();
  490. }
  491. };
  492. const getlogtype=()=>{
  493. api.instance.getlogcate({}).then((res: any) => {
  494. state.logTypeData = res.list;
  495. });
  496. };
  497. const getlog = () => {
  498. state.logtableData.param.deviceKey = state.detail.key;
  499. api.instance.getLogList(state.logtableData.param).then((res: any) => {
  500. console.log(res,"22222222");
  501. state.logtableData.data = res.list;
  502. state.logtableData.total = res.Total;
  503. });
  504. };
  505. const CkOption = () => {
  506. if (state.developer_status == 1) {
  507. api.product.undeploy({ id: route.params.id }).then((res: any) => {
  508. ElMessage.success('操作成功');
  509. state.developer_status = 0;
  510. });
  511. } else {
  512. api.product.deploy({ id: route.params.id }).then((res: any) => {
  513. ElMessage.success('操作成功');
  514. state.developer_status = 1;
  515. });
  516. }
  517. };
  518. return {
  519. Edit,
  520. editDicRef,
  521. editAttrRef,
  522. editFunRef,
  523. editEventRef,
  524. editTabRef,
  525. getlog,
  526. getlogtype,
  527. onLogDetail,
  528. CkOption,
  529. onRowDel,
  530. onEditFun,
  531. onEditEvent,
  532. onEditTag,
  533. onEditAttr,
  534. getList,
  535. getproperty,
  536. getfunction,
  537. getevent,
  538. gettab,
  539. wuhandleClick,
  540. onOpenEditTab,
  541. onOpenEditEvent,
  542. onOpenEditAttr,
  543. onOpenEditFun,
  544. onOpenEditDic,
  545. handleClick,
  546. ...toRefs(state),
  547. };
  548. },
  549. });
  550. </script>
  551. <style>
  552. .content {
  553. background: #fff;
  554. width: 100%;
  555. padding: 20px;
  556. }
  557. .content-box {
  558. background: #fff;
  559. width: 100%;
  560. padding: 20px;
  561. margin-top: 20px;
  562. }
  563. .cont_box {
  564. display: flex;
  565. }
  566. .cont_box .title {
  567. font-size: 24px;
  568. }
  569. .cont_box .pro-status {
  570. line-height: 40px;
  571. margin-left: 30px;
  572. }
  573. .cont_box .pro-status .on {
  574. background: #52c41a;
  575. }
  576. .cont_box .pro-status .off {
  577. background: #c41a1a;
  578. }
  579. .cont_box .pro-status span {
  580. position: relative;
  581. top: -1px;
  582. display: inline-block;
  583. width: 6px;
  584. height: 6px;
  585. vertical-align: middle;
  586. border-radius: 50%;
  587. margin-right: 5px;
  588. }
  589. .cont_box .pro-option {
  590. line-height: 40px;
  591. margin-left: 10px;
  592. color: #1890ff;
  593. cursor: pointer;
  594. }
  595. .content-box .pro-box {
  596. display: flex;
  597. padding: 10px;
  598. }
  599. .content-box .pro-box .protitle {
  600. font-size: 18px;
  601. font-weight: bold;
  602. line-height: 35px;
  603. }
  604. .content-box .pro-box .buttonedit {
  605. border: 0px;
  606. color: #1890ff;
  607. }
  608. table {
  609. border-collapse: collapse;
  610. text-indent: initial;
  611. border-spacing: 2px;
  612. }
  613. tbody {
  614. box-sizing: border-box;
  615. display: table-row-group;
  616. vertical-align: middle;
  617. border-color: inherit;
  618. }
  619. tr {
  620. display: table-row;
  621. vertical-align: inherit;
  622. border-color: inherit;
  623. }
  624. .ant-descriptions-view {
  625. width: 100%;
  626. overflow: hidden;
  627. border-radius: 4px;
  628. }
  629. .ant-descriptions-view {
  630. border: 1px solid #e8e8e8;
  631. }
  632. .ant-descriptions-view table {
  633. width: 100%;
  634. table-layout: fixed;
  635. }
  636. .ant-descriptions-view > table {
  637. table-layout: auto;
  638. }
  639. .ant-descriptions-row {
  640. border-bottom: 1px solid #e8e8e8;
  641. }
  642. .ant-descriptions-item-label {
  643. color: rgba(0, 0, 0, 0.85);
  644. font-weight: 400;
  645. font-size: 14px;
  646. line-height: 1.5;
  647. }
  648. .ant-descriptions-item-label {
  649. padding: 16px 24px;
  650. border-right: 1px solid #e8e8e8;
  651. }
  652. .ant-descriptions-item-label {
  653. background-color: #fafafa;
  654. }
  655. .ant-descriptions-item-content {
  656. padding: 16px 24px;
  657. border-right: 1px solid #e8e8e8;
  658. display: table-cell;
  659. color: rgba(0, 0, 0, 0.65);
  660. font-size: 14px;
  661. line-height: 1.5;
  662. }
  663. .wu-box {
  664. border: #e8e8e8 solid 1px;
  665. padding: 20px;
  666. width: 100%;
  667. }
  668. .wu-box .wu-title {
  669. display: flex;
  670. flex-direction: row;
  671. justify-content: space-between;
  672. padding: 20px;
  673. border-bottom: #e8e8e8 1px solid;
  674. }
  675. .wu-box .wu-title .title {
  676. font-size: 18px;
  677. }
  678. </style>