deviceList.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  1. <!--物联设备配置-->
  2. <template>
  3. <div class="deviceList scrollbar-box">
  4. <div class="title-box">
  5. <p class="left-title">传感器</p>
  6. <p class="right-button reset-button-one" @click="backPage">返回</p>
  7. </div>
  8. <div class="for-max-box">
  9. <div class="for-big-box" v-for="(item,index) in listCgq" :key="index">
  10. <p class="for-title-p">{{subjectData.room}}-{{item.type.name}}传感器{{index+1}}</p>
  11. <div class="for-text-box">
  12. <p>网关编号:</p>
  13. <el-tooltip class="item" effect="dark" :content="item.gatewayId" placement="top">
  14. <p>{{item.gatewayId}}</p>
  15. </el-tooltip>
  16. </div>
  17. <div class="for-button-box">
  18. <p @click="editData(5,item)"><i class="el-icon-edit-outline"></i>编辑</p>
  19. <p></p>
  20. <p @click="delSensor(item)"><i class="el-icon-delete"></i>删除</p>
  21. </div>
  22. </div>
  23. <p class="add-for-p" @click="addData(1)"><i class="el-icon-plus"></i>添加传感器</p>
  24. </div>
  25. <div class="title-box">
  26. <p class="left-title">一体机</p>
  27. </div>
  28. <div class="for-max-box">
  29. <div class="for-big-box" v-for="(item,index) in listYtj" :key="index">
  30. <p class="for-title-p">{{subjectData.room}}-{{item.type.name}}{{index+1}}</p>
  31. <div class="for-text-box">
  32. <p>一体机编号:</p>
  33. <el-tooltip class="item" effect="dark" :content="item.hardwareNum" placement="top">
  34. <p>{{item.hardwareNum}}</p>
  35. </el-tooltip>
  36. </div>
  37. <div class="for-button-box">
  38. <p @click="editData(6,item)"><i class="el-icon-edit-outline"></i>编辑</p>
  39. <p></p>
  40. <p @click="delHardware(item)"><i class="el-icon-delete"></i>删除</p>
  41. </div>
  42. </div>
  43. <p class="add-for-p" @click="addData(2)"><i class="el-icon-plus"></i>添加一体机</p>
  44. </div>
  45. <div class="title-box">
  46. <p class="left-title">控制设备</p>
  47. </div>
  48. <div class="for-max-box">
  49. <div class="for-big-box-two" v-for="(item,index) in listkzsb" :key="index">
  50. <p class="for-title-p">{{subjectData.room}}-{{item.type.name}}传感器{{index+1}}</p>
  51. <div class="for-text-box">
  52. <p>设备编号:</p>
  53. <el-tooltip class="item" effect="dark" :content="item.relayCode" placement="top">
  54. <p>{{item.relayCode}}</p>
  55. </el-tooltip>
  56. </div>
  57. <div class="for-text-box">
  58. <p>设备路由:</p>
  59. <p>{{item.bit}}</p>
  60. </div>
  61. <div class="for-button-box">
  62. <p @click="editData(7,item)"><i class="el-icon-edit-outline"></i>编辑</p>
  63. <p></p>
  64. <p @click="delHardwareTwo(item)"><i class="el-icon-delete"></i>删除</p>
  65. </div>
  66. </div>
  67. <p class="add-for-p-two" @click="addData(3)"><i class="el-icon-plus"></i>添加控制设备</p>
  68. </div>
  69. <div class="title-box">
  70. <p class="left-title">摄像头</p>
  71. </div>
  72. <div class="for-max-box">
  73. <div class="for-big-box" v-for="(item,index) in listSpjk" :key="index">
  74. <p class="for-title-p">{{subjectData.room}}-{{item.type.name}}{{index+1}}</p>
  75. <div class="for-text-box">
  76. <p>摄像头编号:</p>
  77. <p></p>
  78. </div>
  79. <div class="for-text-box">
  80. <p></p>
  81. <el-tooltip class="item" effect="dark" :content="item.hardwareNum" placement="top">
  82. <p>{{item.hardwareNum}}</p>
  83. </el-tooltip>
  84. </div>
  85. <div class="for-button-box">
  86. <p @click="editData(8,item)"><i class="el-icon-edit-outline"></i>编辑</p>
  87. <p></p>
  88. <p @click="delHardwareThree(item)"><i class="el-icon-delete"></i>删除</p>
  89. </div>
  90. </div>
  91. <p class="add-for-p-two" @click="addData(4)"><i class="el-icon-plus"></i>添加摄像头</p>
  92. </div>
  93. <el-dialog :title="title" :visible.sync="addType" v-if="addType" width="500px" append-to-body>
  94. <el-form ref="form" :model="form" :rules="rules" label-width="110px">
  95. <div v-if="upType == 1 || upType == 5">
  96. <el-form-item label="传感器类型" prop="type">
  97. <el-select v-model="form.type" placeholder="请选择传感器类型" style="width:320px;">
  98. <el-option
  99. v-for="item in sensorAddOptions"
  100. :key="item.enumName"
  101. :label="item.name"
  102. :value="item.enumName">
  103. </el-option>
  104. </el-select>
  105. </el-form-item>
  106. <el-form-item label="网关编号" prop="gatewayId">
  107. <el-input v-model="form.gatewayId" placeholder="请输入网关编号"
  108. maxlength="30" style="width:320px;"/>
  109. </el-form-item>
  110. <el-form-item label="路由" prop="routeNum">
  111. <el-input v-model="form.routeNum" oninput="value=value.replace(/[^0-9.]/g,'')" maxlength="2" placeholder="请输入路由" style="width:320px;"></el-input>
  112. </el-form-item>
  113. <el-form-item label="传感器参数" prop="configName">
  114. <el-input v-model="form.configName" placeholder="请输入传感器参数"
  115. maxlength="30" style="width:320px;"></el-input>
  116. </el-form-item>
  117. <el-form-item label="状态参数" prop="configStatus">
  118. <el-input v-model="form.configStatus" placeholder="请输入状态参数"
  119. maxlength="30" style="width:320px;"></el-input>
  120. </el-form-item>
  121. </div>
  122. <div v-if="upType == 2 || upType == 6">
  123. <el-form-item label="一体机名称" prop="name">
  124. <el-input
  125. style="width:320px;"
  126. v-model="form.name"
  127. placeholder="请输入一体机名称"
  128. maxlength="8"
  129. size="small"
  130. />
  131. </el-form-item>
  132. <el-form-item label="一体机类型" prop="pcType">
  133. <el-select v-model="form.pcType" placeholder="请选择一体机类型" style="width:320px;">
  134. <el-option label="管控一体机" value="0" />
  135. <el-option label="学习一体机" value="1" />
  136. </el-select>
  137. </el-form-item>
  138. <el-form-item label="一体机编号" prop="hardwareNum">
  139. <el-input
  140. style="width:320px;"
  141. v-model="form.hardwareNum"
  142. placeholder="请输入一体机编号"
  143. maxlength="30"
  144. size="small"
  145. />
  146. </el-form-item>
  147. </div>
  148. <div v-if="upType == 3 || upType == 7">
  149. <el-form-item label="硬件名称" prop="name">
  150. <el-input
  151. v-model="form.name"
  152. placeholder="请输入名称"
  153. clearable
  154. size="small"
  155. maxLength="8"
  156. />
  157. </el-form-item>
  158. <el-form-item label="设备类型" prop="type">
  159. <el-select v-model="form.type" placeholder="请选择设备类型" style="width:320px;" :disabled="disabledType">
  160. <el-option key="1" label="电源开关" value="1"></el-option>
  161. <el-option key="2" label="智能通风" value="2"></el-option>
  162. </el-select>
  163. </el-form-item>
  164. <el-form-item label="设备版本" prop="hardwareType">
  165. <el-radio-group v-model="form.hardwareType">
  166. <el-radio :label="1">老继电器</el-radio>
  167. <el-radio :label="2">新继电器</el-radio>
  168. </el-radio-group>
  169. </el-form-item>
  170. <el-form-item label="设备编号" prop="relayCode">
  171. <el-input v-model="form.relayCode" placeholder="请输入设备编号"
  172. maxlength="30" style="width:320px;"/>
  173. </el-form-item>
  174. <el-form-item label="设备路由" prop="bit">
  175. <el-input v-model="form.bit" oninput="value=value.replace(/[^0-9.]/g,'')" maxlength="2" placeholder="请输入路由" style="width:320px;"></el-input>
  176. </el-form-item>
  177. <el-form-item label="设备参数" prop="configName" v-if="form.hardwareType == 2">
  178. <el-input v-model="form.configName" maxlength="30" placeholder="请输入设备参数" style="width:320px;"></el-input>
  179. </el-form-item>
  180. <el-form-item label="参数状态" prop="configStatus" v-if="form.hardwareType == 2">
  181. <el-input v-model="form.configStatus" maxlength="30" placeholder="请输入参数状态" style="width:320px;"></el-input>
  182. </el-form-item>
  183. </div>
  184. <div v-if="upType == 4 || upType == 8">
  185. <el-form-item label="摄像头编号" prop="hardwareNum">
  186. <el-input v-model="form.hardwareNum" placeholder="摄像头编号"
  187. maxlength="30" style="width:320px;"/>
  188. </el-form-item>
  189. </div>
  190. </el-form>
  191. <div slot="footer" class="dialog-footer">
  192. <el-button @click="cancel">取 消</el-button>
  193. <el-button type="primary" @click="submitForm">确 定</el-button>
  194. </div>
  195. </el-dialog>
  196. </div>
  197. </template>
  198. <script>
  199. import { listBySubjectId,addSensor,putSensor,delSensor,addHardware,putHardware,delHardware } from "@/api/laboratory/subject";
  200. import { getSensorList } from "@/api/laboratory/sensor";
  201. export default {
  202. name: "deviceList",
  203. props:{
  204. subjectData:{},
  205. },
  206. data() {
  207. return {
  208. title:"",
  209. addType:false,
  210. listCgq:[], //传感器
  211. listYtj:[], //一体机
  212. listkzsb:[],
  213. listSpjk:[], //摄像头
  214. form:{},
  215. // 表单校验
  216. rules: {
  217. name:[
  218. {required: true, message: '名称不能为空', trigger: 'blur'},
  219. { required: true, message: "名称不能为空", validator: this.spaceJudgment, trigger: "blur" }
  220. ],
  221. type:[
  222. {required: true, message: '类型不能为空', trigger: 'blur'}
  223. ],
  224. gatewayId:[
  225. {required: true, message: '网关不能为空', trigger: 'blur'},
  226. { required: true, message: "网关不能为空", validator: this.spaceJudgment, trigger: "blur" }
  227. ],
  228. hardwareNum:[
  229. { required: true, message: "请输入编号", trigger: "blur" },
  230. { required: true, message: "请输入编号", validator: this.spaceJudgment, trigger: "blur" }
  231. ],
  232. pcType: [
  233. { required: true, message: "请选择类型", trigger: "blur" },
  234. ],
  235. hardwareType: [
  236. { required: true, message: "请选择设备版本", trigger: "blur" },
  237. ],
  238. relayCode: [
  239. { required: true, message: "请输入设备编号", trigger: "blur" },
  240. { required: true, message: "请输入设备编号", validator: this.spaceJudgment, trigger: "blur" }
  241. ],
  242. bit: [
  243. { required: true, message: "请输入路由", trigger: "blur" },
  244. { required: true, message: "请输入路由", validator: this.spaceJudgment, trigger: "blur" }
  245. ],
  246. },
  247. //提交类型
  248. upType:"",
  249. //传感器类型
  250. sensorAddOptions: [],
  251. }
  252. },
  253. created() {
  254. this.listBySubjectId();
  255. this.getSensorList();
  256. },
  257. mounted(){
  258. },
  259. methods:{
  260. // 取消按钮
  261. cancel() {
  262. this.addType = false;
  263. },
  264. // 提交
  265. submitForm() {
  266. this.$refs["form"].validate(valid => {
  267. if (valid) {
  268. if(this.upType == 1){
  269. //新增传感器
  270. this.addSensor();
  271. }else if(this.upType == 5){
  272. //编辑传感器
  273. this.putSensor();
  274. }else if(this.upType == 2){
  275. //新增一体机
  276. this.addHardware();
  277. }else if(this.upType == 6){
  278. //编辑一体机
  279. this.putHardware();
  280. }else if(this.upType == 3){
  281. //新增控制设备
  282. this.addHardwareTwo();
  283. }else if(this.upType == 7){
  284. //编辑控制设备
  285. this.putHardwareTwo();
  286. }else if(this.upType == 4){
  287. //新增控制设备
  288. this.addHardwareThree();
  289. }else if(this.upType == 8){
  290. //编辑控制设备
  291. this.putHardwareThree();
  292. }
  293. }
  294. });
  295. },
  296. //新增摄像头
  297. addHardwareThree(){
  298. let obj = {
  299. type:4,
  300. hardwareNum:this.form.hardwareNum,
  301. subjectId:this.subjectData.id,
  302. deptId:this.subjectData.deptId,
  303. deptName:this.subjectData.deptName,
  304. }
  305. addHardware(obj).then(response => {
  306. this.msgSuccess(response.msg)
  307. this.addType = false;
  308. this.listBySubjectId();
  309. });
  310. },
  311. //编辑摄像头
  312. putHardwareThree(){
  313. let obj = {
  314. id:this.form.id,
  315. hardwareNum:this.form.hardwareNum,
  316. subjectId:this.form.subjectId,
  317. deptId:this.form.deptId,
  318. deptName:this.form.deptName,
  319. }
  320. putHardware(obj).then(response => {
  321. this.msgSuccess(response.msg)
  322. this.addType = false;
  323. this.listBySubjectId();
  324. });
  325. },
  326. //删除摄像头
  327. delHardwareThree(item){
  328. this.$confirm('确认要删除该摄像头?', "警告", {
  329. confirmButtonText: "确定",
  330. cancelButtonText: "取消",
  331. type: "warning"
  332. }).then(() => {
  333. // 确定
  334. delHardware(item.id).then((response) => {
  335. this.msgSuccess(response.msg)
  336. this.addType = false;
  337. this.listBySubjectId();
  338. });
  339. }).catch(function() {
  340. // 取消
  341. });
  342. },
  343. //新增控制设备
  344. addHardwareTwo(){
  345. let obj = {
  346. name:this.form.name,
  347. type:this.form.type,
  348. hardwareType:this.form.hardwareType,
  349. relayCode:this.form.relayCode,
  350. bit:this.form.bit,
  351. configName:this.form.configName,
  352. configStatus:this.form.configStatus,
  353. subjectId:this.subjectData.id,
  354. deptId:this.subjectData.deptId,
  355. deptName:this.subjectData.deptName,
  356. }
  357. addHardware(obj).then(response => {
  358. this.msgSuccess(response.msg)
  359. this.addType = false;
  360. this.listBySubjectId();
  361. });
  362. },
  363. //编辑控制设备
  364. putHardwareTwo(){
  365. let obj = {
  366. id:this.form.id,
  367. name:this.form.name,
  368. hardwareType:this.form.hardwareType,
  369. relayCode:this.form.relayCode,
  370. bit:this.form.bit,
  371. configName:this.form.configName,
  372. configStatus:this.form.configStatus,
  373. subjectId:this.form.subjectId,
  374. deptId:this.form.deptId,
  375. deptName:this.form.deptName,
  376. }
  377. putHardware(obj).then(response => {
  378. this.msgSuccess(response.msg)
  379. this.addType = false;
  380. this.listBySubjectId();
  381. });
  382. },
  383. //删除控制设备
  384. delHardwareTwo(item){
  385. this.$confirm('确认要删除该一体机?', "警告", {
  386. confirmButtonText: "确定",
  387. cancelButtonText: "取消",
  388. type: "warning"
  389. }).then(() => {
  390. // 确定
  391. delHardware(item.id).then((response) => {
  392. this.msgSuccess(response.msg)
  393. this.addType = false;
  394. this.listBySubjectId();
  395. });
  396. }).catch(function() {
  397. // 取消
  398. });
  399. },
  400. //添加一体机
  401. addHardware(){
  402. let obj = {
  403. type:0,
  404. name:this.form.name,
  405. pcType:this.form.pcType,
  406. hardwareNum:this.form.hardwareNum,
  407. subjectId:this.subjectData.id,
  408. deptId:this.subjectData.deptId,
  409. deptName:this.subjectData.deptName,
  410. }
  411. addHardware(obj).then(response => {
  412. this.msgSuccess(response.msg)
  413. this.addType = false;
  414. this.listBySubjectId();
  415. });
  416. },
  417. //编辑一体机
  418. putHardware(){
  419. let obj = {
  420. id:this.form.id,
  421. name:this.form.name,
  422. pcType:this.form.pcType,
  423. hardwareNum:this.form.hardwareNum,
  424. }
  425. putHardware(obj).then(response => {
  426. this.msgSuccess(response.msg)
  427. this.addType = false;
  428. this.listBySubjectId();
  429. });
  430. },
  431. //删除一体机
  432. delHardware(item){
  433. this.$confirm('确认要删除该一体机?', "警告", {
  434. confirmButtonText: "确定",
  435. cancelButtonText: "取消",
  436. type: "warning"
  437. }).then(() => {
  438. // 确定
  439. delHardware(item.id).then((response) => {
  440. this.msgSuccess(response.msg)
  441. this.addType = false;
  442. this.listBySubjectId();
  443. });
  444. }).catch(function() {
  445. // 取消
  446. });
  447. },
  448. //添加传感器
  449. addSensor(){
  450. let obj = {
  451. type:this.form.type,
  452. gatewayId:this.form.gatewayId,
  453. routeNum:this.form.routeNum,
  454. configName:this.form.configName,
  455. configStatus:this.form.configStatus,
  456. subjectId:this.subjectData.id
  457. }
  458. addSensor(obj).then(response => {
  459. this.msgSuccess(response.msg)
  460. this.addType = false;
  461. this.listBySubjectId();
  462. });
  463. },
  464. //编辑传感器
  465. putSensor(){
  466. let obj = {
  467. type:this.form.type,
  468. id:this.form.id,
  469. gatewayId:this.form.gatewayId,
  470. routeNum:this.form.routeNum,
  471. configName:this.form.configName,
  472. configStatus:this.form.configStatus,
  473. }
  474. putSensor(obj).then(response => {
  475. this.msgSuccess(response.msg)
  476. this.addType = false;
  477. this.listBySubjectId();
  478. });
  479. },
  480. //删除传感器
  481. delSensor(item){
  482. this.$confirm('确认要删除该传感器?', "警告", {
  483. confirmButtonText: "确定",
  484. cancelButtonText: "取消",
  485. type: "warning"
  486. }).then(() => {
  487. // 确定
  488. delSensor(item.id).then((response) => {
  489. this.msgSuccess(response.msg)
  490. this.addType = false;
  491. this.listBySubjectId();
  492. });
  493. }).catch(function() {
  494. // 取消
  495. });
  496. },
  497. //添加
  498. addData(type){
  499. // this.resetForm("form");
  500. if(type == 1){
  501. this.title = '新增传感器';
  502. this.$set(this,'form',{
  503. type:"",
  504. gatewayId:"",
  505. routeNum:"",
  506. configName:"",
  507. configStatus:"",
  508. });
  509. }else if(type == 2){
  510. this.title = '新增一体机';
  511. this.$set(this,'form',{
  512. name:"",
  513. pcType:"",
  514. hardwareNum:"",
  515. });
  516. }else if(type == 3){
  517. this.title = '新增控制设备';
  518. this.form.hardwareType = 1;
  519. this.disabledType = false;
  520. this.$set(this,'form',{
  521. type:"",
  522. hardwareType:"",
  523. relayCode:"",
  524. bit:"",
  525. configName:"",
  526. configStatus:"",
  527. });
  528. }else if(type == 4){
  529. this.title = '新增摄像头';
  530. this.$set(this,'form',{
  531. hardwareNum:"",
  532. });
  533. }
  534. this.addType = true;
  535. this.upType = type;
  536. },
  537. //编辑
  538. editData(type,row){
  539. if(type == 5){
  540. this.title = '编辑传感器';
  541. this.$set(this,'form',JSON.parse(JSON.stringify(row)));
  542. this.$set(this.form,'type',JSON.parse(JSON.stringify(row.type.enumName)));
  543. }else if(type == 6){
  544. this.title = '编辑一体机';
  545. this.$set(this,'form',JSON.parse(JSON.stringify(row)));
  546. this.$set(this.form,'pcType',JSON.parse(JSON.stringify(row.pcType+'')));
  547. }else if(type == 7){
  548. this.title = '编辑控制设备';
  549. this.disabledType = true;
  550. this.$set(this,'form',JSON.parse(JSON.stringify(row)));
  551. this.$set(this.form,'type',JSON.parse(JSON.stringify(row.type.code+'')));
  552. }else if(type == 8){
  553. this.title = '编辑摄像头';
  554. this.$set(this,'form',JSON.parse(JSON.stringify(row)));
  555. }
  556. this.addType = true;
  557. this.upType = type;
  558. },
  559. //获取列表
  560. listBySubjectId(){
  561. let obj = {
  562. subjectId:this.subjectData.id
  563. };
  564. console.log("obj",obj)
  565. listBySubjectId(obj).then(response => {
  566. this.$set(this,'listCgq',response.data.listCgq);
  567. this.$set(this,'listYtj',response.data.listYtj);
  568. this.$set(this,'listkzsb',response.data.listkzsb);
  569. this.$set(this,'listSpjk',response.data.listSpjk);
  570. });
  571. },
  572. //返回上一页
  573. backPage(){
  574. this.$parent.clickPage(1);
  575. },
  576. //传感器类型
  577. getSensorList(){
  578. getSensorList().then(response => {
  579. this.sensorAddOptions = response.data;
  580. });
  581. },
  582. }
  583. }
  584. </script>
  585. <style scoped lang="scss">
  586. .deviceList{
  587. flex:1;
  588. display: flex;
  589. flex-direction: column;
  590. padding-bottom:20px;
  591. border-radius:10px!important;
  592. margin:5px 20px 20px 10px!important;
  593. box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.1) !important;
  594. *{
  595. margin:0;
  596. }
  597. .title-box{
  598. display: flex;
  599. margin:0 20px;
  600. .left-title{
  601. flex:1;
  602. height:80px;
  603. line-height:80px;
  604. color:#0045AF;
  605. font-size:18px;
  606. }
  607. .right-button{
  608. margin:20px 0;
  609. }
  610. }
  611. .for-max-box{
  612. margin:0 40px;
  613. font-weight:500;
  614. .for-big-box{
  615. border: 1px solid #E0E0E0;
  616. display: inline-block;
  617. overflow: hidden;
  618. width:280px;
  619. min-height:130px;
  620. padding-bottom:10px;
  621. border-radius: 6px;
  622. margin:0 20px 20px 0;
  623. .for-title-p{
  624. background: rgba(182,214,254,1);
  625. color:#0183FA;
  626. font-size:16px;
  627. line-height:40px;
  628. display:block;
  629. overflow:hidden;
  630. text-overflow:ellipsis;
  631. white-space:nowrap;
  632. padding:0 16px;
  633. margin-bottom:10px;
  634. font-weight:700;
  635. }
  636. .for-text-box{
  637. display: flex;
  638. padding:0 23px;
  639. p{
  640. font-size:14px;
  641. line-height:30px;
  642. flex:1;
  643. }
  644. p:nth-child(1){
  645. color:#333;
  646. text-align: left;
  647. }
  648. p:nth-child(2){
  649. color:#999;
  650. text-align: right;
  651. overflow:hidden;
  652. text-overflow:ellipsis;
  653. white-space:nowrap;
  654. }
  655. }
  656. .for-button-box{
  657. display: flex;
  658. line-height:26px;
  659. margin-top:10px;
  660. p{
  661. text-align: center;
  662. font-size:14px;
  663. color:#666666;
  664. }
  665. p:nth-child(1){
  666. flex:1;
  667. cursor: pointer;
  668. i{
  669. color:#1151b4;
  670. margin-right:10px;
  671. }
  672. }
  673. p:nth-child(2){
  674. width:2px;
  675. height:14px;
  676. margin:6px 0;
  677. background: #CCCCCC;
  678. }
  679. p:nth-child(3){
  680. flex:1;
  681. cursor: pointer;
  682. i{
  683. color:#ff6868;
  684. margin-right:10px;
  685. }
  686. }
  687. }
  688. }
  689. .for-big-box-two{
  690. border: 1px solid #E0E0E0;
  691. display: inline-block;
  692. overflow: hidden;
  693. width:280px;
  694. min-height:158px;
  695. padding-bottom:10px;
  696. border-radius: 6px;
  697. margin:0 20px 20px 0;
  698. .for-title-p{
  699. background: rgba(182,214,254,1);
  700. color:#0183FA;
  701. font-size:16px;
  702. line-height:40px;
  703. display:block;
  704. overflow:hidden;
  705. text-overflow:ellipsis;
  706. white-space:nowrap;
  707. padding:0 16px;
  708. margin-bottom:10px;
  709. font-weight:700;
  710. }
  711. .for-text-box{
  712. display: flex;
  713. padding:0 23px;
  714. p{
  715. font-size:14px;
  716. line-height:30px;
  717. flex:1;
  718. }
  719. p:nth-child(1){
  720. text-align: left;
  721. color:#333;
  722. }
  723. p:nth-child(2){
  724. color:#999;
  725. text-align: right;
  726. overflow:hidden;
  727. text-overflow:ellipsis;
  728. white-space:nowrap;
  729. }
  730. }
  731. .for-button-box{
  732. display: flex;
  733. line-height:26px;
  734. margin-top:10px;
  735. p{
  736. text-align: center;
  737. font-size:14px;
  738. color:#666666;
  739. }
  740. p:nth-child(1){
  741. flex:1;
  742. cursor: pointer;
  743. i{
  744. color:#1151b4;
  745. margin-right:10px;
  746. }
  747. }
  748. p:nth-child(2){
  749. width:2px;
  750. height:14px;
  751. margin:6px 0;
  752. background: #CCCCCC;
  753. }
  754. p:nth-child(3){
  755. flex:1;
  756. cursor: pointer;
  757. i{
  758. color:#ff6868;
  759. margin-right:10px;
  760. }
  761. }
  762. }
  763. }
  764. .add-for-p{
  765. font-size:14px;
  766. border: 1px solid #E0E0E0;
  767. display: inline-block;
  768. overflow: hidden;
  769. width:280px;
  770. height:130px;
  771. line-height:130px;
  772. text-align: center;
  773. border-radius: 6px;
  774. color:#999999;
  775. cursor: pointer;
  776. margin:0 20px 20px 0;
  777. i{
  778. margin-right:10px;
  779. }
  780. }
  781. .add-for-p-two{
  782. font-size:14px;
  783. border: 1px solid #E0E0E0;
  784. display: inline-block;
  785. overflow: hidden;
  786. width:280px;
  787. height:158px;
  788. line-height:158px;
  789. text-align: center;
  790. border-radius: 6px;
  791. color:#999999;
  792. cursor: pointer;
  793. margin:0 20px 20px 0;
  794. i{
  795. margin-right:10px;
  796. }
  797. }
  798. }
  799. }
  800. </style>