diff --git a/src/assets/order_down.svg b/src/assets/order_down.svg new file mode 100644 index 0000000..cd54c40 --- /dev/null +++ b/src/assets/order_down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/views/super/clientSet/coverInfoPage.vue b/src/views/super/clientSet/coverInfoPage.vue index d41a55c..4b9896e 100644 --- a/src/views/super/clientSet/coverInfoPage.vue +++ b/src/views/super/clientSet/coverInfoPage.vue @@ -198,13 +198,18 @@ export default { console.error('数据加载失败:', error) } }, + // 保存模板配置 submitFun() { - // let props = { - // configdata, - // template_id - // } - this.$http('POST', '/supernew/upload_paiban_template_cover', { - + let props = { + configdata:{ + school: this.coverInfo.school, + college: this.coverInfo.college, + degree: this.coverInfo.degree, + }, + template_id: this.template_id + } + this.$http('POST', '/supernew/ajax_save_paiban_template_config', { + ...props }).then(response => { this.$nextTick(() => { if (response.status) { diff --git a/src/views/super/paiban/college.vue b/src/views/super/paiban/college.vue index 606c17d..97b7d5c 100644 --- a/src/views/super/paiban/college.vue +++ b/src/views/super/paiban/college.vue @@ -5,9 +5,9 @@
- - - + + +
收录成功通知 @@ -33,17 +33,17 @@ @@ -101,8 +101,8 @@ export default { return { tableLoading:false, tableKey: '', - school:'0', - degree:'0', + school:'', + degree:'', review_status: -1, tableList:[], @@ -113,7 +113,8 @@ export default { isShowDialog:false, refuse_id:0, tpl_name:'', - refuse_reason:'' + refuse_reason:'', + statusList:[] } }, mounted() { @@ -129,17 +130,18 @@ export default { this.currentPage = 1 this.pageSize = 20 this.getList() + this.getStatusList() }, getList() { try { this.$http('POST', '/supernew/ajax_get_paiban_review_list', {//ok - school: this.school, - degree: this.degree, - review_status: this.review_status, + school: this.school || '0', + degree: this.degree || '0', + review_status: String(this.review_status), page: this.currentPage, }).then(response => { this.$nextTick(() => { - // this.tableList = response.data.list + this.tableList = response.data.list this.total = response.data.count }) }).catch(error => { @@ -149,6 +151,20 @@ export default { console.error('数据加载失败:', error) } }, + getStatusList() { + try { + this.$http('POST', '/supernew/ajax_get_review_status', { + }).then(response => { + this.$nextTick(() => { + this.statusList = response.data + }) + }).catch(error => { + console.error(error, 'error') + }) + } catch (error) { + console.error('数据加载失败:', error) + } + }, handleSizeChange(val) { this.pageSize = val this.getList() @@ -157,13 +173,13 @@ export default { this.currentPage = val this.getList() }, - handleConfirm(id){ - console.log(id) + handleConfirm(row){ this.isShowDialog = false try { this.$http('POST', '/supernew/ajax_update_paiban_template_review_status', { - template_id: id, + template_id: row.id, review_status: 1, + refuse_reason:this.refuse_reason }).then(response => { this.$nextTick(() => { if (response.status) { @@ -180,6 +196,14 @@ export default { console.error('数据加载失败:', error) } }, + handleUpdate(row){ + // 修改 会到编辑页面 + localStorage.setItem('curtplInfo', JSON.stringify(row)) + this.$router.push({ + path: '/super/clientSet/coverInfoPage', + query: { id:row.id } + }) + }, handleLunwen(row){ this.refuse_id = row.id }, @@ -243,12 +267,12 @@ export default { background: #F2F7FF; color: #006AFF; } -.status1{ +.status2{ border: 1px solid #DFE2E6; background: #F6F7FA; color: #626573; } -.status2{ +.status1{ background: #FFFBF2; border: 1px solid rgba(251, 131, 45, 0.38); color: #FB832D; diff --git a/src/views/super/paiban/orderlist.vue b/src/views/super/paiban/orderlist.vue index f24be63..09361ef 100644 --- a/src/views/super/paiban/orderlist.vue +++ b/src/views/super/paiban/orderlist.vue @@ -58,7 +58,12 @@
- + + + +