@@ -11,7 +11,6 @@ import IconOpeDelete from '@/assets/svg/icon_delete.svg'
1111import icon_searchOutline_outlined from ' @/assets/svg/icon_search-outline_outlined.svg'
1212import EmptyBackground from ' @/views/dashboard/common/EmptyBackground.vue'
1313import { useClipboard } from ' @vueuse/core'
14- import { useUserStore } from ' @/stores/user'
1514import { useI18n } from ' vue-i18n'
1615import { cloneDeep } from ' lodash-es'
1716import { getAdvancedApplicationList } from ' @/api/embedded.ts'
@@ -26,7 +25,6 @@ interface Form {
2625 advanced_application_name: string | null
2726 description: string | null
2827}
29- const userStore = useUserStore ()
3028const { t } = useI18n ()
3129const multipleSelectionAll = ref <any []>([])
3230const keywords = ref (' ' )
@@ -42,10 +40,6 @@ onMounted(() => {
4240 search ()
4341})
4442
45- const isDefaultOrg = computed (() => {
46- return userStore .oid === ' 1'
47- })
48-
4943const dialogFormVisible = ref <boolean >(false )
5044const multipleTableRef = ref ()
5145const isIndeterminate = ref (true )
@@ -261,26 +255,23 @@ const rules = computed(() => {
261255 },
262256 ],
263257 }
264- if (! isDefaultOrg .value ) {
265- _list .datasource = [
266- {
267- required: true ,
268- message: t (' datasource.Please_select' ) + t (' common.empty' ) + t (' ds.title' ),
269- },
270- ]
271- }
258+ // _list.datasource = [
259+ // {
260+ // required: true,
261+ // message: t('datasource.Please_select') + t('common.empty') + t('ds.title'),
262+ // },
263+ // ]
264+
272265 return _list
273266})
274267
275268const list = () => {
276269 datasourceApi .list ().then ((res : any ) => {
277270 options .value = res || []
278271 })
279- if (isDefaultOrg .value ) {
280- getAdvancedApplicationList ().then ((res : any ) => {
281- adv_options .value = res || []
282- })
283- }
272+ getAdvancedApplicationList ().then ((res : any ) => {
273+ adv_options .value = res || []
274+ })
284275}
285276
286277const saveHandler = () => {
@@ -426,7 +417,6 @@ const onRowFormClose = () => {
426417 </el-table-column >
427418 <el-table-column prop =" datasource_name" :label =" $t('ds.title')" min-width =" 180" />
428419 <el-table-column
429- v-if =" isDefaultOrg"
430420 prop =" advanced_application_name"
431421 :label =" $t('embedded.advanced_application')"
432422 min-width =" 180"
@@ -588,11 +578,7 @@ const onRowFormClose = () => {
588578 </el-select >
589579 </el-form-item >
590580
591- <el-form-item
592- v-if =" isDefaultOrg"
593- prop =" advanced_application"
594- :label =" t('embedded.advanced_application')"
595- >
581+ <el-form-item prop =" advanced_application" :label =" t('embedded.advanced_application')" >
596582 <el-select
597583 v-model =" pageForm.advanced_application"
598584 filterable
@@ -653,7 +639,7 @@ const onRowFormClose = () => {
653639 {{ pageForm.datasource_name }}
654640 </div >
655641 </el-form-item >
656- <el-form-item v-if = " isDefaultOrg " :label =" t('embedded.advanced_application')" >
642+ <el-form-item :label =" t('embedded.advanced_application')" >
657643 <div class =" content" >
658644 {{ pageForm.advanced_application_name }}
659645 </div >
0 commit comments