正在显示
4 个修改的文件
包含
11 行增加
和
80 行删除
| @@ -258,46 +258,10 @@ | @@ -258,46 +258,10 @@ | ||
| 258 | import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName}, export${BusinessName} } from "@/api/${moduleName}/${businessName}"; | 258 | import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName}, export${BusinessName} } from "@/api/${moduleName}/${businessName}"; |
| 259 | import Treeselect from "@riophae/vue-treeselect"; | 259 | import Treeselect from "@riophae/vue-treeselect"; |
| 260 | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; | 260 | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| 261 | -#foreach($column in $columns) | ||
| 262 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "imageUpload") | ||
| 263 | -import ImageUpload from '@/components/ImageUpload'; | ||
| 264 | -#break | ||
| 265 | -#end | ||
| 266 | -#end | ||
| 267 | -#foreach($column in $columns) | ||
| 268 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "fileUpload") | ||
| 269 | -import FileUpload from '@/components/FileUpload'; | ||
| 270 | -#break | ||
| 271 | -#end | ||
| 272 | -#end | ||
| 273 | -#foreach($column in $columns) | ||
| 274 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor") | ||
| 275 | -import Editor from '@/components/Editor'; | ||
| 276 | -#break | ||
| 277 | -#end | ||
| 278 | -#end | ||
| 279 | 261 | ||
| 280 | export default { | 262 | export default { |
| 281 | name: "${BusinessName}", | 263 | name: "${BusinessName}", |
| 282 | components: { | 264 | components: { |
| 283 | -#foreach($column in $columns) | ||
| 284 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "imageUpload") | ||
| 285 | - ImageUpload, | ||
| 286 | -#break | ||
| 287 | -#end | ||
| 288 | -#end | ||
| 289 | -#foreach($column in $columns) | ||
| 290 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "fileUpload") | ||
| 291 | - FileUpload, | ||
| 292 | -#break | ||
| 293 | -#end | ||
| 294 | -#end | ||
| 295 | -#foreach($column in $columns) | ||
| 296 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor") | ||
| 297 | - Editor, | ||
| 298 | -#break | ||
| 299 | -#end | ||
| 300 | -#end | ||
| 301 | Treeselect | 265 | Treeselect |
| 302 | }, | 266 | }, |
| 303 | data() { | 267 | data() { |
| @@ -310,47 +310,9 @@ | @@ -310,47 +310,9 @@ | ||
| 310 | 310 | ||
| 311 | <script> | 311 | <script> |
| 312 | import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName}, export${BusinessName} } from "@/api/${moduleName}/${businessName}"; | 312 | import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName}, export${BusinessName} } from "@/api/${moduleName}/${businessName}"; |
| 313 | -#foreach($column in $columns) | ||
| 314 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "imageUpload") | ||
| 315 | -import ImageUpload from '@/components/ImageUpload'; | ||
| 316 | -#break | ||
| 317 | -#end | ||
| 318 | -#end | ||
| 319 | -#foreach($column in $columns) | ||
| 320 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "fileUpload") | ||
| 321 | -import FileUpload from '@/components/FileUpload'; | ||
| 322 | -#break | ||
| 323 | -#end | ||
| 324 | -#end | ||
| 325 | -#foreach($column in $columns) | ||
| 326 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor") | ||
| 327 | -import Editor from '@/components/Editor'; | ||
| 328 | -#break | ||
| 329 | -#end | ||
| 330 | -#end | ||
| 331 | 313 | ||
| 332 | export default { | 314 | export default { |
| 333 | name: "${BusinessName}", | 315 | name: "${BusinessName}", |
| 334 | - components: { | ||
| 335 | -#foreach($column in $columns) | ||
| 336 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "imageUpload") | ||
| 337 | - ImageUpload, | ||
| 338 | -#break | ||
| 339 | -#end | ||
| 340 | -#end | ||
| 341 | -#foreach($column in $columns) | ||
| 342 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "fileUpload") | ||
| 343 | - FileUpload, | ||
| 344 | -#break | ||
| 345 | -#end | ||
| 346 | -#end | ||
| 347 | -#foreach($column in $columns) | ||
| 348 | -#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor") | ||
| 349 | - Editor, | ||
| 350 | -#break | ||
| 351 | -#end | ||
| 352 | -#end | ||
| 353 | - }, | ||
| 354 | data() { | 316 | data() { |
| 355 | return { | 317 | return { |
| 356 | // 遮罩层 | 318 | // 遮罩层 |
| @@ -10,7 +10,7 @@ import '@/assets/styles/ruoyi.scss' // ruoyi css | @@ -10,7 +10,7 @@ import '@/assets/styles/ruoyi.scss' // ruoyi css | ||
| 10 | import App from './App' | 10 | import App from './App' |
| 11 | import store from './store' | 11 | import store from './store' |
| 12 | import router from './router' | 12 | import router from './router' |
| 13 | -import permission from './directive/permission' | 13 | +import directive from './directive' //directive |
| 14 | 14 | ||
| 15 | import './assets/icons' // icon | 15 | import './assets/icons' // icon |
| 16 | import './permission' // permission control | 16 | import './permission' // permission control |
| @@ -20,6 +20,12 @@ import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, | @@ -20,6 +20,12 @@ import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, | ||
| 20 | import Pagination from "@/components/Pagination"; | 20 | import Pagination from "@/components/Pagination"; |
| 21 | // 自定义表格工具组件 | 21 | // 自定义表格工具组件 |
| 22 | import RightToolbar from "@/components/RightToolbar" | 22 | import RightToolbar from "@/components/RightToolbar" |
| 23 | +// 富文本组件 | ||
| 24 | +import Editor from "@/components/Editor" | ||
| 25 | +// 文件上传组件 | ||
| 26 | +import FileUpload from "@/components/FileUpload" | ||
| 27 | +// 图片上传组件 | ||
| 28 | +import ImageUpload from "@/components/ImageUpload" | ||
| 23 | // 字典标签组件 | 29 | // 字典标签组件 |
| 24 | import DictTag from '@/components/DictTag' | 30 | import DictTag from '@/components/DictTag' |
| 25 | // 头部标签组件 | 31 | // 头部标签组件 |
| @@ -52,8 +58,11 @@ Vue.prototype.msgInfo = function (msg) { | @@ -52,8 +58,11 @@ Vue.prototype.msgInfo = function (msg) { | ||
| 52 | Vue.component('DictTag', DictTag) | 58 | Vue.component('DictTag', DictTag) |
| 53 | Vue.component('Pagination', Pagination) | 59 | Vue.component('Pagination', Pagination) |
| 54 | Vue.component('RightToolbar', RightToolbar) | 60 | Vue.component('RightToolbar', RightToolbar) |
| 61 | +Vue.component('Editor', Editor) | ||
| 62 | +Vue.component('FileUpload', FileUpload) | ||
| 63 | +Vue.component('ImageUpload', ImageUpload) | ||
| 55 | 64 | ||
| 56 | -Vue.use(permission) | 65 | +Vue.use(directive) |
| 57 | Vue.use(VueMeta) | 66 | Vue.use(VueMeta) |
| 58 | 67 | ||
| 59 | /** | 68 | /** |
| @@ -177,13 +177,9 @@ | @@ -177,13 +177,9 @@ | ||
| 177 | 177 | ||
| 178 | <script> | 178 | <script> |
| 179 | import { listNotice, getNotice, delNotice, addNotice, updateNotice } from "@/api/system/notice"; | 179 | import { listNotice, getNotice, delNotice, addNotice, updateNotice } from "@/api/system/notice"; |
| 180 | -import Editor from '@/components/Editor'; | ||
| 181 | 180 | ||
| 182 | export default { | 181 | export default { |
| 183 | name: "Notice", | 182 | name: "Notice", |
| 184 | - components: { | ||
| 185 | - Editor | ||
| 186 | - }, | ||
| 187 | data() { | 183 | data() { |
| 188 | return { | 184 | return { |
| 189 | // 遮罩层 | 185 | // 遮罩层 |
-
请 注册 或 登录 后发表评论