xiaoning 1 year ago
parent b2af45b71d
commit a3310b6735

@ -18,4 +18,10 @@ export function sh(data) {
method: "post", method: "post",
data, data,
}); });
}export function tj(data) {
return request({
url: "/dmTzjh/tj",
method: "post",
data,
});
} }

@ -88,7 +88,7 @@
</template> </template>
<script> <script>
import { getList, sh } from "@/api/jhzx/tzCX"; import { getList, tj } from "@/api/jhzx/tzCX";
import { getCzxx } from "@/api/jhzx/qfxq"; import { getCzxx } from "@/api/jhzx/qfxq";
export default { export default {
name: "TzjhGL", name: "TzjhGL",
@ -325,10 +325,14 @@ export default {
statusOptions: [ statusOptions: [
{ {
value: "0", value: "0",
label: "未审核", label: "未提交",
}, },
{ {
value: "1", value: "1",
label: "已提交",
},
{
value: "2",
label: "已审核", label: "已审核",
}, },
], ],
@ -374,14 +378,14 @@ export default {
}, },
// //
CheckboxkMethod({ row }) { CheckboxkMethod({ row }) {
return row.zt !== "1"; return row.zt == "0";
}, },
// //
async toolbarButtonClickEvent(code) { async toolbarButtonClickEvent(code) {
switch (code) { switch (code) {
case "insert": case "insert":
if (this.checkedList.length > 0) { if (this.checkedList.length > 0) {
sh(this.checkedList).then((res) => { tj(this.checkedList).then((res) => {
if (res.success) { if (res.success) {
const xTable = this.$refs.tableRef; const xTable = this.$refs.tableRef;
xTable.loadData(this.initList()); xTable.loadData(this.initList());

@ -325,10 +325,14 @@ export default {
statusOptions: [ statusOptions: [
{ {
value: "0", value: "0",
label: "未审核", label: "未提交",
}, },
{ {
value: "1", value: "1",
label: "已提交",
},
{
value: "2",
label: "已审核", label: "已审核",
}, },
], ],
@ -374,7 +378,7 @@ export default {
}, },
// //
CheckboxkMethod({ row }) { CheckboxkMethod({ row }) {
return row.zt !== "1"; return row.zt == "1";
}, },
// //
async toolbarButtonClickEvent(code) { async toolbarButtonClickEvent(code) {
@ -385,7 +389,7 @@ export default {
if (res.success) { if (res.success) {
const xTable = this.$refs.tableRef; const xTable = this.$refs.tableRef;
xTable.loadData(this.initList()); xTable.loadData(this.initList());
this.$message.success("审核成功!"); this.$message.success("提交成功!");
} }
}); });
} else { } else {

Loading…
Cancel
Save