清理组件残余
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
<ai-textarea v-model="form.content" placeholder="请输入,最多500字" :maxlength="500"/>
|
<ai-textarea v-model="form.content" placeholder="请输入,最多500字" :maxlength="500"/>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="图片(最多9张)">
|
<u-form-item label="图片(最多9张)">
|
||||||
<ai-uploader multiple :limit="9" :def.sync="form.fileList" action="/admin/file/add2"/>
|
<AiUploader multiple :limit="9" :def.sync="form.fileList" action="/admin/file/add2"/>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</u-form>
|
</u-form>
|
||||||
<div bottom>
|
<div bottom>
|
||||||
|
|||||||
@@ -68,17 +68,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiAdd from "../../components/AiAdd";
|
|
||||||
import AiEmpty from "../../components/AiEmpty";
|
|
||||||
import AiTopFixed from "../../components/AiTopFixed";
|
|
||||||
import {add, detail, read} from "./components";
|
import {add, detail, read} from "./components";
|
||||||
import AiOpenData from "../../components/AiOpenData";
|
|
||||||
import {mapActions} from "vuex";
|
import {mapActions} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AppNotification",
|
name: "AppNotification",
|
||||||
appName: "通知公告",
|
appName: "通知公告",
|
||||||
components: {AiOpenData,AiAdd, AiEmpty, AiTopFixed, add, detail, read},
|
components: {add, detail, read},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
index: 0,
|
index: 0,
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<AiUploader :multiple="true" type="image" :limit="9" placeholder="上传图片" @list="fileList" :def="form.files" action="/admin/file/add2"></AiUploader>
|
<AiUploader :multiple="true" type="image" :limit="9" placeholder="上传图片" @list="fileList" :def="form.files"
|
||||||
|
action="/admin/file/add2"></AiUploader>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card item-wrap">
|
<div class="card item-wrap">
|
||||||
@@ -66,13 +67,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiBack from "../../../components/AiBack";
|
|
||||||
import AiUploader from "../../../components/AiUploader";
|
|
||||||
import {mapActions} from "vuex";
|
import {mapActions} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "add",
|
name: "add",
|
||||||
components: {AiBack,AiUploader},
|
|
||||||
props: {
|
props: {
|
||||||
params: Object
|
params: Object
|
||||||
},
|
},
|
||||||
@@ -104,7 +102,7 @@
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
params: {
|
params: {
|
||||||
handler:function (v) {
|
handler: function () {
|
||||||
if (this.params?.id) {
|
if (this.params?.id) {
|
||||||
this.form.id = this.params?.id;
|
this.form.id = this.params?.id;
|
||||||
this.flag = this.params?.flag;
|
this.flag = this.params?.flag;
|
||||||
@@ -132,7 +130,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
confirm(e) {
|
confirm(e) {
|
||||||
if(e.timestamp< (Date.now()/1000)|0){
|
if (e.timestamp < (Date.now() / 1000) || 0) {
|
||||||
return this.$u.toast("发送时间不能小于当前时间");
|
return this.$u.toast("发送时间不能小于当前时间");
|
||||||
}
|
}
|
||||||
this.form.releaseTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
|
this.form.releaseTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
|
||||||
@@ -306,6 +304,7 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
background-color: #E7F1FE;
|
background-color: #E7F1FE;
|
||||||
color: #1174FE;
|
color: #1174FE;
|
||||||
|
|||||||
@@ -60,14 +60,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiBack from "../../../components/AiBack";
|
|
||||||
import {mapActions} from "vuex";
|
import {mapActions} from "vuex";
|
||||||
import AiEmpty from "../../../components/AiEmpty";
|
|
||||||
import AiOpenData from "../../../components/AiOpenData";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "detail",
|
name: "detail",
|
||||||
components:{AiOpenData,AiBack,AiEmpty},
|
|
||||||
props: {
|
props: {
|
||||||
params: Object
|
params: Object
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,13 +14,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiBack from "../../../components/AiBack";
|
|
||||||
import AiTopFixed from "../../../components/AiTopFixed";
|
|
||||||
import AiOpenData from "../../../components/AiOpenData";
|
|
||||||
import {mapActions} from "vuex";
|
import {mapActions} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "read",
|
name: "read",
|
||||||
components: {AiBack, AiTopFixed, AiOpenData},
|
|
||||||
props: {
|
props: {
|
||||||
params: [String, Number]
|
params: [String, Number]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user