index.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. <template>
  2. <div class="app-container" >
  3. <!-- <div style="overflow:auto;height:100rem"> -->
  4. <div class="divtitle">
  5. <img src="@/assets/images/icon.png" style="width:1.8rem;height:1.8rem;margin-top:0.3rem"/>
  6. <div style="font-size:1.6rem;font-family: Adobe Heiti Std;font-weight: normal;color: #DFEEF3;margin-left:0.5rem">页眉</div>
  7. </div>
  8. <div style='margin-top:0em'>
  9. <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="10rem" >
  10. <el-row style="">
  11. <el-col :span="12" style="padding-left:10rem">
  12. <el-form-item label="文头:" prop="wenTou">
  13. <el-input
  14. v-model="queryParams.wenTou"
  15. placeholder="请输入文头"
  16. clearable
  17. size="small"
  18. style="width:50rem;margin-left:3rem"
  19. />
  20. </el-form-item>
  21. </el-col>
  22. <el-col :span="12">
  23. <el-form-item label="标题:" prop="title">
  24. <el-input
  25. v-model="queryParams.title"
  26. placeholder="请输入标题"
  27. clearable
  28. size="small"
  29. style="width:30rem;margin-left:3rem"
  30. />
  31. </el-form-item>
  32. </el-col>
  33. </el-row>
  34. <el-row style="">
  35. <el-col :span="12" style="padding-left:10rem">
  36. <el-form-item label="期数:" prop="periods">
  37. <div style="font-size:1.5rem;color:white;margin-left:3rem">
  38. <el-input
  39. v-model="queryParams.periods"
  40. clearable
  41. size="small"
  42. style="width:10rem;margin-left:0.3rem"
  43. />
  44. </div>
  45. </el-form-item>
  46. </el-col>
  47. <el-col :span="12">
  48. <el-form-item label="副标题:" prop="secondTitle">
  49. <el-input
  50. v-model="queryParams.secondTitle"
  51. placeholder="请输入副标题"
  52. clearable
  53. size="small"
  54. style="width:30rem;margin-left:3rem"
  55. />
  56. </el-form-item>
  57. </el-col>
  58. </el-row>
  59. <el-row style="">
  60. <el-col :span="12" style="padding-left:10rem">
  61. <el-form-item label="发文日期:" prop="publishDate">
  62. <el-date-picker
  63. v-model="queryParams.publishDate"
  64. type="date"
  65. placeholder="选择日期"
  66. format="yyyy 年 MM 月 dd 日"
  67. value-format="yyyy-MM-dd"
  68. style="margin-left:3rem">
  69. </el-date-picker>
  70. </el-form-item>
  71. </el-col>
  72. </el-row>
  73. </el-form>
  74. </div>
  75. <div class="divtitle">
  76. <img src="@/assets/images/icon.png" style="width:1.8rem;height:1.8rem;margin-top:0.3rem"/>
  77. <div style="font-size:1.6rem;font-family: Adobe Heiti Std;font-weight: normal;color: #DFEEF3;margin-left:0.5rem">正文内容</div>
  78. </div>
  79. <div style="padding-left:3rem;padding-top:5rem">
  80. <div>
  81. <div style="font-size: 1.6rem;
  82. font-family: Microsoft YaHei;
  83. font-weight: 400;
  84. color: #FFFFFF;">一、市镇工作动态</div>
  85. <div>
  86. <div style='font-size: 1.6rem;
  87. font-family: Microsoft YaHei;
  88. font-weight: 400;
  89. color: #FFFFFF;
  90. margin-top:2rem'>市指挥中心动态</div>
  91. <div>
  92. <el-input
  93. type="textarea"
  94. :rows="5"
  95. placeholder="请输入200字以内的案例介绍"
  96. v-model="queryParams.centerNews"
  97. style="margin-top:2rem">
  98. </el-input>
  99. </div>
  100. <div style='font-size: 1.6rem;
  101. font-family: Microsoft YaHei;
  102. font-weight: 400;
  103. color: #FFFFFF;
  104. margin-top:2rem'>区镇都动态</div>
  105. <div>
  106. <el-input
  107. type="textarea"
  108. :rows="5"
  109. placeholder="请输入200字以内的案例介绍"
  110. v-model="queryParams.centerNews"
  111. style="margin-top:2rem">
  112. </el-input>
  113. </div>
  114. </div>
  115. </div>
  116. <div style="margin-top:2rem">
  117. <div style="font-size: 1.6rem;
  118. font-family: Microsoft YaHei;
  119. font-weight: 400;
  120. color: #FFFFFF;">二、典型案例</div>
  121. <div style="margin-top:1rem:padding-left:10rem">
  122. <el-form :model="exampleObj" ref="exampleForm" :inline="true" label-width="68px">
  123. <el-form-item label="所属区域" prop="areaName">
  124. <el-input
  125. v-model="exampleObj.areaName"
  126. clearable
  127. size="small"
  128. />
  129. </el-form-item>
  130. <el-form-item label="内容描述" prop="content">
  131. <el-input
  132. v-model="exampleObj.content"
  133. clearable
  134. size="small"
  135. />
  136. </el-form-item>
  137. <el-form-item>
  138. <el-button type="primary" size="mini" @click="addExample">增加</el-button>
  139. </el-form-item>
  140. </el-form>
  141. </div>
  142. <div style="margin-top:0.1rem">
  143. <el-table v-loading="loading" :data="basicExampleList" stripe
  144. class="my_table"
  145. :row-class-name="tableRowClassName"
  146. :header-cell-style="{background:'#24A3B3 50%',color: '#C5D0D4'}">
  147. <el-table-column label="序号" align="center" type="index" />
  148. <el-table-column label="所属区域" align="center" prop="areaName" />
  149. <el-table-column label="内容描述" align="center" prop="content" />
  150. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  151. <template slot-scope="scope">
  152. <el-button
  153. size="mini"
  154. type="text"
  155. icon="el-icon-edit"
  156. @click="handleUpdate(scope.row)"
  157. v-hasPermi="['qdtl:plan:edit']"
  158. >修改</el-button>
  159. <el-button
  160. size="mini"
  161. type="text"
  162. icon="el-icon-delete"
  163. @click="handleDelete(scope.row)"
  164. v-hasPermi="['qdtl:plan:remove']"
  165. >删除</el-button>
  166. </template>
  167. </el-table-column>
  168. </el-table>
  169. </div>
  170. </div>
  171. <div style="margin-top:2rem">
  172. <div style="font-size: 1.6rem;
  173. font-family: Microsoft YaHei;
  174. font-weight: 400;
  175. color: #FFFFFF;">三、专职巡防员巡防打卡情况</div>
  176. <div style="margin-top:1rem:padding-left:10rem">
  177. <el-form :model="exampleObj" ref="exampleForm" :inline="true" label-width="13rem">
  178. <el-form-item label="巡防统计周期:" prop="dateArry">
  179. <el-date-picker
  180. v-model="dateArry"
  181. type="daterange"
  182. range-separator="至"
  183. start-placeholder="开始日期"
  184. end-placeholder="结束日期"
  185. value-format="yyyy-MM-dd"
  186. style="color:white">
  187. </el-date-picker>
  188. </el-form-item>
  189. <el-form-item>
  190. <el-button type="primary" size="mini" @click="addExample">确定</el-button>
  191. </el-form-item>
  192. </el-form>
  193. </div>
  194. <div style="margin-top:0.1rem">
  195. <el-table v-loading="loading" :data="basicExampleList" stripe
  196. class="my_table"
  197. :row-class-name="tableRowClassName"
  198. :header-cell-style="{background:'#24A3B3 50%',color: '#C5D0D4'}">
  199. <el-table-column label="序号" align="center" type="index" />
  200. <el-table-column label="所属区域" align="center" prop="areaName" />
  201. <el-table-column label="内容描述" align="center" prop="content" />
  202. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  203. <template slot-scope="scope">
  204. <el-button
  205. size="mini"
  206. type="text"
  207. icon="el-icon-edit"
  208. @click="handleUpdate(scope.row)"
  209. v-hasPermi="['qdtl:plan:edit']"
  210. >修改</el-button>
  211. <el-button
  212. size="mini"
  213. type="text"
  214. icon="el-icon-delete"
  215. @click="handleDelete(scope.row)"
  216. v-hasPermi="['qdtl:plan:remove']"
  217. >删除</el-button>
  218. </template>
  219. </el-table-column>
  220. </el-table>
  221. </div>
  222. </div>
  223. <div style="margin-top:2rem">
  224. <div style="font-size: 1.6rem;
  225. font-family: Microsoft YaHei;
  226. font-weight: 400;
  227. color: #FFFFFF;">四、存在问题</div>
  228. <div style="margin-top:1rem:padding-left:10rem">
  229. <el-form :model="questionObj" ref="exampleForm" :inline="true" label-width="68px">
  230. <el-form-item label="所属区域" prop="areaName">
  231. <el-input
  232. v-model="questionObj.areaName"
  233. clearable
  234. size="small"
  235. />
  236. </el-form-item>
  237. <el-form-item label="内容描述" prop="content">
  238. <el-input
  239. v-model="questionObj.content"
  240. clearable
  241. size="small"
  242. />
  243. </el-form-item>
  244. <el-form-item>
  245. <el-button type="primary" size="mini" @click="addQuestion">增加</el-button>
  246. </el-form-item>
  247. </el-form>
  248. </div>
  249. <div style="margin-top:0.1rem">
  250. <el-table v-loading="loading" :data="questionList" stripe
  251. class="my_table"
  252. :row-class-name="tableRowClassName"
  253. :header-cell-style="{background:'#24A3B3 50%',color: '#C5D0D4'}">
  254. <el-table-column label="序号" align="center" type="index" />
  255. <el-table-column label="所属区域" align="center" prop="areaName" />
  256. <el-table-column label="内容描述" align="center" prop="content" />
  257. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  258. <template slot-scope="scope">
  259. <el-button
  260. size="mini"
  261. type="text"
  262. icon="el-icon-edit"
  263. @click="handleUpdate(scope.row)"
  264. v-hasPermi="['qdtl:plan:edit']"
  265. >修改</el-button>
  266. <el-button
  267. size="mini"
  268. type="text"
  269. icon="el-icon-delete"
  270. @click="handleDelete(scope.row)"
  271. v-hasPermi="['qdtl:plan:remove']"
  272. >删除</el-button>
  273. </template>
  274. </el-table-column>
  275. </el-table>
  276. </div>
  277. </div>
  278. <div style="margin-top:2rem">
  279. <div style="font-size: 1.6rem;
  280. font-family: Microsoft YaHei;
  281. font-weight: 400;
  282. color: #FFFFFF;">五、工作建议</div>
  283. <div style="margin-top:1rem:padding-left:10rem">
  284. <el-form :model="adviceObj" ref="exampleForm" :inline="true" label-width="68px">
  285. <el-form-item label="所属区域" prop="areaName">
  286. <el-input
  287. v-model="adviceObj.areaName"
  288. clearable
  289. size="small"
  290. />
  291. </el-form-item>
  292. <el-form-item label="内容描述" prop="content">
  293. <el-input
  294. v-model="adviceObj.content"
  295. clearable
  296. size="small"
  297. />
  298. </el-form-item>
  299. <el-form-item>
  300. <el-button type="primary" size="mini" @click="addAdvice">增加</el-button>
  301. </el-form-item>
  302. </el-form>
  303. </div>
  304. <div style="margin-top:0.1rem">
  305. <el-table v-loading="loading" :data="adviceList" stripe
  306. class="my_table"
  307. :row-class-name="tableRowClassName"
  308. :header-cell-style="{background:'#24A3B3 50%',color: '#C5D0D4'}">
  309. <el-table-column label="序号" align="center" type="index" />
  310. <el-table-column label="所属区域" align="center" prop="areaName" />
  311. <el-table-column label="内容描述" align="center" prop="content" />
  312. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  313. <template slot-scope="scope">
  314. <el-button
  315. size="mini"
  316. type="text"
  317. icon="el-icon-edit"
  318. @click="handleUpdate(scope.row)"
  319. v-hasPermi="['qdtl:plan:edit']"
  320. >修改</el-button>
  321. <el-button
  322. size="mini"
  323. type="text"
  324. icon="el-icon-delete"
  325. @click="handleDelete(scope.row)"
  326. v-hasPermi="['qdtl:plan:remove']"
  327. >删除</el-button>
  328. </template>
  329. </el-table-column>
  330. </el-table>
  331. </div>
  332. </div>
  333. </div>
  334. <div class="divtitle" style="margin-top:2rem">
  335. <img src="@/assets/images/icon.png" style="width:1.8rem;height:1.8rem;margin-top:0.3rem"/>
  336. <div style="font-size:1.6rem;font-family: Adobe Heiti Std;font-weight: normal;color: #DFEEF3;margin-left:0.5rem">页尾</div>
  337. </div>
  338. <div style='margin-top:8em'>
  339. <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="10rem" >
  340. <el-row style="">
  341. <el-col :span="12" style="padding-left:10rem">
  342. <el-form-item label="报送机关:" prop="baoSong">
  343. <el-input
  344. v-model="queryParams.baoSong"
  345. placeholder="请输入报送机关"
  346. clearable
  347. size="small"
  348. style="width:30rem;margin-left:3rem"
  349. />
  350. </el-form-item>
  351. </el-col>
  352. <el-col :span="12">
  353. <el-form-item label="抄送机关:" prop="chaoSong">
  354. <el-input
  355. v-model="queryParams.chaoSong"
  356. placeholder="请输入抄送机关"
  357. clearable
  358. size="small"
  359. style="width:30rem;margin-left:3rem"
  360. />
  361. </el-form-item>
  362. </el-col>
  363. </el-row>
  364. <el-row style="">
  365. <el-col :span="12" style="padding-left:10rem">
  366. <el-form-item label="统稿人:" prop="tongGao">
  367. <el-input
  368. v-model="queryParams.tongGao"
  369. clearable
  370. placeholder="请输入统稿人"
  371. size="small"
  372. style="width:30rem;margin-left:3rem"
  373. />
  374. </el-form-item>
  375. </el-col>
  376. <el-col :span="12">
  377. <el-form-item label="审核人:" prop="shenHe">
  378. <el-input
  379. v-model="queryParams.shenHe"
  380. placeholder="请输入审核人"
  381. clearable
  382. size="small"
  383. style="width:30rem;margin-left:3rem"
  384. />
  385. </el-form-item>
  386. </el-col>
  387. </el-row>
  388. <el-row style="">
  389. <el-col :span="12" style="padding-left:10rem">
  390. <el-form-item label="签发人:" prop="qianFa">
  391. <el-input
  392. v-model="queryParams.qianFa"
  393. placeholder="请输入签发人"
  394. clearable
  395. size="small"
  396. style="width:30rem;margin-left:3rem"
  397. />
  398. </el-form-item>
  399. </el-col>
  400. </el-row>
  401. </el-form>
  402. </div>
  403. <!-- </div> -->
  404. </div>
  405. </template>
  406. <script>
  407. import { listDevice, getDevice, delDevice, addDevice, updateDevice } from "@/api/qdtl/device";
  408. import { listArea, getArea, delArea, addArea, updateArea } from "@/api/qdtl/area";
  409. import mapdiv from "@/components/map/index.vue"
  410. export default {
  411. name: "Device",
  412. dicts: ['tl_device_type'],
  413. data() {
  414. return {
  415. queryParams:{},
  416. basicExampleList:[
  417. {areaName:'汇龙镇',content:'测试内容一'},
  418. {areaName:'汇龙镇',content:'测试内容二'}
  419. ],
  420. questionList:[
  421. {areaName:'汇龙镇',content:'1测试内容一'},
  422. {areaName:'汇龙镇',content:'1测试内容二'}
  423. ],
  424. adviceList:[
  425. {areaName:'汇龙镇',content:'2测试内容一'},
  426. {areaName:'汇龙镇',content:'2测试内容二'}
  427. ],
  428. exampleObj:{
  429. areaName:'',
  430. content:''
  431. },
  432. questionObj:{
  433. areaName:'',
  434. content:''
  435. },
  436. adviceObj:{
  437. areaName:'',
  438. content:''
  439. },
  440. dateArry:[],
  441. };
  442. },
  443. created() {
  444. this.getList();
  445. this.getAreaList();
  446. },
  447. components:{
  448. mapdiv
  449. },
  450. methods: {
  451. tableRowClassName({ row, rowIndex }) {
  452. if ((rowIndex + 1) % 2 === 0) {
  453. return "warning-row";
  454. } else {
  455. return "success-row";
  456. }
  457. },
  458. addExample(){
  459. this.basicExampleList.push(this.exampleObj);
  460. },
  461. addQuestion(){
  462. this.questionList.push(this.questionObj);
  463. },
  464. addAdvice(){
  465. this.adviceList.push(this.adviceObj);
  466. }
  467. }
  468. };
  469. </script>
  470. <style scoped>
  471. .divtitle{
  472. background: url("~@/assets/images/title2@2x.png") no-repeat;
  473. background-size: cover;
  474. width:100%;
  475. height:3.9rem;
  476. padding-top:0.8rem;
  477. padding-left:2rem;
  478. /* float: left; */
  479. display: inline-flex;
  480. margin-bottom: 3rem;
  481. }
  482. .el-textarea__inner{
  483. color:white
  484. }
  485. .app-container{
  486. background: url("~@/assets/images/bg@2x.png") ;
  487. background-size: 100% 100%;
  488. background-repeat-y: repeat;
  489. background-position: center;
  490. }
  491. .el-range-editor--medium .el-range-separator{
  492. color: white
  493. }
  494. </style>