调整按钮位置

This commit is contained in:
zxy 2026-01-16 15:35:45 +08:00
parent d01d2d0bae
commit db2774fb12
2 changed files with 13 additions and 4 deletions

View File

@ -70,6 +70,7 @@
<!-- <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> --> <!-- <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> -->
<el-button @click="saveForm" type="warning">保存</el-button> <el-button @click="saveForm" type="warning">保存</el-button>
<el-button @click="addForm" type="success">新增</el-button> <el-button @click="addForm" type="success">新增</el-button>
<el-button type="primary" @click="openUp">查看工作</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</ContentWrap> </ContentWrap>
@ -373,6 +374,7 @@
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
<insert ref="insert" />
</template> </template>
@ -382,6 +384,7 @@ import * as PlansubdetailApi from '@/api/heli/plansubdetail'
import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict'
import { ref, reactive, onMounted } from 'vue' // onMounted import { ref, reactive, onMounted } from 'vue' // onMounted
import * as UserApi from '@/api/system/user' import * as UserApi from '@/api/system/user'
import Insert from "@/views/heli/plan/insert.vue";
import routeParamsCache from '@/utils/routeParamsCache'; import routeParamsCache from '@/utils/routeParamsCache';
import * as PlanSubApi from '@/api/heli/plansub' import * as PlanSubApi from '@/api/heli/plansub'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
@ -390,6 +393,7 @@ const message = useMessage() // 消息弹窗
const { t } = useI18n() // const { t } = useI18n() //
const reload = inject('reload') const reload = inject('reload')
const userInit = ref() const userInit = ref()
const insert= ref()
const loading = ref(false) const loading = ref(false)
const loading2 = ref(false) const loading2 = ref(false)
const loading3 = ref(false) const loading3 = ref(false)
@ -413,6 +417,11 @@ const changeBeginDate = () => {
queryParams.startTime = undefined queryParams.startTime = undefined
} }
} }
const openUp=()=>{
insert.value?.open()
}
// //
const getDictLabel = (dictType, value) => { const getDictLabel = (dictType, value) => {
const options = getStrDictOptions(dictType) const options = getStrDictOptions(dictType)

View File

@ -47,10 +47,10 @@
<Icon icon="ep:plus" class="mr-5px" /> 新增 <Icon icon="ep:plus" class="mr-5px" /> 新增
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item style="margin-left:15px"> <!-- <el-form-item style="margin-left:15px">-->
<el-button style="margin-left: 3%" type="primary" size="large" @click="openUp" <!-- <el-button style="margin-left: 3%" type="primary" size="large" @click="openUp"-->
>查看工作</el-button <!-- >查看工作</el-button-->
> </el-form-item> <!-- > </el-form-item>-->
</el-form> </el-form>
</ContentWrap> </ContentWrap>