From 4c1479d740c22d74a50bfd9f2664a6f50d53f889 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 16 Aug 2024 17:52:27 +0800 Subject: [PATCH] 8yue14tiaoz --- .env.development | 2 +- .env.production | 2 +- .env.prostaging | 2 +- src/const/addProps.js | 4 +- src/const/templateProps.js | 4 +- src/main.js | 4 +- src/utils/createDialog.js | 48 +- src/views/assets/component/addHandle.vue | 4 +- src/views/assets/component/addHandles.vue | 4 +- src/views/assets/component/addHistory.vue | 4 +- src/views/assets/component/addHouse.vue | 4 +- src/views/assets/component/addLand.vue | 4 +- src/views/assets/component/addLease.vue | 4 +- src/views/assets/fileList.vue | 4 +- src/views/assets/files.vue | 4 +- src/views/assets/handle.vue | 4 +- src/views/assets/handleDetail.vue | 4 +- src/views/assets/handleSign.vue | 4 +- src/views/assets/handleSignDetail.vue | 4 +- src/views/assets/handleSignList.vue | 4 +- src/views/assets/house.vue | 4 +- src/views/assets/land.vue | 11 +- src/views/component/detail.vue | 4 +- src/views/component/detailCpn.vue | 6 +- src/views/component/dialog.vue | 4 +- src/views/component/dialogTemplate.vue | 4 +- src/views/component/table.vue | 4 +- src/views/dashboard/components/drawer.vue | 4 +- src/views/dashboard/index.vue | 4 +- src/views/dataShow/leftBottom.vue | 73 ++- src/views/lease/component/addLease.vue | 4 +- src/views/lease/component/addLet.vue | 4 +- src/views/lease/detailLease.vue | 4 +- src/views/lease/detailLet.vue | 6 +- src/views/lease/detailPlan.vue | 4 +- src/views/lease/index.vue | 2 +- src/views/lease/leaseLog.vue | 4 +- src/views/lease/leaseLogDetail.vue | 4 +- src/views/lease/let.vue | 4 +- src/views/lease/sign.vue | 459 +++++++----------- src/views/operate/component/addFile.vue | 4 +- src/views/operate/component/addMenu.vue | 4 +- src/views/operate/file.vue | 4 +- src/views/operate/menu.vue | 4 +- src/views/safety/component/addSafetyPlan.vue | 4 +- src/views/safety/safetyPlan.vue | 4 +- src/views/system/components/formEditor.vue | 2 +- .../system/components/formSlotRender.vue | 18 +- 48 files changed, 360 insertions(+), 415 deletions(-) diff --git a/.env.development b/.env.development index c2030b4..74c1085 100644 --- a/.env.development +++ b/.env.development @@ -4,5 +4,5 @@ ENV='development' # base api VUE_APP_BASE_API=http://wuxiwuye.ali251.langye.net/ VUE_APP_UPLOAD_API=http://wuxiwuye.ali251.langye.net/api/admin/upload-file -VUE_APP_PREVIEW=//view.langye.net:8012/onlinePreview +VUE_APP_PREVIEW=//view.langye.net/preview/onlinePreview diff --git a/.env.production b/.env.production index 2a2b744..84f92f3 100644 --- a/.env.production +++ b/.env.production @@ -4,4 +4,4 @@ ENV = 'production' # base api VUE_APP_BASE_API=http://192.168.1.31:9001/ VUE_APP_UPLOAD_API=http://192.168.1.31:9001/api/admin/upload-file -VUE_APP_PREVIEW=http://192.168.1.31:8012/onlinePreview +VUE_APP_PREVIEW=//view.langye.net/preview/onlinePreview diff --git a/.env.prostaging b/.env.prostaging index a66c205..7a58b6b 100644 --- a/.env.prostaging +++ b/.env.prostaging @@ -10,4 +10,4 @@ ENV = 'prostaging' # base api VUE_APP_BASE_API=http://192.168.221.31:9001/ VUE_APP_UPLOAD_API=http://192.168.221.31:9001/api/admin/upload-file -VUE_APP_PREVIEW=http://192.168.221.31:8012/onlinePreview +VUE_APP_PREVIEW=//view.langye.net/preview/onlinePreview diff --git a/src/const/addProps.js b/src/const/addProps.js index 7c58bf8..88e555e 100644 --- a/src/const/addProps.js +++ b/src/const/addProps.js @@ -50,7 +50,7 @@ export const addPropsMap = new Map([ headers: { Authorization: `Bearer ${getToken()}`, }, - autoUpload: false, + autoUpload: true, multiple: false, limit: 1 }], @@ -59,7 +59,7 @@ export const addPropsMap = new Map([ headers: { Authorization: `Bearer ${getToken()}`, }, - autoUpload: false, + autoUpload: true, multiple: true }], ["textarea", { diff --git a/src/const/templateProps.js b/src/const/templateProps.js index 8b931f1..32ff837 100644 --- a/src/const/templateProps.js +++ b/src/const/templateProps.js @@ -29,7 +29,7 @@ export const templatePropsMap = new Map([ fileList: [ {name: 'food.jpeg', url: ''} ], - autoUpload: false, + autoUpload: true, multiple: false, limit: 1 }], @@ -39,7 +39,7 @@ export const templatePropsMap = new Map([ {name: 'food.jpeg', url: ''}, {name: 'food2.jpeg', url: ''} ], - autoUpload: false, + autoUpload: true, multiple: true }], ["textarea", { diff --git a/src/main.js b/src/main.js index 668d6e8..6282e18 100644 --- a/src/main.js +++ b/src/main.js @@ -81,7 +81,9 @@ Vue.component('my-tinymce',tinymce) import myMap from "@/components/XyMap" Vue.component('my-map',myMap) import afTableColumn from 'af-table-column' -Vue.component('af-table-column',afTableColumn) +Vue.use(afTableColumn,{ + fontSize: 16 +}) Vue.prototype.$integrateData = (target,value) => { for(let i in target){ diff --git a/src/utils/createDialog.js b/src/utils/createDialog.js index 3a8e2be..7f314e2 100644 --- a/src/utils/createDialog.js +++ b/src/utils/createDialog.js @@ -51,7 +51,15 @@ export class CreateDialog { let that = this.self; let props = {}; if (info.edit_input === "file" || info.edit_input === "files") { - props.fileList = this.options.fromFile ? that[this.options.fromFile][info.field] : that.file[info.field]; + if (this.options.fromFile) { + if (typeof this.options.fromFile === 'string') { + props.fileList = that[this.options.fromFile][info.field]; + } else { + props.fileList = this.options.fromFile[info.field]; + } + } else { + props.fileList = that.file[info.field] + } props.beforeUpload = (file) => { if (file.size / 1000 > (50 * 1024)) { that.$message({ @@ -116,24 +124,24 @@ export class CreateDialog { }, "选取文件" ), - h( - "el-button", - { - style: { - "margin-left": "10px", - }, - props: { - size: "small", - type: "success", - }, - on: { - ["click"]: (e) => { - that.$refs[`elEdit_${info.field}`].submit(); - }, - }, - }, - "上传到服务器" - ), + // h( + // "el-button", + // { + // style: { + // "margin-left": "10px", + // }, + // props: { + // size: "small", + // type: "success", + // }, + // on: { + // ["click"]: (e) => { + // that.$refs[`elEdit_${info.field}`].submit(); + // }, + // }, + // }, + // "上传到服务器" + // ), h( "div", { @@ -204,7 +212,7 @@ export class CreateDialog { ...addPropsMap.get(i.edit_input), ...this.extraProps(i), placeholder: i.help, - value: this.options.fromData ? that[this.options.fromData][i.field] : (this.options.disabled ? that.originalForm[i.field] : that.form[i.field]), + value: this.options.fromData ? (typeof this.options.fromData === 'string' ? (that[this.options.fromData][i.field]) : this.options.fromData[i.field]) : (this.options.disabled ? that.originalForm[i.field] : that.form[i.field]), readonly: that.type === "show", //disabled: that.type === 'show', }, diff --git a/src/views/assets/component/addHandle.vue b/src/views/assets/component/addHandle.vue index 3e3f476..2d1a193 100644 --- a/src/views/assets/component/addHandle.vue +++ b/src/views/assets/component/addHandle.vue @@ -232,13 +232,13 @@ export default { diff --git a/src/views/assets/files.vue b/src/views/assets/files.vue index ad28b71..3687a51 100644 --- a/src/views/assets/files.vue +++ b/src/views/assets/files.vue @@ -394,13 +394,13 @@ export default { diff --git a/src/views/assets/handle.vue b/src/views/assets/handle.vue index 43c0625..7bf3124 100644 --- a/src/views/assets/handle.vue +++ b/src/views/assets/handle.vue @@ -665,13 +665,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/handleDetail.vue b/src/views/assets/handleDetail.vue index 266a647..76493fa 100644 --- a/src/views/assets/handleDetail.vue +++ b/src/views/assets/handleDetail.vue @@ -443,13 +443,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/handleSign.vue b/src/views/assets/handleSign.vue index 2458454..215eed3 100644 --- a/src/views/assets/handleSign.vue +++ b/src/views/assets/handleSign.vue @@ -951,13 +951,13 @@ export default { margin-bottom: 10px; } .uploaded-a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } .uploaded-a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/handleSignDetail.vue b/src/views/assets/handleSignDetail.vue index 96ebb3d..825f271 100644 --- a/src/views/assets/handleSignDetail.vue +++ b/src/views/assets/handleSignDetail.vue @@ -563,13 +563,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/handleSignList.vue b/src/views/assets/handleSignList.vue index 057f986..3e0ddc8 100644 --- a/src/views/assets/handleSignList.vue +++ b/src/views/assets/handleSignList.vue @@ -671,13 +671,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/house.vue b/src/views/assets/house.vue index c2729f9..be96705 100644 --- a/src/views/assets/house.vue +++ b/src/views/assets/house.vue @@ -870,13 +870,13 @@ export default { } a { - color: red; + color: $primaryColor; text-decoration: none; transition: all 0.2s; } a:hover { - color: red; + color: $primaryColor; text-decoration: underline; } diff --git a/src/views/assets/land.vue b/src/views/assets/land.vue index c767b9b..87f0058 100644 --- a/src/views/assets/land.vue +++ b/src/views/assets/land.vue @@ -244,6 +244,7 @@ :btn-width="360" :auths="auths_auth_mixin" :delay-req="true" + :row-style="rowStyle" :destroy-action="destroy" ref="xyTable" :border="true" @@ -660,8 +661,8 @@ export default { customFn: (row) => (
待办通知
+合同待办
临期收租
+收租待办
{{ item.text }}
-- {{ total(item.tag) }} - {{ item.unit }} -
+ +{{ item.text }}
++ 土地 + {{ total(item.tag)[0] }} + {{ item.unit }} + ,房产 + {{ total(item.tag)[1] }} + {{ item.unit }} +
+{{ item.text }}
++ {{ total(item.tag) }} + {{ item.unit }} +
+合同变更-原数据
{(() => { let title = new Map([ @@ -616,133 +485,6 @@ export default { ))}
+ { item.biangengshijian } 变更 +
+资产信息
++ 租金收取计划 +
++ 租金收取计划{index + 1} +
+