小程序优化
parent
e9cadabf56
commit
8ee585f3f3
|
@ -43,8 +43,7 @@
|
|||
"project_schedule/info/index",
|
||||
"project_checked/list/index",
|
||||
"project_checked/add/index",
|
||||
"project_checked/info/index",
|
||||
"project_checked/handle/index"
|
||||
"project_checked/info/index"
|
||||
],
|
||||
"independent": false
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// pageage/project_checked/add/index.js
|
||||
import config from "../../../config";
|
||||
import fmt from "../../../utils/date.js";
|
||||
import fmt from "../../utils/date.js";
|
||||
import { getToken, getUserInfo } from "../../../utils/auth";
|
||||
import { uploadFiles } from "../../../utils/upload.js";
|
||||
import { tryToJson } from '../../../utils/tools'
|
||||
import { uploadFiles } from "../../utils/upload.js";
|
||||
import { tryToJson } from '../../utils/tools'
|
||||
import {
|
||||
getProjectChecked,
|
||||
findPlanDatas,
|
||||
|
|
|
@ -1,18 +1,12 @@
|
|||
// pageage/project_checked/info/index.js
|
||||
import config from "../../../config";
|
||||
import fmt from "../../../utils/date.js";
|
||||
import { getToken, getUserInfo } from "../../../utils/auth";
|
||||
import { uploadFiles } from "../../../utils/upload.js";
|
||||
import { tryToJson } from '../../../utils/tools'
|
||||
import {
|
||||
findDictCache,
|
||||
} from '../../../api/publics'
|
||||
import { uploadFiles } from "../../utils/upload.js";
|
||||
import { tryToJson } from '../../utils/tools'
|
||||
|
||||
import {
|
||||
getProjectChecked,
|
||||
findPlanDatas,
|
||||
listProProjectInfoSubdeptsUsers,
|
||||
updateProjectChecked,
|
||||
addProjectChecked,
|
||||
} from "../../../api/project";
|
||||
const app = getApp();
|
||||
Page({
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
projectCheckedList,
|
||||
projectCheckedListCount
|
||||
} from '../../../api/project'
|
||||
import { tryToJson } from '../../../utils/tools'
|
||||
import { tryToJson } from '../../utils/tools'
|
||||
const app = getApp()
|
||||
Page({
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"usingComponents": {
|
||||
"svg-icon": "/components/svg-icon/index"
|
||||
"svg-icon": "/pageage/components/svg-icon/index"
|
||||
},
|
||||
"navigationStyle": "custom"
|
||||
}
|
|
@ -3,8 +3,8 @@
|
|||
* 封装微信小程序文件上传功能
|
||||
*/
|
||||
|
||||
const config = require('../config.js');
|
||||
const { getToken } = require('../utils/auth.js');
|
||||
const config = require('../../config.js');
|
||||
const { getToken } = require('../../utils/auth.js');
|
||||
|
||||
/**
|
||||
* 文件上传工具类
|
|
@ -1,5 +1,5 @@
|
|||
// pages/components/voucher-select/index.js
|
||||
import fmt from '../../../utils/date.js'
|
||||
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
|
@ -87,8 +87,7 @@ Component({
|
|||
*/
|
||||
methods: {
|
||||
showPopup() {
|
||||
debugger
|
||||
let cDate = this.properties.currentDate ? this.properties.currentDate : this.properties.value ? +fmt(this.properties.value) : +(new Date())
|
||||
let cDate = this.properties.currentDate ? this.properties.currentDate : this.properties.value ? +Date.parse(this.properties.value) : +(new Date())
|
||||
this.setData({
|
||||
currDate: cDate,
|
||||
show: true
|
||||
|
|
|
@ -147,7 +147,7 @@
|
|||
|
||||
<!-- 添加或修改项目举牌验收对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="680px" append-to-body>
|
||||
<el-form ref="projectCheckedRef" :model="form" :rules="rules" label-width="88px">
|
||||
<el-form ref="projectCheckedRef" :model="form" :rules="rules" label-width="92px">
|
||||
<el-form-item label="项目名称" v-if="form.projectId">
|
||||
<el-tag effect="plain">{{ form.projectName }}</el-tag>
|
||||
</el-form-item>
|
||||
|
|
Loading…
Reference in New Issue