diff --git a/public/index.html b/public/index.html index 01f0c36..fb08323 100644 --- a/public/index.html +++ b/public/index.html @@ -1,8 +1,8 @@ diff --git a/src/assets/img/add_new.png b/src/assets/img/add_new.png new file mode 100644 index 0000000..623a1fe Binary files /dev/null and b/src/assets/img/add_new.png differ diff --git a/src/icons/svg/icon-del.svg b/src/icons/svg/icon-del.svg new file mode 100644 index 0000000..2ff4e08 --- /dev/null +++ b/src/icons/svg/icon-del.svg @@ -0,0 +1,12 @@ + + + 删除 + + + + + + + + + \ No newline at end of file diff --git a/src/icons/svg/icon-del1.svg b/src/icons/svg/icon-del1.svg new file mode 100644 index 0000000..3b9a2fe --- /dev/null +++ b/src/icons/svg/icon-del1.svg @@ -0,0 +1,12 @@ + + + 删除 + + + + + + + + + \ No newline at end of file diff --git a/src/icons/svg/icon-edit0.svg b/src/icons/svg/icon-edit0.svg new file mode 100644 index 0000000..a257814 --- /dev/null +++ b/src/icons/svg/icon-edit0.svg @@ -0,0 +1,17 @@ + + + 编辑 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/icons/svg/icon-edit1.svg b/src/icons/svg/icon-edit1.svg new file mode 100644 index 0000000..f9b2ea6 --- /dev/null +++ b/src/icons/svg/icon-edit1.svg @@ -0,0 +1,17 @@ + + + 编辑 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/icons/svg/icon-look.svg b/src/icons/svg/icon-look.svg new file mode 100644 index 0000000..fa04971 --- /dev/null +++ b/src/icons/svg/icon-look.svg @@ -0,0 +1,12 @@ + + + 预览 + + + + + + + + + \ No newline at end of file diff --git a/src/icons/svg/icon-look1.svg b/src/icons/svg/icon-look1.svg new file mode 100644 index 0000000..9e3cda7 --- /dev/null +++ b/src/icons/svg/icon-look1.svg @@ -0,0 +1,12 @@ + + + 预览 + + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/supplier/components/addPlan.vue b/src/views/modules/supplier/components/addPlan.vue index 6bd16bc..be2a479 100644 --- a/src/views/modules/supplier/components/addPlan.vue +++ b/src/views/modules/supplier/components/addPlan.vue @@ -109,6 +109,9 @@ export default { this.getUser() }, methods: { + init(val) { + this.ruleForm = val + }, setDay() { switch (this.ruleForm.reminderTimeMonth) { case 2: @@ -196,7 +199,7 @@ export default { console.log('nich ', this.chooseSupplierList) this.$refs[formName].validate((valid) => { if (valid) { - this.$http["post"](this.urlOptions.addURL, this.ruleForm) + this.$http[!this.ruleForm.id ? "post" : "put"](this.urlOptions.addURL, this.ruleForm) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg); @@ -207,7 +210,7 @@ export default { supplierId: item, evaluationPlanId: res.data } - this.$http["post"](this.urlOptions.addQmsRelation, param) + this.$http[!this.ruleForm.id ? "post" : "put"](this.urlOptions.addQmsRelation, param) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg); diff --git a/src/views/modules/supplier/components/addProjects.vue b/src/views/modules/supplier/components/addProjects.vue index faa2f3e..f2e589c 100644 --- a/src/views/modules/supplier/components/addProjects.vue +++ b/src/views/modules/supplier/components/addProjects.vue @@ -1,7 +1,7 @@ @@ -9,28 +9,40 @@ - + - 配置管理 - 角色管理 - 定时任务补偿 + + + + 项目设置 \ No newline at end of file diff --git a/src/views/modules/supplier/components/evaluationTemplate-add.vue b/src/views/modules/supplier/components/evaluationTemplate-add.vue index bb1460a..0dc200b 100644 --- a/src/views/modules/supplier/components/evaluationTemplate-add.vue +++ b/src/views/modules/supplier/components/evaluationTemplate-add.vue @@ -1,16 +1,15 @@