From 7ca1a8ec18fccca9102cd1179e05fdc877bdc511 Mon Sep 17 00:00:00 2001
From: 唐耀东 <18861537@qq.com>
Date: 星期三, 18 五月 2022 16:47:40 +0800
Subject: [PATCH] 提交代码
---
src/views/construction/constructionBatch/index.vue | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/src/views/construction/constructionBatch/index.vue b/src/views/construction/constructionBatch/index.vue
index 639584a..30921b3 100644
--- a/src/views/construction/constructionBatch/index.vue
+++ b/src/views/construction/constructionBatch/index.vue
@@ -24,7 +24,6 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
- v-hasPermi="['oa:constructionBatch:add']"
>鏂板</el-button>
</el-col>
<el-col :span="1.5">
@@ -35,7 +34,6 @@
size="mini"
:disabled="single"
@click="handleUpdate"
- v-hasPermi="['oa:constructionBatch:edit']"
>淇敼</el-button>
</el-col>
<el-col :span="1.5">
@@ -46,7 +44,6 @@
size="mini"
:disabled="multiple"
@click="handleDelete"
- v-hasPermi="['oa:constructionBatch:remove']"
>鍒犻櫎</el-button>
</el-col>
</el-row>
@@ -74,7 +71,6 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
- v-hasPermi="['oa:constructionBatch:edit']"
>淇敼</el-button>
<el-button
size="mini"
@@ -82,7 +78,6 @@
class="del-btn"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
- v-hasPermi="['oa:constructionBatch:remove']"
>鍒犻櫎</el-button>
</template>
</el-table-column>
@@ -106,6 +101,7 @@
<el-date-picker
v-model="form.date"
type="daterange"
+ value-format="yyyy-MM-dd"
range-separator="鑷�"
start-placeholder="寮�濮嬫棩鏈�"
end-placeholder="鎴嚦鏃ユ湡">
@@ -275,8 +271,9 @@
const id = row.id || this.ids
getConstructionBatch(id).then(response => {
this.loading = false;
- this.form = response.data;
- this.form.date = [this.form.startDate, this.form.endDate]
+ // this.form = response.data;
+ const localDate = [response.data.startDate, response.data.endDate];
+ this.form = Object.assign({}, response.data, {date: localDate})
this.open = true;
this.title = "淇敼鏂藉伐鎵规";
});
@@ -284,7 +281,6 @@
/** 鎻愪氦鎸夐挳 */
submitForm() {
this.$refs["form"].validate(valid => {
- console.log(this.form.date)
this.form.startDate = this.form.date[0];
this.form.endDate = this.form.date[1];
if (valid) {
--
Gitblit v1.9.1