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