messageCreate.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <template>
  2. <div>
  3. <el-dialog
  4. v-dialog-drag
  5. class="dialog"
  6. title="新建消息模块"
  7. :visible.sync="dialogVisible"
  8. width="700px"
  9. left
  10. >
  11. <el-divider></el-divider>
  12. <div style="height: 530px">
  13. <el-scrollbar style="height: 100%">
  14. <el-form
  15. :model="form"
  16. label-position="left"
  17. label-width="80px"
  18. >
  19. <el-form-item label="模块名称:">
  20. <el-input
  21. v-model="form.template_name"
  22. class="template_name"
  23. ></el-input>
  24. </el-form-item>
  25. <el-form-item label="模块上级:">
  26. <el-select v-model="form.template_superior">
  27. <el-option
  28. v-for="item in superiorOptions"
  29. :value="item.value"
  30. :key="item.value"
  31. :label="item.label"
  32. ></el-option>
  33. </el-select>
  34. </el-form-item>
  35. <el-form-item
  36. :model="form.channelconfig"
  37. label="通道配置:"
  38. >
  39. <el-checkbox
  40. label="短信"
  41. v-model="checked"
  42. ></el-checkbox>
  43. <el-checkbox label="邮件"></el-checkbox>
  44. <el-checkbox label="钉钉"></el-checkbox>
  45. <el-checkbox label="站内通知"></el-checkbox>
  46. </el-form-item>
  47. <el-form-item
  48. :model="form.personconfig"
  49. label="人员配置:"
  50. >
  51. <el-checkbox
  52. label="全体"
  53. v-model="checked2"
  54. ></el-checkbox>
  55. <el-checkbox label="运管管理员"></el-checkbox>
  56. <div style="display: flex; margin-left: 0px;">
  57. <el-checkbox
  58. style="margin-right: 10px;"
  59. disabled
  60. ></el-checkbox><span>
  61. <el-cascader
  62. style="width: 300px;"
  63. :options="options"
  64. placeholder="选择角色/部门/单位"
  65. filterable
  66. disabled
  67. >
  68. </el-cascader>
  69. </span>
  70. </div>
  71. </el-form-item>
  72. <el-form-item
  73. :model="form.sendtiming"
  74. label="发送时间:"
  75. >
  76. <el-radio
  77. v-model="radio"
  78. label="1"
  79. style="margin-top:13px"
  80. >定时</el-radio>
  81. <span>
  82. <el-date-picker
  83. v-model="value"
  84. type="datetime"
  85. placeholder="选择日期时间"
  86. >
  87. </el-date-picker>
  88. </span>
  89. </el-form-item>
  90. <el-form-item>
  91. <el-radio
  92. v-model="radio"
  93. label="2"
  94. >立刻</el-radio>
  95. </el-form-item>
  96. </el-form>
  97. </el-scrollbar>
  98. </div>
  99. <div
  100. slot="footer"
  101. class="dialog-footer"
  102. >
  103. <el-button
  104. type="primary"
  105. style="background: #2ea8e6"
  106. @click="nextMessage"
  107. >下一个</el-button>
  108. <el-button
  109. style="background: #2ea8e6; color: #fff"
  110. @click="resetForm('form')"
  111. >重置</el-button>
  112. <el-button
  113. type="primary"
  114. style="background: #2ea8e6"
  115. @click="submitForm('form')"
  116. >确认</el-button>
  117. </div>
  118. </el-dialog>
  119. </div>
  120. </template>
  121. <script>
  122. export default {
  123. data() {
  124. return {
  125. dialogVisible: false,
  126. checked: true,
  127. checked2: true,
  128. radio: "1",
  129. value: "",
  130. defaultProps: {
  131. children: "children",
  132. label: "label",
  133. },
  134. form: {},
  135. options: [],
  136. superiorOptions: [
  137. {
  138. value: "1",
  139. label: "普通消息",
  140. },
  141. {
  142. value: "2",
  143. label: "提醒消息",
  144. },
  145. ],
  146. };
  147. },
  148. methods: {
  149. resetForm() {},
  150. submitForm() {},
  151. nextMessage() {
  152. // 提交信息
  153. },
  154. },
  155. };
  156. </script>
  157. <style lang="less" scoped>
  158. /deep/.el-dialog {
  159. height: 725px !important;
  160. .el-dialog__body {
  161. padding-top: 0px;
  162. }
  163. }
  164. .el-divider {
  165. margin-top: 10px !important;
  166. margin-bottom: 0px !important;
  167. }
  168. .el-form {
  169. // padding-left: 30px;
  170. .el-form-item {
  171. padding-top: 20px;
  172. margin-inline: 20px;
  173. margin-bottom: 0;
  174. /deep/.el-form-item__label {
  175. padding: 0;
  176. font-size: 16px;
  177. color: #4d4d4d;
  178. font-weight: 550;
  179. }
  180. /deep/.el-form-item__content {
  181. display: flex;
  182. }
  183. // /deep/.el-input__inner {
  184. // // width: 600px;
  185. // }
  186. }
  187. .el-checkbox {
  188. margin-right: 10px;
  189. margin-left: 10px;
  190. /deep/.el-checkbox__label {
  191. color: #4d4d4d;
  192. }
  193. }
  194. .el-cascader {
  195. /deep/.el-input__inner {
  196. width: 320px;
  197. }
  198. /deep/.el-input__suffix {
  199. right: -8px;
  200. }
  201. }
  202. .el-radio {
  203. margin-left: 20px;
  204. }
  205. .el-date-editor {
  206. /deep/.el-input__inner {
  207. width: 320px;
  208. }
  209. /deep/.el-input__suffix {
  210. right: -80px;
  211. }
  212. }
  213. .el-date-picker {
  214. width: 450px;
  215. /deep/.el-picker-panel__content {
  216. width: 370px;
  217. }
  218. }
  219. }
  220. // .template_name {
  221. // /deep/.el-input__inner {
  222. // float: left;
  223. // }
  224. // }
  225. // .el-tag {
  226. // position: relative;
  227. // background-color: transparent;
  228. // border-color: transparent;
  229. // font-size: 20px;
  230. // color: #4d4d4d;
  231. // right: 600px;
  232. // font-weight: 550;
  233. // margin-top: 20px;
  234. // }
  235. // .el-button--text {
  236. // position: absolute;
  237. // top: 70px;
  238. // right: 20px;
  239. // }
  240. .el-button {
  241. height: 30px;
  242. width: 100px;
  243. padding: 3px;
  244. color: #fff;
  245. background: #3da0d6;
  246. margin-right: 50px;
  247. }
  248. .bottom {
  249. position: absolute;
  250. left: 750px;
  251. bottom: 15px;
  252. }
  253. </style>