deviceList.vue 26 KB

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