d5f5f0ea by renchao@pashanhoo.com

style:信息备案材料

1 parent 443bf236
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-14 10:12:23
* @LastEditTime: 2023-09-14 11:14:54
-->
<template>
<div class="clmlmx-box">
......@@ -34,27 +34,6 @@
sortable: null,
column: [
{
prop: "isrequired",
label: "是否必选",
width: "80",
render: (h, scope) => {
if (scope.row.isrequired === "1") {
return (
<div>
<span>必选</span>
</div>
);
}
else {
return (
<div>
<span>可选</span>
</div>
)
}
}
},
{
label: "材料名称",
render: (h, scope) => {
return (
......@@ -101,21 +80,6 @@
},
},
{
label: "是否新建材料",
width: "80",
render: (h, scope) => {
if (scope.row.sfxjcl && scope.row.sfxjcl == '1') {
return (
<span></span>
);
} else {
return (
<span></span>
);
}
},
},
{
label: "操作",
width: "100",
render: (h, scope) => {
......@@ -123,7 +87,7 @@
<el-button
type="text"
icon="el-icon-delete"
disabled={!(scope.row.count == 0 && scope.row.sfxjcl == '1') || !this.formData.ableOperation}
disabled={scope.row.count != 0}
onClick={() => {
this.handleDelete(scope.$index, scope.row);
}}
......@@ -170,8 +134,8 @@
message: '保存成功',
type: 'success'
})
ywPopupCacel()
store.dispatch('user/reWorkFresh', true)
ywPopupCacel()
}
}).catch(() => {
this.loading = false
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-13 17:05:49
* @LastEditTime: 2023-09-14 14:23:19
-->
<template>
<div class="clxx">
......@@ -58,10 +58,10 @@
</template>
<script>
import store from '@/store/index.js'
import { ywPopupDialog, ywPopupCacel } from "@/utils/popup.js";
import { ywPopupDialog } from "@/utils/popup.js";
import imagePreview from "./dialog/imagePreview.vue";
import clxxAddDialog from "./dialog/clxxAddDialog.vue";
import clxxDetailDialog from "./dialog/clxxDetailDialog.vue";
import imagePreview from "./dialog/imagePreview.vue";
import { getCompanyMaterialList, addCompanyMaterial, getFileListByBsmMaterial } from "@/api/company.js";
export default {
components: { clxxAddDialog, imagePreview, clxxDetailDialog },
......@@ -90,6 +90,20 @@
}
}
},
computed: {
workFresh () {
return store.state.user.workFresh
}
},
watch: {
workFresh: {
handler (newValue, oldValue) {
this.clmlInitList()
},
deep: true,
immediate: true
}
},
created () {
this.clmlInitList()
},
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-11 11:23:49
* @LastEditTime: 2023-09-14 11:11:10
-->
<template>
<div class="from-clues">
......@@ -39,7 +39,6 @@
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import table from "@/utils/mixin/table"
import { datas, sendThis } from "./data"
import { queryQyByPage, addQy, remove } from "@/api/xxba.js";
......@@ -53,17 +52,6 @@
activated () {
this.queryClick()
},
computed: {
...mapGetters(['workFresh'])
},
watch: {
workFresh: {
handler (newVal, oldVal) {
console.log(newVal, 'newVal');
if (newVal) this.queryClick()
}
}
},
data () {
return {
queryForm: {
......