营业执照 许可证 可删除 解决单位信息 社保信息的bug
| | |
| | | <div class="businessLicense"> |
| | | <el-container> |
| | | <el-main> |
| | | <avue-form :option="option" v-model="form" :upload-after="uploadAfter"> |
| | | <avue-form |
| | | :option="option" |
| | | v-model="form" |
| | | :upload-after="uploadAfter" |
| | | :upload-delete="uploadDelete" |
| | | > |
| | | </avue-form |
| | | ></el-main> |
| | | </el-container> |
| | |
| | | this.form.imgUrl = this.row.businessLicense; |
| | | } |
| | | }, |
| | | uploadDelete(column, file) { |
| | | this.row.businessLicense = ""; |
| | | return update(this.row) |
| | | .then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "删除成功!", |
| | | }); |
| | | // done(); |
| | | }) |
| | | .catch((error) => { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "删除照片失败,再重试!", |
| | | }); |
| | | // done(); |
| | | }); |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | | // this.row.businessLicense = ""; |
| | | this.row.businessLicense = res.url; |
| | |
| | | () => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "添加成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | |
| | | <div class="License"> |
| | | <el-container> |
| | | <el-main> |
| | | <avue-form :option="option" v-model="form" :upload-after="uploadAfter"> |
| | | <avue-form |
| | | :option="option" |
| | | v-model="form" |
| | | :upload-after="uploadAfter" |
| | | :upload-delete="uploadDelete" |
| | | > |
| | | </avue-form |
| | | ></el-main> |
| | | </el-container> |
| | |
| | | this.form.imgUrl = this.row.licence; |
| | | } |
| | | }, |
| | | uploadDelete(column, file) { |
| | | this.row.licence = ""; |
| | | return update(this.row) |
| | | .then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "删除成功!", |
| | | }); |
| | | // done(); |
| | | }) |
| | | .catch((error) => { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "删除照片失败,再重试!", |
| | | }); |
| | | // done(); |
| | | }); |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | | this.row.licence = res.url; |
| | | update(this.row).then( |
| | | () => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "添加成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | |
| | | props: ["deptid"], |
| | | data() { |
| | | var deptid = this.deptid; |
| | | |
| | | if (this.deptid == undefined) { |
| | | // deptid = this.userInfo |
| | | // console.log(this.$store.getters.userInfo.dept_id); |
| | | deptid = this.$store.getters.userInfo.dept_id; |
| | | } |
| | | return { |
| | | do: 0, |
| | | form: { cardid: "" }, |
| | | |
| | | query: {}, |
| | |
| | | }, |
| | | methods: { |
| | | changes(val) { |
| | | this.do++; |
| | | if (this.do >= 2) { |
| | | if (val.value != "") { |
| | | getuseList(val.value).then((res) => { |
| | | // console.log(res); |
| | | var d = res.data.data; |