This commit is contained in:
gtz217 2022-08-04 15:36:08 +08:00
parent 4d2049fca7
commit ebb6886ebd
5 changed files with 47 additions and 3 deletions

28
package-lock.json generated
View File

@ -2419,6 +2419,11 @@
"integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=",
"dev": true "dev": true
}, },
"copy-text-to-clipboard": {
"version": "3.0.1",
"resolved": "https://registry.npmmirror.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.0.1.tgz",
"integrity": "sha512-rvVsHrpFcL4F2P8ihsoLdFHmd404+CMg71S756oRSeQgqk51U3kicGdnvfkrxva0xXH92SjGS62B0XIJsbh+9Q=="
},
"copy-webpack-plugin": { "copy-webpack-plugin": {
"version": "4.6.0", "version": "4.6.0",
"resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-4.6.0.tgz", "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-4.6.0.tgz",
@ -7245,6 +7250,11 @@
"integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=",
"dev": true "dev": true
}, },
"mutation-observer": {
"version": "1.0.3",
"resolved": "https://registry.npmmirror.com/mutation-observer/-/mutation-observer-1.0.3.tgz",
"integrity": "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA=="
},
"mute-stream": { "mute-stream": {
"version": "0.0.7", "version": "0.0.7",
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz",
@ -12459,6 +12469,24 @@
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
"dev": true "dev": true
}, },
"vconsole": {
"version": "3.14.6",
"resolved": "https://registry.npmmirror.com/vconsole/-/vconsole-3.14.6.tgz",
"integrity": "sha512-8Ffk2SfNe6EzKqZ0aNnNjpAVBVT7zgJo81lYEJdKySYLVYBeSawdSkWi9fSjDg3WsQhgS1vNPmRqJDTuwdVbnQ==",
"requires": {
"@babel/runtime": "^7.17.2",
"copy-text-to-clipboard": "^3.0.1",
"core-js": "^3.11.0",
"mutation-observer": "^1.0.3"
},
"dependencies": {
"core-js": {
"version": "3.24.1",
"resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.24.1.tgz",
"integrity": "sha512-0QTBSYSUZ6Gq21utGzkfITDylE8jWC9Ne1D2MrhvlsZBI1x39OdDIVbzSqtgMndIy6BlHxBXpMGqzZmnztg2rg=="
}
}
},
"vendors": { "vendors": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.3.tgz", "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.3.tgz",

View File

@ -19,6 +19,7 @@
"qs": "^6.8.0", "qs": "^6.8.0",
"sass-loader": "^7.3.1", "sass-loader": "^7.3.1",
"vant": "^2.12.48", "vant": "^2.12.48",
"vconsole": "^3.14.6",
"vue": "^2.5.2", "vue": "^2.5.2",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vuex": "^3.1.1" "vuex": "^3.1.1"

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-25 14:18:00 * @Date: 2022-07-25 14:18:00
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-07-29 16:55:08 * @LastEditTime: 2022-08-04 15:35:36
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\main.js * @FilePath: \hf-pda\src\main.js
*/ */
@ -12,6 +12,7 @@ import Vue from 'vue'
import App from './App' import App from './App'
import router from './router' import router from './router'
import fastClick from 'fastclick' import fastClick from 'fastclick'
// import Vconsole from 'vconsole'
import './assets/js/rem' import './assets/js/rem'
import './assets/css/reset.css' import './assets/css/reset.css'
import './assets/css/all.scss' import './assets/css/all.scss'
@ -23,6 +24,8 @@ import { Button, Field, Icon, Dialog, Grid, GridItem, NavBar, Popup, Row, Col, S
Vue.use(Button).use(Field).use(Icon).use(Dialog).use(Grid).use(GridItem).use(NavBar).use(Popup).use(Row).use(Col).use(Stepper).use(Picker).use(DatetimePicker).use(PullRefresh).use(Cell).use(CellGroup).use(Tag).use(Checkbox).use(CheckboxGroup).use(Tab).use(Tabs).use(Sticky).use(Calendar).use(Uploader).use(SwipeCell).use(Radio).use(RadioGroup) Vue.use(Button).use(Field).use(Icon).use(Dialog).use(Grid).use(GridItem).use(NavBar).use(Popup).use(Row).use(Col).use(Stepper).use(Picker).use(DatetimePicker).use(PullRefresh).use(Cell).use(CellGroup).use(Tag).use(Checkbox).use(CheckboxGroup).use(Tab).use(Tabs).use(Sticky).use(Calendar).use(Uploader).use(SwipeCell).use(Radio).use(RadioGroup)
// const vConsole = new Vconsole()
Vue.config.productionTip = false Vue.config.productionTip = false
fastClick.attach(document.body) fastClick.attach(document.body)

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-04 14:27:45 * @LastEditTime: 2022-08-04 15:34:56
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-detail.vue * @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-detail.vue
--> -->
@ -66,8 +66,10 @@
<van-uploader <van-uploader
v-model="fileList" v-model="fileList"
:max-count="1" :max-count="1"
:max-size="10485760"
accept=".doc,.docx,.xls,.xlsx,.pdf,image/*" accept=".doc,.docx,.xls,.xlsx,.pdf,image/*"
:after-read="upload" :after-read="upload"
@oversize="oversize"
/> />
</van-col> </van-col>
<van-col :span="22" :offset="1"> <van-col :span="22" :offset="1">
@ -144,6 +146,10 @@ export default {
this.dataForm.annexUrl = result.data[0].id this.dataForm.annexUrl = result.data[0].id
} }
}, },
//
oversize () {
this.$toast.fail('文件不能超过10M')
},
// //
async handleSubmit () { async handleSubmit () {
const result = await updateIns(this.dataForm) const result = await updateIns(this.dataForm)

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2022-07-28 10:22:30 * @Date: 2022-07-28 10:22:30
* @LastEditors: gtz * @LastEditors: gtz
* @LastEditTime: 2022-08-04 15:19:28 * @LastEditTime: 2022-08-04 15:34:51
* @Description: file content * @Description: file content
* @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-edit.vue * @FilePath: \hf-pda\src\pages\eqInspection\eqInspection-edit.vue
--> -->
@ -122,8 +122,10 @@
<van-uploader <van-uploader
v-model="fileList" v-model="fileList"
:max-count="1" :max-count="1"
:max-size="10485760"
accept=".doc,.docx,.xls,.xlsx,.pdf,image/*" accept=".doc,.docx,.xls,.xlsx,.pdf,image/*"
:after-read="upload" :after-read="upload"
@oversize="oversize"
/> />
</van-col> </van-col>
<van-col :span="22" :offset="1"> <van-col :span="22" :offset="1">
@ -256,6 +258,10 @@ export default {
this.dataForm.annexUrl = result.data[0].id this.dataForm.annexUrl = result.data[0].id
} }
}, },
//
oversize () {
this.$toast.fail('文件不能超过10M')
},
// //
async updateStatus (item) { async updateStatus (item) {
const result = await updateInsStatus({ const result = await updateInsStatus({