diff --git a/src/components/service-list/commodity-list.vue b/src/components/service-list/commodity-list.vue index a2c4559cce6ba13f9d05cfae30f163e5a481546d..e8531177650140494078f9e9f773f2b48991c9e9 100644 --- a/src/components/service-list/commodity-list.vue +++ b/src/components/service-list/commodity-list.vue @@ -71,54 +71,61 @@ import CommodityCard from "@/components/service-list/commodity-card.vue"; export default { components: { "commodity-cell": CommodityCell, - "commodity-card": CommodityCard + "commodity-card": CommodityCard, }, props: { - datas: { type: Array, default: () => {[]} }, + datas: { + type: Array, + default: () => { + []; + }, + }, total: { type: Number, - default: 0 + default: 0, }, url: { type: String, default: "" }, paginationShow: { type: Boolean, - default: false + default: false, }, pageSizeShow: { type: Boolean, - default: false + default: false, }, - urlFilter: { type: String, default: "" } + urlFilter: { type: String, default: "" }, }, data: () => ({ pagination: { rowsPerPage: 10, - page: 1 + page: 1, }, pageOptions: [ { value: "10", - label: "10" + label: "10", }, { value: "20", - label: "20" + label: "20", }, { value: "50", - label: "50" - } - ] + label: "50", + }, + ], }), computed: {}, - watch: {}, methods: { handleSizeChange(val) { this.pagination.rowsPerPage = val; - this.$emit("refresh", this.pagination); + this.refreshData(); }, handleCurrentChange(val) { this.pagination.page += val; + this.refreshData(); + }, + refreshData() { this.$emit("refresh", this.pagination); }, pageResize() { @@ -130,7 +137,7 @@ export default { cardArr[i].style.width = listWidth / rowCardNum - 1 + "px"; } // console.log(this.$refs.commodityCardIn); - } + }, }, mounted() {}, watch: { @@ -144,9 +151,18 @@ export default { }; }, 0); } - } - } - } + }, + }, + url: { + handler() { + this.pagination = { + rowsPerPage: 10, + page: 1, + }; + this.refreshData(); + }, + }, + }, }; diff --git a/src/components/service-list/service_list.vue b/src/components/service-list/service_list.vue index 3fe8d98cd4acb8f5dd6a73ceb5adc914c1a79d3c..85a6b32b6ac600ec26d876b66cb469462e13df84 100644 --- a/src/components/service-list/service_list.vue +++ b/src/components/service-list/service_list.vue @@ -388,7 +388,6 @@ export default { this.getAppArea(); this.getAppType(); this.getAppOrg(); - this.getShopList(); this.time_app = setInterval(() => { if (this.refresh_app_1 && this.refresh_app_2 && this.refresh_app_3) { this.judgeHeight(); @@ -418,7 +417,6 @@ export default { console.log(response.data.errMsg); } }); - this.getShopList(); } }, judgeHeight() { @@ -709,7 +707,10 @@ export default { background-color: #626de9; border-color: #626de9; } -.head_flex .btn_right_check .el-checkbox__input.is-checked + .el-checkbox__label { +.head_flex + .btn_right_check + .el-checkbox__input.is-checked + + .el-checkbox__label { color: #626de9; } .head_flex .btn_right_check .el-checkbox__input.is-focus .el-checkbox__inner { diff --git a/src/pages/service_shop/shop_list.vue b/src/pages/service_shop/shop_list.vue index 8df7ccd14f17fd7be8da743eceea5f5a31b083a6..5d22f62be921f0394ed5f2b4f4361b524b833507 100644 --- a/src/pages/service_shop/shop_list.vue +++ b/src/pages/service_shop/shop_list.vue @@ -140,6 +140,7 @@ export default { \ No newline at end of file diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 4c4e7008ceeb5f3d922b8032a72d5db966eb9f78..93c09480b01a3ed087bc3cd16d968db7541f7aee 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -306,19 +306,14 @@
服务名称:
-服务描述:
-服务领域:
@@ -552,6 +547,33 @@ export default { { required: true, message: "请选择开放程度", trigger: "blur" }, ], }, + rules_process: { + name: [ + { required: true, message: "请输入服务名称", trigger: "blur" }, + { + min: 0, + max: 100, + message: "服务名称不超过100个字", + trigger: "blur", + }, + ], + desc: [ + { required: true, message: "请输入服务描述", trigger: "blur" }, + { + min: 0, + max: 400, + message: "服务描述不超过400个字", + trigger: "blur", + }, + ], + area: [{ required: true, message: "请选择服务领域", trigger: "blur" }], + origin: [ + { required: true, message: "请选择所属组织", trigger: "blur" }, + ], + resource: [ + { required: true, message: "请选择开放程度", trigger: "blur" }, + ], + }, cover: [], optionsArea: [], datasSj: [], @@ -1088,6 +1110,7 @@ export default { } else if (self.$route.query.process) { self.process_id = self.$route.query.process; self.jcxxtx = true; + this.getProcessDetail(); this.getOrganization(); } else { self.is_map = 0; @@ -1178,6 +1201,20 @@ export default { } } }, + getProcessDetail() { + this.$api.workbench + .getProcessDetail({ id: this.process_id }) + .then((response) => { + if (response.data.success == 1) { + let data = response.data.data; + this.form.name = data.name; + this.form.desc = data.describe; + this.cover.push( + "/apaas/static/docs/image/image/blob_75dc5c77-754c-440d-8320-92ba68d239d5.blob" + ); + } + }); + }, }, mounted() { let self = this; diff --git "a/static/\345\267\245\344\275\234\345\214\272\345\237\237\347\224\263\350\257\267\346\226\207\344\273\266\346\250\241\346\235\277.xlsx" "b/static/\345\267\245\344\275\234\345\214\272\345\237\237\347\224\263\350\257\267\346\226\207\344\273\266\346\250\241\346\235\277.xlsx" index 0265f7715f35ca4eab06e6acbf54451bc16f7403..1d31c49e02d661e36b483392324b0869c85cc857 100644 Binary files "a/static/\345\267\245\344\275\234\345\214\272\345\237\237\347\224\263\350\257\267\346\226\207\344\273\266\346\250\241\346\235\277.xlsx" and "b/static/\345\267\245\344\275\234\345\214\272\345\237\237\347\224\263\350\257\267\346\226\207\344\273\266\346\250\241\346\235\277.xlsx" differ