|
@@ -1,16 +1,5 @@
|
|
-import { nextTick } from 'vue'
|
|
|
|
import { getArrValue } from 'js-fast-way'
|
|
import { getArrValue } from 'js-fast-way'
|
|
-//import { getBizDictionary, getDictionary } from '~api/other'
|
|
|
|
-
|
|
|
|
-//设置分割滑块
|
|
|
|
-export const setSplit = (ids, data) => {
|
|
|
|
- //配置参考: https://split.js.org/#/?direction=vertical&snapOffset=0
|
|
|
|
- nextTick(() => {
|
|
|
|
- setTimeout(() => {
|
|
|
|
- window.$split(ids, data)
|
|
|
|
- }, 300)
|
|
|
|
- }).then()
|
|
|
|
-}
|
|
|
|
|
|
+import { getBizDictionary, getDictionary } from '~api/other'
|
|
|
|
|
|
//刷新页面
|
|
//刷新页面
|
|
export const reloadPage = () => {
|
|
export const reloadPage = () => {
|
|
@@ -32,7 +21,7 @@ export const isNumberReg = (text, lose = true) => {
|
|
|
|
|
|
//获取字典数据
|
|
//获取字典数据
|
|
export const getDictionaryData = async (code, biz = false) => {
|
|
export const getDictionaryData = async (code, biz = false) => {
|
|
- /*let res = []
|
|
|
|
|
|
+ let res = []
|
|
if (biz) {
|
|
if (biz) {
|
|
const { data } = await getBizDictionary({ code: code })
|
|
const { data } = await getBizDictionary({ code: code })
|
|
res = getArrValue(data)
|
|
res = getArrValue(data)
|
|
@@ -48,7 +37,7 @@ export const getDictionaryData = async (code, biz = false) => {
|
|
value: Number(res[i]['dictKey']),
|
|
value: Number(res[i]['dictKey']),
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- return newArr*/
|
|
|
|
|
|
+ return newArr
|
|
}
|
|
}
|
|
|
|
|
|
//判断是否为网址
|
|
//判断是否为网址
|