dev
This commit is contained in:
parent
3dbdeab4f9
commit
68bc235cf4
|
|
@ -1154,7 +1154,7 @@ let save = async (isClose: Boolean) => {
|
|||
data.tags = data.tags ? data.tags.join(",") : null;
|
||||
data.idCode = idCodeList.value.join(",");
|
||||
data.type = _type.value;
|
||||
post(API.Goods.Base.Save, {data}).then((res: any) => {
|
||||
post(API.Goods.Base.Save, {data:data}).then((res: any) => {
|
||||
ElMessage.success('保存成功')
|
||||
if (isClose) {
|
||||
//关闭该页面
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ import {post} from "@/utils/request.ts";
|
|||
import {onMounted, ref, defineProps} from "vue";
|
||||
import {Minus, Plus, Setting} from "@element-plus/icons-vue";
|
||||
import {API} from "@/assets/config/API.ts";
|
||||
import {getToday} from "@/utils/dateUtils.ts";
|
||||
import {getPrevious30Days, getToday} from "@/utils/dateUtils.ts";
|
||||
|
||||
const props = defineProps({
|
||||
id: {
|
||||
|
|
@ -118,7 +118,7 @@ const changeDate = (date: any) => {
|
|||
}
|
||||
|
||||
onMounted(() => {
|
||||
dateList.value = [getToday().start, get];
|
||||
dateList.value = [getPrevious30Days(),getToday().start];
|
||||
init()
|
||||
})
|
||||
const init = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue