master
lion 3 months ago
parent 0108dc823b
commit a0ae56ecac

@ -2,9 +2,9 @@
ENV='development'
# base api
#VUE_APP_BASE_API = https://saifen.ali251.langye.net
#VUE_APP_UPLOAD_API = https://saifen.ali251.langye.net/api/admin/upload-file
VUE_APP_BASE_API = https://saifen.ali251.langye.net
VUE_APP_UPLOAD_API = https://saifen.ali251.langye.net/api/admin/upload-file
#VUE_APP_PREVIEW_API=http://view.ali251.langye.net:8012/onlinePreview
VUE_APP_BASE_API = https://sepax-pdm-test.langye.net
VUE_APP_UPLOAD_API = https://sepax-pdm-test.langye.net/api/admin/upload-file
#VUE_APP_BASE_API = https://sepax-pdm-test.langye.net
#VUE_APP_UPLOAD_API = https://sepax-pdm-test.langye.net/api/admin/upload-file

@ -19,7 +19,8 @@ export default {
page_size: 999,
sort_name:'sort',
sort_type:'ASC',
type:1
type:1,
status:1
})
let number = []
res.data.map(item=>{

@ -487,13 +487,11 @@
// this.form.content = res.content ? res.content : ''
this.form.category_id = res.category_id ? res.category_id : []
this.form.phase = res.phase?res.phase:[]
let phase = this.categoryList.filter(item=>{return res.category_id.includes(item.id)})
let phase = this.categoryList.filter(item=>{return this.form.category_id.includes(item.id)})
phase.map(item=>{
this.subPhaseList.push(...item.phase)
})
this.form.is_visible = res.is_visible?res.is_visible:0
this.form.is_sell = res.is_sell?res.is_sell:0
this.form.show_price = res.show_price?res.show_price:0

@ -14,6 +14,7 @@
>
<div style="color: red; margin-top: 10px">
<p>Do not modify the title name of the template when importing,unique index for part number.</p>
<p>If you have multiple Product phases, please separate them with , </p>
<p>Top,Product Visible,Active, please fill in <strong>yes</strong> or <strong>no</strong></p>
<p>Price Visible, please fill in <strong>Need to contact sales</strong> or <strong>Need to log in</strong></p>
<p>Please fill in the standard time for Sort Time, such as <strong>2025-05-10 12:00:00</strong></p>

@ -108,6 +108,9 @@
import {
getToken
} from '@/utils/auth'
import {
deepCopy
} from '@/utils/index'
import imports from "./components/imports.vue"
export default {
components: {
@ -249,7 +252,23 @@
},
methods: {
importTable(row) {
this.$refs.imports.headers = this.table_item
let arr = deepCopy(this.table_item)
let maps = ['Separation Mode', 'Bead Type', 'Particle Size (µm)', 'Pore Size (Å)', 'ID (mm)', 'Length (mm)']
arr.unshift({
prop: 'Product Phase',
label: 'Product Phase',
export:true
})
maps.map(item=>{
arr.push({
prop: item,
label: item,
export:true
})
})
console.log("arr",arr)
this.$refs.imports.headers = arr
this.$refs.imports.show()
},
editProduct(type, id) {
@ -325,7 +344,13 @@
_export[item.prop] = item.label
}
})
_export['product_details'] = 'Product Details'
// 'Separation Mode', 'Bead Type', 'Particle Size (µm)', 'Pore Size (Å)', 'ID (mm)', 'Length (mm)'
_export['Separation Mode'] = 'Separation Mode'
_export['Bead Type'] = 'Bead Type'
_export['Particle Size (µm)'] = 'Particle Size (µm)'
_export['Pore Size (Å)'] = 'Pore Size (Å)'
_export['ID (mm)'] = 'ID (mm)'
_export['Length (mm)'] = 'Length (mm)'
download(
'/api/admin/product/index',
'get', {

Loading…
Cancel
Save