From 11b2536c5c154b1a82ea1d05882b5f84351b6211 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Wed, 22 Jun 2022 14:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=8B=E8=83=BD=E6=A1=88=E4=BE=8B-=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E7=AE=A1=E7=90=86=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/mixins/view-module.js | 36 +- .../bsabilityservice-add-or-update.vue | 803 +++++++------- .../bsabilityservice-add-or-update.vue | 980 ------------------ .../canassigncase-add-or-update.vue | 515 +++++++++ .../src/views/modules/canassigncase/index.vue | 19 +- .../views/modules/canassigncase/upload.vue | 81 +- 6 files changed, 1032 insertions(+), 1402 deletions(-) delete mode 100644 back/src/views/modules/canassigncase/bsabilityservice-add-or-update.vue create mode 100644 back/src/views/modules/canassigncase/canassigncase-add-or-update.vue diff --git a/back/src/mixins/view-module.js b/back/src/mixins/view-module.js index cc07db43..ab4c9931 100644 --- a/back/src/mixins/view-module.js +++ b/back/src/mixins/view-module.js @@ -2,7 +2,7 @@ import Cookies from 'js-cookie' import qs from 'qs' import { deepClone } from '@/utils/form-generator/index' export default { - data () { + data() { /* eslint-disable */ return { // 设置属性 @@ -17,8 +17,8 @@ export default { exportURL: '', // 导出接口,API地址 requestCallback: null // 获取列表以后执行的回调 }, - flag:false, - time:null, + flag: false, + time: null, // 默认属性 dataForm: { }, // 查询条件 @@ -38,19 +38,19 @@ export default { } /* eslint-enable */ }, - created () { + created() { if (this.mixinViewModuleOptions.createdIsNeed) { this.query() } }, - activated () { + activated() { if (this.mixinViewModuleOptions.activatedIsNeed) { this.query() } }, methods: { // 获取数据列表 - query () { + query() { this.dataListLoading = true this.$http.get( this.mixinViewModuleOptions.getDataListURL + '?' + qs.stringify({ @@ -118,11 +118,11 @@ export default { }) }, // 多选 - dataListSelectionChangeHandle (val) { + dataListSelectionChangeHandle(val) { this.dataListSelections = val }, // 排序 - dataListSortChangeHandle (data) { + dataListSortChangeHandle(data) { if (!data.order || !data.prop) { this.order = '' this.orderField = '' @@ -133,13 +133,13 @@ export default { this.query() }, // 分页, 每页条数 - pageSizeChangeHandle (val) { + pageSizeChangeHandle(val) { this.page = 1 this.limit = val this.query() }, // 分页, 当前页 - pageCurrentChangeHandle (val) { + pageCurrentChangeHandle(val) { this.page = val this.query() }, @@ -148,7 +148,7 @@ export default { this.query() }, // 新增 - addOrUpdateHandle (id) { + addOrUpdateHandle(id) { this.addOrUpdateVisible = true this.disabled = false this.$nextTick(() => { @@ -159,7 +159,7 @@ export default { }, // 组件服务新增 - addOrUpdateHandleAI (id) { + addOrUpdateHandleAI(id) { // const infoList = [] let showList = [] this.$http.get('category/getCategoryTree').then(({ data: res }) => { @@ -217,7 +217,7 @@ export default { }, 100) }, // 应用资源新增 - addOrUpdateHandleServe (id) { + addOrUpdateHandleServe(id) { // const infoList = [] let showList = [] this.$http.get('category/getCategoryTree').then(({ data: res }) => { @@ -275,7 +275,7 @@ export default { }, 100) }, // 修改 - UpdateHandle (val) { + UpdateHandle(val) { this.addOrUpdateVisible = true this.disabled = false const cloneVal = deepClone(val) @@ -300,7 +300,7 @@ export default { }) }, // 关闭当前窗口 - closeCurrentTab (data) { + closeCurrentTab(data) { var tabName = this.$store.state.contentTabsActiveName this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name !== tabName) if (this.$store.state.contentTabs.length <= 0) { @@ -312,7 +312,7 @@ export default { } }, // 删除 - deleteHandle (id) { + deleteHandle(id) { if (this.mixinViewModuleOptions.deleteIsBatch && !id && this.dataListSelections.length <= 0) { return this.$message({ message: this.$t('prompt.deleteBatch'), @@ -346,7 +346,7 @@ export default { }).catch(() => { }) }, - deleteHandle2 (id) { + deleteHandle2(id) { console.log('删除========================》', id, this.dataListSelections) const ids = [] if (id) { @@ -364,7 +364,7 @@ export default { }) }, // 导出 - exportHandle () { + exportHandle() { var params = qs.stringify({ token: Cookies.get('ucsToken'), ...this.dataForm diff --git a/back/src/views/modules/ability/bsabilityservice-add-or-update.vue b/back/src/views/modules/ability/bsabilityservice-add-or-update.vue index 81b7d5ed..57e7a85e 100644 --- a/back/src/views/modules/ability/bsabilityservice-add-or-update.vue +++ b/back/src/views/modules/ability/bsabilityservice-add-or-update.vue @@ -10,9 +10,27 @@
-
填写字段
- - {{item.name}} +
+ 填写字段 +
+ + {{ item.name }} -
-
必填信息
+
+
+ 必填信息 +
- + - + - + - + - @@ -64,16 +104,47 @@ - +
-
-
{{item.name}}
- - - +
+
+ {{ item.name }} +
+ + + @@ -85,9 +156,24 @@ > - - - + + +
@@ -184,9 +270,9 @@ :placeholder="item.attrType" v-if=" item.attrType != '应用领域' && - item.attrType != '应用类型' && - item.attrType != '发布端' && - item.attrType != '应用状态' + item.attrType != '应用类型' && + item.attrType != '发布端' && + item.attrType != '应用状态' " > - - diff --git a/back/src/views/modules/canassigncase/canassigncase-add-or-update.vue b/back/src/views/modules/canassigncase/canassigncase-add-or-update.vue new file mode 100644 index 00000000..cfffea3d --- /dev/null +++ b/back/src/views/modules/canassigncase/canassigncase-add-or-update.vue @@ -0,0 +1,515 @@ + + + + + + + diff --git a/back/src/views/modules/canassigncase/index.vue b/back/src/views/modules/canassigncase/index.vue index 328d803a..9489a202 100644 --- a/back/src/views/modules/canassigncase/index.vue +++ b/back/src/views/modules/canassigncase/index.vue @@ -55,11 +55,16 @@ > + - import mixinViewModule from "@/mixins/view-module"; -import AddOrUpdate from "./bsabilityservice-add-or-update"; +import AddOrUpdate from "./canassigncase-add-or-update"; import dictionaries from "@/utils/dictionaries"; import qs from "qs"; import { type } from "os"; @@ -151,7 +156,7 @@ export default { creator: "", selectType: 0, delFlag: 0, - type: "应用资源", + type: "赋能案例", }, qp: false, }; @@ -162,7 +167,7 @@ export default { }, created() { this.dataForm.name = ""; - this.dataForm.type = "应用资源"; + this.dataForm.type = "赋能案例"; }, mounted() { window.addEventListener("resize", this.a); @@ -183,7 +188,7 @@ export default { limit: 10, delFlag: 0, creator: "", - type: "应用资源", + type: "赋能案例", name: "", }) ) @@ -246,7 +251,7 @@ export default { // type: '组件服务', pageNum: 1, pageSize: this.limit, - type: "应用资源", + type: "赋能案例", creator: "", selectType: 0, delFlag: 0, diff --git a/back/src/views/modules/canassigncase/upload.vue b/back/src/views/modules/canassigncase/upload.vue index 432f08cb..69980adc 100644 --- a/back/src/views/modules/canassigncase/upload.vue +++ b/back/src/views/modules/canassigncase/upload.vue @@ -3,60 +3,58 @@ 点击上传
- 只能上传{{accept}}文件,最多上传{{limit}}个附件! + 只能上传{{ accept }}文件,最多上传{{ limit }}个附件!
- +