feat: 更新element-plus版本前的提交

This commit is contained in:
谢泓 2022-07-29 17:21:47 +08:00
parent 303dd4fecf
commit 85b7a6645d
4 changed files with 12 additions and 16 deletions

View File

@ -10,7 +10,7 @@ import '@/router/premission'
import i18n from './i18n/i18nIndex' import i18n from './i18n/i18nIndex'
import * as Cesium from '../node_modules/cesium/Source/Cesium' import * as Cesium from '../node_modules/cesium/Source/Cesium'
import '../node_modules/cesium/Source/Widgets/widgets.css' import '../node_modules/cesium/Source/Widgets/widgets.css'
import filters from './utils/filters' import filters from '@/utils/filters'
const app = createApp(App) const app = createApp(App)
SvgIcon(app) SvgIcon(app)

View File

@ -17,36 +17,29 @@
v-for="(item, index) in transTitle" v-for="(item, index) in transTitle"
:label="item" :label="item"
:key="index" :key="index"
:index="index + ''"
align="center" align="center"
> >
<template v-slot="scope"> <template v-slot="scope">
{{ scope.row[index] }} {{ scope.row[index] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="60" align="center">
<el-icon><Edit /></el-icon>
</el-table-column>
</el-table> </el-table>
</div> </div>
</template> </template>
<script setup> <script setup>
import { onMounted, ref } from 'vue' import { onMounted, ref } from 'vue'
import { Edit } from '@element-plus/icons-vue'
const originData = ref([ const originData = ref([
({ {
name: '湖北省武汉市某区', name: '湖北省武汉市某区',
region: '武汉市', region: '武汉市',
elevation: '150m' elevation: '150m'
}, }
{
name: '湖北省武汉市某区',
region: '黄石市',
elevation: '200m'
},
{
name: '湖北省武汉市某区',
region: '荆州市',
elevation: '200m'
})
]) ])
// originTitle , // originTitle ,
const originTitle = ref(['行政区划', '隶属', '海拔']) const originTitle = ref(['行政区划', '隶属', '海拔'])

View File

@ -39,8 +39,7 @@
</template> </template>
<script setup> <script setup>
import { defineEmits, ref, defineProps, watch } from 'vue' import { ref, watch } from 'vue'
// import { defineEmits, ref, defineProps } from 'vue'
import { addUser, editUser } from '@/api/user' import { addUser, editUser } from '@/api/user'
import i18n from '@/i18n/i18nIndex' import i18n from '@/i18n/i18nIndex'
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'

View File

@ -83,6 +83,10 @@ import { isNull } from '@/utils/filters'
const i18n = useI18n() const i18n = useI18n()
const small = ref(false)
const background = ref(false)
const disabled = ref(false)
const queryFrom = ref({ const queryFrom = ref({
query: '', query: '',
pagenum: 1, pagenum: 1,