From 1e4e67cf052f4c3cdfa2e756b342c1a38f4805b5 Mon Sep 17 00:00:00 2001 From: luobisheng <727299681@qq.com> Date: 星期四, 01 十二月 2022 09:42:10 +0800 Subject: [PATCH] 图片上传更新 --- src/views/operate/video/index.vue | 50 ++++++++++++++++++++------------------------------ 1 files changed, 20 insertions(+), 30 deletions(-) diff --git a/src/views/operate/video/index.vue b/src/views/operate/video/index.vue index c19bd91..1600ace 100644 --- a/src/views/operate/video/index.vue +++ b/src/views/operate/video/index.vue @@ -3,14 +3,7 @@ <header> <div class="headerContent"> <div class="search"> - <span>绛涢�夋潯浠�:</span> - <div class="option"> - <el-input - v-model="searchContent" - placeholder="璇疯緭鍏ュ唴瀹�" - ></el-input> - </div> - <span>涓婁紶鏃堕棿:</span> + <span>涓婁紶鏃堕棿锛�</span> <div class="option"> <el-date-picker v-model="datePicked" @@ -25,7 +18,7 @@ <el-button type="primary" @click="searchVideoList">鏌ヨ</el-button> </div> <div class="findBtn"> - <el-button type="primary" @click="handleOpera(null, 'create')">娣诲姞瑙嗛</el-button> + <el-button class="button-addition" type="primary" @click="handleOpera(null, 'create')">娣诲姞</el-button> </div> </div> </div> @@ -58,16 +51,16 @@ @selection-change="tableChange" > <el-table-column type="selection" min-width="5"> </el-table-column> - <el-table-column prop="baseId" label="鎵�灞炰簨浠剁紪鍙�" min-width="18"> + <el-table-column prop="code" label="鎵�灞炰簨浠剁紪鍙�" min-width="18"> </el-table-column> <el-table-column prop="category" label="闂绫诲埆" min-width="8"> <template slot-scope="scope"> - <span>{{ getCategory(scope.row.category).label }}</span> + <span>{{ getCategory(scope.row.category)?.label }}</span> </template> </el-table-column> <el-table-column prop="eventSource" label="浜嬩欢鏉ユ簮" min-width="8"> <template slot-scope="scope"> - <span>{{ getEventSource(scope.row.eventSource).label }}</span> + <span>{{ getEventSource(scope.row.eventSource)?.label }}</span> </template> </el-table-column> <el-table-column prop="regionName" label="绀惧尯鍚嶇О" min-width="8"> @@ -85,10 +78,10 @@ <template slot-scope="scope"> <div class="operation"> <span @click="handleOpera(scope.row, 'view')">鏌ョ湅</span> - <span class="line">|</span> - <span @click="handleOpera(scope.row, 'update')">淇敼</span> - <span class="line">|</span> - <span @click="handleDelete(scope.row)">鍒犻櫎</span> + <span v-if="mystatus === 2" class="line">|</span> + <span v-if="mystatus === 2" @click="handleOpera(scope.row, 'update')">淇敼</span> + <span v-if="mystatus === 2" class="line">|</span> + <span v-if="mystatus === 2" @click="handleDelete(scope.row)">鍒犻櫎</span> </div> </template> </el-table-column> @@ -96,9 +89,11 @@ <!-- 鏌ョ湅淇敼椤甸潰 --> <el-dialog :visible.sync="isShowDialog" + :destroy-on-close="true" + :key="dialogTitle" width="40%" :title="dialogTitle"> - <updateInterface :isUpdate="isUpdate" :dialogData="dialogData" /> + <updateInterface v-if="isShowDialog" :isUpdate="isUpdate" :dialogData="dialogData" @closeDialog="closeDialog" /> </el-dialog> <div class="tools"> @@ -193,12 +188,12 @@ typeList: [ { name: "鎽勫儚澶存帹閫�", - value: 1, + value: "01", checked: true, }, { name: "鍗曞叺鎺ㄩ��", - value: 2, + value: "03", checked: false, }, ], @@ -220,13 +215,8 @@ } }, created() { - this.statusArr[0] = 6; + this.searchContent = this.typeList.find((item) => item.checked).value; this.searchVideoList(); - this.typeList.forEach((item) => { - if (item.checked) { - this.statusArr[1] = item.value; - } - }); }, methods: { // 椤堕儴涓嬫媺妗� @@ -310,6 +300,8 @@ }); this.mystatus = idx + 1; this.statusArr[1] = this.typeList[idx].value; + this.searchContent = this.typeList[idx].value; + this.searchVideoList(); }, // 璁剧疆琛ㄦ牸鏂戦┈绾� tableRowClassName({ row, rowIndex }) { @@ -340,10 +332,7 @@ // 鍏抽棴涓婁紶鐣岄潰 closeDialog() { this.isShowDialog = false; - }, - // 澶勭悊鏃堕棿 - filterTime(time) { - return helper(time); + this.searchVideoList(); }, getCategory(value) { @@ -436,8 +425,9 @@ margin-bottom: 10px; .type-item { - width: 80px; + min-width: 80px; text-align: center; + padding-right: 10px; &:hover { cursor: pointer; -- Gitblit v1.8.0