|
@@ -9,16 +9,19 @@
|
|
|
</template>
|
|
|
</el-input>
|
|
|
<draggable class="contentList" v-model="data.tableData" item-key="id" chosenClass="chosenClass" data-id="content"
|
|
|
- :group="{ name: 'componentGroup', pull: 'clone', put: false }" :sort="false" @end="onEnd" forceFallback
|
|
|
- v-loading="loading">
|
|
|
+ :group="{ name: 'componentGroup', pull: 'clone', put: false }" :sort="false" filter=".auditStatus" @end="onEnd"
|
|
|
+ forceFallback v-loading="loading">
|
|
|
<template #item="{ element, index }">
|
|
|
- <div class="item" @click="getDialog(element.takeId)">
|
|
|
- <el-icon class="close" size="18" @click.stop="getDelete(element)"
|
|
|
+ <div :class="['item', element.auditStatus === 0 ? 'auditStatus' : '']" @click="getDialog(element)">
|
|
|
+ <el-icon v-if="element.auditStatus === 2" class="close" size="18" @click.stop="getDelete(element)"
|
|
|
v-hasPermi="['scene:presets:deleteScene']">
|
|
|
<CircleClose />
|
|
|
</el-icon>
|
|
|
<img src="@/assets/icons/svg/file.svg" width="50" height="50" />
|
|
|
- <span style="margin-top: 10px">{{ element.takeName }}</span>
|
|
|
+ <span style="margin-top: 10px">
|
|
|
+ {{ element.takeName }}
|
|
|
+ </span>
|
|
|
+ <span v-if="element.auditStatus === 0">(待审核)</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</draggable>
|
|
@@ -104,6 +107,11 @@ function getSearch() {
|
|
|
getList()
|
|
|
}
|
|
|
|
|
|
+// 拖拽前
|
|
|
+const onMove = () => {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
// 拖拽结束
|
|
|
function onEnd(params) {
|
|
|
if (checkPermi(['scene:presets:add'])) {
|
|
@@ -122,12 +130,14 @@ const dialogVisible = ref(false)
|
|
|
// 弹窗标题
|
|
|
const title = ref('')
|
|
|
// 打开弹窗
|
|
|
-function getDialog(id) {
|
|
|
- if (checkPermi(['scene:presets:editScene'])) {
|
|
|
- dialogVisible.value = true
|
|
|
- title.value = '新增'
|
|
|
- if (id) {
|
|
|
- getDetail(id)
|
|
|
+function getDialog(row) {
|
|
|
+ if (row.auditStatus === 2) {
|
|
|
+ if (checkPermi(['scene:presets:editScene'])) {
|
|
|
+ dialogVisible.value = true
|
|
|
+ title.value = '新增'
|
|
|
+ if (row.takeId) {
|
|
|
+ getDetail(row.takeId)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|