style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
const baseUrl='/document/statistics/definition'
|
||||
// 初始化
|
||||
export function init() {
|
||||
|
||||
@@ -40,10 +40,9 @@
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { components } from '@/template';
|
||||
import {onMounted, ref} from 'vue';
|
||||
import {ElMessage} from 'element-plus';
|
||||
|
||||
const emits = defineEmits(['submitOk']);
|
||||
const props = defineProps({
|
||||
formData: {
|
||||
|
||||
@@ -144,8 +144,9 @@
|
||||
</template>
|
||||
|
||||
<script setup name="Post">
|
||||
import { init, add, update, getPageList, deleteStatistics } from './api';
|
||||
import { optionselect as getDictOptionselect, getType } from '@/api/system/dict/type';
|
||||
import {add, deleteStatistics, getPageList, init, update} from './api';
|
||||
import {optionselect as getDictOptionselect} from '@/api/system/dict/type';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { sys_normal_disable } = proxy.useDict('sys_normal_disable');
|
||||
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
</template>
|
||||
<script setup>
|
||||
// 从Vue导入所需的API
|
||||
import { ref, reactive, onMounted, defineAsyncComponent, nextTick, watch } from 'vue';
|
||||
import { ElMessageBox, ElMessage, } from 'element-plus';
|
||||
import { getPageList, init, } from './api';
|
||||
import {onMounted, reactive, ref} from 'vue';
|
||||
import {init,} from './api';
|
||||
import EditStatistics from './components/editStatistics.vue';
|
||||
|
||||
const queryParams = ref({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
|
||||
Reference in New Issue
Block a user