审核更新

master
lion 2 years ago
parent 8829939e12
commit 0abc590e39

@ -27,7 +27,7 @@
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="180" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editCategory('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="Are you sure to delete it?">

@ -27,7 +27,7 @@
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="180" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editNote('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="Are you sure to delete it?">

@ -52,7 +52,7 @@
Address
</template>
<div>
{{person_info.address}}
{{person_info.shipping_address}}
</div>
</el-descriptions-item>

@ -27,9 +27,9 @@
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange" @pageSizeChange="pageSizeChange"
:table-item="table_item">
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="260" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="showCustomer(scope.row.id)">orders</el-button>
<!-- <el-button type="primary" size="small" @click="showCustomer(scope.row.id)">orders</el-button> -->
<el-button type="primary" size="small" @click="showCustomer(scope.row.id)">view</el-button>
<!-- <el-button type="primary" size="small" @click="editCustomer('editor',scope.row.id)">edit</el-button> -->
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px"
@ -100,13 +100,13 @@
width: 240
},
{
prop: 'address',
prop: 'shipping_address',
label: 'Address(地址)',
align: 'left',
width: 360
},
{
prop: 'Created_At',
prop: 'Created At',
label: 'created_at(创建时间)',
align: 'left',
width: 240

@ -27,7 +27,7 @@
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="180" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editNote('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="Are you sure to delete it?">

@ -132,7 +132,7 @@
align: 'left',
width: 180
}, {
prop: 'user.address',
prop: 'user.shipping_address',
label: 'Address',
align: 'left',
width: 360

@ -27,7 +27,7 @@
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="240" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editParameter('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="Are you sure to delete it?">

@ -65,7 +65,7 @@
</el-table-column>
</template>
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="180" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editProduct('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px"

@ -27,7 +27,7 @@
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="180" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editCatalog('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="Are you sure to delete it?">
@ -57,7 +57,9 @@
title: '',
table_name:'catalogs',
page: 1,
page_size: 10,
page_size: 10,
sort_name:"date",
sort_type:"DESC",
},
total: 0,
list: [],
@ -74,6 +76,11 @@
prop: 'title',
label: 'Title',
align: 'left',
},{
prop: 'date',
label: 'Relase Time',
align: 'left',
width:180
}
]

@ -24,6 +24,18 @@
<el-input placeholder="Please Input" style="width:100%" v-model="form.title"></el-input>
</div>
</div>
</template>
<template v-slot:date>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Release Time
</div>
<div class="xy-table-item-content">
<el-date-picker v-model="form.date" style="width:100%" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" placeholder="Please Select">
</el-date-picker>
</div>
</div>
</template>
<template v-slot:type>
<div class="xy-table-item">
@ -86,7 +98,8 @@
categoryList: [],
form: {
category_ids: '',
title: "",
title: "",
date:'',
type: '',
files: []
},
@ -172,7 +185,9 @@
table_name: this.table_name,
id: this.id
}).then(res => {
this.form = this.base.requestToForm(res, this.form)
this.form = this.base.requestToForm(res, this.form)
this.form.date = res.date?res.date:this.$moment().format('YYYY-MM-DD HH:mm:ss')
if (res.files_details && res.files_details.length > 0) {
this.filesList = []
res.files_details.map(item => {
@ -191,6 +206,8 @@
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
}else{
this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
}
} else {
@ -198,7 +215,8 @@
this.filesList = []
this.form = {
category_ids: '',
title: "",
title: "",
date:'',
type: '',
files: []
}
@ -213,7 +231,8 @@
<style scoped lang="scss">
::v-deep .category_ids,
::v-deep .title,
::v-deep .type,
::v-deep .type,
::v-deep .date,
::v-deep .files {
flex-basis: 100%;
}

@ -11,6 +11,18 @@
<el-input placeholder="Please Input" style="width:100%" v-model="form.title"></el-input>
</div>
</div>
</template>
<template v-slot:date>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Release Time
</div>
<div class="xy-table-item-content">
<el-date-picker v-model="form.date" style="width:100%" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" placeholder="Please Select">
</el-date-picker>
</div>
</div>
</template>
<template v-slot:files>
<div class="xy-table-item">
@ -65,7 +77,8 @@
},
action: `${process.env.VUE_APP_UPLOAD_API}`,
form: {
title: "",
title: "",
date:'',
files: [],
content: ''
},
@ -138,7 +151,9 @@
table_name: this.table_name,
id: this.id,
}).then(res => {
this.form = this.base.requestToForm(res, this.form)
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.content = res.content ? res.content : ''
this.showWang = true
if (res.files_details && res.files_details.length > 0) {
@ -159,6 +174,8 @@
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
}else{
this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
}
this.showWang = true
} else {
@ -166,7 +183,8 @@
this.showWang = false
this.filesList = []
this.form = {
title: "",
title: "",
date:'',
files: [],
content: ''
}
@ -180,7 +198,8 @@
<style scoped lang="scss">
::v-deep .title,
::v-deep .files,
::v-deep .files,
::v-deep .date,
::v-deep .content {
flex-basis: 100%;
}

@ -25,7 +25,7 @@
</div>
</div>
</template>
<template v-slot:date v-if="table_name==='technical_newsletters'">
<template v-slot:date>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Release Time
@ -194,10 +194,9 @@
this.form = this.base.requestToForm(res, this.form)
if (this.table_name === 'technical_newsletters') {
this.form.content = res.content ? res.content : ''
this.form.date = res.date?res.date:this.$moment().format('YYYY-MM-DD HH:mm:ss')
this.showWang = true
}
this.form.date = res.date?res.date:this.$moment().format('YYYY-MM-DD HH:mm:ss')
if (res.files_details && res.files_details.length > 0) {
this.filesList = []
res.files_details.map(item => {
@ -218,8 +217,9 @@
if (this.type === 'editor') {
this.getDetail()
}else{
this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
if (this.table_name === 'technical_newsletters') {
this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
this.showWang = true
}

@ -36,6 +36,18 @@
<el-input placeholder="Please Input" style="width:100%" v-model="form.title"></el-input>
</div>
</div>
</template>
<template v-slot:date>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Release Time
</div>
<div class="xy-table-item-content">
<el-date-picker v-model="form.date" style="width:100%" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" placeholder="Please Select">
</el-date-picker>
</div>
</div>
</template>
<template v-slot:link>
<div class="xy-table-item">
@ -141,7 +153,8 @@
category_ids: [],
application_ids:[],
year: "",
title: "",
title: "",
date:'',
link: '',
product_numbers: [],
separation_mode: [],
@ -247,6 +260,8 @@
id: this.id
}).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.category_ids = res.category_ids?res.category_ids:[],
this.form.product_numbers = res.product_numbers?res.product_numbers:[]
this.form.separation_mode = res.separation_mode?res.separation_mode:[]
@ -260,6 +275,8 @@
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
}else{
this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
}
} else {
@ -269,6 +286,7 @@
application_ids:[],
year: "",
title: "",
date:'',
link: '',
product_numbers: [],
separation_mode: [],

@ -25,6 +25,18 @@
</div>
</div>
</template>
<template v-slot:date>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Release Time
</div>
<div class="xy-table-item-content">
<el-date-picker v-model="form.date" style="width:100%" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" placeholder="Please Select">
</el-date-picker>
</div>
</div>
</template>
<template v-slot:files>
<div class="xy-table-item">
@ -72,6 +84,7 @@
form: {
category_ids: [],
name: "",
date:'',
// product_ids:[],
files: []
},
@ -153,6 +166,8 @@
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.category_ids = res.category_ids?res.category_ids:[]
if (res.files_details && res.files_details.length > 0) {
this.filesList = []
@ -172,6 +187,8 @@
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
}else{
this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
}
} else {
@ -179,7 +196,8 @@
this.filesList = []
this.form = {
category_ids: [],
name: "",
name: "",
date:'',
// product_ids: [],
files: []
}
@ -193,7 +211,7 @@
<style scoped lang="scss">
::v-deep .name,
::v-deep .date,
::v-deep .category_ids,
::v-deep .files {
flex-basis: 100%;

@ -11,6 +11,18 @@
<el-input placeholder="Please Input" style="width:100%" v-model="form.title"></el-input>
</div>
</div>
</template>
<template v-slot:date>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Release Time
</div>
<div class="xy-table-item-content">
<el-date-picker v-model="form.date" style="width:100%" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" placeholder="Please Select">
</el-date-picker>
</div>
</div>
</template>
<template v-slot:picture>
<div class="xy-table-item">
@ -93,7 +105,8 @@
filesList: [],
videosList:[],
form: {
title: "",
title: "",
date:'',
picture: [],
videos:[],
introduction: "",
@ -194,7 +207,9 @@
id: this.id,
json_data_fields: ['picture']
}).then(res => {
this.form = this.base.requestToForm(res, this.form)
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.content = res.content ? res.content : ''
this.showWang = true
if (res.picture_details && res.picture_details.length > 0) {
@ -226,6 +241,8 @@
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
}else{
this.form.date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
}
this.showWang = true
} else {
@ -234,7 +251,8 @@
this.filesList = []
this.videosList = []
this.form = {
title: "",
title: "",
date:'',
picture: [],
videos:[],
introduction: "",
@ -249,7 +267,8 @@
</script>
<style scoped lang="scss">
::v-deep .title,
::v-deep .title,
::v-deep .date,
::v-deep .picture,
::v-deep .introduction,
::v-deep .content {

@ -27,7 +27,7 @@
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="180" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editFaq('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="Are you sure to delete it?">
@ -57,7 +57,9 @@
title: '',
table_name:'faqs',
page: 1,
page_size: 10,
page_size: 10,
sort_name:"date",
sort_type:"DESC",
},
total: 0,
list: [],
@ -69,6 +71,11 @@
prop: 'title',
label: 'Title',
align: 'left',
},{
prop: 'date',
label: 'Relase Time',
align: 'left',
width:180
}
]

@ -26,7 +26,7 @@
</div>
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:created_at>
<!-- <template v-slot:created_at>
<el-table-column align='left' label="Relase Time" width="180" header-align="center">
<template slot-scope="scope">
<div v-if="select.table_name==='technical_newsletters'">
@ -37,9 +37,9 @@
</div>
</template>
</el-table-column>
</template>
</template> -->
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="180" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editFiles('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="Are you sure to delete it?">
@ -76,7 +76,9 @@
title: '',
table_name:'product_selections',
page: 1,
page_size: 10,
page_size: 10,
sort_name:"date",
sort_type:"DESC",
},
total: 0,
list: [],
@ -89,7 +91,7 @@
label: 'Title',
align: 'left',
},{
prop: 'created_at',
prop: 'date',
label: 'Relase Time',
align: 'left',
width:180
@ -131,8 +133,6 @@
async getList() {
const res = await index({
...this.select,
sort_name:this.select.table_name==='technical_newsletters'?"date":'',
sort_type:this.select.table_name==='technical_newsletters'?"DESC":'',
filter:[{
key:'title',
op:'like',

@ -27,7 +27,7 @@
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="180" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editLr('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="Are you sure to delete it?">
@ -57,7 +57,9 @@
title: '',
table_name:'literature_references',
page: 1,
page_size: 10,
page_size: 10,
sort_name:"date",
sort_type:"DESC",
},
total: 0,
list: [],
@ -79,6 +81,11 @@
prop: 'link',
label: 'Link',
align: 'left'
},{
prop: 'date',
label: 'Relase Time',
align: 'left',
width:180
}
]

@ -27,7 +27,7 @@
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="180" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editLr('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="Are you sure to delete it?">
@ -57,7 +57,9 @@
name: '',
table_name:'user_manuals',
page: 1,
page_size: 10,
page_size: 10,
sort_name:"date",
sort_type:"DESC",
},
total: 0,
list: [],
@ -69,6 +71,11 @@
prop: 'name',
label: 'Name',
align: 'left',
},{
prop: 'date',
label: 'Relase Time',
align: 'left',
width:180
}
]

@ -27,7 +27,7 @@
<xy-table :list="list" :total="total" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="Operate" width="180" header-align="center">
<el-table-column align='center' fixed="right" label="Operate" width="180" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editWebinar('editor',scope.row.id)">edit</el-button>
<el-popconfirm confirm-button-text="confirm" cancel-button-text="cancel" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="Are you sure to delete it?">
@ -57,7 +57,9 @@
title: '',
table_name:'webinars',
page: 1,
page_size: 10,
page_size: 10,
sort_name:"date",
sort_type:"DESC",
},
total: 0,
list: [],
@ -69,6 +71,11 @@
prop: 'title',
label: 'Title',
align: 'left',
},{
prop: 'date',
label: 'Relase Time',
align: 'left',
width:180
}
]

@ -53,6 +53,25 @@
></el-button>
</div>
</el-form-item>
<el-form-item prop="link_table_name" label="关联表" v-if="selectedForm.edit_input==='checkbox'">
<el-select
v-model="selectedForm.link_table_name"
clearable
filterable
:popper-append-to-body="false"
placeholder="请选择关联表"
style="width: 100%"
>
<el-option
v-for="(value, key) in forms"
:key="key"
:label="value.table_name"
:value="value.table_name"
></el-option>
</el-select>
</el-form-item>
<el-form-item prop="validation" label="校验规则">
<el-select
v-model="selectedForm.validation"

Loading…
Cancel
Save