Webpage Editor: Carousel Images
This commit is contained in:
@@ -194,23 +194,23 @@ export default defineComponent({
|
||||
const userStore = useUserStore()
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
const myvalue = ref(<any>null)
|
||||
const myvalue = ref(null as any)
|
||||
const myvalueprec = ref('false')
|
||||
const countryname = ref('')
|
||||
const visueditor = ref(false)
|
||||
const visuhtml = ref(false)
|
||||
const showeditor = ref(false)
|
||||
|
||||
const myImgGall = ref(<IImgGallery[]>[{}])
|
||||
const myImgGall = ref([{}] as IImgGallery[])
|
||||
|
||||
const col = ref(<IColGridTable>{
|
||||
const col = ref({
|
||||
name: 'test',
|
||||
fieldtype: 0,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
visible: true,
|
||||
maxlength: props.mycol ? props.mycol.maxlength : 0,
|
||||
minlength: props.mycol ? props.mycol.minlength : undefined
|
||||
})
|
||||
} as IColGridTable)
|
||||
|
||||
const { setValDb, getValDb } = MixinBase()
|
||||
const { getMyUsername } = MixinUsers()
|
||||
@@ -625,12 +625,12 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
function getclassCol(col: any) {
|
||||
if (col) {
|
||||
let mycl = (col.disable || isviewfield()) ? '' : 'colmodif'
|
||||
mycl += ((col.fieldtype === costanti.FieldType.date) || (col.fieldtype === costanti.FieldType.onlydate)) ? ' coldate flex flex-container' : ''
|
||||
function getclassCol(mycol: any) {
|
||||
if (mycol) {
|
||||
let myclstr = (mycol.disable || isviewfield()) ? '' : 'colmodif'
|
||||
myclstr += ((mycol.fieldtype === costanti.FieldType.date) || (mycol.fieldtype === costanti.FieldType.onlydate)) ? ' coldate flex flex-container' : ''
|
||||
|
||||
return mycl
|
||||
return myclstr
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
@@ -674,7 +674,7 @@ export default defineComponent({
|
||||
let ris = ''
|
||||
try {
|
||||
let username = myrow.value.hasOwnProperty('username') ? myrow.value['username'] : ''
|
||||
let userId = myrow.value.hasOwnProperty('userId') ? myrow.value['userId'] : ''
|
||||
const userId = myrow.value.hasOwnProperty('userId') ? myrow.value['userId'] : ''
|
||||
|
||||
if (username === '') {
|
||||
if (userId === userStore.my._id)
|
||||
@@ -695,6 +695,8 @@ export default defineComponent({
|
||||
ris = 'circuits/' + myrow.value['path']
|
||||
} else if (!!myrow.value && !!myrow.value.directory) {
|
||||
ris = myrow.value.directory
|
||||
} else if (props.table === 'myelems') {
|
||||
ris = 'pages/' + myrow.value.path
|
||||
} else {
|
||||
ris = props.table
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user