From 034d8675792fee6af5af592df0b69acd3ad8a215 Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期二, 07 三月 2023 10:50:21 +0800 Subject: [PATCH] 调整群组交流样式 --- src/views/cause/Entry.vue | 31 +++++++++++++++++++++---------- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/views/cause/Entry.vue b/src/views/cause/Entry.vue index 32074a5..bc2238f 100644 --- a/src/views/cause/Entry.vue +++ b/src/views/cause/Entry.vue @@ -16,7 +16,7 @@ <el-button type="primary" @click="search">鏌ヨ</el-button> </el-form-item> <el-form-item> - <el-button type="primary" @click="addAduitDialogVisible = true">娣诲姞</el-button> + <el-button type="primary" @click="addAduitAnJian">娣诲姞</el-button> </el-form-item> <el-form-item> @@ -266,9 +266,9 @@ }}</span> </template> </el-table-column> - <el-table-column width="200" prop="ctime" label="鎶ユ鏃堕棿"> + <el-table-column width="200" prop="reportTime" label="鎶ユ鏃堕棿"> <template slot-scope="scope"> - <span>{{ scope.row.ctime === null ? "2022-07-12 10:32:56" : scope.row.ctime }}</span> + <span>{{ scope.row.reportTime === null ? "2022-07-12 10:32:56" : scope.row.reportTime }}</span> </template> </el-table-column> <el-table-column label="鎿嶄綔"> @@ -392,14 +392,14 @@ </el-input> </el-form-item> </el-col> - - <el-col :span="12"> + + <!-- <el-col :span="12"> <el-form-item prop="reportTime" label="鎶ユ鏃堕棿"> <el-date-picker v-model="updateReportForm.reportTime" type="datetime" placeholder="閫夋嫨鏃ユ湡鏃堕棿" clearable :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss"> </el-date-picker> </el-form-item> - </el-col> + </el-col> --> <el-col :span="12"> <el-form-item label="琚獥鏃堕棿" prop="cheatTime"> <el-date-picker v-model="updateReportForm.cheatTime" type="datetime" placeholder="閫夋嫨鏃ユ湡鏃堕棿" clearable @@ -1091,6 +1091,18 @@ }, methods: { + addAduitAnJian(){ + let date=(new Date()).valueOf();//鑾峰彇鏃堕棿鎴� + let txt = '1234567890';//鐢熸垚鐨勯殢鏈烘満鍣ㄧ爜 + let len =13;//鏈哄櫒鐮佹湁澶氬皯浣� + let pwd = '';//瀹氫箟绌哄彉閲忕敤鏉ユ帴鏀舵満鍣ㄧ爜 + for (let i = 0; i < len; i++) { + pwd += txt.charAt(Math.floor(Math.random() * txt.length));//寰幆鏈哄櫒鐮佷綅鏁伴殢鏈哄~鍏� + } + let id= date+pwd; + this.causeForm.number=id; + this.addAduitDialogVisible=true; + }, //鍏抽棴妗堜欢鐨勬浠朵汉鍛樻坊鍔� addReportVisibleClose() { @@ -1230,7 +1242,7 @@ this.updateReportPrams.groupId = this.updateReportForm.groupId this.updateReportPrams.id = this.updateReportForm.id this.updateReportPrams.reportMaterials = this.updateReportPrams.fileList.map(i => i.data).join(',') - debugger + this.updateReportPrams.pic=this.updateReportForm.pic let form = null; form = this.updateReportPrams; @@ -1249,7 +1261,6 @@ //缂栬緫妗堜欢浜哄憳 updataReport(val) { - debugger this.updateReportVisible = true; this.updateReportForm = Object.assign({}, val); this.causeId = val.causeId; @@ -1383,7 +1394,7 @@ } else { this.$message({ type: "error", - message: "琛ㄥ崟涓嶈兘涓虹┖" + message: res.data.msg }) } } @@ -1608,4 +1619,4 @@ ::v-deep(.el-table thead) { color: #000000; } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0