diff --git a/src/api/application/reviews.js b/src/api/application/reviews.js
new file mode 100644
index 0000000..5cde2b3
--- /dev/null
+++ b/src/api/application/reviews.js
@@ -0,0 +1,60 @@
+import request from "@/utils/request";
+function customParamsSerializer(params) {
+ let result = '';
+ for (let key in params) {
+ if (params.hasOwnProperty(key)) {
+ if (Array.isArray(params[key])) {
+ params[key].forEach((item,index) => {
+ if(item.key){
+ result += `${key}[${index}][key]=${item.key}&${key}[${index}][op]=${item.op}&${key}[${index}][value]=${item.value}&`;
+
+ }else{
+ result +=`${key}[${index}]=${item}&`
+ }
+ });
+ } else {
+ result += `${key}=${params[key]}&`;
+ }
+ }
+ }
+ return result.slice(0, -1);
+}
+
+export function index(params,isLoading = false) {
+ return request({
+ method: "get",
+ url: "/api/admin/application-reviews/index",
+ params,
+ paramsSerializer: customParamsSerializer,
+ isLoading
+ })
+}
+
+export function show(params, isLoading = true) {
+ return request({
+ method: "get",
+ url: "/api/admin/application-reviews/show",
+ params,
+ isLoading
+ })
+}
+
+export function save(data) {
+ return request({
+ method: "post",
+ url: "/api/admin/application-reviews/save",
+ data
+ })
+}
+
+export function destroy(params) {
+ return request({
+ method: "get",
+ url: "/api/admin/application-reviews/destroy",
+ params
+ })
+}
+
+
+
+
diff --git a/src/views/application/components/addLr.vue b/src/views/application/components/addLr.vue
new file mode 100644
index 0000000..d90b684
--- /dev/null
+++ b/src/views/application/components/addLr.vue
@@ -0,0 +1,457 @@
+
+
+
+
+
+
+ *Application Samples:
+
+
+
+
+
+
+
+
+
+
+
+
+ Product Phase:
+
+
+
+
+
+
+
+
+
+
+
+
+ *Application Id:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Visible:
+
+
+
+
+
+
+
+
+
+
+
+ *Sort Time:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Separation Mode:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Equipment:
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Files:
+
+
+
+ upload
+
+
+
+
+
+
+
+
+ Column:
+
+
+ Add Row
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ delete
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/application/index.vue b/src/views/application/index.vue
index 7028b2b..92523e7 100644
--- a/src/views/application/index.vue
+++ b/src/views/application/index.vue
@@ -13,7 +13,7 @@
-
+
diff --git a/src/views/application/literatureReviews.vue b/src/views/application/literatureReviews.vue
new file mode 100644
index 0000000..1bb2026
--- /dev/null
+++ b/src/views/application/literatureReviews.vue
@@ -0,0 +1,212 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ search
+
+
+ reset
+
+
+ add
+
+
+
+
+
+
+
+
+
+
+
+ edit
+
+ delete
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/resource/components/addUm.vue b/src/views/resource/components/addUm.vue
index c66047f..18a111f 100644
--- a/src/views/resource/components/addUm.vue
+++ b/src/views/resource/components/addUm.vue
@@ -1,19 +1,19 @@
-
-
-
- Product Phase:
-
-
-
-
-
-
-
-
+ :rules='rules' @submit="submit">
+
+
+
+ Product Phase:
+
+
+
+
+
+
+
+
@@ -24,46 +24,57 @@
-
-
-
-
-
-
-
-
- Visible:
-
-
-
-
-
-
-
-
-
-
-
- Sort Time:
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ Visible:
+
+
+
+
+
+
+
+
+
+
+
+
@@ -71,10 +82,11 @@
+ :auto-upload="true" :data="uploadOther" :on-progress="handleProgress" :on-success="handlesuccess"
+ :on-remove="handleRemove">
upload
-
-
+
+
@@ -103,17 +115,18 @@
uploadOther: {
token: ""
},
- action: `${process.env.VUE_APP_UPLOAD_API}`,
- showProgress:false,
- uploadProgress:0,
- filesList: [],
- categoryList:[],
- form: {
+ action: `${process.env.VUE_APP_UPLOAD_API}`,
+ showProgress: false,
+ uploadProgress: 0,
+ filesList: [],
+ categoryList: [],
+ form: {
category_ids: [],
- name: "",
- is_top:0,
- is_visible:1,
- date:'',
+ name: "",
+ is_top: 0,
+ is_visible: 1,
+ // date:'',
+ sort: 0,
// product_ids:[],
files: []
},
@@ -126,7 +139,7 @@
}
},
created() {
- this.uploadOther.token = getToken();
+ this.uploadOther.token = getToken();
},
methods: {
handleRemove(file, fileList) {
@@ -139,10 +152,10 @@
return
}
this.filesList = fileList
- },
- handleProgress(event, file, fileList) {
- this.showProgress = true;
- this.uploadProgress = event.percent;
+ },
+ handleProgress(event, file, fileList) {
+ this.showProgress = true;
+ this.uploadProgress = event.percent;
},
submit() {
@@ -186,12 +199,12 @@
id: this.id,
json_data_fields: ['files']
}).then(res => {
- this.form = this.base.requestToForm(res, this.form)
- this.form.date = res.date?res.date:this.$moment().format('YYYY-MM-DD HH:mm:ss')
- this.form.is_top = res.is_top?res.is_top:0
- this.form.is_visible = res.is_visible?res.is_visible:0
-
- this.form.category_ids = res.category_ids?res.category_ids:[]
+ this.form = this.base.requestToForm(res, this.form)
+ // this.form.date = res.date ? res.date : this.$moment().format('YYYY-MM-DD HH:mm:ss')
+ this.form.is_top = res.is_top ? res.is_top : 0
+ this.form.is_visible = res.is_visible ? res.is_visible : 0
+ this.form.sort = res.sort ? res.sort : 0
+ this.form.category_ids = res.category_ids ? res.category_ids : []
if (res.files_details && res.files_details.length > 0) {
this.filesList = []
res.files_details.map(item => {
@@ -210,21 +223,22 @@
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
- }else{
- this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
+ } else {
+ // this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
}
} else {
this.id = ''
- this.filesList = []
- this.showProgress = false;
+ this.filesList = []
+ this.showProgress = false;
this.uploadProgress = 0;
- this.form = {
+ this.form = {
category_ids: [],
- name: "",
- is_top:0,
- is_visible:1,
- date:'',
+ name: "",
+ is_top: 0,
+ is_visible: 1,
+ sort:0,
+ // date: '',
// product_ids: [],
files: []
}
@@ -237,10 +251,10 @@