|
@@ -270,7 +270,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
- <el-button size="small" type="primary" @click="submitCopy">确定</el-button>
|
|
|
|
|
|
|
+ <autoLoadingButton size="small" type="primary" :on-click="submitCopy">确定</autoLoadingButton>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
@@ -288,6 +288,7 @@ import { Fileonload, formatFileSize, processFileName } from '@/utils/composables
|
|
|
import authDrawer from "./components/agreementAuth.vue";
|
|
import authDrawer from "./components/agreementAuth.vue";
|
|
|
import ruleFeeDialog from "./components/ruleFeeDialog.vue";
|
|
import ruleFeeDialog from "./components/ruleFeeDialog.vue";
|
|
|
import ruleFeeDialogEdit from "./components/ruleFeeDialogEdit.vue";
|
|
import ruleFeeDialogEdit from "./components/ruleFeeDialogEdit.vue";
|
|
|
|
|
+import autoLoadingButton from "./components/autoLoadingButton.vue";
|
|
|
import { Delete, Edit, CopyDocument } from '@element-plus/icons-vue'
|
|
import { Delete, Edit, CopyDocument } from '@element-plus/icons-vue'
|
|
|
interface Agreement {
|
|
interface Agreement {
|
|
|
[key: string]: string | number; // 协议名称
|
|
[key: string]: string | number; // 协议名称
|
|
@@ -707,18 +708,21 @@ const ruleCopy = (id: string) => {
|
|
|
copyDialog1.value = true
|
|
copyDialog1.value = true
|
|
|
}
|
|
}
|
|
|
//复制规则
|
|
//复制规则
|
|
|
-const submitCopy = () => {
|
|
|
|
|
- api.agreementApi.rulesCopy(agreementId.value, ruleId.value).then((res: any) => {
|
|
|
|
|
- if (res.code == '200') {
|
|
|
|
|
- agreementRulesList();
|
|
|
|
|
- copyDialog1.value = false
|
|
|
|
|
- ElMessage({
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- message: res.msg,
|
|
|
|
|
- plain: true,
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+const submitCopy = async () => {
|
|
|
|
|
+ if(!agreementId.value){
|
|
|
|
|
+ ElMessage.error('请选择协议')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ const res = await api.agreementApi.rulesCopy(agreementId.value, ruleId.value)
|
|
|
|
|
+ if (res.code == '200') {
|
|
|
|
|
+ agreementRulesList();
|
|
|
|
|
+ copyDialog1.value = false
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '操作成功',
|
|
|
|
|
+ plain: true,
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
//添加费用
|
|
//添加费用
|
|
|
const ruleFeeVisible = ref(false);//规则费用弹窗
|
|
const ruleFeeVisible = ref(false);//规则费用弹窗
|