From a7199e5a4f3e34b14d395e319a552c5c3b8b3a4d Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期四, 24 十一月 2022 09:41:25 +0800 Subject: [PATCH] 数据上传,数据入库页面修改 --- src/views/datamanage/versionManage.vue | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/views/datamanage/versionManage.vue b/src/views/datamanage/versionManage.vue index dab9995..bc8d5c6 100644 --- a/src/views/datamanage/versionManage.vue +++ b/src/views/datamanage/versionManage.vue @@ -95,7 +95,10 @@ <template slot-scope="scope"> <el-button v-if="btnStatus.update" - @click="handleEdit(scope.$index, scope.row)" + @click=" + handleEdit(scope.$index, scope.row); + getSelectdirTab(); + " type="warning" size="small" >{{ $t('common.update') }}</el-button @@ -146,7 +149,7 @@ <el-cascader style="width: 300px" v-model="upform.dirid" - :options="catalogOption" + :options="editcatalogOption" @change="upCatalogChange" :props="cascader" ></el-cascader> @@ -380,10 +383,24 @@ this.$message.error('鐩綍鍒楄〃鑾峰彇澶辫触'); return; } + this.insertform.name = this.getYMD(); this.insertform.path = 1; this.insertform.dirid = 1; + this.upform.dirid == 1; this.catalogOption = this.treeData(res.result); + this.editcatalogOption = this.treeData(res.result); }, + getYMD() { + let myDate = new Date(); + let myYear = myDate.getFullYear(); //鑾峰彇瀹屾暣鐨勫勾浠�(4浣�,1970-????) + let myMonth = myDate.getMonth() + 1; //鑾峰彇褰撳墠鏈堜唤(0-11,0浠h〃1鏈�) + let myToday = myDate.getDate(); //鑾峰彇褰撳墠鏃�(1-31) + myMonth = myMonth > 9 ? myMonth : '0' + myMonth; + myToday = myToday > 9 ? myToday : '0' + myToday; + let nowDate = 'V' + myYear + myMonth + myToday; + return nowDate; + }, + //鏍戝垪琛ㄧ敓鎴� treeData(source) { let cloneData = JSON.parse(JSON.stringify(source)); // 瀵规簮鏁版嵁娣卞害鍏嬮殕 -- Gitblit v1.9.3